/* ============================================================
   SNAPZONE — ONE PAGER
   style.css (fusionné avec stylesv2.css)
   ============================================================
   Sommaire :
    1.  Custom Properties (Design System)
    2.  Reset & Base
    3.  Typographie
    4.  Layout — Utilitaires
    5.  Composants — Boutons
    6.  Composants — Header / Nav
    7.  Section — Hero
    8.  Section — Accroche
    9.  Section — Présentation
   10.  Section — Steps (4 étapes)
   11.  Section — Benefits (bénéfices)
   12.  Section — Achievements (succès)
   13.  Section — Levels (niveaux)
   14.  Section — Proof (preuve)
   15.  Section — Community (communauté)
   16.  Section — CTA Final
   17.  Footer
   18.  Animations au scroll
   19.  Responsive
   20.  Accessibilité / prefers-reduced-motion
   --- V2 ---
   21.  Navbar étendu (liens + icônes réseaux)
   22.  Bande de crédibilité (#credibilite)
   23.  Icônes bénéfices
   24.  Section classement (#classement)
   25.  Table classement (.leaderboard)
   26.  Profils joueurs (.profiles / .profile)
   27.  Grille réseaux sociaux (.social-grid / .social-card)
   28.  Footer étendu
   29.  Steps — dernier élément pleine largeur
   30.  CTA inline dans sections
   ============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES — DESIGN SYSTEM
   ============================================================ */
:root {
  /* — Couleurs — */
  --color-bg:           #132e46;
  --color-bg-alt:       #0d2035;
  --color-border:       rgba(255, 255, 255, 0.10);
  --color-accent:       #0ea5e9;
  --color-accent-light: #38bdf8;
  --color-accent-hover: #38bdf8;
  --color-accent-dim:   rgba(14, 165, 233, 0.10);
  --color-text:         #f0eff4;
  --color-text-muted:   rgba(240, 239, 244, 0.55);
  --color-white:        #fff;

  /* — Typographie — */
  --font-display: 'Passion One', Impact, sans-serif;
  --font-primary: 'Gabarito', 'Trebuchet MS', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-hero: clamp(2.75rem, 7vw, 5rem);
  --text-section-title: clamp(1.875rem, 4.5vw, 2.75rem);

  /* — Espacements — */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --section-padding: clamp(4rem, 8vw, 8rem);

  /* — Rayons — */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* — Ombres — */
  --shadow-md:     0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.20);
  --shadow-lg:     0 8px 24px rgba(0, 0, 0, 0.45), 0 4px 8px rgba(0, 0, 0, 0.25);
  --shadow-accent: 0 0 28px rgba(255, 195, 0, 0.45);

  /* — Gradients — */
  --gradient-card:   linear-gradient(135deg, #305577 0%, #1d4363 100%);
  --gradient-cta:    linear-gradient(135deg, #ffe066 0%, #ce9e00 100%);

  /* — Transitions — */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;

  /* — Layout — */
  --container-max:    1100px;
  --container-gutter: var(--space-md);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain cinématique — donne de la profondeur sans surcharger */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='grain'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='300' height='300' filter='url(%23grain)'/></svg>");
  background-size: 300px 300px;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #4a90e2;
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

::selection {
  background-color: var(--color-accent);
  color: #1a1000;
}


/* ============================================================
   3. TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-white);
  letter-spacing: 0.01em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-section-title); }

h3 {
  font-size: var(--text-xl);
  font-weight: 700;
}

p {
  color: var(--color-text);
  line-height: 1.7;
}

strong {
  font-weight: 700;
  color: var(--color-white);
}

blockquote {
  border-left: 2px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
  background: rgba(14, 165, 233, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}


/* ============================================================
   4. LAYOUT — UTILITAIRES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.section {
  padding-block: var(--section-padding);
  background-color: var(--color-bg);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--cta {
  background-color: var(--color-bg);
}

/* Barre dorée signature avant chaque en-tête de section */
.section__header {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-top: var(--space-md);
}

.section__header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
  border-radius: var(--radius-full);
  transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

/* S'étire à la révélation scroll */
.section__header.is-visible::before {
  width: 52px;
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: none;
  margin-bottom: var(--space-2xl);
}


/* ============================================================
   5. COMPOSANTS — BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85em 2em;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
}

/* — CTA Principal — gradient or + shimmer au survol — */
.btn--primary {
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 800;
}

/* Shimmer traverse de gauche à droite au survol */
.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -65%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
  color: #fff;
}

.btn--primary:hover::after {
  left: 130%;
}

.btn--primary:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 4px;
}

