/* ===== VARIABLES ===== */
:root {
  --navy: #061b2e;
  --navy-mid: #0a2342;
  --navy-soft: rgba(6, 27, 46, 0.06);
  --cream: #faf7f2;
  --cream-dark: #f3ede4;
  --clay: #b85c38;
  --clay-dark: #8b4226;
  --clay-soft: rgba(184, 92, 56, 0.12);
  --green: #0d5c3d;
  --green-soft: rgba(13, 92, 61, 0.12);
  --gold: #c9a962;
  --gold-soft: rgba(201, 169, 98, 0.2);
  --ink: #0e1b2a;
  --ink-muted: rgba(14, 27, 42, 0.7);
  --ink-soft: rgba(14, 27, 42, 0.55);
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 12px rgba(6, 27, 46, 0.06);
  --shadow: 0 8px 32px rgba(6, 27, 46, 0.08);
  --shadow-lg: 0 24px 56px rgba(6, 27, 46, 0.12);
  /* Animation: durées et courbes centralisées */
  --ease-out-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;
  --duration-slower: 1.2s;
  --transition: 0.22s var(--ease-in-out);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Animations hero : halo + card uniquement. prefers-reduced-motion désactive tout. */
/* ===== PREFERS-REDUCED-MOTION ===== */
/* Désactive toutes les animations (hero halo, card float, etc.) si l’utilisateur préfère réduire le mouvement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

/* ===== BACKGROUND & HERO CANVAS ===== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      ellipse 100% 80% at 50% -20%,
      rgba(184, 92, 56, 0.14),
      transparent 50%
    ),
    radial-gradient(
      ellipse 80% 60% at 90% 20%,
      rgba(13, 92, 61, 0.06),
      transparent 45%
    ),
    linear-gradient(180deg, #fdfbf8 0%, var(--cream) 35%, #f5f0e8 100%);
}
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0.6 0 0 0 0.08 0 0.5 0 0 0.06 0 0 0.4 0 0.05 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(250, 247, 242, 0.88);
  border-bottom: 1px solid rgba(6, 27, 46, 0.06);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.brand-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.brand-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 10px 14px;
  border-radius: 8px;
  transition:
    color var(--duration-normal),
    background var(--duration-normal),
    transform var(--duration-fast),
    box-shadow var(--duration-fast);
}
.nav-link:hover {
  color: var(--navy);
  background: var(--navy-soft);
}
.nav-link:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.nav-cta {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(184, 92, 56, 0.3);
  transition:
    transform var(--duration-normal) var(--ease-out-smooth),
    box-shadow var(--duration-normal) var(--ease-out-smooth);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(184, 92, 56, 0.36);
}
.nav-cta:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* Mobile: cacher le kicker de la marque et afficher le bouton "Jouer" à droite */
.mobile-play {
  display: none;
}

@media (max-width: 900px) {
  .brand-kicker {
    display: none;
  }

  /* Crée de l'espace pour le bouton absolu sur la droite */
  .nav {
    padding-right: 84px;
  }

  .mobile-play {
    display: inline-flex;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
  }

  /* Forcer le titre de marque sur deux lignes en mobile */
  .brand-title {
    max-width: 140px;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 15px;
    line-height: 1.05;
    word-break: break-word;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}
/* 1. Halo de fond : respiration lente (opacité, scale, léger déplacement vertical), 8–10s */
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 80%;
  max-width: 600px;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(184, 92, 56, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: halo-breathe 9s var(--ease-in-out) infinite;
}
@keyframes halo-breathe {
  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, calc(-50% - 1px)) scale(1);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, calc(-50% + 1px)) scale(1.005);
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 420px;
}
.hero-content {
  position: relative;
  z-index: 2;
}
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 20px;
  animation: fade-in-up 0.6s var(--ease-out-smooth) both;
}
.hero-title .hero-kicker {
  display: block;
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-title-line {
  display: block;
}
.accent {
  /* Teinte terre battue légèrement assombrie pour meilleur contraste */
  color: #a04d2d;
  font-weight: 900;
}
.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 28px;
  max-width: 36ch;
  animation: fade-in-up 0.6s var(--ease-out-smooth) 0.08s both;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  animation: fade-in-up 0.6s var(--ease-out-smooth) 0.16s both;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(6, 27, 46, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.hero-visual {
  position: relative;
  z-index: 1;
  order: 2;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(6, 27, 46, 0.08),
    0 24px 64px rgba(6, 27, 46, 0.12);
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    135deg,
    var(--cream-dark) 0%,
    rgba(184, 92, 56, 0.08) 100%
  );
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(6, 27, 46, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, transparent 40%, rgba(184, 92, 56, 0.12) 100%);
  pointer-events: none;
}
.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(6, 27, 46, 0.15);
}
.hero-floating-badge-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  padding: 16px 36px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(184, 92, 56, 0.35);
  transition:
    transform var(--duration-normal) var(--ease-out-smooth),
    box-shadow var(--duration-normal) var(--ease-out-smooth);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(184, 92, 56, 0.4);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
