/* ============================================================
   DA — néon minimal, palette Stake. Un seul accent (bleu marque) qui
   rayonne sur le navy Stake, tout le reste au repos. Hairlines fines,
   aucune texture décorative superflue. Monde assumé sombre : couleurs posées
   une seule fois dans :root, pas de media query de thème.
   ============================================================ */

:root {
  --bg: #172b39;
  --surface: #213545;
  --line: #2a4151;
  --line-soft: rgba(255, 255, 255, 0.05);
  --ink: #ecf3f9;
  --muted: #a1bfd6;
  --muted-2: #82a5bf;
  --neon: #5baeff;
  --neon-soft: #8dcbff;
  --neon-deep: #005dbc;
  --brand: #1475e1;
  --brand-hover: #2383f4;
  --ok: #2de01c;
  --warn: #f7a910;

  --display: "Unbounded", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-inline: clamp(18px, 6vw, 40px);
  position: relative;
  overflow-x: hidden;
}

/* Halo ambiant fixe — seule source de "décor" de toute la page */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  width: min(900px, 140vw);
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20, 117, 225, 0.22), transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: breathe 7s ease-in-out infinite;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(85% 60% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(85% 60% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

/* Poussière flottante — canvas plein écran derrière le contenu (.wrap est en z-index 1).
   Peuplé et animé par le JS en bas de index.html ; inerte sous reduced-motion. */
#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
svg { display: block; }
::selection { background: var(--neon-deep); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--neon-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.num { font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
}

/* ---------------- Header ---------------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(20px, 3.6vh, 32px);
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.top__link {
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.top__link:hover { color: var(--neon-soft); }
.live-dot {
  flex: none;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px 1px rgba(45, 224, 28, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ---------------- Hero ---------------- */
.hero {
  text-align: center;
  padding-block: clamp(28px, 6vh, 56px) clamp(10px, 2vh, 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__tag {
  margin-bottom: -8px;   /* resserre l'écart avec le panneau (gap hero = 16px) */
  animation: rise 0.6s 0.16s both;
}
.hero h1 {
  font-size: clamp(32px, 7vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 13ch;
  animation: rise 0.6s 0.05s both;
}
.hero h1 .glow {
  color: var(--neon);
  text-shadow: 0 0 18px rgba(91, 174, 255, 0.5), 0 0 46px rgba(91, 174, 255, 0.25);
}
.hero__lede {
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.6;
  animation: rise 0.6s 0.12s both;
}
.hero__lede strong { display: block; color: var(--ink); font-weight: 500; }

/* ---------------- Panneau bonus (chiffres au repos) ---------------- */
.panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(33,53,69,0.4));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 40px 80px -40px rgba(20, 117, 225, 0.25);
  animation: rise 0.6s 0.18s both;
}
.panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 20px 0;
}
.panel__badge svg { width: 11px; height: 11px; fill: var(--neon); }

.stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 16px 12px 6px;
}
.stat { text-align: center; }
.stat__label {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 46px);
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.stat--hl .stat__value {
  color: var(--neon);
  text-shadow: 0 0 20px rgba(91, 174, 255, 0.35);
}
.stats__arrow {
  width: 22px; height: 22px;
  fill: var(--muted-2);
  margin-top: 18px; /* aligne la flèche sur la ligne des chiffres */
}
.stats__note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  padding: 0 20px 14px;
}

.panel__cta {
  padding: 4px 18px 14px;
}
.panel__proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.panel__proof strong { color: var(--ink); font-weight: 600; }

.btn {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--brand);
  padding: 15px 20px;
  border-radius: 11px;
  border: none;
  box-shadow: 0 12px 30px -10px rgba(20, 117, 225, 0.6);
  transition: background 0.15s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
.btn:hover { background: var(--brand-hover); box-shadow: 0 0 40px rgba(20, 117, 225, 0.5); }
.btn:active { transform: scale(0.98); }

.link-min {
  margin-top: 4px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--muted-2);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.link-min:hover { color: var(--neon-soft); border-color: var(--neon-deep); }

/* ---------------- Confiance (ligne minimaliste) ---------------- */
.trust {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 34px);
  flex-wrap: wrap;
  margin-top: clamp(7px, 1.25vh, 11px);
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid var(--line);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.trust__item svg { width: 14px; height: 14px; fill: var(--ok); flex: none; }

/* ---------------- Aide / communauté (CTA Discord entre le panneau et la ligne de confiance) ---------------- */
.help {
  --brand-rgb: 88, 101, 242;   /* Discord #5865F2 */
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;   /* le gap du hero (16px) suffit ; la ligne de confiance garde sa propre respiration */
  padding: 12px 16px;
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  border-radius: 14px;
  background: rgba(var(--brand-rgb), 0.10);
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
.help:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--brand-rgb), 0.7);
  background: rgba(var(--brand-rgb), 0.16);
  box-shadow: 0 0 22px rgba(var(--brand-rgb), 0.3);
}
.help:active { transform: scale(0.99); }
.help__icon {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--brand-rgb), 0.18);
  color: rgb(var(--brand-rgb));
}
.help__icon svg { width: 20px; height: 20px; fill: currentColor; }
.help__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.help__title { font-weight: 600; font-size: 14.5px; }
.help__sub { font-size: 12.5px; color: var(--muted); }
.help__arrow {
  width: 16px; height: 16px;
  flex: none;
  fill: rgb(var(--brand-rgb));
  transition: transform 0.15s ease;
}
.help:hover .help__arrow { transform: translateX(3px); }
@media (max-width: 420px) {
  .help { gap: 11px; padding: 11px 13px; }
  .help__icon { width: 32px; height: 32px; }
  .help__icon svg { width: 17px; height: 17px; }
  .help__arrow { display: none; }
}

