/* ============================================================
   FNEG — Fédération Nationale d'E-sports de Guinée
   Thème « Arène de nuit » — bleu électrique / cobalt
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #04070f;
  --bg-2: #060c1c;
  --panel: #0a1226;
  --panel-2: #0d1730;
  --line: rgba(120, 160, 255, 0.14);
  --line-strong: rgba(120, 160, 255, 0.28);

  /* Surfaces de cartes / champs (bascule avec le thème) */
  --card: rgba(13, 23, 48, 0.55);
  --card-2: rgba(6, 12, 28, 0.7);
  --card-hover: rgba(46, 107, 255, 0.08);
  --field: rgba(6, 12, 28, 0.8);
  --ghost-bg: rgba(10, 18, 38, 0.5);
  --grain: 0.05;

  --blue: #2e6bff;
  --blue-deep: #1b3fd6;
  --blue-2: #4d8dff;
  --cyan: #7fd6ff;
  --cyan-soft: rgba(127, 214, 255, 0.16);

  --ink: #eaf1ff;
  --strong: #ffffff;
  --muted: #8fa3c8;
  --muted-2: #5f7099;

  --font-display: "Sora", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --wrap: 1240px;
  --nav-h: 78px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;

  --glow: 0 0 40px rgba(46, 107, 255, 0.45), 0 0 120px rgba(46, 107, 255, 0.18);
}

/* ---------- Thème clair ---------- */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #eef1f8;
  --bg-2: #e5e9f4;
  --panel: #ffffff;
  --panel-2: #f5f8fd;
  --line: rgba(20, 44, 100, 0.12);
  --line-strong: rgba(20, 44, 100, 0.22);

  --card: #ffffff;
  --card-2: #eef2fb;
  --card-hover: rgba(32, 89, 240, 0.06);
  --field: #ffffff;
  --ghost-bg: rgba(255, 255, 255, 0.6);
  --grain: 0.03;

  --blue: #2059f0;
  --blue-deep: #1636b8;
  --blue-2: #1f4fd8;
  --cyan: #0c72c4;
  --cyan-soft: rgba(12, 114, 196, 0.12);

  --ink: #0c1830;
  --strong: #050c1c;
  --muted: #48587a;
  --muted-2: #7183a6;
}

/* Zones sur photo sombre : le texte reste clair quel que soit le thème */
:root[data-theme="light"] .hero,
:root[data-theme="light"] .cta-band {
  --ink: #eaf1ff;
  --strong: #ffffff;
  --muted: #aebfe0;
  --muted-2: #8fa3c8;
  --cyan: #7fd6ff;
  --blue-2: #4d8dff;
  --line: rgba(120, 160, 255, 0.16);
  --line-strong: rgba(120, 160, 255, 0.3);
  --ghost-bg: rgba(12, 20, 42, 0.42);
}
/* Barre de nav transparente (au-dessus du héros) : texte clair en thème clair */
:root[data-theme="light"] .nav:not(.scrolled) .brand,
:root[data-theme="light"] .nav:not(.scrolled) .nav-links,
:root[data-theme="light"] .nav:not(.scrolled) .nav-cta {
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.8);
  --muted-2: rgba(255, 255, 255, 0.62);
  --line-strong: rgba(255, 255, 255, 0.34);
  --ghost-bg: rgba(255, 255, 255, 0.12);
}
:root[data-theme="light"] .nav.scrolled { background: rgba(255, 255, 255, 0.86); }
:root[data-theme="light"] .nav-mobile { background: rgba(255, 255, 255, 0.97); }

/* Transitions de bascule de thème */
body,
.nav,
.section--tint,
.footer,
.pillar, .step, .match, .join-card, .comp, .pcard, .lb-wrap, .lb-head, .badge, .map-stat, .signup input {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

/* Film grain sur toute la page */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 2000;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-2%, -3%); }
  80% { transform: translate(4%, 2%); }
}

