:root {
  --fond: #0c0c0e;
  --fond-2: #131316;
  --carte: #17171b;
  --carte-2: #1e1e23;
  --bord: #2a2a31;
  --kraft: #b5814e;
  --kraft-clair: #d9a774;
  --kraft-sombre: #7a5737;
  --rose: #e9a99d;
  --rose-fort: #f2867a;
  --creme: #f4e9da;
  --doux: #a7a3ad;
  --olive: #6a6744;
  --stake: #1475e1;
  --titre: "Luckiest Guy", "Golos Text", sans-serif;
  --texte: "Golos Text", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --large: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--creme); font-family: var(--texte); line-height: 1.55;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(242,134,122,.09), transparent 60%),
                    radial-gradient(900px 500px at -10% 30%, rgba(181,129,78,.05), transparent 60%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.conteneur { width: min(var(--large), 100% - 32px); margin-inline: auto; }

/* ---------- barre du haut ---------- */
.haut { position: sticky; top: 0; z-index: 50; background: rgba(12,12,14,.84); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bord); }
.haut .conteneur { display: flex; align-items: center; gap: 24px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-size: 22px; letter-spacing: .5px; line-height: 1; }
.marque img { width: 38px; height: 38px; object-fit: contain; object-position: center; }
.marque span b { color: var(--kraft-clair); font-weight: normal; }
.nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--doux); }
.nav a:hover, .nav a.actif { color: var(--creme); }
.haut .boutons { display: flex; gap: 10px; }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; transition: transform .15s ease, filter .15s ease; white-space: nowrap; font-family: var(--texte); }
.bouton:hover { transform: translateY(-1px); filter: brightness(1.08); }
.bouton.petit { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.bouton.rose { background: var(--rose-fort); color: #2a130e; box-shadow: 0 6px 0 #a9554b; }
.bouton.rose:active { transform: translateY(4px); box-shadow: 0 2px 0 #a9554b; }
.bouton.kraft { background: var(--kraft); color: #24160c; box-shadow: 0 6px 0 var(--kraft-sombre); }
.bouton.blanc { background: var(--creme); color: #1a120d; }
.bouton.stake { background: var(--stake); color: #fff; }
.bouton.vide { background: transparent; color: var(--creme); border: 1px solid var(--bord); }
.bouton svg { width: 16px; height: 16px; }

/* ---------- textes ---------- */
.surtitre { font-family: var(--mono); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--kraft-clair); display: flex; align-items: center; gap: 10px; }
.surtitre::before { content: ""; width: 22px; height: 3px; background: var(--rose-fort); border-radius: 2px; }
h1, h2, h3 { font-family: var(--titre); font-weight: normal; line-height: .95; margin: 0; letter-spacing: .5px; }
h2 { font-size: clamp(38px, 6vw, 64px); }
h2 em, h1 em { font-style: normal; color: var(--kraft-clair); }
.chapo { color: var(--doux); font-size: 17px; max-width: 560px; }
.chapo strong { color: var(--creme); }
section { padding: 96px 0; }
.entete { text-align: center; margin-bottom: 48px; display: grid; justify-items: center; gap: 14px; }
.entete .chapo { margin: 0; }

/* ---------- héros ---------- */
.heros { padding: 56px 0 40px; }
.heros .conteneur { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.heros h1 { font-size: clamp(56px, 9.5vw, 124px); margin: 18px 0 20px; text-shadow: 0 6px 0 rgba(0,0,0,.35); }
.heros h1 .sac { display: inline-block; color: var(--kraft-clair); transform: rotate(-3deg); }
.heros .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.heros .cagnotte { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border: 1px dashed var(--kraft-sombre); border-radius: 14px; background: rgba(181,129,78,.07); }
.heros .cagnotte b { font-family: var(--titre); font-size: 28px; color: var(--kraft-clair); font-weight: normal; }
.heros .cagnotte span { font-size: 13px; color: var(--doux); line-height: 1.35; }
.scene { position: relative; display: grid; place-items: center; min-height: 520px; }
.scene::before { content: ""; position: absolute; inset: 8% 6%; background: radial-gradient(circle at 50% 45%, rgba(244,233,218,.10), rgba(244,233,218,0) 62%); border-radius: 50%; }
.scene .papier { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 42% 58% 46% 54% / 52% 44% 56% 48%; background: var(--rose-fort); opacity: .16; animation: tourne 18s linear infinite; }
.scene img.perso { position: relative; width: min(420px, 82%); filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); animation: flotte 3.6s ease-in-out infinite; transform-origin: 50% 100%; cursor: pointer; }
.scene img.perso.secoue { animation: secoue .5s ease; }
.bulle { position: absolute; top: 6%; right: 2%; background: var(--creme); color: #1a120d; font-family: var(--titre); font-size: 20px; padding: 10px 16px; border-radius: 16px; transform: rotate(4deg); box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.bulle::after { content: ""; position: absolute; left: 22px; bottom: -10px; border: 10px solid transparent; border-top-color: var(--creme); border-bottom: 0; }
@keyframes flotte { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes secoue { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }

/* bandeau défilant */
.bandeau { border-block: 1px solid var(--bord); background: var(--rose-fort); color: #2a130e; overflow: hidden; }
.bandeau .piste { display: flex; gap: 40px; padding: 12px 0; width: max-content; animation: defile 28s linear infinite; font-family: var(--titre); font-size: 22px; letter-spacing: 1px; }
.bandeau .piste span::after { content: "✦"; margin-left: 40px; color: #8f3d33; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- cartes jeux ---------- */
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.jeu { background: var(--carte); border: 1px solid var(--bord); border-radius: 20px; overflow: hidden; }
.jeu .visuel { aspect-ratio: 4/3; position: relative; display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(135deg, #8f643b 0 14px, #9a6c40 14px 28px); }
.jeu .visuel img.couverture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jeu .visuel .scelle { position: relative; display: grid; justify-items: center; gap: 8px; color: #2a180c; font-family: var(--titre); font-size: 34px; text-align: center; }
.jeu .visuel .scelle img { width: 96px; filter: brightness(.35) sepia(.4); opacity: .85; }
.jeu .visuel .etat { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; padding: 6px 10px; border-radius: 8px; background: rgba(12,12,14,.85); color: var(--creme); }
.jeu .infos { padding: 18px 20px 20px; }
.jeu .date { font-family: var(--titre); font-size: 34px; }
.jeu .nom { font-family: var(--titre); font-size: 22px; color: var(--rose-fort); }
.jeu p { margin: 6px 0 0; color: var(--doux); font-size: 14px; }
.ligne-fin { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px; border-radius: 16px; background: var(--carte); border: 1px solid var(--bord); }
.ligne-fin b { font-family: var(--titre); font-size: 26px; font-weight: normal; margin-right: 14px; }
.ligne-fin span { color: var(--doux); font-size: 14px; }

/* ---------- podium ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 18px; align-items: end; max-width: 980px; margin: 0 auto; }
.marche { position: relative; background: linear-gradient(180deg, var(--carte-2), var(--carte)); border: 1px solid var(--bord); border-radius: 20px; padding: 26px 20px 22px; text-align: center; }
.marche.premier { padding-top: 40px; border-color: var(--kraft); box-shadow: 0 0 0 1px var(--kraft) inset, 0 20px 60px rgba(181,129,78,.18); }
.marche .rang { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--titre); font-size: 22px; background: var(--kraft); color: #24160c; box-shadow: 0 4px 0 var(--kraft-sombre); }
.marche.premier .rang { background: var(--rose-fort); box-shadow: 0 4px 0 #a9554b; width: 52px; height: 52px; top: -26px; }
.marche .joueur { font-weight: 700; font-size: 18px; }
.marche .etiquette { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--doux); margin-top: 12px; }
.marche .points { font-family: var(--titre); font-size: 34px; color: var(--kraft-clair); }
.marche .detail { font-family: var(--mono); font-size: 12px; color: var(--doux); }
.marche hr { border: 0; border-top: 1px dashed var(--bord); margin: 16px 0; }
.marche .lot { font-family: var(--titre); font-size: 24px; }
.marche .valeur { font-family: var(--mono); font-size: 11px; color: var(--doux); letter-spacing: 1px; }
.marche .cash { font-family: var(--mono); font-weight: 700; color: var(--rose); margin-top: 4px; }

/* étapes */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.etape { background: var(--carte); border: 1px solid var(--bord); border-radius: 16px; padding: 22px; }
.etape small { font-family: var(--mono); color: var(--rose-fort); letter-spacing: 2px; font-size: 11px; }
.etape h3 { font-size: 22px; margin: 8px 0 6px; }
.etape p { margin: 0; color: var(--doux); font-size: 14px; }
.centre { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.note { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--doux); margin-top: 16px; text-transform: uppercase; }

/* ---------- sacs mystère ---------- */
.sacs .sac-carte { background: var(--carte); border: 1px solid var(--bord); border-radius: 20px; padding: 0 0 22px; overflow: hidden; }
.sac-carte .tete { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--doux); }
.sac-carte .tete b { font-family: var(--titre); font-size: 26px; color: var(--creme); font-weight: normal; }
.sac-carte .image { aspect-ratio: 1.25; margin: 0 20px; border-radius: 14px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #26262d, #121215); }
.sac-carte .image img { width: 70%; height: 80%; object-fit: contain; }
.sac-carte .image .point { position: absolute; font-family: var(--titre); font-size: 120px; color: var(--kraft); opacity: .9; line-height: 1; text-shadow: 0 8px 0 rgba(0,0,0,.35); }
.sac-carte h3 { font-size: 28px; margin: 18px 20px 4px; }
.sac-carte p { margin: 0 20px; color: var(--doux); font-size: 14px; }
.sac-carte .plus { margin: 16px 20px 0; padding-top: 14px; border-top: 1px dashed var(--bord); font-size: 13px; color: var(--rose); font-weight: 700; }

/* ---------- défis ---------- */
.bloc-defis { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, var(--carte-2), var(--carte)); border: 1px solid var(--bord); border-radius: 28px; padding: 48px; }
.defi { background: var(--fond-2); border: 1px solid var(--bord); border-radius: 18px; padding: 20px; }
.defi + .defi { margin-top: 14px; }
.defi .haut-defi { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--doux); text-transform: uppercase; }
.defi .haut-defi .vivant { color: #7ad49b; }
.defi .haut-defi .vivant::before { content: "● "; }
.defi .corps { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: end; margin-top: 10px; }
.defi .multi { font-family: var(--titre); font-size: 54px; color: var(--kraft-clair); line-height: .9; }
.defi .multi small { font-size: 24px; }
.defi .gain { text-align: right; }
.defi .gain b { font-family: var(--titre); font-size: 30px; font-weight: normal; display: block; }
.defi .gain span { font-family: var(--mono); font-size: 12px; color: var(--doux); }
.defi .chiffres { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--doux); }
.defi .chiffres b { color: var(--creme); }
.defi .graine { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: #8c7765; word-break: break-all; }
.defi .actions-defi { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- réseaux + FAQ ---------- */
.reseaux { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 0 auto; }
.reseau { background: var(--carte); border: 1px solid var(--bord); border-radius: 20px; overflow: hidden; }
.reseau .logo { height: 120px; display: grid; place-items: center; background: #0b0908; font-family: var(--titre); font-size: 44px; }
.reseau.stake .logo { background: #1a2c38; font-family: var(--texte); font-weight: 800; font-style: italic; font-size: 40px; letter-spacing: -1px; }
.reseau .infos { padding: 18px 20px 20px; display: grid; gap: 6px; }
.reseau .infos b { font-size: 16px; }
.reseau .infos span { color: var(--doux); font-size: 14px; margin-bottom: 10px; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--carte); border: 1px solid var(--bord); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-family: var(--titre); font-size: 22px; color: var(--kraft-clair); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--doux); }

/* ---------- pied ---------- */
.pied { border-top: 1px solid var(--bord); padding: 40px 0; color: var(--doux); font-size: 13px; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--doux); border-radius: 50%; font-weight: 800; font-size: 12px; margin-right: 10px; vertical-align: middle; }

/* ---------- page classement ---------- */
.page-titre { padding: 64px 0 24px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.page-titre h1 { font-size: clamp(48px, 8vw, 92px); }
.demo { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; padding: 6px 10px; border-radius: 8px; background: #2d1a1a; color: var(--rose); border: 1px solid #6b3328; }
.assistant { max-width: 760px; margin: 24px auto 0; background: var(--carte); border: 1px solid var(--bord); border-radius: 22px; overflow: hidden; }
.assistant .pas { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--bord); }
.assistant .pas div { padding: 14px 8px; text-align: center; font-size: 13px; color: var(--doux); display: flex; justify-content: center; align-items: center; gap: 8px; }
.assistant .pas div i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--bord); font-size: 11px; font-family: var(--mono); }
.assistant .pas div.actif { color: var(--creme); background: rgba(181,129,78,.10); }
.assistant .pas div.actif i { background: var(--kraft); color: #24160c; border-color: var(--kraft); }
.assistant .pas div.fait i { background: #2f5a3f; border-color: #2f5a3f; color: #d9ffe6; }
.assistant .contenu { padding: 26px 28px 28px; }
.assistant h3 { font-size: 28px; margin-bottom: 10px; }
.assistant p { color: var(--doux); margin: 0 0 14px; }
.assistant ol { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: n; }
.assistant ol li { counter-increment: n; display: flex; gap: 12px; align-items: center; }
.assistant ol li::before { content: counter(n); width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #3a1d17; color: var(--rose); font-family: var(--mono); font-size: 12px; }
.assistant .bas { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.champ { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--bord); background: var(--fond-2); color: var(--creme); padding: 0 16px; font: 600 16px var(--texte); }
.champ:focus { outline: 2px solid var(--kraft); outline-offset: 1px; }
.cible { font-family: var(--titre); font-size: 72px; color: var(--kraft-clair); text-align: center; line-height: 1; margin: 8px 0; }
.cible small { font-size: 32px; }
.message { min-height: 22px; font-size: 14px; color: var(--rose); margin-top: 10px; }
.message.ok { color: #7ad49b; }
.compte { display: flex; justify-content: center; gap: 10px; margin: 48px 0 26px; }
.compte div { background: var(--carte); border: 1px solid var(--bord); border-radius: 14px; padding: 12px 16px; text-align: center; min-width: 84px; }
.compte b { font-family: var(--titre); font-size: 40px; font-weight: normal; display: block; line-height: 1; }
.compte span { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--doux); }
.tableau { max-width: 980px; margin: 0 auto 80px; background: var(--carte); border: 1px solid var(--bord); border-radius: 20px; overflow: hidden; }
.tableau table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 2px; color: var(--doux); padding: 14px 18px; border-bottom: 1px solid var(--bord); }
.tableau td { padding: 12px 18px; border-bottom: 1px solid rgba(59,43,32,.55); font-variant-numeric: tabular-nums; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau td.r { font-family: var(--mono); color: var(--doux); }
.tableau td.p { font-weight: 700; }
.tableau td.c { color: var(--rose); font-weight: 700; text-align: right; }
.tableau th:last-child { text-align: right; }

/* ---------- téléphone ---------- */
@media (max-width: 900px) {
  .heros .conteneur, .bloc-defis { grid-template-columns: 1fr; }
  .scene { min-height: 380px; order: -1; }
  .grille-3, .etapes { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium .premier { order: -1; }
  .marche { margin-top: 18px; }
  .nav { display: none; }
  .bloc-defis { padding: 28px 20px; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .haut .boutons .bouton.vide { display: none; }
  .marque { font-size: 19px; }
  .reseaux { grid-template-columns: 1fr; }
  .assistant .pas div { font-size: 0; }
  .assistant .pas div i { font-size: 11px; }
  .assistant .contenu { padding: 22px 18px; }
  .tableau .cache-tel { display: none; }
  .tableau td, .tableau th { padding: 11px 10px; }
  .compte div { min-width: 0; padding: 10px; }
  .compte b { font-size: 30px; }
  .heros .actions .bouton { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
.defi .compte { justify-content: flex-start; gap: 6px; }
.defi .compte div { min-width: 52px; padding: 6px 8px; border-radius: 10px; background: var(--carte); }
.defi .compte b { font-size: 22px; }
.defi .compte span { font-size: 9px; }
.ligne-fin span { max-width: 640px; }
.faq summary::after { font-family: var(--texte); font-weight: 800; }
.defi .gain span { white-space: nowrap; font-size: 11px; }
.defi .corps { grid-template-columns: 1fr auto; }
@media (max-width: 900px) {
  .haut .conteneur { flex-wrap: wrap; height: auto; padding: 10px 0 0; row-gap: 0; }
  .haut .boutons { margin-left: auto; }
  .nav { display: flex; order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 18px; padding: 10px 0; white-space: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}