/* ---------------- Section shell ---------------- */
.section { padding-block: clamp(40px, 7vh, 64px); }
.section__head { margin-bottom: clamp(20px, 3vh, 28px); }
.section__head h2 { font-size: clamp(20px, 2.8vw, 26px); margin-top: 8px; }

/* ---------------- Derniers gagnants (ticker) ---------------- */
.winners { padding-block: clamp(36px, 6vh, 56px) 0; }
.winners__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.winners__head .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.winners__note { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted-2); }
.ticker { overflow-x: auto; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
/* Une fois la 2e copie en place (JS), on passe en défilement continu avec bords fondus */
.ticker--ready {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; }
.ticker--ready .ticker__track { animation: ticker 60s linear infinite; }
.ticker--ready:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0 10px 0 0; }
.win {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  white-space: nowrap;
}
.win__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--neon-deep);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
}
.win__who { display: flex; flex-direction: column; line-height: 1.25; }
.win__name { font-size: 13px; font-weight: 600; color: var(--ink); }
.win__game { font-size: 11px; color: var(--muted); }
.win__amount { margin-left: 6px; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--neon); }

/* ---------------- Stake — l'opérateur en chiffres ---------------- */
.stake { padding-block: clamp(36px, 6vh, 56px) 0; }
.stake__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(20px, 4vw, 28px);
}
.stake__card h2 { font-size: clamp(20px, 2.8vw, 26px); margin-top: 8px; }
.stake__sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
.kpis {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line); /* le gap laisse voir une hairline entre les tuiles */
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.kpi {
  background: var(--surface);
  padding: 16px 8px 14px;
  text-align: center;
}
.kpi__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.kpi__unit { font-size: 0.55em; font-weight: 600; color: var(--muted); }
.kpi__label {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--muted);
}
.partners {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.partners__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.partners__list li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

/* ---------------- FAQ ---------------- */
.faq details {
  border-top: 1px solid var(--line);
  padding-block: 16px;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex: none;
  width: 18px; height: 18px;
  fill: var(--neon);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Le chevron pivote dès le clic : l'état [open] est retiré seulement en fin
   d'animation de fermeture, d'où l'exclusion de .is-closing. */
.faq details[open]:not(.is-closing) .faq__icon { transform: rotate(180deg); }
.faq__a { margin-top: 10px; padding-right: 26px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------------- Jeu responsable ---------------- */
.warn-panel {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 17px;
  border-radius: 10px;
  border: 1px solid rgba(247, 169, 16, 0.3);
  background: rgba(247, 169, 16, 0.05);
}
.warn-panel__badge {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--warn);
  color: var(--warn);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.warn-panel__text { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.warn-panel__text strong { color: var(--ink); }
.warn-panel a { color: var(--neon-soft); text-decoration: none; }
.warn-panel a:hover { text-decoration: underline; }

/* ---------------- Footer ---------------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(24px, 4vh, 34px) 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.foot__socials { display: flex; gap: 12px; }
/* Chaque réseau porte sa couleur de marque (--brand-rgb) : pastille teintée, glyphe coloré */
.foot__social {
  --brand-rgb: 130, 165, 191;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  background: rgba(var(--brand-rgb), 0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgb(var(--brand-rgb));
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.foot__social svg { width: 20px; height: 20px; fill: currentColor; }
.foot__social:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--brand-rgb), 0.7);
  box-shadow: 0 0 18px rgba(var(--brand-rgb), 0.35);
}
.foot__social--telegram { --brand-rgb: 38, 165, 228; }   /* Telegram #26A5E4 */
.foot__social--discord { --brand-rgb: 88, 101, 242; }   /* Discord #5865F2 */
.foot__social--tiktok   { --brand-rgb: 254, 44, 85; color: #fff; }   /* TikTok #FE2C55 + #25F4EE */
/* Glyphe TikTok : blanc avec le double décalage cyan / rose de la marque */
.foot__social--tiktok svg { filter: drop-shadow(1.5px 0 0 #fe2c55) drop-shadow(-1.5px 0 0 #25f4ee); }
.foot__copy { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted-2); }

/* ---------------- Motion ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 6px 1px rgba(45, 224, 28, 0.7); } 50% { box-shadow: 0 0 10px 3px rgba(45, 224, 28, 0.35); } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
