:root {
  --nuit: #14110e;
  --nuit-2: #1e1a15;
  --nuit-3: #2a241d;
  --trait: #4a3f31;
  --creme: #efe4cc;
  --papier: #e9dcc0;
  --encre: #2b2118;
  --encre-2: #5a4a38;
  --sepia: #c9a46a;
  --sepia-pale: #b8a685;
  --rouge: #a3242a;
  --vert: #6f8f5a;
  --titre: "Limelight", "Didot", Georgia, serif;
  --machine: "Special Elite", "Courier New", monospace;
  --texte: "Libre Baskerville", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--nuit); color: var(--creme);
  font-family: var(--texte); font-size: 16px; line-height: 1.6;
  background-image: radial-gradient(ellipse at top, #2a2219 0%, var(--nuit) 60%);
  background-attachment: fixed; min-height: 100vh;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ---------- Accueil ---------- */
.accueil {
  min-height: 100vh; display: grid; gap: 40px; align-items: center; justify-content: center;
  grid-template-columns: minmax(0, 560px) minmax(0, 420px); padding: 40px 32px;
}
.affiche { margin: 0; display: flex; justify-content: center; }
.affiche img {
  width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 80px);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px var(--trait);
}
.panneau h1 {
  font-family: var(--titre); font-weight: 400; font-size: clamp(44px, 6vw, 72px);
  line-height: 1; margin: 6px 0 18px; color: var(--creme); letter-spacing: .02em;
}
.surtitre { font-family: var(--machine); color: var(--sepia); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin: 0; }
.accroche { font-style: italic; color: var(--sepia-pale); margin: 0 0 28px; font-size: 17px; }
.mini { font-size: 13px; color: var(--sepia-pale); margin-top: 18px; }

.btn {
  border: 1px solid var(--sepia); background: var(--sepia); color: var(--nuit);
  font-family: var(--machine); font-size: 15px; letter-spacing: .06em;
  padding: 12px 18px; border-radius: 2px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--creme); border-color: var(--creme); }
.btn:focus-visible, input:focus-visible, .lien:focus-visible, .onglets button:focus-visible, .carte:focus-visible { outline: 2px solid var(--creme); outline-offset: 2px; }
.btn-film { background: transparent; color: var(--creme); border-color: var(--trait); width: 100%; padding: 14px; margin-bottom: 26px; }
.btn-film:hover { border-color: var(--sepia); background: var(--nuit-3); color: var(--creme); }