/* ---------- Préloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.loader-inner { display: flex; flex-direction: column; align-items: center; }
.loader-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 9vw, 110px);
  letter-spacing: 0.04em;
  display: flex;
  overflow: hidden;
}
.loader-mark span {
  display: inline-block;
  color: var(--ink);
  transform: translateY(110%);
}
.loader-mark span:nth-child(2) { color: var(--blue-2); }
.loader-mark span:nth-child(4) { color: var(--cyan); }
.loader-bar {
  width: min(320px, 60vw);
  height: 2px;
  margin-top: 26px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.loader-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
.loader-tag {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0;
}
/* Filet de sécurité sans JS / sans GSAP : le loader s'efface tout seul */
@keyframes loader-bail { to { opacity: 0; visibility: hidden; } }
.loader { animation: loader-bail 0.6s ease 3.2s forwards; }
@keyframes loader-bail-mark { to { transform: translateY(0); } }
.loader-mark span { animation: loader-bail-mark 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards; }

/* ---------- Curseur custom (desktop) ---------- */
.cursor-dot, .cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4000;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor-dot { width: 6px; height: 6px; background: var(--cyan); }
  .cursor-ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(127, 214, 255, 0.5);
    transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
  }
  .cursor-ring.is-hover {
    width: 64px;
    height: 64px;
    border-color: rgba(46, 107, 255, 0.9);
    background: rgba(46, 107, 255, 0.12);
  }
}

/* ---------- Barre de progression ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3000;
  background: transparent;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- HUD de chapitre (scrollytelling) ---------- */
.chapter-hud {
  position: fixed;
  left: clamp(20px, 3.5vw, 48px);
  bottom: 26px;
  z-index: 950;
  display: none;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  pointer-events: none;
}
.chapter-hud b { color: var(--cyan); font-weight: 600; }
.chapter-hud .sep { width: 26px; height: 1px; background: var(--line-strong); }
.chapter-hud [data-hud-name] { overflow: hidden; display: inline-block; }
@media (min-width: 1081px) { .chapter-hud { display: inline-flex; } }

/* ---------- Utilitaires ---------- */
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(48px, 6.5vw, 84px) 0; position: relative; }
.section--tint {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

.h-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6.6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.h-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.h-lg span { color: var(--blue-2); }
.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 56ch;
}
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .lead { margin-top: 18px; }
.muted { color: var(--muted); }
.accent-c { color: var(--cyan); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 30px rgba(46, 107, 255, 0.3);
}
.btn--primary:hover { background: var(--blue-2); transform: translateY(-2px); box-shadow: var(--glow); }
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--ghost-bg);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--blue-2); background: rgba(46, 107, 255, 0.12); transform: translateY(-2px); }
.btn--sm { padding: 11px 22px; font-size: 13.5px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card-2);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.badge--open { color: var(--cyan); border-color: rgba(127, 214, 255, 0.4); }
.badge--nat { color: #fff; background: var(--blue); border-color: var(--blue); }
.badge--cyan { color: #fff; background: var(--blue); border-color: var(--blue); font-weight: 700; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(20px, 3.5vw, 48px);
  transition: background 0.4s, border-color 0.4s, height 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 66px;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand .mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 0 4px 22px rgba(46, 107, 255, 0.4);
}
.brand .full { display: flex; flex-direction: column; line-height: 1.25; }
.brand .full b { font-size: 14.5px; letter-spacing: 0.01em; }
.brand .full span { font-size: 11px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.08em; }

.nav-links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Bascule de thème */
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: var(--ghost-bg);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--blue-2); transform: rotate(18deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: none; }