.btn--primary:active {
  transform: translateY(-1px);
  box-shadow: none;
}

/* — CTA Secondaire — glassmorphism — */
.btn--ghost {
  background-color: rgba(255, 255, 255, 0.23);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text);
  border: 1.5px solid rgba(255, 255, 255, 0.30);
}

.btn--ghost:hover {
  border-color: rgba(56, 189, 248, 0.80);
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

.btn--sm {
  font-size: var(--text-sm);
  padding: 0.6em 1.4em;
  min-height: 44px; /* Touch target WCAG AA */
}

.btn--lg {
  font-size: var(--text-xl);
  padding: 1em 2.5em;
}


/* ============================================================
   6. COMPOSANTS — HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, rgba(52, 90, 120, 0.88), rgba(42, 74, 100, 0.88));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  transition: background var(--transition-base);
}

.site-header.is-scrolled {
  background: linear-gradient(135deg, rgba(52, 90, 120, 0.97), rgba(42, 74, 100, 0.97));
}

.site-header .container {
  max-width: 1440px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-block: var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 30px;
  width: auto;
}


/* ============================================================
   7. SECTION — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  overflow: hidden;
}

/* — Vidéo de fond — */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Overlay sombre + halo — au-dessus de la vidéo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(19, 46, 70, 0.75) 0%, rgba(19, 46, 70, 0.00) 100%),
    linear-gradient(rgba(19, 46, 70, 0.00) 0%, rgba(19, 46, 70, 0.35) 100%),
    radial-gradient(ellipse 75% 65% at 50% 30%, rgba(14, 165, 233, 0.13) 0%, transparent 70%);
  pointer-events: none;
}

/* Dégradé de fondu en bas */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  padding-block-start: var(--space-lg);
  padding-block-end: var(--space-3xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
}

.hero__content {
  min-width: 0;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}

.hero__surtitre {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: var(--color-accent-dim);
  border: 1px solid rgba(14, 165, 233, 0.30);
  border-radius: var(--radius-full);
  padding: 0.4em 1em;
  margin-bottom: var(--space-lg);
  max-width: max-content;
}

/* Dot de statut clignotant — HUD feel */
.hero__surtitre::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
  animation: statusBlink 2.2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  max-width: 14ch;
}

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}


/* — Coordinates — overlay GPS en bas à droite */
.hero__coords {
  position: absolute;
  bottom: clamp(var(--space-xl), 10vh, var(--space-3xl));
  right: clamp(var(--space-md), 4%, var(--space-2xl));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  z-index: 2;
  pointer-events: none;
}

.hero__coords span {
  font-family: var(--font-primary);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.30;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.4s ease;
}

/* Cacher coords sur mobile */
@media (max-width: 639px) {
  .hero__coords { display: none; }
}


/* ============================================================
   8. SECTION — ACCROCHE
   ============================================================ */

/* Overlay sombre + image de fond en parallaxe
   L'image est portée par ::before pour permettre un transform indépendant du contenu */
#accroche {
  position: relative;
  overflow: hidden;
}

#accroche::before {
  content: '';
  position: absolute;
  /* Déborde de 15vh en haut et en bas pour absorber le déplacement parallaxe */
  inset: -15vh 0;
  background-image:
    linear-gradient(
      to right,
      rgba(13, 32, 53, 0.93) 0%,
      rgba(13, 32, 53, 0.80) 55%,
      rgba(13, 32, 53, 0.55) 100%
    ),
    url('assets/sections/bg-section-2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateY(var(--accroche-parallax, 0px));
  will-change: transform;
  z-index: 0;
  pointer-events: none;
}

/* Le contenu reste au-dessus du calque parallaxe */
#accroche > .container {
  position: relative;
  z-index: 1;
}

.accroche {
  max-width: 680px;
}

.accroche__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.005em;
}

.accroche__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.accroche__body p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: none;
}

.accroche__body p:first-child {
  font-size: var(--text-xl);
  color: var(--color-text);
}


/* ============================================================
   9. SECTION — STEPS (4 étapes)
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.step:hover {
  border-color: rgba(14, 165, 233, 0.45);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* Shimmer au survol */
.step::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.04), transparent);
  transition: left 0.65s ease;
  pointer-events: none;
}

.step:hover::after {
  left: 100%;
}