.code-form label { display: block; font-family: var(--machine); color: var(--sepia); font-size: 14px; margin-bottom: 8px; }
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1; min-width: 0; background: var(--nuit-2); color: var(--creme); border: 1px solid var(--trait);
  font-family: var(--machine); font-size: 18px; letter-spacing: .08em; padding: 10px 12px; border-radius: 2px; text-transform: uppercase;
}
.code-row input::placeholder { color: #6d5f4c; text-transform: none; letter-spacing: 0; font-size: 15px; }
.msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--sepia-pale); }
.msg.err { color: #e07a6e; }
.msg.ok { color: #a9c58f; }

/* ---------- Barre & pages ---------- */
.barre {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; background: rgba(20,17,14,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--trait);
}
.logo { font-family: var(--titre); font-size: 20px; white-space: nowrap; }
.tampon-mini { font-family: var(--machine); font-size: 11px; color: var(--rouge); border: 1.5px solid var(--rouge); padding: 1px 6px; transform: rotate(-3deg); text-transform: uppercase; letter-spacing: .1em; }
.lien { margin-left: auto; background: none; border: 0; color: var(--sepia-pale); font-family: var(--machine); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.page { max-width: 820px; margin: 0 auto; padding: 28px 20px 80px; }
.page.large { max-width: 1100px; }

.identite { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; margin-bottom: 26px; }
.portrait { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 2px solid var(--sepia); filter: sepia(.4) contrast(1.1); }
.identite h2 { font-family: var(--titre); font-weight: 400; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.1; margin: 4px 0 6px; }
.sous { font-family: var(--machine); color: var(--sepia-pale); font-size: 13px; letter-spacing: .08em; margin: 0 0 10px; }
blockquote { margin: 0; font-style: italic; color: var(--creme); border-left: 2px solid var(--rouge); padding-left: 12px; }

.code-jeu { background: var(--nuit-2); border: 1px solid var(--trait); padding: 16px; margin-bottom: 24px; }

.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--trait); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.onglets button {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--sepia-pale);
  font-family: var(--machine); font-size: 15px; padding: 10px 14px; white-space: nowrap;
}
.onglets button[aria-selected="true"] { color: var(--creme); border-bottom-color: var(--sepia); }
.pastille:not(:empty) { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; background: var(--rouge); color: #fff; border-radius: 10px; font-size: 12px; line-height: 20px; text-align: center; }

/* ---------- Révélations ---------- */
.revels { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.revel { border: 1px dashed var(--trait); padding: 16px 18px; color: var(--sepia-pale); display: flex; gap: 14px; align-items: center; }
.revel .num { font-family: var(--titre); font-size: 28px; color: var(--trait); width: 32px; text-align: center; flex: none; }
.revel .lbl { font-family: var(--machine); font-size: 14px; }
.revel.ouverte { display: block; border: 0; padding: 0; color: var(--encre); }
.doc {
  background: var(--papier); color: var(--encre); padding: 26px 28px 24px; position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); background-image: linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.03));
}
.doc h3 { font-family: var(--titre); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0 0 14px; padding-right: 90px; }
.doc .kicker { font-family: var(--machine); color: var(--rouge); letter-spacing: .12em; font-size: 12px; text-transform: uppercase; }
.doc p { margin: 0 0 10px; }
.tampon { position: absolute; top: 18px; right: 18px; font-family: var(--machine); color: var(--rouge); border: 2px solid var(--rouge); padding: 2px 8px; transform: rotate(6deg); font-size: 12px; letter-spacing: .1em; opacity: .85; }
.pour-toi { margin-top: 16px; background: var(--nuit-2); color: var(--creme); border-left: 3px solid var(--rouge); padding: 14px 16px; }
.pour-toi strong { font-family: var(--machine); font-weight: 400; color: var(--sepia); display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.doc .cartes { margin-top: 16px; }

/* ---------- Cartes preuves ---------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.carte { background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.carte .img { aspect-ratio: 3 / 4; background: var(--nuit-3); overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.carte .img.paysage { aspect-ratio: 3 / 2; }
.carte img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.carte:hover img { transform: scale(1.03); }
.carte .t { font-family: var(--machine); font-size: 13px; margin-top: 8px; line-height: 1.35; }
.carte .src { font-size: 12px; color: var(--sepia-pale); }
.doc .carte .src { color: var(--encre-2); }
.carte.nouvelle .img { outline: 2px solid var(--rouge); }
.vide { color: var(--sepia-pale); font-style: italic; }

/* ---------- Fiche (papier) ---------- */
.papier { background: var(--papier); color: var(--encre); padding: 30px 32px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.papier h2, .papier h3 { font-family: var(--titre); font-weight: 400; }
.papier p strong:only-child, .fiche > p > strong:first-child { font-family: var(--machine); font-weight: 400; color: var(--rouge); letter-spacing: .1em; }
.fiche blockquote, .papier blockquote { border-left: 0; padding: 0; font-style: normal; color: var(--encre); }
.papier ul { padding-left: 20px; }
.papier table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; display: block; overflow-x: auto; }
.papier th, .papier td { border-bottom: 1px solid #c9b997; padding: 8px 10px 8px 0; vertical-align: top; text-align: left; }
.papier th { font-family: var(--machine); font-weight: 400; color: var(--encre-2); }
.papier h1 { font-family: var(--titre); font-weight: 400; font-size: 26px; margin: 34px 0 12px; border-top: 1px solid #c9b997; padding-top: 20px; }
.papier h1:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.papier h2 { font-size: 20px; margin: 26px 0 8px; }
.papier .lecture { border-top: 1px solid #c9b997; padding-top: 18px; margin-top: 18px; }
.papier .lecture:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

/* ---------- MJ ---------- */
.mj-bloc { background: var(--nuit-2); border: 1px solid var(--trait); padding: 18px 20px; margin-bottom: 20px; }
.mj-bloc h3 { font-family: var(--titre); font-weight: 400; margin: 0 0 4px; font-size: 22px; }
.mj-bloc p.aide { margin: 0 0 12px; color: var(--sepia-pale); font-size: 14px; }
.tcodes { width: 100%; border-collapse: collapse; }
.tcodes td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tcodes tr:last-child td { border-bottom: 0; }
.tcodes .code { text-align: right; font-family: var(--machine); font-size: 19px; color: var(--sepia); letter-spacing: .06em; white-space: nowrap; }
.tcodes .det { font-size: 13px; color: var(--sepia-pale); }
.perso-r h3 { margin-bottom: 10px; }
.perso-r dl { margin: 0; display: grid; grid-template-columns: 200px 1fr; gap: 6px 14px; font-size: 14px; }
.perso-r dt { font-family: var(--machine); color: var(--sepia); }
.perso-r dd { margin: 0; }

/* ---------- Dialogues ---------- */
.dlg { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: var(--creme); }
.dlg::backdrop { background: rgba(8,6,4,.88); }
.dlg video { width: 100%; display: block; background: #000; }
.dlg figure { margin: 0; }
.dlg figure img { max-height: 82vh; width: auto; margin: 0 auto; }
.dlg figcaption { text-align: center; font-family: var(--machine); padding: 10px; font-size: 14px; }
.fermer { position: absolute; top: -6px; right: 0; background: none; border: 0; color: var(--creme); font-size: 34px; line-height: 1; padding: 4px 8px; z-index: 2; }
#dlg-film, #dlg-carte { overflow: visible; padding-top: 36px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); transition: transform .25s, visibility .25s; visibility: hidden;
  background: var(--creme); color: var(--encre); font-family: var(--machine); padding: 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.6);
  max-width: calc(100vw - 32px); z-index: 20;
}
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.charge { color: var(--sepia-pale); font-family: var(--machine); }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .accueil { grid-template-columns: 1fr; padding: 16px 16px 40px; gap: 24px; min-height: 0; }
  .affiche img { max-height: none; }
  .panneau h1 { margin-bottom: 12px; }
  .page { padding: 20px 16px 70px; }
  .identite { grid-template-columns: 76px 1fr; gap: 14px; }
  .portrait { width: 76px; height: 76px; }
  .code-row { flex-direction: column; }
  .papier { padding: 22px 18px; }
  .doc { padding: 22px 18px 18px; }
  .doc h3 { padding-right: 0; margin-top: 26px; }
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .perso-r dl { grid-template-columns: 1fr; gap: 2px; }
  .perso-r dd { margin-bottom: 10px; }
  .barre { padding: 10px 16px; }
  .logo { font-size: 17px; }
  .tampon-mini { display: none; }
  .tcodes .code { font-size: 16px; }
}

/* ---------- Projection (MJ) ---------- */
.aide-projo { color: var(--sepia-pale); font-size: 14px; margin: 0 0 18px; max-width: 65ch; }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.film-carte {
  display: flex; flex-direction: column; gap: 6px; text-align: left; min-height: 150px;
  background: var(--nuit-2); border: 1px solid var(--trait); color: var(--creme); padding: 18px; border-radius: 2px;
}
.film-carte:hover { border-color: var(--sepia); }
.film-carte .k { font-family: var(--machine); color: var(--rouge); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.film-carte .t { font-family: var(--titre); font-size: 22px; line-height: 1.15; flex: 1; }
.film-carte .a { font-family: var(--machine); color: var(--sepia); font-size: 14px; }
.film-carte.a-venir { opacity: .55; }
.projo { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; align-items: center; justify-content: center; }
body.en-projo { overflow: hidden; }
.projo video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.projo-titre { text-align: center; padding: 24px; color: var(--creme); }
.projo-kicker { font-family: var(--machine); color: var(--rouge); letter-spacing: .2em; text-transform: uppercase; font-size: clamp(14px, 2vw, 22px); margin: 0 0 14px; }
.projo-titre h2 { font-family: var(--titre); font-weight: 400; font-size: clamp(40px, 7vw, 96px); line-height: 1.05; margin: 0 0 36px; text-wrap: balance; }
.projo-play { font-size: 18px; padding: 14px 26px; }
.projo-vide { font-family: var(--machine); color: var(--sepia-pale); font-size: 20px; }
.projo-fermer { position: absolute; top: 10px; right: 16px; background: none; border: 0; color: rgba(255,255,255,.35); font-size: 40px; line-height: 1; padding: 6px 10px; }
.projo-fermer:hover { color: #fff; }
.revel-film { width: 100%; margin: 4px 0 16px; background: #000; }

.coche { display: flex; gap: 8px; align-items: center; font-family: var(--texte) !important; color: var(--sepia-pale) !important; font-size: 14px !important; margin: 12px 0 0 !important; }
.coche input { accent-color: var(--sepia); width: 18px; height: 18px; }
.film-carte.verrou { opacity: .6; border-style: dashed; }
#f-lancer { margin-bottom: 18px; }

.select { width: 100%; background: var(--nuit); color: var(--creme); border: 1px solid var(--trait); font-family: var(--machine); font-size: 16px; padding: 10px 12px; border-radius: 2px; }
.sous-label { font-family: var(--machine); color: var(--sepia); font-size: 14px; margin: 18px 0 4px; }
.choix-joueurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 16px; margin-bottom: 18px; }
.choix-joueurs .coche { margin: 6px 0 0 !important; }

.secours { font-size: 14px; color: var(--sepia-pale); margin: 10px 0 0; }
.secours strong { font-family: var(--machine); font-weight: 400; color: var(--sepia); font-size: 17px; letter-spacing: .06em; }

/* ---------- Tirage au sort des rôles ---------- */
.tirage-bloc { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--trait); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tirage-bloc .aide-projo { flex-basis: 100%; margin: 4px 0 0; }
.btn-sec { background: transparent; color: var(--creme); border-color: var(--trait); }
.btn-sec:hover { background: var(--nuit-3); border-color: var(--sepia); color: var(--creme); }
.tirage { position: fixed; inset: 0; z-index: 55; overflow-y: auto; background: radial-gradient(ellipse at top, #2a2219 0%, #0b0907 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 32px 16px; text-align: center; }
.tirage > .projo-kicker { margin-top: auto; }
.tirage > .t-msg { margin-bottom: auto; }
.tirage .projo-fermer { position: fixed; }
.tirage[hidden] { display: none; }
.tirage-h { font-family: var(--titre); font-weight: 400; color: var(--creme); font-size: clamp(36px, 6vw, 80px); line-height: 1; margin: 0 0 clamp(20px, 4vh, 48px); }
.tirage-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 26px); width: min(1700px, 100%); }
.t-perso { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.t-perso img { width: 100%; max-width: 210px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid var(--sepia);
  box-shadow: 0 0 0 2px #3c2f20, 0 14px 40px rgba(0,0,0,.6); transition: transform .4s, box-shadow .4s; }
.t-nom { font-family: var(--titre); color: var(--creme); font-size: clamp(16px, 1.9vw, 30px); margin: 12px 0 8px; }
.t-role { width: 100%; min-height: 4.6em; display: flex; align-items: center; justify-content: center; padding: 8px 6px;
  border: 1px solid var(--trait); background: rgba(0,0,0,.35); font-family: var(--machine); color: var(--sepia-pale);
  font-size: clamp(12px, 1.25vw, 20px); line-height: 1.25; text-wrap: balance; transition: background .3s, color .3s, border-color .3s; }
.t-perso.roule .t-role { color: var(--creme); filter: blur(.6px); }
.t-perso.fixe .t-role { background: var(--papier); color: var(--encre); border-color: var(--sepia); filter: none; animation: tampon .45s ease-out; }
.t-perso.fixe img { transform: scale(1.05); box-shadow: 0 0 0 2px var(--rouge), 0 0 50px rgba(201,164,106,.45); }
@keyframes tampon { 0% { transform: scale(1.35); opacity: .2; } 70% { transform: scale(.96); opacity: 1; } 100% { transform: scale(1); } }
.tirage-actions { margin-top: clamp(22px, 5vh, 56px); display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.tirage-actions .btn { font-size: 18px; padding: 13px 26px; }
@media (max-width: 900px) { .tirage-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; } }
@media (max-width: 520px) { .tirage-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t-perso img { max-width: 130px; } }
@media (prefers-reduced-motion: reduce) { .t-perso.fixe .t-role { animation: none; } }
.t-msg { min-height: 1.4em; margin: 14px 0 0; font-family: var(--machine); color: var(--sepia-pale); font-size: 15px; }
.t-msg.ok { color: var(--vert); } .t-msg.err { color: #e06a5f; }
.qui-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.qui { text-align: center; }
.qui img { width: 100%; max-width: 130px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid var(--sepia); }
.qui.moi img { border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(163,36,42,.35); }
.qui .n { font-family: var(--titre); font-size: 20px; margin-top: 6px; }
.qui .r { font-family: var(--machine); font-size: 13px; color: var(--sepia-pale); line-height: 1.3; }
.onglets .tab-danger { color: #e06a5f; margin-left: auto; }
.onglets .tab-danger[aria-selected="true"] { border-bottom-color: var(--rouge); color: #e06a5f; }
.danger { border: 1.5px solid var(--rouge); background: rgba(163,36,42,.08); padding: 18px 20px; max-width: 640px; }
.danger h3 { font-family: var(--machine); color: #e06a5f; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; margin: 0 0 8px; }
.btn-danger { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn-danger:hover { background: #c22f36; border-color: #c22f36; color: #fff; }
.etat-reset { font-family: var(--machine); font-size: 13px; color: var(--sepia-pale); margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--trait); }
#m-suivi .btn-sec { margin-bottom: 16px; }
#m-suivi .qui-grille { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
#m-suivi .qui img { max-width: 90px; }

/* Films des révélations déjà lancées, sur l'accueil */
.acc-films { margin: -12px 0 26px; }
.acc-films-t { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sepia); margin: 0 0 8px; }
.acc-films .btn-film { margin-bottom: 8px; text-align: left; font-size: .95rem; padding: 11px 14px; }
.film-titre { color: var(--creme); margin: 0 40px 10px 0; font-size: .95rem; }

/* Vote final (téléphone) */
.vote { border: 1px solid var(--sepia); background: rgba(0,0,0,.3); padding: 18px 16px; margin: 0 0 22px; }
.vote[hidden] { display: none; }
.vote h3 { font-family: var(--titre); font-weight: 400; font-size: 26px; margin: 4px 0 14px; color: var(--creme); }
.vote-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.vote-choix { background: var(--nuit-3, #1b1611); border: 1px solid var(--trait); color: var(--creme); padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; }
.vote-choix img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sepia); }
.vote-choix .n { font-family: var(--titre); font-size: 18px; }
.vote-choix .r { font-family: var(--machine); font-size: 12px; color: var(--sepia-pale); line-height: 1.25; }
.vote-choix.choisi { background: var(--papier); color: var(--encre); border-color: var(--rouge); }
.vote-choix.choisi .r { color: var(--encre); }
.vote-choix.choisi img { border-color: var(--rouge); }
.vote-choix:disabled { cursor: default; opacity: .75; }
.vote-choix.choisi:disabled { opacity: 1; }
/* Résultats du vote (projection) */
.vr-voix { font-family: var(--titre); color: var(--creme); font-size: clamp(26px, 3.2vw, 54px); margin-top: 10px; opacity: 0; transition: opacity .5s; }
.t-perso.vu .vr-voix { opacity: 1; }
.t-perso.cache img { filter: grayscale(1) brightness(.55); }
/* Écran d'accueil des invités */
.tirage.attente { flex-direction: row; justify-content: center; align-items: center; gap: 5vw; padding: 4vh 5vw; }
.at-affiche { height: 86vh; aspect-ratio: 2 / 3; overflow: hidden; border: 2px solid var(--sepia); box-shadow: 0 0 80px rgba(201,164,106,.25), 0 30px 80px rgba(0,0,0,.8); flex: none; max-width: 48vw; }
.at-affiche img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 40s ease-in-out infinite alternate, scintille 7s infinite; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -3%); } }
@keyframes scintille { 0%, 100% { filter: brightness(1); } 47% { filter: brightness(1); } 48% { filter: brightness(.82); } 50% { filter: brightness(1.04); } 52% { filter: brightness(.9); } 54% { filter: brightness(1); } }
.at-texte { text-align: left; max-width: 640px; }
.attente .tirage-h { font-size: clamp(48px, 8vw, 130px); margin-bottom: 18px; }
.at-accroche { font-family: var(--machine); color: var(--sepia-pale); font-size: clamp(16px, 1.8vw, 28px); line-height: 1.4; margin: 0 0 6vh; }
.at-label { text-transform: uppercase; letter-spacing: .25em; color: var(--sepia); font-size: clamp(12px, 1.2vw, 18px); margin: 0 0 10px; }
.at-compte { font-family: var(--titre); color: var(--creme); font-size: clamp(54px, 9vw, 150px); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(201,164,106,.35); }
.at-heure { display: flex; align-items: center; gap: 8px; color: var(--sepia-pale); font-size: 14px; }
.at-heure input { background: var(--nuit-3, #1b1611); color: var(--creme); border: 1px solid var(--trait); padding: 8px; font: inherit; }
@media (max-width: 800px) { .tirage.attente { flex-direction: column; } .at-affiche { height: 50vh; max-width: 90vw; } .at-texte { text-align: center; } }
@media (prefers-reduced-motion: reduce) { .at-affiche img { animation: none; } }
.lien-attente { display: block; margin: 18px 0 0; font-size: 13px; color: var(--sepia); opacity: .75; }
.attente { cursor: none; }
.attente .projo-fermer { cursor: pointer; }
.at-go { position: fixed; right: 22px; bottom: 18px; background: transparent; border: 1px solid rgba(201,164,106,.25); color: rgba(201,164,106,.45); font-family: var(--machine); font-size: 13px; padding: 8px 14px; cursor: pointer; }
.at-go:hover { color: var(--creme); border-color: var(--sepia); }