/* ===== RÉASSURANCE ===== */
.reassurance-band {
  padding: 40px 0;
  background: var(--white);
  border-top: 1px solid rgba(6, 27, 46, 0.06);
  border-bottom: 1px solid rgba(6, 27, 46, 0.06);
}
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.reassurance-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--clay-soft);
  color: var(--clay);
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.reassurance-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

/* ===== SECTIONS GÉNÉRIQUES ===== */
.section {
  padding: 34px 0;
}
.section-head {
  margin-bottom: 36px;
}
.section-head-centered {
  text-align: center;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.section-head p + p {
  margin-top: 8px;
}
.section-note {
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
}
.clubs-cta {
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.section-head-centered p {
  max-width: 48ch;
  margin-inline: auto;
}

/* ===== COMMENT PARTICIPER ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--white);
  border: 1px solid rgba(6, 27, 46, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-normal) var(--ease-out-smooth),
    box-shadow var(--duration-normal) var(--ease-out-smooth);
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(6, 27, 46, 0.1);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
}
.step-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.step-desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ===== LOTS (sans emojis) ===== */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prize-card {
  background: var(--white);
  border: 1px solid rgba(6, 27, 46, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-normal) var(--ease-out-smooth),
    box-shadow var(--duration-normal) var(--ease-out-smooth);
}
.prize-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(6, 27, 46, 0.1);
}
.prize-media {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--cream-dark) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  border-bottom: 1px solid rgba(6, 27, 46, 0.06);
}
.prize-card.gold .prize-media {
  background-image: url(lot1.png);
  background-size: cover;
}
.prize-card.silver .prize-media {
  background-image: url(lot2.png);
  background-size: cover;
}
.prize-card.bronze .prize-media {
  background-image: url(lot3.png);
  background-size: cover;
}

.prize-card.gold .prize-media::after,
.prize-card.silver .prize-media::after,
.prize-card.bronze .prize-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    138deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.14) 23%,
    rgba(255, 255, 255, 0) 20.1%
  );
  border-radius: inherit;
  pointer-events: none;
}