/* Numéros — watermark absolu en bas à droite */
.step__number {
  position: absolute;
  right: -0.04em;
  bottom: -0.12em;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 11vw, 9.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.07;
  letter-spacing: -0.02em;
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.step:hover .step__number {
  opacity: 0.18;
}

.step__content {
  padding-top: var(--space-xs);
  position: relative;
  z-index: 1;
  flex: 1;
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}

.step__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 55ch;
}


/* ============================================================
   11. SECTION — BENEFITS (bénéfices)
   ============================================================ */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.benefit:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.benefit__icon {
  font-size: var(--text-3xl);
  line-height: 1;
  flex-shrink: 0;
}

.benefit__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.benefit__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.01em;
}

.benefit__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: none;
}


/* ============================================================
   12. SECTION — ACHIEVEMENTS (succès)
   ============================================================ */

/* Overlay sombre + image de fond en parallaxe — même technique que #accroche */
#succes {
  position: relative;
  overflow: hidden;
}

#succes::before {
  content: '';
  position: absolute;
  inset: -15vh 0;
  background-image:
    linear-gradient(
      to right,
      rgba(13, 32, 53, 0.93) 0%,
      rgba(13, 32, 53, 0.80) 55%,
      rgba(13, 32, 53, 0.55) 100%
    ),
    url('assets/sections/bg-section-6.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateY(var(--succes-parallax, 0px));
  will-change: transform;
  z-index: 0;
  pointer-events: none;
}

#succes > .container {
  position: relative;
  z-index: 1;
}

.achievements {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.achievement {
  padding: var(--space-lg);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

/* Ligne accent verticale — révèle au survol */
.achievement::before {
  content: '';
  position: absolute;
  top: var(--space-sm);
  bottom: var(--space-sm);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
}

.achievement:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow-md);
}

.achievement:hover::before {
  top: var(--space-xs);
  bottom: var(--space-xs);
}

.achievement__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.achievement__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.achievement__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.01em;
}

.achievement__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: none;
}

.achievements__quote {
  font-size: var(--text-lg);
  max-width: 55ch;
}


/* ============================================================
   13. SECTION — PROOF (preuve)
   ============================================================ */
.proof {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 680px;
}

.proof__intro {
  font-size: var(--text-xl);
  color: var(--color-text);
  max-width: none;
}

.proof > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: none;
}

.proof__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-left: var(--space-sm);
}

.proof__list li {
  position: relative;
  padding-left: var(--space-lg);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.6;
}

.proof__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.proof__quote {
  font-size: var(--text-lg);
}


/* ============================================================
   15. SECTION — COMMUNITY (communauté)
   ============================================================ */
.community {
  max-width: 780px;
}

.community__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.0;
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-white) 55%, rgba(240,239,244,0.70) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.community__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.community__body p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: none;
}

.community__punchline {
  font-size: var(--text-xl) !important;
  color: var(--color-text) !important;
  font-style: italic;
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-accent);
}


/* ============================================================
   16. SECTION — CTA FINAL
   ============================================================ */
.section--cta {
  position: relative;
  overflow: hidden;
}

/* Halo centré pulsant */
.section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 100%,
    rgba(14, 165, 233, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: ctaHaloPulse 5s ease-in-out infinite;
}

.cta-final {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.08;
  max-width: 18ch;
}

.cta-final__microcopy {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  max-width: none;
  margin-top: calc(-1 * var(--space-sm));
}


/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-2xl);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xl);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__brand a {
  display: inline-flex;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: none;
}

.footer__copy small {
  font-size: inherit;
}


/* ============================================================
   18. ANIMATIONS AU SCROLL
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

[data-animate="fade-left"]  { transform: translateX(-30px); }
[data-animate="fade-right"] { transform: translateX(30px);  }
[data-animate="fade-up"]    { transform: translateY(24px);  }
[data-animate="zoom-in"]    { transform: scale(0.95);       }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }


/* ============================================================
   KEYFRAMES — Animations HUD & décoratives
   ============================================================ */

/* Dot de statut clignotant */
@keyframes statusBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
  50%       { opacity: 0.25; box-shadow: 0 0 0 4px rgba(14, 165, 233, 0); }
}


/* Halo CTA */
@keyframes ctaHaloPulse {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.4; }
}

/* Timeline dot pulse */
@keyframes timelinePulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(14, 165, 233, 0.22),
      0 0 0 6px rgba(14, 165, 233, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(14, 165, 233, 0.38),
      0 0 0 10px rgba(14, 165, 233, 0.13);
  }
}


/* ============================================================
   19. RESPONSIVE
   ============================================================ */

