/* ============================================================
   ULTIMATUM — le style du site
   L'identité de la série : thriller de nuit, comme les vidéos.
   Couleurs reprises du montage (series/monter.py).
   Pensé d'abord pour le téléphone (le public arrive d'Instagram).
   ============================================================ */

:root {
  --nuit: #07080B;        /* fond de page */
  --nuit-2: #0F1116;      /* blocs posés sur la nuit */
  --nuit-3: #1A1D24;      /* bordures, pastilles */
  --rouge: #E5322D;       /* l'accent : la bande rouge de l'auvent */
  --jaune: #FFD60A;       /* le gilet de Théo */
  --creme: #F2EDE3;       /* cartes « dossier » */
  --encre: #161616;       /* texte sur crème */
  --gris: #A5A5A5;        /* texte secondaire */
  --gris-c: #968F87;      /* texte secondaire sur crème */
  --blanc: #FFFFFF;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --marge: 16px;
  --rayon: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--blanc);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.conteneur { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--marge); }
@media (min-width: 768px) { :root { --marge: 32px; } }

/* ---------- Typo ---------- */
h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(40px, 11vw, 88px); }
h2 { font-size: clamp(30px, 7.5vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.02em; }
p { margin: 0; }
.jaune { color: var(--jaune); }
.rouge { color: var(--rouge); }

/* Les petites étiquettes en monospace espacé, comme « DANS LE FOURGON » */
.etiquette {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris);
}
.etiquette.rouge { color: var(--rouge); }
.etiquette.jaune { color: var(--jaune); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 8, 11, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nuit-3);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo .point { width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 12px var(--rouge); }
.menu-bouton {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; font-weight: 700;
  background: none; border: 1px solid var(--nuit-3); color: var(--blanc);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px;
}
.nav { display: none; }
.nav.ouverte {
  display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0;
  background: var(--nuit); border-bottom: 1px solid var(--nuit-3); padding: 8px var(--marge) 20px;
}
.nav a {
  text-decoration: none; font-weight: 800; font-size: 22px; padding: 10px 0;
  border-bottom: 1px solid var(--nuit-3); letter-spacing: -0.02em;
}
.nav a[aria-current="page"] { color: var(--jaune); }
@media (min-width: 900px) {
  .menu-bouton { display: none; }
  .nav, .nav.ouverte { display: flex; flex-direction: row; position: static; padding: 0; border: 0; gap: 22px; background: none; }
  .nav a { font-size: 14px; font-weight: 700; padding: 0; border: 0; color: var(--gris); }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--blanc); }
}

