:root {
  --bg: #0b0e17;
  --bg-alt: #10141f;
  --card: #161b2b;
  --border: #232b42;
  --text: #e8ebf5;
  --muted: #9aa3bd;
  --blue: #2e7bff;
  --red: #ff3b4e;
  --green: #2ecc71;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: rgba(11, 14, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; }
.logo-elite { color: var(--blue); }
.logo-rp { color: var(--red); }

.nav-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(46, 123, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(255, 59, 78, 0.18), transparent 55%),
    var(--bg);
}

.hero-lights { position: absolute; inset: 0; pointer-events: none; }
.light {
  position: absolute;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: pulse 2.4s infinite alternate;
}
.light.blue { left: 8%; background: var(--blue); }
.light.red { right: 8%; background: var(--red); animation-delay: 1.2s; }

@keyframes pulse {
  from { opacity: 0.15; }
  to { opacity: 0.5; }
}

.hero h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); font-weight: 900; letter-spacing: 3px; }
.hero-sub { font-size: 1.2rem; margin-top: 0.6rem; color: var(--text); }
.hero-desc { max-width: 640px; margin: 1rem auto 0; color: var(--muted); }

.hero-buttons {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }

.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35); }
.btn-play { background: linear-gradient(135deg, var(--blue), #1f5fd0); color: #fff; box-shadow: 0 6px 20px rgba(46, 123, 255, 0.35); }
.btn-copy { background: var(--green); color: #06220f; padding: 0.55rem 1rem; border-radius: 10px; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 1.5rem; max-width: 1000px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * { max-width: 1000px; margin-left: auto; margin-right: auto; }

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  border-left: 5px solid var(--red);
  padding-left: 0.8rem;
}
.section-intro { color: var(--muted); margin-bottom: 2rem; }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.join-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.5rem; }
.join-card h3 { margin-bottom: 0.6rem; }
.join-card p { color: var(--muted); margin-bottom: 1rem; }

.server-code {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.server-code code {
  background: #0a0d15;
  border: 1px dashed var(--blue);
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
}

/* ===== RESEAUX ===== */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.6rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.social-card:hover { transform: translateY(-4px); }
.social-card.discord:hover { border-color: #5865f2; }
.social-card.youtube:hover { border-color: #ff0000; }
.social-card.tiktok:hover { border-color: #00f2ea; }
.social-card.twitch { opacity: 0.55; cursor: default; }

.social-icon svg {
  width: 42px;
  height: 42px;
  fill: var(--muted);
  transition: fill 0.2s, transform 0.2s;
}
.social-card.discord .social-icon svg { fill: #5865f2; }
.social-card.youtube .social-icon svg { fill: #ff0000; }
.social-card.tiktok .social-icon svg { fill: #00f2ea; }
.social-card.twitch .social-icon svg { fill: #9146ff; }
.social-card:hover .social-icon svg { transform: scale(1.12); }

.social-name { font-weight: 800; font-size: 1.1rem; }
.social-handle { color: var(--muted); font-size: 0.85rem; }

/* Icônes dans les boutons */
.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  vertical-align: -4px;
  margin-right: 0.45rem;
}

/* ===== REGLEMENTS ===== */
.rule-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
}
.rule-block h3 { margin-bottom: 0.8rem; color: var(--blue); }
.rules { padding-left: 1.4rem; display: grid; gap: 0.45rem; }
.rules.def { list-style: none; padding-left: 0; }

.tag-interdit {
  display: inline-block;
  background: rgba(255, 59, 78, 0.15);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  text-transform: uppercase;
}

.jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.job-card {
  background: #0f1322;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
}
.job-card .job-icon { font-size: 1.6rem; display: block; margin-bottom: 0.3rem; }
.job-card strong { color: var(--blue); }
.job-card p { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

.sanctions { border-color: rgba(255, 59, 78, 0.4); }
.sanctions h3 { color: var(--red); }
.sanctions .rules { list-style: none; padding-left: 0; }
.ban-note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 59, 78, 0.1);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  font-size: 0.95rem;
}

.accept-note {
  text-align: center;
  color: var(--green);
  font-weight: 600;
  margin-top: 1.5rem;
}

/* ===== RECRUTEMENT ===== */
.recruit-card { max-width: 560px; margin: 0 auto; text-align: center; }
.recruit-list {
  list-style: none;
  text-align: left;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
  font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer-socials {
  margin: 0.9rem 0;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}
.footer-socials a { display: inline-flex; }
.footer-icon {
  width: 26px;
  height: 26px;
  fill: var(--muted);
  transition: fill 0.2s, transform 0.2s;
}
.footer-socials a:hover .footer-icon { fill: var(--text); transform: scale(1.15); }
.footer-note { font-size: 0.8rem; margin-top: 0.8rem; opacity: 0.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .join-cards { grid-template-columns: 1fr; }
}