.prize-picto {
  width: 64px;
  height: 64px;
  position: relative;
}
.prize-picto-camera {
  width: 48px;
  height: 36px;
  background: var(--navy);
  border-radius: 6px;
  position: relative;
}
.prize-picto-camera::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--navy);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.prize-picto-shirt {
  width: 44px;
  height: 44px;
  background: var(--navy);
  clip-path: polygon(20% 0%, 80% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
}
.prize-picto-towel {
  width: 40px;
  height: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prize-picto-towel span {
  display: block;
  height: 10px;
  background: var(--navy);
  border-radius: 2px;
}
.prize-picto-towel span:nth-child(2) {
  opacity: 0.7;
}
.prize-picto-towel span:nth-child(3) {
  opacity: 0.5;
}
.prize-medal {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--white);
}
.prize-card.gold .prize-medal {
  background: linear-gradient(135deg, #d4af37, #b8860b);
}
.prize-card.silver .prize-medal {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}
.prize-card.bronze .prize-medal {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
}
.prize-body {
  padding: 24px;
}
.prize-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.prize-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ===== LEADERBOARD ===== */
.leaderboard {
  background: var(--white);
  border: 1px solid rgba(6, 27, 46, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.lb-row {
  display: grid;
  grid-template-columns: 48px 1fr 72px 160px;
  gap: 16px;
  align-items: center;
  padding: 10px 20px;
  border-top: 1px solid rgba(6, 27, 46, 0.06);
  transition: background var(--duration-normal) var(--ease-out-smooth);
}
.lb-row2 {
  display: grid;
  grid-template-columns: 48px 1fr 72px;
  gap: 16px;
  align-items: center;
  padding: 8px 20px;
  border-top: 1px solid rgba(6, 27, 46, 0.06);
  transition: background var(--duration-normal) var(--ease-out-smooth);
}

/* Anciennes règles nth-child (orange/blanc) supprimées : hero-lb utilise .lb-podium */
.lb-row:first-child,
.lb-row2:first-child {
  border-top: none;
}
.lb-row:not(.lb-head):hover,
.lb-row2:not(.lb-head):hover {
  background: var(--navy-soft);
}
.lb-head {
  background: linear-gradient(180deg, #0b5a43 0%, #084c39 100%);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lb-cell {
  min-width: 0;
}
.lb-cell.rank {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--ink-soft);
}
.lb-head .lb-cell.rank {
  color: rgba(255, 255, 255, 0.8);
}

/*.lb-row:nth-child(2) .lb-cell.rank { color: var(--gold); font-weight: 800; }
    .lb-row:nth-child(3) .lb-cell.rank { color: #9CA3AF; font-weight: 800; }
    .lb-row:nth-child(4) .lb-cell.rank { color: #CD7F32; font-weight: 800; }*/

.lb-cell.club {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-head .lb-cell.club {
  color: rgba(255, 255, 255, 0.9);
}
.lb-cell.count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}
.lb-head .lb-cell.count {
  color: rgba(255, 255, 255, 0.9);
}
.lb-cell.bar {
  height: 7px;
  background: rgba(6, 27, 46, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(
    90deg,
    var(--green) 0%,
    #7a9c4a 50%,
    var(--clay) 100%
  );
  border-radius: 4px;
  transform-origin: left;
  /* Reveal fluide des barres au chargement */
  animation: bar-reveal var(--duration-slower) var(--ease-out-smooth) both;
}
.lb-row:nth-child(2) .bar-fill {
  animation-delay: 0.1s;
}
.lb-row:nth-child(3) .bar-fill {
  animation-delay: 0.18s;
}
.lb-row:nth-child(4) .bar-fill {
  animation-delay: 0.26s;
}
.lb-row:nth-child(5) .bar-fill {
  animation-delay: 0.34s;
}
.lb-row:nth-child(6) .bar-fill {
  animation-delay: 0.42s;
}
.lb-row:nth-child(7) .bar-fill {
  animation-delay: 0.5s;
}
.lb-row:nth-child(8) .bar-fill {
  animation-delay: 0.58s;
}
.lb-row:nth-child(9) .bar-fill {
  animation-delay: 0.66s;
}
.lb-row:nth-child(10) .bar-fill {
  animation-delay: 0.74s;
}
.lb-row:nth-child(11) .bar-fill {
  animation-delay: 0.82s;
}
@keyframes bar-reveal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ===== HERO LEADERBOARD CARD ===== */
.hero-leaderboard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(6, 27, 46, 0.08),
    0 24px 64px rgba(6, 27, 46, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(6, 27, 46, 0.06);
  /* Entrée au chargement + respiration ombre/bordure continue */
  animation:
    hero-card-entrance 0.7s var(--ease-out-smooth) 0.25s both,
    hero-card-breathe 10s cubic-bezier(0.45, 0, 0.55, 1) 0.95s infinite;
  transform: translate3d(0, 0, 0);
}
@keyframes hero-card-entrance {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes hero-card-breathe {
  0%,
  100% {
    box-shadow:
      0 4px 24px rgba(6, 27, 46, 0.08),
      0 24px 60px rgba(6, 27, 46, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(6, 27, 46, 0.06);
  }
  50% {
    box-shadow:
      0 4px 24px rgba(6, 27, 46, 0.08),
      0 28px 72px rgba(6, 27, 46, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(6, 27, 46, 0.09);
  }
}
.hero-card-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(6, 27, 46, 0.06);
}
.hero-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.hero-card-kicker {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-lb {
  box-shadow: none;
  border: none;
  border-radius: 0;
  background: transparent;
}
.hero-lb .lb-row2 {
  grid-template-columns: 36px 1fr 56px;
  gap: 12px;
  padding: 6px 20px;
  border-top: 1px solid rgba(6, 27, 46, 0.05);
}
.hero-lb .lb-head {
  padding: 10px 20px;
  background: linear-gradient(
    180deg,
    rgba(6, 27, 46, 0.04) 0%,
    transparent 100%
  );
  border-top: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.hero-lb .lb-head .lb-cell {
  color: var(--ink-soft);
}
.hero-lb .lb-cell.club {
  font-size: 13px;
  font-weight: 600;
}
.hero-lb .lb-cell.count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}
.hero-lb .lb-cell.rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
/* Top 3 : hiérarchie visuelle premium, contraste garanti (hero + tableau bas) */
.hero-lb .lb-podium .lb-cell.club,
.hero-lb .lb-podium .lb-cell.count,
.leaderboard .lb-podium .lb-cell.club,
.leaderboard .lb-podium .lb-cell.count {
  color: var(--navy);
}
.hero-lb .lb-podium.lb-1,
.leaderboard .lb-podium.lb-1 {
  background: linear-gradient(
    90deg,
    rgba(201, 169, 98, 0.18) 0%,
    rgba(201, 169, 98, 0.05) 100%
  );
  border-left: 3px solid var(--gold);
  animation: hero-podium-reveal 0.55s var(--ease-out-smooth) 0.9s both;
}
.hero-lb .lb-podium.lb-1 .lb-cell.rank,
.leaderboard .lb-podium.lb-1 .lb-cell.rank {
  color: var(--clay-dark);
  font-weight: 800;
  font-size: 14px;
}
.hero-lb .lb-podium.lb-2,
.leaderboard .lb-podium.lb-2 {
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.12) 0%,
    rgba(148, 163, 184, 0.04) 100%
  );
  border-left: 3px solid #64748b;
  animation: hero-podium-reveal 0.55s var(--ease-out-smooth) 1s both;
}
.hero-lb .lb-podium.lb-2 .lb-cell.rank,
.leaderboard .lb-podium.lb-2 .lb-cell.rank {
  color: #475569;
  font-weight: 800;
  font-size: 14px;
}
.hero-lb .lb-podium.lb-3,
.leaderboard .lb-podium.lb-3 {
  background: linear-gradient(
    90deg,
    rgba(180, 83, 9, 0.1) 0%,
    rgba(180, 83, 9, 0.03) 100%
  );
  border-left: 3px solid #b45309;
  animation: hero-podium-reveal 0.55s var(--ease-out-smooth) 1.1s both;
}
.hero-lb .lb-podium.lb-3 .lb-cell.rank,
.leaderboard .lb-podium.lb-3 .lb-cell.rank {
  color: #92400e;
  font-weight: 800;
  font-size: 14px;
}
.hero-lb .lb-podium .lb-cell.club,
.leaderboard .lb-podium .lb-cell.club {
  font-weight: 700;
}
@keyframes hero-podium-reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-lb .lb-row2:not(.lb-head):hover {
  background: var(--navy-soft);
}
.hero-lb .lb-podium:hover .lb-cell.club,
.hero-lb .lb-podium:hover .lb-cell.count,
.leaderboard .lb-podium:hover .lb-cell.club,
.leaderboard .lb-podium:hover .lb-cell.count {
  color: var(--navy);
}
.hero-lb .lb-podium.lb-1:hover,
.leaderboard .lb-podium.lb-1:hover {
  background: rgba(201, 169, 98, 0.22);
}
.hero-lb .lb-podium.lb-2:hover,
.leaderboard .lb-podium.lb-2:hover {
  background: rgba(148, 163, 184, 0.16);
}
.hero-lb .lb-podium.lb-3:hover,
.leaderboard .lb-podium.lb-3:hover {
  background: rgba(180, 83, 9, 0.14);
}

/* ===== CTA FINAL ===== */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 20% 50%,
      rgba(184, 92, 56, 0.15),
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 80% at 80% 20%,
      rgba(13, 92, 61, 0.1),
      transparent 50%
    );
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}
.cta-actions {
  flex-shrink: 0;
}
.cta .btn-primary {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.cta .btn-primary:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}
.cta-micro {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(6, 27, 46, 0.08);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.faq-answer {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(6, 27, 46, 0.08);
  background: var(--cream-dark);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.8;
}
.footer-line {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.prizes-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* ===== COMPTE À REBOURS ===== */
.countdown-section {
  background: linear-gradient(135deg, #00603a 0%, #004d2e 60%, #003d25 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 56px 0;
}
.countdown-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 5% 50%,  rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(ellipse 50% 60% at 95% 20%,  rgba(184,92,56,0.10), transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 110%, rgba(0,96,58,0.4), transparent 60%);
  pointer-events: none;
}
.countdown-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}
.countdown-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.countdown-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7fe0b0;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 14px;
  border-radius: 20px;
  align-self: center;
}
.countdown-title {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.25;
}
/* Les 4 blocs chiffres */
.countdown-display {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 88px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px 12px 12px;
  backdrop-filter: blur(8px);
}
.countdown-value {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  width: 100%;
  text-align: center;
  display: block;
}
.countdown-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.countdown-sep {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: rgba(255,255,255,0.25);
  line-height: 1;
  margin-bottom: 20px; /* aligner visuellement avec les chiffres */
  align-self: center;
}
.countdown-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
}

/* Responsive countdown */
@media (max-width: 600px) {
  .countdown-section {
    padding: 40px 0;
  }
  .countdown-inner {
    gap: 28px;
  }
  .countdown-unit {
    width: 68px;
    padding: 12px 8px 10px;
  }
  .countdown-sep {
    margin-bottom: 16px;
  }
  .countdown-sub {
    font-size: 14px;
  }
}

/* ===== CARROUSEL RÉCOMPENSES ===== */
.prize-carousel {
  position: relative;
  display: block;
}
.prize-carousel {
  overflow: visible; /* permettre aux flèches de dépasser */
}
.prize-carousel-wrap {
  overflow: visible;
  margin-bottom: 20px;
}
.prize-carousel .prize-grid {
  transition: transform 0.35s var(--ease-in-out);
}

.prize-carousel .carousel-nav,
.prize-carousel .carousel-dots {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .prize-carousel-wrap {
    overflow: hidden;
  }

  .prize-carousel .prize-grid {
    display: flex;
    gap: 0;
    width: 100%;
  }

  .prize-carousel .prize-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .prize-carousel .carousel-nav,
  .prize-carousel .carousel-dots {
    display: flex;
  }

/* Positionnement des flèches pour le carrousel des prix (chevauchement de la card) */
.prize-carousel .carousel-nav {
  left: 0;
  right: 0;
  pointer-events: none;
}
.prize-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  z-index: 12;
}
.prize-carousel #prize-carousel-prev { left: -20px; }
.prize-carousel #prize-carousel-next { right: -20px; }

@media (max-width: 600px) {
  .prize-carousel .carousel-btn { width: 36px; height: 36px; }
  .prize-carousel #prize-carousel-prev { left: -12px; }
  .prize-carousel #prize-carousel-next { right: -12px; }
}

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }
  .hero-content {
    order: 0;
  }
  .hero-visual {
    order: 1;
  }
  .hero-image-wrap {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }
  .hero-leaderboard-card .hero-card-header {
    padding: 14px 16px 10px;
  }
  .hero-lb .lb-row2 {
    padding: 5px 16px;
  }
  .hero-lb .lb-head {
    padding: 8px 16px;
  }
  .hero-badges {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
  }
  .hero-badge {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    padding: 7px 10px;
    font-size: 12px;
  }
  .hero-actions .btn-primary {
    align-self: center;
  }
  .reassurance-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    margin-bottom: 28px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-actions {
    width: 100%;
  }
  .cta .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .lb-row {
    grid-template-columns: 40px 1fr 56px 100px;
    padding: 14px 16px;
  }
}

/* ===== CARROUSEL CLASSEMENTS ===== */

/* Wrapper carte carrousel : on étend hero-leaderboard-card */
.carousel-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible; /* permettre aux flèches de dépasser visuellement */
}