.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 26px clamp(20px, 3.5vw, 48px) 34px;
  background: rgba(4, 7, 15, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a { padding: 12px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 16px; border: 0; }
.nav.open .nav-mobile { display: flex; }

/* ---------- Héros ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
  color: var(--ink);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .bg-img {
  position: absolute;
  inset: -6%;
  background: url("media/hero-bg.jpg") center 30% / cover no-repeat;
  filter: saturate(0.9);
  will-change: transform;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(4, 7, 15, 0.74);
}
.hero { border-bottom: 1px solid var(--line); }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(127, 178, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 178, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy .h-xl .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-copy .h-xl .line:nth-child(2) { color: var(--blue-2); }
.hero-copy .h-xl .line:nth-child(3) {
  -webkit-text-stroke: 1.5px rgba(127, 178, 255, 0.75);
  color: transparent;
}
.hero-copy .h-xl .word { display: inline-block; will-change: transform; }
.hero-copy .lead { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-stats {
  display: flex;
  gap: clamp(28px, 4vw, 60px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat b::after { content: "+"; color: var(--cyan); margin-left: 2px; }
.stat span { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* Visuel héros */
.hero-visual { position: relative; z-index: 2; }
.hero-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5.1;
  transform: rotate(2.2deg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line-strong), 0 0 80px rgba(46, 107, 255, 0.16);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
  will-change: transform;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(46, 107, 255, 0.14);
  mix-blend-mode: screen;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(6, 14, 32, 0.09) 3px 4px);
  pointer-events: none;
}
.hero-tag {
  position: absolute;
  z-index: 3;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: rgba(7, 12, 26, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}
.hero-tag b { display: block; font-size: 15px; }
.hero-tag span { font-size: 12px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.05em; }
.hero-tag .accent-c { color: var(--cyan); }
.hero-tag.t1 { top: 7%; left: -9%; }
.hero-tag.t2 { bottom: 9%; right: -7%; }

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: clamp(20px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 5;
}
.scroll-cue span:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  writing-mode: vertical-rl;
}
.scroll-cue .bar { width: 1px; height: 54px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue .bar::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  animation: cue 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue { 50% { top: 0; } 100% { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; will-change: transform; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-track > span i {
  font-style: normal;
  color: var(--blue-2);
  font-size: 18px;
}
.marquee-track > span.hl { color: var(--cyan); }

/* ---------- Mission ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.pillars { display: flex; flex-direction: column; gap: 14px; }
.pillar {
  display: flex;
  gap: 20px;
  padding: 24px 26px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.35s, transform 0.35s, background 0.35s;
}
.pillar:hover { border-color: rgba(77, 141, 255, 0.5); transform: translateX(8px); background: var(--card-hover); }
.pillar .ic {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(46, 107, 255, 0.14);
  border: 1px solid rgba(77, 141, 255, 0.35);
}
.pillar .ic svg { width: 22px; height: 22px; stroke: var(--blue-2); }
.pillar h4 { font-size: 17px; margin-bottom: 4px; letter-spacing: 0.01em; }
.pillar p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.mission-visual { position: relative; }
.map-img { width: 100%; filter: drop-shadow(0 30px 60px rgba(46, 107, 255, 0.14)); }
.map-stat {
  position: absolute;
  padding: 16px 22px;
  border-radius: var(--r-md);
  background: var(--card-2);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 20px rgba(20, 40, 90, 0.08);
}
.map-stat b { display: block; font-family: var(--font-mono); font-size: 24px; color: var(--strong); }
.map-stat span { font-size: 12px; color: var(--muted); }
.map-stat .accent-c { color: var(--cyan); }
.map-stat.m1 { top: 6%; right: 2%; }
.map-stat.m2 { bottom: 8%; left: 0; }

/* ---------- Compétitions ---------- */
.comp-rail { overflow: visible; }
.comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  perspective: 1200px;
}

/* Mode cinématique (desktop, classe .fx posée par le JS) :
   la grille devient un travelling horizontal épinglé. */
.fx #competitions { padding: calc(var(--nav-h) + 24px) 0 24px; display: flex; align-items: center; min-height: 100svh; overflow: hidden; }
.fx #competitions .wrap { width: min(var(--wrap), calc(100% - 48px)); }
.fx #competitions .sec-head { margin-bottom: 40px; }
.fx .comp-rail { overflow: visible; }
.fx .comp-grid {
  display: flex;
  width: max-content;
  gap: 32px;
  will-change: transform;
}
.fx .comp { flex: 0 0 min(42vw, 540px); }

/* Étapes en mode cinématique : la section est épinglée,
   chaque étape s'allume au fil du scroll. */
.fx #etapes { padding: calc(var(--nav-h) + 24px) 0 24px; display: flex; align-items: center; min-height: 100svh; overflow: hidden; }
.fx #etapes .sec-head { margin-bottom: 40px; }
/* Comment ça marche : moins d'espace au-dessus */
#etapes { padding-top: clamp(22px, 3vw, 40px); }
.fx #etapes { padding-top: var(--nav-h); }
.comp {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.35s, box-shadow 0.35s;
  will-change: transform;
}
.comp:hover { border-color: rgba(77, 141, 255, 0.55); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(46, 107, 255, 0.12); }
.comp .cover { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; }
.comp .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s;
  filter: saturate(0.85);
  will-change: transform;
}
.comp:hover .cover-img { transform: scale(1.07); filter: saturate(1.1); }
.comp .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 28, 0.28);
}
.comp .badges { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.comp .body { padding: 26px 28px 28px; }
.comp .meta { margin-bottom: 14px; }
.comp h4 { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.8vw, 23px); text-transform: uppercase; letter-spacing: 0.01em; }
.comp .game { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.comp .foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.comp .dates { font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
.comp .dates b { display: block; font-family: var(--font-mono); font-size: 14px; color: var(--cyan); letter-spacing: 0.02em; }

/* ---------- Matchs ---------- */
.matches { display: flex; flex-direction: column; gap: 16px; }
.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 40px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.35s, background 0.35s;
}
.match:hover { border-color: rgba(77, 141, 255, 0.5); background: var(--card-hover); }
.match .side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.match .side.right { flex-direction: row-reverse; text-align: right; }
.match .logo {
  flex: 0 0 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  background: rgba(46, 107, 255, 0.16);
  border: 1px solid rgba(77, 141, 255, 0.4);
  color: var(--blue-2);
}
.match .who b { display: block; font-size: 16px; }
.match .who span { font-size: 12.5px; color: var(--muted-2); font-family: var(--font-mono); }
.match .center { text-align: center; }
.countdown {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 27px);
  color: var(--cyan);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.countdown.live { color: #ef2d4e; animation: livepulse 1.2s infinite; }
@keyframes livepulse { 50% { opacity: 0.6; text-shadow: 0 0 22px rgba(239, 45, 78, 0.55); } }
.match .vs { margin-top: 4px; font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Étapes ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 30px 26px 34px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s;
}
.steps-line {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.steps-line i {
  display: block;
  height: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
}
.step:hover { transform: translateY(-8px); border-color: rgba(77, 141, 255, 0.5); }
.step .num::before {
  content: "0" counter(step);
  position: absolute;
  top: 6px;
  right: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(77, 141, 255, 0.3);
}
.step .ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  margin-bottom: 20px;
  background: rgba(46, 107, 255, 0.14);
  border: 1px solid rgba(77, 141, 255, 0.35);
}
.step .ic svg { width: 22px; height: 22px; stroke: var(--cyan); }
.step h4 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- Jeu phare ---------- */
.featured {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(48px, 6vw, 90px);
  align-items: center;
}
.featured .copy .h-lg { margin-top: 18px; }
.featured .copy .lead { margin-top: 20px; }
.feat-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.feat-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.feat-list b { color: var(--ink); }
.feat-list .chk {
  flex: 0 0 26px;
  height: 26px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(127, 214, 255, 0.12);
  border: 1px solid rgba(127, 214, 255, 0.4);
}
.feat-list .chk svg { width: 13px; height: 13px; stroke: var(--cyan); }
.featured-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.featured-media img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(46, 107, 255, 0.1);
  mix-blend-mode: screen;
}

/* ---------- Classement ---------- */
.lb-wrap {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}
.lb-head, .lb-row {
  display: grid;
  grid-template-columns: 76px 1.6fr 1fr 130px;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(18px, 3vw, 34px);
}
.lb-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
}
.lb-row { border-bottom: 1px solid rgba(120, 160, 255, 0.07); transition: background 0.3s; }
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background: rgba(46, 107, 255, 0.07); }
.lb-rank { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--muted-2); }
.lb-row.top1 .lb-rank { color: var(--cyan); }
.lb-row.top2 .lb-rank, .lb-row.top3 .lb-rank { color: var(--blue-2); }
.lb-row.top1 { background: rgba(127, 214, 255, 0.05); }
.lb-player { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lb-player .av {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  background: rgba(46, 107, 255, 0.16);
  border: 1px solid rgba(77, 141, 255, 0.4);
  color: var(--blue-2);
}
.lb-row.top1 .lb-player .av { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 24px rgba(46, 107, 255, 0.4); }
.lb-player b { display: block; font-size: 15.5px; }
.lb-player b .trend { font-size: 10px; vertical-align: 2px; }
.lb-player .trend.up { color: var(--cyan); }
.lb-player .trend.down { color: #ff5d7e; }
.lb-player div span { font-size: 12.5px; color: var(--muted-2); }
.lb-region { font-size: 14px; color: var(--muted); }
.lb-pts { text-align: right; font-family: var(--font-mono); font-weight: 700; font-size: 16.5px; color: var(--strong); font-variant-numeric: tabular-nums; }
.lb-pts em { font-style: normal; font-size: 11px; color: var(--muted-2); }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Joueurs ---------- */
.car-nav { display: flex; gap: 10px; }
.car-nav button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s;
}
.car-nav button:hover { border-color: var(--blue); color: #fff; background: var(--blue); transform: scale(1.06); }
.car-nav svg { width: 20px; height: 20px; }

.track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.pcard {
  flex: 0 0 min(310px, 78vw);
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.35s, transform 0.35s;
}
.pcard:hover { border-color: rgba(77, 141, 255, 0.55); transform: translateY(-8px); }
.pcard .portrait { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; }
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) contrast(1.05);
  transition: filter 0.5s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pcard:hover .portrait-img { filter: grayscale(0) saturate(1.1); transform: scale(1.05); }
.pcard .portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 38, 0.3);
}
.pcard .rk {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  color: #fff;
  background: rgba(8, 14, 30, 0.62);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.pcard .num {
  position: absolute;
  right: 12px;
  bottom: 2px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 76px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 214, 255, 0.4);
}
.pbody { padding: 20px 22px 24px; }
.pbody h4 { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; }
.pbody .reg { margin-top: 3px; font-size: 13px; color: var(--muted-2); }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pstats b { display: block; font-family: var(--font-mono); font-size: 16px; color: var(--strong); }
.pstats .accent-c { color: var(--cyan); }
.pstats span { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Rejoindre ---------- */
.join-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.join-card {
  position: relative;
  padding: clamp(34px, 4vw, 54px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s, background 0.35s;
}
.join-card:hover { border-color: rgba(77, 141, 255, 0.55); transform: translateY(-6px); background: var(--card-hover); }
.join-card .glow { display: none; }
.join-card.players { border-top: 3px solid var(--blue); }
.join-card.clubs { border-top: 3px solid var(--cyan); }
.join-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.join-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.04;
  text-transform: uppercase;
}
.join-card p { margin: 18px 0 30px; color: var(--muted); max-width: 42ch; }
.join-card > *:not(.glow) { position: relative; z-index: 1; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: clamp(60px, 8vw, 104px) 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.cta-band .bg {
  position: absolute;
  inset: -8%;
  background: url("media/cta-pad.jpg") center / cover no-repeat;
  opacity: 0.35;
  will-change: transform;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 15, 0.78);
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band .h-lg { font-size: clamp(36px, 6vw, 80px); }
.cta-band .lead { margin: 24px auto 0; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 42px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(60px, 8vw, 90px) 0 36px; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 0.8fr); gap: clamp(30px, 4vw, 60px); }
.foot-brand p { margin-top: 20px; color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.signup { margin-top: 30px; }
.signup label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.signup .field { display: flex; gap: 10px; }
.signup input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.signup input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(46, 107, 255, 0.15); }
.signup input::placeholder { color: var(--muted-2); }
.signup .ok { display: none; margin-top: 12px; font-size: 13.5px; color: var(--cyan); }
.signup.done .ok { display: block; }
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.foot-col a { display: block; padding: 7px 0; font-size: 14.5px; color: var(--muted); transition: color 0.25s, transform 0.25s; }
.foot-col a:hover { color: var(--cyan); transform: translateX(4px); }
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(44px, 6vw, 70px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-2);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.socials a:hover { border-color: var(--blue-2); background: rgba(46, 107, 255, 0.15); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: var(--muted); transition: fill 0.3s; }
.socials a:hover svg { fill: #fff; }

/* ---------- Images manquantes ---------- */
.media-img--missing { visibility: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 460px; }
  .hero-tag.t1 { left: -4%; }
  .hero-tag.t2 { right: -3%; }
  .scroll-cue { display: none; }
  .mission-grid, .featured { grid-template-columns: 1fr; }
  .featured-media { aspect-ratio: 16 / 11; order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .burger { display: flex; }
}
@media (max-width: 860px) {
  .comp-grid, .join-grid { grid-template-columns: 1fr; }
  .lb-head, .lb-row { grid-template-columns: 52px 1.7fr 110px; }
  .lb-region { display: none; }
  .match { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .match .side, .match .side.right { flex-direction: column; text-align: center; gap: 8px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .brand .full { display: none; }
  .nav-cta { gap: 4px; }
  .nav-cta .btn--primary.btn--sm { padding: 10px 16px; font-size: 12.5px; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-tag.t1 { top: 4%; left: 2%; }
  .hero-tag.t2 { bottom: 4%; right: 2%; }
  .foot-top { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .loader { display: none; }
  .marquee-track { animation: none; }
  body::after { animation: none; }
}