/* — Mobile/tablette ≤860px : hero colonne unique + centrage — */
@media (max-width: 860px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: clamp(3rem, 10vh, var(--space-3xl));
  }

  .hero__visual {
    display: none;
  }

  .hero__surtitre {
    margin-inline: auto;
  }

  .hero__title {
    max-width: 22ch;
    margin-inline: auto;
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  .hero__subtitle {
    margin-inline: auto;
    max-width: 44ch;
    font-size: var(--text-base);
  }

  .hero__actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* — xs : ≤479px (petits mobiles : Galaxy S8, iPhone SE…) — */
@media (max-width: 479px) {

  /* Boutons hero empilés pleine largeur */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Réduction du padding horizontal des step cards */
  .step {
    padding: var(--space-md) var(--space-md);
  }
}


/* — Timeline steps — colonne unique (< 1024px) — */
@media (max-width: 1023px) {
  .steps {
    position: relative;
    padding-left: 2.5rem;
  }

  /* Ligne verticale reliant les étapes */
  .steps::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(14, 165, 233, 0.30) 8%,
      rgba(14, 165, 233, 0.30) 92%,
      transparent 100%
    );
  }

  /* Dot GPS sur chaque étape */
  .step {
    overflow: visible;
  }

  .step::before {
    content: '';
    position: absolute;
    left: -1.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    z-index: 2;
    animation: timelinePulse 2.4s ease-in-out infinite;
  }

  .step:nth-child(2)::before { animation-delay: 0.6s;  }
  .step:nth-child(3)::before { animation-delay: 1.2s; }
}


/* — sm : 640px — */
@media (min-width: 640px) {
  :root {
    --container-gutter: var(--space-lg);
  }
}

/* — md : 768px — */
@media (min-width: 768px) {
  .benefits {
    grid-template-columns: 1fr 1fr;
  }

  /* Tous les benefits — full width, layout horizontal */
  .benefit {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .benefit .benefit__icon {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    flex-shrink: 0;
  }

  .benefit .benefit__title {
    font-size: var(--text-xl);
  }

  .achievements {
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .footer__brand {
    flex: 1 1 auto;
  }
}

/* — lg : 1024px — */
@media (min-width: 1024px) {
  :root {
    --container-gutter: var(--space-xl);
  }

  .steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding-left: 0;
  }

  /* Cache la timeline — layout 2 colonnes incompatible */
  .steps::before { display: none; }
  .step::before  { display: none; }
  .step          { overflow: hidden; }

  .hero__title {
    max-width: 16ch;
  }
}

/* — xl : 1280px — */
@media (min-width: 1280px) {
  :root {
    --container-gutter: var(--space-2xl);
  }
}


/* ============================================================
   20. ACCESSIBILITÉ / PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn--primary::after,
  .step::after {
    display: none;
  }

  .hero__surtitre::before {
    animation: none !important;
    display: none;
  }

  .section--cta::before {
    animation: none !important;
  }

  .section__header::before {
    transition: none !important;
    width: 52px !important;
  }

  .step:hover,
  .benefit:hover,
  .achievement:hover {
    transform: none;
  }

  /* Fige les parallaxes des sections — images visibles mais immobiles */
  #accroche::before,
  #succes::before {
    transform: none !important;
    will-change: auto;
  }
}


/* ============================================================
   21. NAVBAR ÉTENDU + HAMBURGER + MOBILE MENU
   ============================================================ */

/* — Burger button — */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .nav__burger { display: flex; }
  .nav__right > .btn { display: none; }
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* — Mobile menu panel — */
.nav__mobile {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  background: var(--color-bg-alt);
  border-top: 1px solid transparent;
  transition:
    max-height 320ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms ease,
    opacity 200ms ease;
  opacity: 0;
}

.nav__mobile.is-open {
  max-height: 600px;
  border-top-color: var(--color-border);
  opacity: 1;
}

@media (min-width: 900px) {
  .nav__mobile { display: none !important; }
}

.nav__mobile .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-block: var(--space-xs) var(--space-lg);
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
}

.nav__mobile-links li a {
  display: flex;
  align-items: center;
  padding-block: 0.65rem;
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  letter-spacing: 0.015em;
  transition:
    color var(--transition-fast),
    opacity var(--transition-fast);
}