/* Positionnement des flèches : à cheval sur le bord de la card */
.carousel-card .carousel-nav {
  left: 0; /* conserve la largeur centrale */
  right: 0;
  pointer-events: none; /* conteneur non cliquable, seules les flèches le sont */
}
.carousel-card .carousel-btn {
  position: absolute; /* positionnement individuel pour débordement */
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto; /* activer les clics sur le bouton */
  z-index: 12;
}
.carousel-card #carousel-prev { left: -20px; }
.carousel-card #carousel-next { right: -20px; }

/* Adaptation mobile : boutons plus compacts et offsets réduits */
@media (max-width: 600px) {
  .carousel-card .carousel-btn { width: 36px; height: 36px; }
  .carousel-card #carousel-prev { left: -12px; }
  .carousel-card #carousel-next { right: -12px; }
}

/* En-tête : titre sans boutons fléchés */
.carousel-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 12px;
}
.carousel-title-area {
  flex: 1;
  min-width: 0;
}
.carousel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carousel-kicker {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Boutons précédent / suivant - Positionnés sur les côtés */
.carousel-nav {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  justify-content: space-between;
  padding: 0 8px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 5;
}
.carousel-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1.5px solid rgba(6, 27, 46, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,244,241,0.9));
  color: var(--navy);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
  line-height: 1;
  pointer-events: auto;
  position: relative;
  z-index: 6;
  box-shadow: 0 6px 18px rgba(6,27,46,0.12);
}
/* SVG inside buttons: size and alignment */
.carousel-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--navy);
}
.carousel-btn svg path {
  stroke: currentColor;
}
.carousel-btn:hover {
  background: rgba(184, 92, 56, 0.08);
  border-color: var(--clay);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* Zone tableau : hauteur fixe pour éviter les sauts de layout
   10 lignes × ~32px + header ~38px + marges = 400px
   Ajuster si la taille de police change */
.carousel-table-wrap {
  height: 400px;
  overflow: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.carousel-fade-out {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}
.carousel-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* CTA vers classement complet */
.carousel-footer {
  padding: 10px 20px 14px;
  text-align: center;
  border-top: 1px solid rgba(6, 27, 46, 0.06);
}
.carousel-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--clay);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--duration-fast), gap var(--duration-fast);
}
.carousel-cta:hover {
  color: var(--clay-dark);
  gap: 8px;
}
.carousel-cta:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Bullet dots — progress bar */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 20px 16px;
}
.carousel-dot {
  position: relative;
  height: 4px;
  width: 24px;
  border-radius: 2px;
  border: none;
  background: rgba(6, 27, 46, 0.12);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: width var(--duration-normal) var(--ease-out-smooth),
              background var(--duration-normal);
  /* Zone de clic plus grande sans changer le visuel */
  -webkit-tap-highlight-color: transparent;
}
.carousel-dot::before {
  /* Élargir la zone de clic tactile */
  content: '';
  position: absolute;
  inset: -8px -4px;
}
/* Dot actif : pill plus large, fond léger */
.carousel-dot.active {
  width: 52px;
  background: rgba(184, 92, 56, 0.18);
}
/* Barre de progression qui se remplit */
.carousel-dot::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 100%;
  border-radius: 2px;
  background: transparent;
  transform: scaleX(0);
  transform-origin: left center;
}
.carousel-dot.active::after {
  background: var(--clay);
}
.carousel-dot.active.dot-progress::after {
  animation: dot-fill 8s linear forwards;
}
@keyframes dot-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.carousel-dot:hover:not(.active) {
  background: rgba(184, 92, 56, 0.28);
}
.carousel-dot:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Hint club dans les lignes licenciés */
.lb-club-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
  display: block;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animation d'apparition des lignes */