/* ---------- Le bandeau BUTIN · SUSPICION · JOUR (comme dans les vidéos) ---------- */
.bandeau { display: flex; gap: 6px; flex-wrap: wrap; }
.pastille {
  background: #000; border: 1px solid var(--nuit-3); border-radius: 999px;
  padding: 7px 12px; display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  white-space: nowrap;
}
.pastille .nom { color: var(--gris); }
.pastille .valeur { color: var(--blanc); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; font-size: 13px; }
.pastille.butin .valeur { color: var(--jaune); }
/* sur téléphone, les trois pastilles tiennent sur une ligne, comme dans la vidéo */
@media (max-width: 420px) {
  .bandeau { gap: 4px; flex-wrap: nowrap; }
  .pastille { padding: 6px 8px; gap: 5px; font-size: 8.5px; letter-spacing: .08em; }
  .pastille .valeur { font-size: 11px; letter-spacing: 0; }
}
.pastille.suspicion .valeur { color: var(--rouge); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-family: var(--sans); font-weight: 800; font-size: 16px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .15s, background .15s, opacity .15s;
}
.bouton:active { transform: translateY(1px) scale(.99); }
.bouton.plein { background: var(--rouge); color: var(--blanc); }
.bouton.plein:hover { background: #F2443F; }
.bouton.jaune { background: var(--jaune); color: var(--encre); }
.bouton.fantome { background: transparent; color: var(--blanc); border: 1px solid #3A3F4A; }
.bouton.fantome:hover { border-color: var(--blanc); }
.bouton[disabled], .bouton.bientot {
  background: var(--nuit-3); color: var(--gris); cursor: not-allowed; border: 1px dashed #3A3F4A;
}
.boutons { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) { .boutons .bouton { flex: 1 1 100%; } }

/* ---------- Accueil : l'ouverture ----------
   Téléphone : l'image en haut, le texte dessous (comme saveohouse.com).
   Ordinateur : le texte à gauche, l'image à droite. */
.ouverture { padding: 16px 0 40px; }
.ouverture-grille { display: grid; gap: 22px; }
.affiche { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--nuit-3); background: #000; }
.affiche img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: pousse 18s ease-out both; }
.affiche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 25%, transparent 75%, rgba(0,0,0,.6) 100%); }
@keyframes pousse { from { transform: scale(1.12); } to { transform: scale(1); } }
.bandeau.sur-image { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; }
.ouverture-texte { display: grid; gap: 16px; align-content: start; }
.ouverture h1 span { display: block; }
.ouverture .pitch { max-width: 560px; color: #D6D6D6; font-size: 17px; }
@media (max-width: 767px) { .affiche { aspect-ratio: 1 / 1; } }
@media (min-width: 900px) {
  .ouverture { padding: 48px 0 64px; }
  .ouverture-grille { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
  .affiche { order: 2; }
  .ouverture h1 { font-size: clamp(48px, 5.6vw, 76px); }
}

/* La petite boîte « le vote ferme dans » */
.prochain { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--nuit-3); border-radius: 14px; background: var(--nuit-2); text-decoration: none; max-width: 420px; }
.rebours.petit .case { min-width: 48px; padding: 7px 6px 6px; border-radius: 8px; }
.rebours.petit .chiffre { font-size: 20px; }
.rebours.petit .unite { font-size: 9px; margin-top: 4px; }
.rebours.petit .deux-points { font-size: 18px; }

/* Le bandeau « en direct » qui défile */
.defile { overflow: hidden; border-top: 1px solid var(--nuit-3); border-bottom: 1px solid var(--nuit-3); background: #000; }
.defile-piste { display: flex; gap: 18px; width: max-content; padding: 12px 0; animation: defile 38s linear infinite;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; color: #D6D6D6; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Où en est l'affaire */
.etat-chiffres { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 16px 0; }
.etat-valeur { font-weight: 900; font-size: clamp(24px, 6.5vw, 36px); letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Les trois façons d'entrer */
.carte-offre { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--rayon); background: var(--nuit-2); border: 1px solid var(--nuit-3); text-decoration: none; transition: border-color .2s, transform .2s; }
.carte-offre:hover { border-color: #4A505C; transform: translateY(-2px); }
.carte-offre p:not(.etiquette) { color: #C9C9C9; }
.carte-offre .fleche { font-weight: 800; color: var(--jaune); margin-top: 4px; }

/* Les questions */
.faq details { border-bottom: 1px solid var(--nuit-3); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rouge); font-family: var(--mono); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #C9C9C9; padding: 0 0 18px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--nuit-3); }
.section .tete { margin-bottom: 28px; display: grid; gap: 12px; }
.section .tete p { color: var(--gris); max-width: 620px; }

/* ---------- Cartes « dossier » crème (le principe, les offres) ---------- */
.grille { display: grid; gap: 12px; }
@media (min-width: 768px) { .grille.trois { grid-template-columns: repeat(3, 1fr); } .grille.deux { grid-template-columns: repeat(2, 1fr); } }
.dossier {
  background: var(--creme); color: var(--encre); border-radius: var(--rayon);
  padding: 22px; position: relative; overflow: hidden;
}
.dossier .etiquette { color: var(--gris-c); }
.dossier .numero { font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--rouge); letter-spacing: .1em; }
.dossier h3 { margin: 10px 0 8px; font-size: 24px; }
.dossier p { color: #3A3733; }
/* le petit trombone en haut à droite d'un dossier */
.dossier::before {
  content: ""; position: absolute; top: -6px; right: 22px; width: 14px; height: 44px;
  border: 3px solid #8C867D; border-radius: 8px; border-bottom-color: transparent;
}
.dossier.noir { background: var(--nuit-2); color: var(--blanc); border: 1px solid var(--nuit-3); }
.dossier.noir p { color: #C9C9C9; }
.dossier.noir::before { display: none; }

/* ---------- Le tampon (comme dans les vidéos) ---------- */
.tampon {
  background: rgba(0,0,0,.35);
  display: inline-block; font-family: var(--mono); font-weight: 800; font-size: 12px; letter-spacing: .18em;
  color: var(--rouge); border: 2px solid var(--rouge); border-radius: 6px; padding: 4px 9px;
  transform: rotate(-4deg); text-transform: uppercase;
}

.tampon.jaune-tampon { color: var(--jaune); border-color: var(--jaune); font-size: 11px; }

/* ---------- Les épisodes (couvertures en 9:16) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(-1 * var(--marge)); padding-left: var(--marge); padding-right: var(--marge); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }
.couverture {
  scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16; border-radius: var(--rayon);
  overflow: hidden; text-decoration: none; background: var(--nuit-2); border: 1px solid var(--nuit-3);
  display: block;
}
.couverture img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.couverture:hover img { transform: scale(1.04); }
.couverture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 30%, transparent 55%, rgba(0,0,0,.9) 100%); }
.couverture .haut, .couverture .bas { position: absolute; left: 14px; right: 14px; z-index: 1; }
.couverture .haut { top: 14px; }
.couverture .bas { bottom: 14px; }
.couverture .ep { font-weight: 900; font-size: 26px; letter-spacing: -0.03em; line-height: 1; margin-top: 4px; }
.couverture .etat { margin-top: 8px; }
.couverture.ferme img { filter: blur(10px) brightness(.45) saturate(.6); transform: scale(1.1); }
.couverture.ferme { cursor: default; }
.cadenas { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; }

/* ---------- Bandeau « suivre sur Instagram » ---------- */
.insta {
  display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(229,50,45,.28), transparent 55%), var(--nuit-2);
  border: 1px solid var(--nuit-3);
}
@media (min-width: 768px) { .insta { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--nuit-3); padding: 36px 0 48px; color: var(--gris); font-size: 14px; }
.pied .conteneur { display: grid; gap: 18px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--blanc); }

/* ---------- Page épisode ---------- */
.lecteur { display: grid; gap: 24px; padding: 24px 0 56px; }
@media (min-width: 900px) { .lecteur { grid-template-columns: minmax(300px, 400px) 1fr; gap: 48px; align-items: start; } }
.video {
  position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid var(--nuit-3); width: 100%; max-width: 420px; margin: 0 auto;
}
.video video { width: 100%; height: 100%; object-fit: cover; }
.video .vide { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.cote { display: grid; gap: 22px; }
.cote h1 { font-size: clamp(36px, 9vw, 64px); }

/* La barre de vote (adaptée du composant « Poll Results » de 21st.dev) */
.vote { background: var(--nuit-2); border: 1px solid var(--nuit-3); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.vote .question { font-weight: 800; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.option {
  position: relative; width: 100%; min-height: 64px; border-radius: 12px; overflow: hidden;
  border: 1px solid #2B2F38; background: #0B0C10; color: var(--blanc); text-align: left;
  font: inherit; cursor: pointer; padding: 0; transition: border-color .2s, transform .15s;
}
.option:hover:not([aria-disabled="true"]) { border-color: #4A505C; }
.option:active:not([aria-disabled="true"]) { transform: translateY(1px); }
.option .remplissage {
  position: absolute; inset: 4px; border-radius: 8px; background: rgba(255,255,255,.08);
  clip-path: inset(0 100% 0 0 round 8px); transition: clip-path 1.1s cubic-bezier(.23,1,.32,1);
}
.option.a .remplissage { background: rgba(229,50,45,.32); }
.option.b .remplissage { background: rgba(255,214,10,.22); }
.option .ligne { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; }
.option .mot { font-weight: 900; font-size: 22px; letter-spacing: -0.02em; flex: 1; }
.option .sens { display: block; font-size: 13px; font-weight: 500; color: var(--gris); letter-spacing: 0; }
.option .pourcent { font-family: var(--mono); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s; }
.option .coche { width: 22px; height: 22px; border-radius: 50%; background: var(--blanc); color: var(--encre); display: grid; place-items: center; font-size: 13px; font-weight: 900; transform: scale(0); transition: transform .35s cubic-bezier(.34,1.8,.64,1); }
.vote.revele .option { cursor: default; }
.vote.revele .pourcent { opacity: 1; }
.vote.revele .option.gagnant .coche { transform: scale(1); }
.vote.revele .option.mien { border-color: var(--blanc); }
.vote .note { font-family: var(--mono); font-size: 11px; color: var(--gris); letter-spacing: .06em; }

/* Le compte à rebours */
.rebours { display: flex; gap: 8px; align-items: center; }
.rebours .case {
  background: #000; border: 1px solid var(--nuit-3); border-radius: 10px; min-width: 64px; padding: 10px 8px 8px;
  text-align: center;
}
.rebours .chiffre { font-family: var(--mono); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.rebours .unite { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--gris); margin-top: 6px; }
.rebours .deux-points { font-family: var(--mono); font-size: 26px; color: var(--rouge); font-weight: 800; animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: .25; } }

/* ---------- Offres (enquête, personnage) ---------- */
.prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.prix .montant { white-space: nowrap; font-weight: 900; font-size: 56px; letter-spacing: -0.04em; line-height: 1; }
.liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.liste li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.liste li::before { content: "▸"; color: var(--rouge); font-weight: 900; }
.dossier .liste li::before { color: var(--rouge); }
.etapes { counter-reset: e; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; background: var(--nuit-2); border: 1px solid var(--nuit-3); border-radius: 12px; }
.etapes li::before { content: counter(e, decimal-leading-zero); font-family: var(--mono); font-weight: 800; color: var(--jaune); font-size: 15px; padding-top: 2px; }
.etapes b { display: block; font-size: 17px; margin-bottom: 2px; }
.etapes span { color: #C9C9C9; font-size: 15px; }

/* Le classement (exemple) */
.classement { width: 100%; border-collapse: collapse; font-size: 15px; }
.classement td { padding: 12px 6px; border-bottom: 1px solid var(--nuit-3); }
.classement td:first-child { font-family: var(--mono); color: var(--gris); width: 40px; }
.classement td:last-child { text-align: right; font-family: var(--mono); font-weight: 700; }
.classement tr:first-child td:nth-child(2) { color: var(--jaune); font-weight: 800; }

/* Les places de personnage */
.places { display: flex; gap: 8px; }
.place { flex: 1; aspect-ratio: 1; max-width: 90px; border-radius: 50%; border: 2px dashed #4A505C; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--gris); letter-spacing: .1em; }
.place.prise { border: 2px solid var(--rouge); background: rgba(229,50,45,.15); color: var(--blanc); }

/* La cagnotte : la maison qui se remplit */
.cagnotte { display: grid; gap: 22px; }
@media (min-width: 768px) { .cagnotte { grid-template-columns: 240px 1fr; align-items: center; } }
.maison { width: 100%; max-width: 240px; margin: 0 auto; }
.maison .eau { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 1.6s cubic-bezier(.23,1,.32,1); }
.gestes { display: flex; gap: 8px; flex-wrap: wrap; }
.gestes .bouton { min-width: 76px; }
.sans-jauge { border: 1px dashed #3A3F4A; border-radius: 12px; padding: 16px; color: #C9C9C9; font-size: 15px; }

/* ---------- Formulaire (marques) ---------- */
.formulaire { display: grid; gap: 14px; }
.champ { display: grid; gap: 6px; }
.champ label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gris-c); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 16px; color: var(--encre); background: #FFFDF8; border: 1px solid #D8D1C4;
  border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--rouge); outline-offset: 1px; border-color: transparent; }
.message-envoi { font-weight: 700; color: #1E7A3C; display: none; }
.message-envoi.visible { display: block; }

/* ---------- Mentions légales ---------- */
.texte { max-width: 720px; display: grid; gap: 14px; padding: 32px 0 64px; }
.texte h2 { font-size: 24px; margin-top: 24px; }
.a-completer { background: rgba(255,214,10,.14); color: var(--jaune); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 13px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Maquette v3 (retours de Mike, 30 oct.) : cartes illustrées,
   classement façon jeu, ambiance dossier pour l'enquête
   ============================================================ */

/* Cartes avec image (offres, marques) */
.carte-image { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: var(--nuit-2); border: 1px solid var(--nuit-3); text-decoration: none; transition: transform .25s, border-color .25s; }
.carte-image:hover { transform: translateY(-3px); border-color: #4A505C; }
.carte-image .visuel { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.carte-image .visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.carte-image:hover .visuel img { transform: scale(1.05); }
.carte-image .visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,17,22,.95)); }
.carte-image .visuel .prix-pastille { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--jaune); color: var(--encre); font-weight: 900; font-size: 15px; padding: 6px 12px; border-radius: 999px; }
.carte-image .corps { display: grid; gap: 10px; align-content: start; padding: 4px 20px 22px; }
.carte-image .corps p:not(.etiquette) { color: #C9C9C9; }
.carte-image .fleche { font-weight: 800; color: var(--jaune); margin-top: 4px; }

/* Grand visuel en tête de page (enquête, personnage, cagnotte, marques) */
.visuel-tete { border-radius: 18px; overflow: hidden; border: 1px solid var(--nuit-3); aspect-ratio: 3 / 2; }
.visuel-tete img { width: 100%; height: 100%; object-fit: cover; }

/* Le classement : le totem lumineux des prix d'une station-service */
.totem { max-width: 560px; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.totem-fronton { display: flex; align-items: center; gap: 10px; background: var(--rouge); color: #fff; font-weight: 900; font-size: 18px; letter-spacing: .04em; padding: 14px 18px; border-radius: 14px 14px 0 0; box-shadow: 0 0 40px rgba(229,50,45,.35); }
.totem-fronton .point { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.totem-direct { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; animation: clignote 1.6s steps(1) infinite; }
.totem-panneau { background: #050608; border: 6px solid #2A2E36; border-top: 0; padding: 10px; display: grid; gap: 6px; }
.totem-ligne { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; background: #0D0F14; border: 1px solid #1C2028; border-radius: 6px; }
.totem-rang { background: var(--creme); color: var(--encre); font-family: var(--mono); font-weight: 800; font-size: 14px; text-align: center; padding: 6px 0; border-radius: 4px; }
.totem-qui { display: grid; gap: 6px; min-width: 0; }
.totem-qui b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.totem-cases { display: inline-flex; gap: 3px; }
.totem-cases i { width: 14px; height: 6px; border-radius: 1px; background: #1E222B; }
.totem-cases i.bon { background: var(--jaune); box-shadow: 0 0 6px rgba(255,214,10,.6); }
.totem-cases i.faux { background: var(--rouge); box-shadow: 0 0 6px rgba(229,50,45,.6); }
.totem-score { font-family: var(--mono); background: #000; border: 1px solid #1C2028; border-radius: 4px; padding: 4px 10px; white-space: nowrap; }
.totem-score .led { font-weight: 800; font-size: 26px; color: var(--jaune); text-shadow: 0 0 10px rgba(255,214,10,.7); }
.totem-score small { color: #6B6455; font-size: 13px; font-weight: 700; }
.tete-de-course { background: #14110A; border-color: rgba(255,214,10,.45); padding: 14px 12px; }
.tete-de-course .totem-rang { background: var(--jaune); font-size: 16px; }
.tete-de-course b { font-size: 18px; color: var(--jaune); }
.tete-de-course .totem-score .led { font-size: 34px; }
.totem-pied { background: #2A2E36; color: #9AA0AB; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-align: center; padding: 8px; border-radius: 0 0 8px 8px; }
/* le mât du totem, sous le panneau */
.totem::after { content: ""; display: block; width: 26px; height: 34px; margin: 0 auto; background: linear-gradient(90deg, #1C2028, #2A2E36, #1C2028); }

/* Ambiance dossier : papier kraft, pièces épinglées */
.kraft { background: #B98B55 radial-gradient(120% 80% at 30% 20%, #C99B62, #A97A45); color: #2A1D0E; border-radius: 6px; padding: 26px 22px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.kraft .etiquette { color: #5A3E1E; padding-right: 48px; }
.kraft h3 { color: #1E140A; }
.kraft::after { content: ""; position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F0544F, #A51E1A); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.pieces { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .pieces { grid-template-columns: repeat(4, 1fr); } }
.piece { background: var(--creme); color: var(--encre); border-radius: 4px; padding: 14px 14px 18px; box-shadow: 0 10px 24px rgba(0,0,0,.45); position: relative; }
.piece:nth-child(odd) { transform: rotate(-1.6deg); } .piece:nth-child(even) { transform: rotate(1.3deg); }
.piece::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--rouge); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.piece .icone { font-size: 28px; }
.piece b { display: block; font-size: 15px; margin-top: 6px; line-height: 1.25; }
.piece span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--gris-c); }

/* Les bénéfices (personnage, cagnotte, marques) */
.benefices { display: grid; gap: 10px; }
@media (min-width: 768px) { .benefices { grid-template-columns: repeat(2, 1fr); } }
.benefice { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; border-radius: 14px; background: var(--nuit-2); border: 1px solid var(--nuit-3); }
.benefice .icone { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: #000; border: 1px solid var(--nuit-3); }
.benefice b { display: block; font-size: 17px; margin-bottom: 2px; }
.benefice span { color: #C9C9C9; font-size: 15px; }

/* Les chiffres (marques) : vides tant qu'il n'y a pas de stats */
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffre-cle { padding: 18px; border-radius: 14px; background: #000; border: 1px solid var(--nuit-3); }
.chiffre-cle .valeur { font-weight: 900; font-size: 32px; letter-spacing: -.03em; color: var(--jaune); line-height: 1.1; }
.chiffre-cle .etiquette { margin-top: 6px; display: block; }

/* La jauge du vote en cours (accueil) */
.jauge-vote { display: grid; gap: 8px; }
.jauge-mots { display: flex; justify-content: space-between; gap: 10px; font-weight: 900; font-size: 17px; letter-spacing: -.01em; }
.jauge-barre { display: block; height: 12px; border-radius: 99px; background: var(--jaune); overflow: hidden; }
.jauge-barre span { display: block; height: 100%; background: var(--rouge); border-right: 3px solid #000; }

/* Les titres de section (« COMMENT ÇA MARCHE »…) : bien lisibles (retour de Mike) */
.kicker { font-size: 15px; letter-spacing: .18em; color: var(--blanc); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--rouge); flex: none; }
.kicker.rouge { color: var(--rouge); } .kicker.jaune { color: var(--jaune); }
@media (min-width: 768px) { .kicker { font-size: 17px; } }
.section .tete .kicker { color: var(--blanc); }
.section .tete .kicker.rouge { color: var(--rouge); } .section .tete .kicker.jaune { color: var(--jaune); }

/* L'enjeu, en questions, sous l'accroche */
.enjeu { display: grid; gap: 4px; border-left: 3px solid var(--rouge); padding-left: 14px; }
.enjeu-intro { color: #D6D6D6; font-size: 17px; margin-bottom: 4px; }
.enjeu-question { font-weight: 800; font-size: 19px; letter-spacing: -.01em; line-height: 1.3; }
.enjeu-question:last-child { color: var(--jaune); }

/* « Deviens enquêteur. Résous l'affaire. » sous le titre de l'enquête */
.bascule { font-weight: 900; font-size: clamp(22px, 5.5vw, 30px); letter-spacing: -.02em; line-height: 1.15; }

/* La rareté (page personnage) : 3 places pour toute la saison */
.rarete { display: grid; gap: 12px; padding: 18px; border-radius: 16px; border: 1px solid rgba(229,50,45,.5); background: radial-gradient(120% 120% at 0% 0%, rgba(229,50,45,.18), transparent 60%), var(--nuit-2); }
.rarete-titre { font-weight: 900; font-size: clamp(24px, 6.5vw, 34px); letter-spacing: -.02em; line-height: 1.1; }
.rarete-fin { color: #D6D6D6; font-size: 15px; }
.rarete .place { max-width: 76px; border-color: rgba(229,50,45,.6); color: #fff; }