.nav__mobile-links li a::after {
  content: '›';
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.2;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.nav__mobile-links li:first-child a {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nav__mobile-links li a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.nav__mobile-links li a:hover::after {
  opacity: 0.55;
  transform: translateX(4px);
}

.nav__mobile .btn--primary {
  align-self: stretch;
  text-align: center;
}

/* — Nav links & right (desktop) — */
.nav__links {
  display: none;
  align-items: center;
  gap: clamp(var(--space-lg), 2.5vw, var(--space-xl));
  list-style: none;
  flex: 1;
  justify-content: center;
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast);
}

/* Underline animé — suit la section active */
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--color-accent);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__social {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

@media (min-width: 900px) {
  .nav__social { display: flex; }
}

.nav__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.nav__social a img {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0.65;
  transition: opacity var(--transition-fast);
}

.nav__social a:hover img {
  opacity: 1;
}

.nav__social a:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.40);
  color: var(--color-accent);
}


/* ============================================================
   22. BANDE DE CRÉDIBILITÉ
   ============================================================ */
#credibilite {
  padding-block: var(--space-xl);
}

.proof-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm) var(--space-xl);
}

.proof-band__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.proof-band__check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

/* Bande crédibilité — fond bleu */
#credibilite {
  background-color: #0284c7;
}

#credibilite .proof-band__item {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}


/* ============================================================
   23. ICÔNES BÉNÉFICES (img remplace emoji)
   ============================================================ */
.benefit__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 768px) {
  .benefit__icon {
    width: 3.5rem;
    height: 3.5rem;
  }
}


/* ============================================================
   24. SECTION CLASSEMENT — fond avec overlay sombre
   ============================================================ */
#classement {
  position: relative;
  overflow: hidden;
}

#classement::before {
  content: '';
  position: absolute;
  inset: -15vh 0;
  z-index: 0;
  pointer-events: none;
}

#classement > .container {
  position: relative;
  z-index: 1;
}


/* ============================================================
   25. TABLE CLASSEMENT
   ============================================================ */
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-block: var(--space-2xl);
}

@media (max-width: 640px) {
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }
}

.leaderboard-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard thead tr {
  background: rgba(14, 165, 233, 0.08);
}

.leaderboard th {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.leaderboard td {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard tbody tr:last-child td { border-bottom: none; }

.leaderboard tbody tr {
  background: var(--gradient-card);
  transition: background var(--transition-fast);
}

.leaderboard tbody tr:hover {
  background: linear-gradient(135deg, #3a6080 0%, #2a4e72 100%);
}

.leaderboard__rank {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  min-width: 3rem;
}

.leaderboard__rank--1 {
  color: #FFD700;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.60), 0 0 30px rgba(255, 215, 0, 0.22);
}
.leaderboard__rank--2 {
  color: #C0C0C0;
  text-shadow: 0 0 12px rgba(192, 192, 192, 0.48), 0 0 24px rgba(192, 192, 192, 0.18);
}
.leaderboard__rank--3 {
  color: #CD7F32;
  text-shadow: 0 0 12px rgba(205, 127, 50, 0.55), 0 0 24px rgba(205, 127, 50, 0.20);
}
.leaderboard__rank--other { color: var(--color-text-muted); }

.leaderboard__time {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.leaderboard__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding-inline: var(--space-md);
  max-width: none;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.leaderboard__cta {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-2xl);
}


/* ============================================================
   26. PROFILS JOUEURS
   ============================================================ */
.profiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .profiles { grid-template-columns: 1fr 1fr; }
}

.profile {
  padding: var(--space-xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.profile:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.profile__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.01em;
  line-height: 1;
}

.profile__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
  max-width: none;
}


/* ============================================================
   27. GRILLE RÉSEAUX SOCIAUX
   ============================================================ */
.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (min-width: 640px) {
  .social-grid { grid-template-columns: 1fr 1fr; }
  .social-card--full { grid-column: 1 / -1; }
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.social-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.social-card__platform {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.01em;
  max-width: none;
}

.social-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  flex: 1;
  max-width: none;
}

.social-card .btn {
  align-self: flex-start;
  font-size: var(--text-sm);
  padding: 0.6em 1.4em;
  min-height: 44px;
}

.social-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}


/* ============================================================
   28. FOOTER ÉTENDU
   ============================================================ */
.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  flex-wrap: wrap;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.footer__social a:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.40);
  color: var(--color-accent);
}

.footer__bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__partners {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer__partner {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.3em 0.8em;
}


/* ============================================================
   29. STEPS — dernier élément pleine largeur si nombre impair
   ============================================================ */
@media (min-width: 1024px) {
  .steps > li:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}


/* ============================================================
   30. CTA INLINE DANS SECTIONS
   ============================================================ */
.section__cta {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-2xl);
}

.section__cta--center {
  justify-content: center;
}