#carousel-rows .lb-row2 {
  animation: hero-podium-reveal 0.35s var(--ease-out-smooth) both;
}

/* Responsive carrousel */
@media (max-width: 600px) {
  .carousel-header {
    padding: 12px 14px 8px;
    gap: 8px;
  }
  .carousel-title {
    font-size: 12.5px;
  }
  .carousel-kicker {
    font-size: 11px;
  }
  .carousel-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .carousel-footer {
    padding: 8px 14px 10px;
  }
  .carousel-dots {
    padding: 0 14px 12px;
  }
}

@media (max-width: 600px) {
  .brand-logo {
    height: 36px;
    max-width: 140px;
  }
  /* Header : masquer les liens nav texte, garder uniquement le CTA */
  .nav-link {
    display: none;
  }
  /* Header compact : logo + CTA seulement */
  .header-inner {
    padding: 12px 0;
    gap: 12px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  .brand-text {
    min-width: 0;
  }
  .brand-kicker {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-title {
    font-size: 15px;
    /* Allow wrapping on small screens instead of truncating */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.05;
    word-break: break-word;
  }
  .nav-cta {
    flex-shrink: 0;
    font-size: 13px;
    padding: 9px 14px;
    white-space: nowrap;
  }
  .hero {
    padding: 40px 0 56px;
  }
  .hero-grid {
    gap: 32px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-title .hero-kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .hero-badges {
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .hero-image-wrap {
    aspect-ratio: 4 / 3;
    max-height: 280px;
  }
  .hero-floating-badge {
    bottom: 14px;
    left: 14px;
    padding: 10px 12px;
  }
  .hero-floating-badge-logo {
    height: 40px;
    max-width: 110px;
  }
  .lb-row {
    grid-template-columns: 36px 1fr 48px 80px;
    gap: 12px;
  }
  .hero-leaderboard-card .hero-card-header {
    padding: 12px 14px 8px;
  }
  .hero-card-title {
    font-size: 14px;
  }
  .hero-card-kicker {
    font-size: 11px;
  }
  .hero-lb .lb-row2 {
    grid-template-columns: 32px 1fr 48px;
    padding: 4px 14px;
    gap: 10px;
  }
  .hero-lb .lb-cell.club {
    font-size: 12px;
  }
  /* Carrousel : hauteur légèrement réduite sur petits écrans */
  .carousel-table-wrap {
    height: 360px;
  }
}
