/* =====================================================================
   THE GAME MASTER — 1.94.0 : Expérience 2.0
   L'Épreuve Zéro (plein écran, au-dessus du menu), la page du Pacte, le nouvel accueil.
   Mêmes couleurs et polices que le site (site.css) ; « prefers-reduced-motion » respecté partout.
   ===================================================================== */

/* ---------------------------------------------------------------- L'Épreuve Zéro */
body.v-zero { overflow: hidden; overscroll-behavior: none; }
body.v-zero .top, body.v-zero .foot, body.v-zero .tabbar, body.v-zero .mc-fab, body.v-zero .grain { visibility: hidden; }
/* le bandeau des cookies attend la page suivante : rien n'est déposé sans accord, et il ne cache pas l'épreuve */
body.v-zero .ck-bar, body.v-zero .as-launch, body.v-zero .as-panel { display: none !important; }
.zx { position: fixed; inset: 0; z-index: 86; overflow: hidden; overflow: clip; background: #000; color: var(--ink); touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.zx-stage { position: absolute; inset: 0; overflow: hidden; }
.zx-world, .zx-fg { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.zx-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.zx-lit, .zx-open { opacity: 0; transition: opacity 1.6s ease; }
.zx.lit .zx-lit { opacity: 1; }
.zx.opening .zx-open { opacity: 1; transition-duration: 2.2s; }
.zx-fg img { width: 100%; height: 100%; max-width: none; }
/* lueur de l'ampoule (au-dessus de la porte) et respiration de la lumière */
.zx-bulb { position: absolute; left: 50%; top: 15.4%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 40, 30, .34), rgba(255, 20, 10, .10) 55%, transparent 72%); mix-blend-mode: screen; pointer-events: none; animation: zx-breath 4.2s ease-in-out infinite; }
.zx.lit .zx-bulb { opacity: .55; }
.zx-bulb.pulse { animation: zx-pulse .9s ease-out; }
@keyframes zx-breath { 0%, 100% { opacity: .75; } 50% { opacity: 1; } 62% { opacity: .55; } 66% { opacity: .95; } }
@keyframes zx-pulse { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: brightness(2.2); } 100% { opacity: .8; transform: translate(-50%, -50%) scale(1.15); filter: none; } }
/* chiffres gravés (révélés par le courant ; tirés à chaque partie) */
.zx-digits { position: absolute; inset: 0; pointer-events: none; font: 400 1em/1 var(--serif); }
.zx-dig { position: absolute; transform: translate(-50%, -50%); color: rgba(210, 205, 196, .55); text-shadow: 0 -1px 0 rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .12); mix-blend-mode: hard-light; opacity: 0; transition: opacity 1.2s ease .6s, color .3s, text-shadow .3s; }
.zx.lit .zx-dig { opacity: .82; }
.zx-dig-sol { transform: translate(-50%, -50%) perspective(400px) rotateX(64deg) scale(1.6); }
.zx-dig-tuyau { transform: translate(-50%, -50%) scaleX(.78); font-size: .82em; }
.zx-dig.hit { color: #ff5b52; opacity: 1; text-shadow: 0 0 .35em rgba(255, 40, 30, .95), 0 0 1em rgba(255, 30, 20, .7); }
/* le faisceau rouge qui désigne un chiffre */
.zx-beam { position: absolute; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 60, 40, .75), rgba(255, 20, 10, .25) 55%, transparent 75%); mix-blend-mode: screen; }
.zx-beam.on { animation: zx-beam 1.35s ease-out; }
@keyframes zx-beam { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 70% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } }
/* poussière, vignette, flash rouge */
.zx-dust { position: absolute; inset: -10%; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 220, 200, .5), transparent 60%), radial-gradient(1.5px 1.5px at 70% 60%, rgba(255, 200, 180, .35), transparent 60%),
  radial-gradient(1px 1px at 45% 80%, rgba(255, 220, 200, .4), transparent 60%), radial-gradient(1px 1px at 85% 25%, rgba(255, 220, 200, .35), transparent 60%), radial-gradient(1.2px 1.2px at 10% 70%, rgba(255, 210, 190, .3), transparent 60%);
  background-size: 340px 340px, 420px 420px, 290px 290px, 510px 510px, 380px 380px; animation: zx-dust 38s linear infinite; }
@keyframes zx-dust { to { background-position: 340px -340px, -420px -420px, 290px -580px, -510px -510px, 380px -760px; } }
.zx-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 48%, transparent 48%, rgba(0, 0, 0, .55) 82%, rgba(0, 0, 0, .9)); }
.zx.flash .zx-stage::after { content: ""; position: absolute; inset: 0; background: rgba(200, 10, 10, .4); animation: zx-flash .7s ease-out forwards; pointer-events: none; }
@keyframes zx-flash { from { opacity: 1; } to { opacity: 0; } }
.zx.opening .zx-stage::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(255, 30, 20, .0), rgba(255, 20, 10, .0)); animation: zx-flood 3.4s ease-in forwards; }
@keyframes zx-flood { 60% { background: radial-gradient(ellipse at 50% 50%, rgba(255, 30, 20, .25), rgba(0, 0, 0, .1)); } 100% { background: radial-gradient(ellipse at 50% 50%, rgba(255, 40, 30, .55), rgba(60, 0, 0, .9)); } }

/* points d'intérêt */
.zx-hot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.zx-hot.on { opacity: 1; }
.zx-hot.hold .zx-h { pointer-events: none; opacity: 0; }
.zx-h { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; padding: 0; border: 0; border-radius: 50%; background: transparent; pointer-events: auto; cursor: pointer; color: var(--ink); transition: opacity .3s; }
.zx-h i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1.5px solid rgba(255, 235, 225, .75); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 0 12px rgba(255, 60, 50, .6); animation: zx-ring 2.6s ease-in-out infinite; }
.zx-h i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: rgba(255, 70, 60, .9); }
.zx-h span { position: absolute; left: 50%; top: calc(100% - 6px); transform: translateX(-50%); white-space: nowrap; padding: 3px 8px; font: 12px/1.3 var(--type); letter-spacing: .04em; color: var(--ink); background: rgba(0, 0, 0, .78); border: 1px solid rgba(255, 255, 255, .12); opacity: 0; transition: opacity .2s; pointer-events: none; }
.zx-h:hover span, .zx-h:focus-visible span { opacity: 1; }
.zx-h:focus-visible { outline: 2px solid var(--brass2); outline-offset: -6px; }
.zx-h.call i { border-color: #fff; animation: zx-call 1.1s ease-in-out infinite; }
.zx-h.call span { opacity: 1; }
@keyframes zx-ring { 0%, 100% { transform: scale(1); opacity: .65; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes zx-call { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 60, 50, .7); } 50% { transform: scale(1.5); box-shadow: 0 0 0 10px rgba(255, 60, 50, 0); } }
.zx-pan { position: absolute; top: 50%; z-index: 3; width: 44px; height: 64px; margin-top: -32px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .55); color: var(--ink); font: 30px/1 var(--serif); cursor: pointer; }
.zx-pan-l { left: max(6px, env(safe-area-inset-left)); } .zx-pan-r { right: max(6px, env(safe-area-inset-right)); }

/* barre du haut : chrono, indice, son, quitter */
.zx-hud { position: absolute; z-index: 6; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); background: linear-gradient(rgba(0, 0, 0, .78), transparent); pointer-events: none; }
.zx-hud > * { pointer-events: auto; }
.zx-clock { font: 400 26px/1 var(--serif); letter-spacing: .06em; color: var(--ink); text-shadow: 0 0 12px rgba(255, 30, 20, .5); min-width: 4ch; }
.zx-clock.low { color: var(--brass2); animation: zx-low 1s steps(2) infinite; }
@keyframes zx-low { 50% { opacity: .55; } }
.zx-hud-r { display: flex; gap: 6px; margin-left: auto; }
.zx-ic { display: inline-flex; align-items: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .6); color: var(--ink); font: 13px/1 var(--type); cursor: pointer; justify-content: center; }
.zx-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.zx-snd .x { display: none; } .zx-snd.off .x { display: inline; } .zx-snd.off .w { display: none; }
@media (max-width: 420px) { .zx-ic span { display: none; } }

/* messages, sous-titres, proposition d'indice */
.zx-say { position: absolute; z-index: 5; left: 50%; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 74px); transform: translate(-50%, 8px); width: min(560px, calc(100% - 32px)); margin: 0; padding: 12px 16px;
  font: 15px/1.5 var(--type); color: var(--ink); background: rgba(8, 4, 4, .86); border-left: 3px solid var(--brass); opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; }
.zx-say.on { opacity: 1; transform: translate(-50%, 0); }
.zx-sub { position: absolute; z-index: 7; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(640px, calc(100% - 32px)); margin: 0; text-align: center;
  font: 17px/1.4 var(--sans); color: #fff; text-shadow: 0 1px 2px #000, 0 0 8px #000; opacity: 0; transition: opacity .25s; pointer-events: none; }
.zx-sub.on { opacity: 1; }
.zx.cu .zx-sub { bottom: auto; top: calc(max(10px, env(safe-area-inset-top)) + 58px); font-size: 15px; }
.zx-close-cap.hl { color: var(--ink); animation: zx-in2 .4s ease-out; }
@keyframes zx-in2 { from { opacity: .2; } }
.zx-sub::before { content: "« "; } .zx-sub::after { content: " »"; }
.zx-tip { position: absolute; z-index: 8; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 60px); transform: translateX(-50%); width: min(460px, calc(100% - 24px)); padding: 14px 16px; background: rgba(10, 6, 6, .94); border: 1px solid var(--blood); box-shadow: 0 10px 40px rgba(0, 0, 0, .7); animation: zx-in .35s ease-out; }
.zx-tip p { margin: 0 0 10px; font: 15px/1.45 var(--type); }
.zx-tip-a { display: flex; gap: 8px; flex-wrap: wrap; }
.zx-tip-a .btn { min-height: 44px; }
@keyframes zx-in { from { opacity: 0; transform: translate(-50%, -8px); } }

/* gros plans */
.zx-close { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: calc(max(10px, env(safe-area-inset-top)) + 54px) max(12px, env(safe-area-inset-right)) calc(max(12px, env(safe-area-inset-bottom)) + 8px) max(12px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, .72); opacity: 0; transition: opacity .25s ease; }
.zx-close.on { opacity: 1; }
.zx-close-box { position: relative; width: min(92vw, calc(100dvh - 210px)); max-width: 760px; transform: scale(.96); transition: transform .3s ease; }
.zx-close.on .zx-close-box { transform: none; }
.zx-cf { position: relative; width: 100%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 60px rgba(0, 0, 0, .8); background: #000; }
.zx-cf > img { width: 100%; height: auto; display: block; }
.zx-cov { position: absolute; inset: 0; }
.zx-cov > * { position: absolute; }
.zx-layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.zx-lv-down { transition: opacity .14s ease; }
.zx-close-cap { margin: 0; max-width: 620px; text-align: center; font: 15px/1.45 var(--type); color: var(--dim); min-height: 1.45em; }
.zx-back { min-height: 44px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .7); color: var(--ink); font: 14px/1 var(--type); letter-spacing: .04em; cursor: pointer; }
.zx-lv button, .zx-key button, .zx-slot button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; border-radius: 6px; }
.zx-lv button:focus-visible, .zx-key button:focus-visible, .zx-slot button:focus-visible { outline: 2px solid var(--brass2); outline-offset: 2px; }
.zx-lv button:disabled { cursor: default; }
.zx-lv.shake { animation: zx-shake .4s; }
@keyframes zx-shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.zx-key.dn { animation: zx-key .18s ease-out; }
.zx-key.dn::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: rgba(255, 170, 90, .28); }
@keyframes zx-key { 50% { transform: scale(.94); } }
.zx-lcd { display: flex; align-items: center; justify-content: center; font: 400 clamp(14px, 4.4vw, 30px)/1 var(--mono); letter-spacing: .18em; color: #2a0d00; text-shadow: 0 0 2px rgba(255, 190, 120, .6); }
.zx-lcd.err { color: #7a0000; animation: zx-low .5s steps(2) 3; }
.zx-lcd.ok { color: #003a0e; }
.zx-crt { overflow: hidden; padding: 4.5% 5%; background: radial-gradient(ellipse at 50% 45%, #0b2414, #020a05 80%); border-radius: 10px; box-shadow: inset 0 0 30px rgba(0, 0, 0, .9); color: #6dff9a;
  font: 400 clamp(9px, 2.6vw, 17px)/1.45 var(--mono); text-shadow: 0 0 4px rgba(80, 255, 140, .8); display: flex; flex-direction: column; gap: 6px; }
.zx-crt::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); pointer-events: none; }
.zx-crt-t { white-space: pre-wrap; }
.zx-crt-b { align-self: flex-start; position: relative; z-index: 1; padding: 6px 4px; border: 0; background: transparent; color: #b6ffcb; font: inherit; text-shadow: inherit; cursor: pointer; animation: zx-low 1.2s steps(2) infinite; min-height: 44px; }
.zx-crt-b:focus-visible { outline: 1px solid #6dff9a; }
.zx-paper { display: flex; flex-direction: column; justify-content: center; gap: .35em; padding: 7% 8%; font: 400 clamp(11px, 3.6vw, 22px)/1.35 var(--type); color: #1d1712; }
.zx-paper p { margin: 0; }
.zx-paper-note { transform: rotate(-1.5deg); }
.zx-paper-note .big { font-size: 1.35em; }
.zx-paper-note .sig { align-self: flex-end; opacity: .7; }
.zx-paper-file { font-size: clamp(9px, 2.5vw, 15px); justify-content: flex-start; padding: 9% 9%; }
.zx-paper-file .stamp { align-self: flex-end; padding: 2px 8px; border: 2px solid rgba(150, 10, 10, .75); color: rgba(150, 10, 10, .85); transform: rotate(6deg); text-transform: uppercase; letter-spacing: .1em; }
.zx-paper-file .hand { margin-top: auto; font-style: italic; color: #5a0d0d; }

/* derrière la porte : le cadre et la pièce manquante */
.zx-beyond { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; background: #000; opacity: 0; transition: opacity 1.2s ease; }
.zx-beyond.on { opacity: 1; }
.zx-bey { width: min(94vw, calc(100dvh - 160px)); max-width: 820px; }
.zx-bey-cap { margin: 0; text-align: center; font: 17px/1.5 var(--type); max-width: 560px; }
.zx-slot { border-radius: 10%; }
.zx-slot::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255, 70, 60, .8); animation: zx-call 1.4s ease-in-out infinite; pointer-events: none; }
.zx-slot.done::before { display: none; }
.zx-piece { position: absolute; inset: 0; width: 100%; height: 100%; fill: #d11a26; filter: drop-shadow(0 0 10px rgba(255, 40, 30, .85)); opacity: 0; transform: translateY(160%) rotate(-24deg) scale(1.4); pointer-events: none; }
.zx-slot.done .zx-piece { animation: zx-piece 1.6s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes zx-piece { 0% { opacity: 0; transform: translateY(160%) rotate(-24deg) scale(1.4); } 40% { opacity: 1; } 80% { transform: translateY(0) rotate(0) scale(1.06); } 100% { opacity: 1; transform: none; filter: drop-shadow(0 0 22px rgba(255, 40, 30, 1)); } }

/* introduction */
.zx-intro { position: absolute; inset: 0; z-index: 11; display: flex; align-items: flex-start; justify-content: center; padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 30%, rgba(120, 0, 0, 0), #000 70%); transition: opacity .9s ease; overflow-y: auto; }
.zx-intro { background: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .92) 78%); }
.zx-intro::before { content: ""; position: absolute; inset: 0; background: #000; transition: opacity 3s ease; pointer-events: none; }
.zx-intro.lit::before, .zx-intro.all::before { opacity: 0; }
.zx-intro-in { position: relative; }
.zx-intro.gone { opacity: 0; pointer-events: none; }
.zx-intro-in { margin: auto 0; width: min(620px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.zx-logo { width: 54px; height: 54px; fill: var(--brass); filter: drop-shadow(0 0 14px rgba(209, 26, 38, .7)); opacity: 0; transition: opacity 1.2s ease .2s; }
.zx-intro.lit .zx-logo, .zx-intro.all .zx-logo { opacity: 1; }
.zx-t { display: flex; flex-direction: column; gap: 4px; font-size: clamp(30px, 8vw, 54px); opacity: 0; transition: opacity 1.2s ease .3s; }
.zx-intro.lit .zx-t, .zx-intro.all .zx-t { opacity: 1; }
.zx-k { color: var(--brass2); font-size: .5em; letter-spacing: .14em; }
.zx-line { margin: 0; font: 400 clamp(17px, 4.6vw, 23px)/1.45 var(--type); color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity 1.1s ease, transform 1.1s ease; }
.zx-line.on { opacity: 1; transform: none; }
.zx-line[data-line="3"] { color: #ffb3ad; }
.zx-go { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; opacity: 0; visibility: hidden; transition: opacity .8s ease; }
.zx-go.on { opacity: 1; visibility: visible; }
.zx-accept { min-height: 54px; padding: 14px 30px; font-size: 18px; letter-spacing: .08em; box-shadow: 0 0 30px rgba(209, 26, 38, .45); }
.zx-note { margin: 0; font: 13px/1.4 var(--type); color: var(--dim); letter-spacing: .06em; }
.zx-opts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.zx-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 14px/1.35 var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.zx-opt input { width: 22px; height: 22px; accent-color: var(--brass); flex: none; }
.zx-ear { margin: 0; display: flex; align-items: center; gap: 10px; max-width: 34em; font: 14px/1.4 var(--sans); color: var(--dim); text-align: left; }   /* 2.49.0 : casque et calme */
.zx-ear svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--brass2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.zx-alt { margin: 0; font-size: 14px; } .zx-alt a { display: inline-block; padding: 12px 10px; color: var(--dim); }   /* 1.94.1 : cible de 44 px */
.zx-prev { margin: 0; padding: 8px 12px; font-size: 13px; color: #ffd7a8; border: 1px dashed rgba(255, 200, 120, .5); }
.zx-skip { margin-top: 10px; min-height: 44px; padding: 8px 14px; border: 0; background: transparent; color: var(--dim); font: 13px/1 var(--type); text-decoration: underline; cursor: pointer; }

/* temps écoulé, quitter, réussite */
.zx-over, .zx-quitbox { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .82); }
.zx-over-in { width: min(480px, 100%); padding: 22px; text-align: center; background: #0b0606; border: 1px solid var(--blood); }
.zx-over-in h2 { font-size: 30px; margin-bottom: 10px; } .zx-over-in p { color: var(--dim); }
.zx-over-in .cta { justify-content: center; }
.zx-win { position: absolute; inset: 0; z-index: 13; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 35%, rgba(150, 8, 8, .55), #000 72%); opacity: 0; transition: opacity 1s ease; }
.zx-win.on { opacity: 1; }
.zx-win-in { width: min(560px, 100%); margin: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.zx-logo-win { opacity: 1; width: 72px; height: 72px; animation: zx-glow 2.4s ease-in-out infinite; }
@keyframes zx-glow { 50% { filter: drop-shadow(0 0 26px rgba(255, 40, 30, 1)); } }
.zx-win h2 { font-size: clamp(32px, 8vw, 52px); }
.zx-win-txt p { margin: 0 0 4px; font: 17px/1.5 var(--type); }
.zx-time { margin: 4px 0; font: 400 20px/1.2 var(--serif); letter-spacing: .06em; color: #ffb3ad; }
.zx-pact { width: 100%; padding: 16px; border: 1px solid var(--brass); background: rgba(20, 0, 0, .75); box-shadow: 0 0 40px rgba(209, 26, 38, .25); }
.zx-pact-k { margin: 0 0 8px; font: 400 22px/1.1 var(--serif); text-transform: uppercase; letter-spacing: .06em; color: var(--brass2); }
.zx-pact-msg p { margin: 0 0 4px; font: 15px/1.5 var(--type); color: var(--ink); }
.zx-pact-v { margin: 10px 0 0; font: 400 26px/1.1 var(--serif); text-transform: uppercase; }
.zx-pact-res { margin: 8px 0 0; font-size: 14px; color: var(--dim); } .zx-pact-res.ok { color: #9fe0b5; }
.zx-nopact { margin: 0; font-size: 14px; color: var(--dim); }
.zx-win-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.zx-win-cta .btn { min-height: 50px; }
.zx-again { margin: 0; font-size: 14px; } .zx-again a { color: var(--dim); }
.zx-nojs { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: #000; }

/* 2.48.0 — audit de l'Épreuve Zéro (ordinateur, téléphone, application installée) :
   - la barre du haut reste utilisable pendant un gros plan (avant : sous le voile du gros plan, « Indice » et « Séquence » ne répondaient pas) ;
   - les sous-titres passent devant le gros plan, la salle derrière la porte et « Le temps est écoulé » (avant : assombris ou cachés) ;
   - flèches haut et bas, à gauche, quand la salle dépasse l'écran en hauteur (ordinateur, téléphone en paysage) ;
   - textes des gros plans (terminal, note, dossier, écran du clavier) à la taille de l'image et non de la fenêtre (avant : sur un ordinateur, le
     terminal cachait le début de la consigne et le dossier débordait de la feuille) ; la note, plus haute que large, tient dans l'écran ;
   - téléphone en paysage : gros plan sur toute la hauteur, légende et « Retour » à côté (avant : image de 130 px, touches de 19 px). */
.zx-hud { z-index: 10; }
.zx-sub { z-index: 14; }
.zx-beyond { z-index: 11; }
.zx-pan-v { left: max(6px, env(safe-area-inset-left)); height: 54px; }
.zx-pan-u { margin-top: -118px; } .zx-pan-d { margin-top: 64px; }
.zx-pan-v span { display: inline-block; transform: rotate(90deg); } .zx-pan-d span { transform: rotate(-90deg); }
.zx[data-state="play"] .zx-stage { touch-action: none; }   /* glisser du doigt en hauteur aussi (avant : seul le glissement de côté arrivait au jeu) */
@supports (height: 1dvh) { .zx-close-box { container-type: inline-size; } }   /* sans dvh, la largeur du gros plan tombe : pas de conteneur (anciens Chromium, Samsung Internet) */
.zx.cu .zx-hud { background: none; }
.zx.cu .zx-sub { width: max-content; max-width: min(640px, calc(100% - 32px)); padding: 4px 12px; background: rgba(0, 0, 0, .62); }   /* sous-titre posé sur le haut de l'image : sur fond sombre */
.zx-close-box[data-kind="note"] { width: min(92vw, calc((100dvh - 210px) * 1100 / 1300)); }   /* l'image de la note est plus haute que large (1100 × 1300) */
.zx-crt { padding: 3% 4%; gap: 0; line-height: 1.3; font-size: clamp(5px, 2.65cqw, 17px); }   /* très petit écran : miniature entière (la consigne est recopiée en clair sous l'image) */
.zx-crt-b { position: static; min-height: 0; padding: 0; margin-top: .45em; text-align: left; }   /* la ligne « [ LANCER LA SÉQUENCE ] » ; la cible est tout l'écran du terminal : */
.zx-crt-b::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.zx-paper { font-size: clamp(8px, 3.9cqw, 22px); }
.zx-paper-file { font-size: clamp(7px, 2.7cqw, 15px); }
.zx-lcd { font-size: clamp(10px, 4.7cqw, 30px); }
.zx-cap-x { display: none; }   /* consigne du terminal recopiée sous l'image : seulement quand l'image est petite */
@media (max-width: 440px), (orientation: landscape) and (max-height: 520px) { .zx-cap-x { display: inline; color: var(--ink); } }
@media (max-width: 440px) and (orientation: portrait) { .zx-close-box[data-kind="terminal"] { width: min(92vw, calc(100dvh - 290px)); } }   /* place pour la consigne recopiée */
.zx-again a { display: inline-block; padding: 12px 10px; }   /* « Rejouer l'épreuve » : cible de 44 px */
/* écran de réussite sur un écran bas : « Récupérer ma récompense » visible sans faire défiler (avant : sous le bas de l'écran d'un iPhone SE) */
@media (max-height: 740px) {
  .zx-win-in { gap: 8px; } .zx-logo-win { width: 50px; height: 50px; } .zx-win h2 { font-size: clamp(26px, 7vw, 40px); }
  .zx-win-txt p { font-size: 15px; line-height: 1.4; } .zx-time { font-size: 18px; } .zx-pact { padding: 12px; } .zx-pact-k { font-size: 18px; margin-bottom: 4px; }
  .zx-pact-msg p { font-size: 14px; line-height: 1.4; } .zx-pact-v { font-size: 22px; margin-top: 6px; } .zx-win-cta .btn { min-height: 46px; }
}
/* 2.49.0 — petit écran : gros plans du terminal et du dossier rapprochés, leur texte grandit avec l'image (×1,4 et ×1,28) ;
   iPhone SE et plus petit : écran de réussite encore resserré */
@media (max-width: 440px), (orientation: landscape) and (max-height: 520px) {
  .zx-close-box[data-kind="terminal"], .zx-close-box[data-kind="dossier"] { overflow: hidden; }
  .zx-close-box[data-kind="terminal"] .zx-cf { transform: scale(1.4); transform-origin: 50% 44%; }
  .zx-close-box[data-kind="dossier"] .zx-cf { transform: scale(1.28); transform-origin: 52.4% 52.4%; }
}
@media (max-height: 560px) and (orientation: portrait) {
  .zx-win { padding-top: max(14px, env(safe-area-inset-top)); } .zx-logo-win { display: none; } .zx-win h2 { font-size: 24px; }
  .zx-win-txt p { font-size: 14px; line-height: 1.35; margin-bottom: 2px; } .zx-pact-msg p { font-size: 13px; line-height: 1.35; }
}
/* 2.62.3 : l'introduction entière sans faire défiler sur un écran de portable (fenêtre de 650 à 760 px de haut) et sur un iPhone dans
   Safari : un peu moins d'air au-dessus, au-dessous et entre les lignes (les options restent l'une sous l'autre, alignées) */
@media (min-height: 521px) and (max-height: 760px) {
  .zx-intro { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .zx-intro-in { gap: 10px; } .zx-logo { width: 44px; height: 44px; } .zx-go { gap: 10px; margin-top: 4px; } .zx-opts { gap: 2px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .zx-ic span { display: none; }
  /* introduction : « J'accepte l'épreuve » visible sans faire défiler */
  .zx-intro { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .zx-intro-in { gap: 8px; } .zx-intro .zx-logo { display: none; } .zx-t { font-size: clamp(24px, 5vw, 34px); }
  .zx-line { font-size: 16px; } .zx-go { gap: 8px; margin-top: 2px; } .zx-accept { min-height: 48px; padding: 10px 26px; }
  .zx-opts { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 18px; row-gap: 0; } .zx-opt { min-height: 40px; }
  .zx-skip { margin-top: 0; }
  .zx-say { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 40px); }
  .zx-close { --zxB: min(calc(100vh - 20px), 54vw); --zxB: min(calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 54vw); display: grid; grid-template-columns: var(--zxB) minmax(0, 230px);
    grid-template-rows: 1fr auto auto 1fr; column-gap: 18px; row-gap: 10px; align-content: center; justify-content: center; align-items: center;
    padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(84px, calc(env(safe-area-inset-left) + 12px)); }   /* à gauche : la place du chronomètre */
  .zx-close-box { grid-column: 1; grid-row: 1 / 5; width: var(--zxB); max-width: none; justify-self: center; }
  .zx-close-box[data-kind="note"] { width: calc(var(--zxB) * 1100 / 1300); }
  .zx-close-cap { grid-column: 2; grid-row: 2; text-align: left; }
  .zx-back { grid-column: 2; grid-row: 3; justify-self: start; }
  .zx.cu .zx-sub { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); left: auto; right: max(12px, env(safe-area-inset-right)); transform: none; width: min(230px, 32vw); text-align: left; font-size: 14px; }
  .zx-beyond { flex-direction: row; gap: 20px; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .zx-bey { width: min(calc(100vh - 24px), 58vw); width: min(calc(100dvh - 24px), 58vw); flex: none; }
  .zx-bey-cap { max-width: 34vw; text-align: left; }
  .zx.bey .zx-sub { left: auto; right: max(16px, env(safe-area-inset-right)); transform: none; width: 34vw; text-align: left; bottom: max(10px, env(safe-area-inset-bottom)); }
  /* réussite : deux colonnes (texte à gauche, Pacte et boutons à droite), « Récupérer ma récompense » visible sans faire défiler */
  .zx-win { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .zx-win-in { width: min(920px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; row-gap: 6px; align-items: center;
    grid-template-areas: "logo pact" "t pact" "txt pact" "time cta" "again cta" "pt pt"; }
  .zx-logo-win { grid-area: logo; justify-self: center; width: 40px; height: 40px; } .zx-win h2 { grid-area: t; font-size: clamp(24px, 4.4vw, 34px); } .zx-win-txt { grid-area: txt; } .zx-time { grid-area: time; }
  .zx-pact, .zx-nopact { grid-area: pact; } .zx-win-cta { grid-area: cta; } .zx-again { grid-area: again; } .zx-pt { grid-area: pt; }
  .zx-win-txt p { font-size: 14px; }
  .zx-win.solo .zx-win-in { width: min(560px, 100%); grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "t" "txt" "time" "cta" "again" "pt"; }
}
@supports not (height: 1dvh) { @media (orientation: landscape) and (max-height: 520px) { .zx-close { --zxB: min(calc(100vh - 20px), 54vw); } } }   /* iOS 15.0 à 15.3 */

/* mouvements réduits : rien ne bouge tout seul */
@media (prefers-reduced-motion: reduce) {
  .zx-bulb, .zx-dust, .zx-h i, .zx-h.call i, .zx-clock.low, .zx-crt-b, .zx-slot::before, .zx-logo-win { animation: none !important; }
  .zx-line, .zx-go, .zx-intro, .zx-win, .zx-beyond, .zx-close, .zx-lit, .zx-open { transition-duration: .01s !important; }
  .zx-slot.done .zx-piece { animation: none; opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Le Pacte (page /epreuve-zero/recompense) */
.zr { max-width: 640px; margin: 0 auto; padding-block: clamp(32px, 7vw, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.zr-piece { width: 64px; height: 64px; fill: var(--brass); filter: drop-shadow(0 0 16px rgba(209, 26, 38, .6)); }
.zr h1 { font-size: clamp(32px, 7vw, 54px); }
.zr-lede { margin: 0; font: 17px/1.55 var(--type); }
.zr-card { width: 100%; padding: 18px; border: 1px solid var(--brass); background: linear-gradient(#140405, #0a0203); }
.zr-amount { margin: 0; font: 400 clamp(40px, 10vw, 64px)/1 var(--serif); color: var(--brass2); }
.zr-what { margin: 4px 0 10px; font: 400 18px/1.2 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.zr-note { margin: 6px 0 0; color: var(--dim); font-size: 15px; }
.zr-code { margin: 10px 0 0; font-size: 14px; color: var(--dim); } .zr-code b { color: var(--ink); font-family: var(--mono); letter-spacing: .08em; }
.zr-used .zr-amount, .zr-expired .zr-amount, .zr-revoked .zr-amount { color: var(--dim); text-decoration: line-through; }
.zr-msg { margin: 0; padding: 10px 14px; border-left: 3px solid var(--brass); background: var(--bg2); text-align: left; }
.zr-alt, .zr-terms { margin: 0; font-size: 14px; color: var(--dim); }
.zr .cta { justify-content: center; }

/* ---------------------------------------------------------------- Le nouvel accueil (home2) */
.v-home2 .top { position: absolute; left: 0; right: 0; z-index: 6; background: linear-gradient(rgba(0,0,0,.85), transparent); border-bottom: 0; }
.xh-wrap { width: min(1180px, 100%); margin: 0 auto; padding-inline: max(var(--gut), env(safe-area-inset-left)) max(var(--gut), env(safe-area-inset-right)); }
.xh-prev { position: relative; z-index: 7; margin: 0; padding: 8px var(--gut); font-size: 13px; text-align: center; color: #ffd7a8; background: #241405; border-bottom: 1px solid #5a3a12; }
.xh-p { color: #d2cbbd; font-size: 17px; line-height: 1.6; max-width: 62ch; }
.xh-sec { padding-block: clamp(56px, 9vw, 120px); border-top: 1px solid #141416; position: relative; overflow-x: clip; }
.xh-sec h2 { font-size: clamp(32px, 5.4vw, 64px); margin-bottom: 18px; }
.xh-sec h2 em { color: var(--brass); font-style: normal; }
/* héros */
main > section.xh-hero { animation: none; }   /* 2.63.0 (PageSpeed) : le haut de l'accueil est là dès le premier affichage (le fondu d'entrée des sections du site le cachait : titre et image comptés 0,5 à 1 s plus tard) */
.xh-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--top-h, 70px) + 40px) 0 clamp(36px, 7vh, 80px); }
.xh-bg { position: absolute; inset: 0; z-index: -1; }
.xh-bg-img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; object-position: 50% 40%; transform: scale(1.04); animation: xh-drift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes xh-drift { to { transform: scale(1.12) translate(0, -1.5%); } }
.xh-glow { position: absolute; left: 50%; top: 12%; width: min(90vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 30, 20, .32), rgba(255, 20, 10, .08) 55%, transparent 72%); mix-blend-mode: screen; animation: zx-breath 5s ease-in-out infinite; }
.xh-slit { position: absolute; left: 50%; top: 18%; bottom: 30%; width: 2px; transform: translateX(-50%) scaleY(.2); background: linear-gradient(transparent, rgba(255, 60, 40, .9), transparent); box-shadow: 0 0 22px 6px rgba(255, 30, 20, .55); opacity: 0; transition: opacity 1.2s ease, transform 1.6s ease; }
.xh-hero.open .xh-slit { opacity: .9; transform: translateX(-50%) scaleY(1); }
.xh-dust { position: absolute; inset: 0; opacity: .45; background-image: radial-gradient(1px 1px at 22% 30%, rgba(255,220,200,.6), transparent 60%), radial-gradient(1.4px 1.4px at 72% 62%, rgba(255,200,180,.4), transparent 60%), radial-gradient(1px 1px at 46% 78%, rgba(255,220,200,.45), transparent 60%);
  background-size: 300px 300px, 420px 420px, 260px 260px; animation: zx-dust 40s linear infinite; }
/* 2.63.0 (PageSpeed, « animation non composée ») : la poussière du haut de l'accueil glisse par transform (le processeur graphique la
   déplace sans repeindre la page) au lieu de background-position ; couche plus grande que l'écran, aller-retour lent, sans saut */
.xh-dust { inset: -160px; animation: xh-dust 40s ease-in-out infinite alternate; will-change: transform; }
@keyframes xh-dust { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-90px, -150px, 0); } }
.xh-fade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.05) 30%, rgba(0,0,0,.55) 62%, #000 98%); }
.xh-hero-in { width: min(1180px, 100%); margin: 0 auto; padding-inline: max(var(--gut), env(safe-area-inset-left)) max(var(--gut), env(safe-area-inset-right)); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.xh-logo { width: 58px; height: 58px; fill: var(--brass); filter: drop-shadow(0 0 16px rgba(209, 26, 38, .75)); }
.xh-hero h1 { display: flex; flex-direction: column; gap: 10px; }
.xh-k { font-family: var(--type); font-size: 13px; letter-spacing: .24em; color: var(--brass-sm); text-transform: uppercase; }
.xh-title { font-size: clamp(44px, 10.5vw, 128px); line-height: .92; text-shadow: 0 4px 30px rgba(0,0,0,.8); }
.xh-sub { margin: 0; font: 400 clamp(20px, 3.4vw, 32px)/1.25 var(--type); color: #ffb3ad; }
.xh-text { margin: 0; max-width: 56ch; color: #e1dbcf; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.55; text-shadow: 0 2px 10px #000; }
.xh-cta { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-start; margin-top: 10px; }
.xh-cta1 { display: flex; flex-direction: column; gap: 8px; }
.xh-cta1 small { font: 13px/1.3 var(--type); color: var(--dim); letter-spacing: .05em; text-align: center; }
.xh-go { box-shadow: 0 0 34px rgba(209, 26, 38, .5); }
.xh-back { color: var(--dim); font-size: 14px; text-decoration: none; } .xh-back:hover { color: var(--ink); }
.xh-whisper { position: absolute; right: max(var(--gut), env(safe-area-inset-right)); bottom: 18px; margin: 0; font: 13px/1.4 var(--type); color: rgba(255, 179, 173, .75); opacity: 0; transition: opacity 1.2s; pointer-events: none; max-width: 36ch; text-align: right; }
.xh-whisper.on { opacity: 1; }
/* l'épreuve */
.xh-zero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.xh-zero-art { position: relative; display: block; aspect-ratio: 1; overflow: visible; }
.xh-zero-art img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 0 1px #1d1d20; filter: saturate(.9) contrast(1.05); }
.xh-file { position: absolute; right: -6%; bottom: -8%; width: 62%; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #d9cfb8; color: #1d1712; font: 13px/1.4 var(--type); transform: rotate(-4deg) translateY(10%); box-shadow: 0 18px 40px rgba(0,0,0,.6); transition: transform .5s ease; }
.xh-file b { color: #8a0e0e; letter-spacing: .14em; text-transform: uppercase; border: 2px solid rgba(138, 14, 14, .7); align-self: flex-start; padding: 0 6px; transform: rotate(-2deg); }
.xh-zero-art:hover .xh-file, .xh-zero-in.seen .xh-file { transform: rotate(-2deg) translateY(0); }
.xh-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 6px 0 22px; padding: 0; }
.xh-facts li { display: flex; flex-direction: column; } .xh-facts b { font: 400 34px/1 var(--serif); color: var(--brass2); } .xh-facts span { font-size: 13px; color: var(--dim); }
.xh-pact { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 12px 14px; border: 1px solid var(--blood); background: rgba(40, 2, 4, .6); }
.xh-pact svg { width: 30px; height: 30px; fill: var(--brass); flex: none; }
/* les affaires (jeux) */
.xh-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 22px; margin-top: 26px; }
.xh-case { position: relative; display: flex; flex-direction: column; background: linear-gradient(#0d0b0b, #060505); border: 1px solid #1d1a1a; transform-style: preserve-3d; transition: transform .25s ease, border-color .25s; }
.xh-case:hover { border-color: #3a1013; }
.xh-case-art { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #0a0a0a; }
.xh-case-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.xh-case:hover .xh-case-art img { transform: scale(1.05); }
.xh-stamp { position: absolute; left: 12px; top: 12px; padding: 2px 8px; border: 2px solid rgba(209, 26, 38, .85); color: #ff6b6b; font: 12px/1.4 var(--type); letter-spacing: .16em; text-transform: uppercase; transform: rotate(-6deg); background: rgba(0,0,0,.55); }
.xh-case-b { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; }
.xh-case h3 { font-size: 26px; } .xh-case h3 a { text-decoration: none; }
.xh-tag { margin: 0; color: #d2cbbd; font: 15px/1.45 var(--type); } .xh-tag em { color: var(--brass2); font-style: normal; }
.xh-meta, .xh-modes { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--dim); }
.xh-mode { padding: 2px 8px; border: 1px solid #2a2a2e; color: var(--ink); font-size: 12px; }
.xh-price { margin: 2px 0 0; font: 400 22px/1 var(--serif); } .xh-price s { color: var(--dim); font-size: .7em; margin-left: 6px; }
.xh-case-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.xh-case-a .btn { min-height: 44px; padding: 10px 14px; font-size: 13px; }
.xh-teaser { align-self: flex-start; min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--dim); font: 14px/1 var(--type); cursor: pointer; }
.xh-teaser:hover { color: var(--ink); }
/* comment ça marche */
.xh-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; margin: 26px 0; padding: 0; }
.xh-steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid #1d1d20; background: #08080a; }
.xh-steps li::before { content: counter(s, upper-roman); font: 400 28px/1 var(--serif); color: var(--brass); }
.xh-steps b { font: 400 22px/1.1 var(--serif); text-transform: uppercase; } .xh-steps span { color: var(--dim); font-size: 15px; }
/* immersion */
.xh-imm-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.xh-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.xh-feat li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--blood); }
.xh-feat b { font: 400 22px/1.1 var(--serif); text-transform: uppercase; } .xh-feat span { color: var(--dim); }
.xh-tv { position: relative; margin: 0; aspect-ratio: 9 / 16; max-height: 78vh; background: #000; border: 1px solid #1d1d20; overflow: hidden; justify-self: center; width: min(100%, 420px); }
.xh-tv img, .xh-tv video { width: 100%; height: 100%; object-fit: cover; }
.xh-tv-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(209, 26, 38, .85); color: #fff; cursor: pointer; box-shadow: 0 0 40px rgba(209, 26, 38, .6); }
.xh-tv-play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
/* défi du jour */
.xh-daily-card { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--blood); background: radial-gradient(ellipse at 20% 0%, rgba(122, 10, 18, .35), transparent 60%), #070606; }
.xh-note { color: var(--dim); font-size: 13px; }
/* avis */
.xh-avg { color: var(--dim); font-size: 14px; }
.xh-revs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin: 24px 0 12px; }
.xh-q { margin: 0; padding: 18px; border: 1px solid #1d1d20; background: #08080a; display: flex; flex-direction: column; gap: 10px; }
.xh-stars { margin: 0; color: var(--brass2); letter-spacing: .1em; }
.xh-q blockquote { margin: 0; font: 15px/1.55 var(--type); color: #e1dbcf; }
.xh-q figcaption { color: var(--dim); font-size: 13px; } .xh-q figcaption a { color: inherit; }
/* 2.42.0 : la photo de profil (sinon l'initiale) à côté du pseudo */
.xh-q figcaption .pl-av { width: 26px; height: 26px; margin-right: 8px; vertical-align: middle; } .xh-q figcaption .pl-ini { font: 400 12px/1 var(--serif); color: var(--ink); text-transform: uppercase; } .xh-q figcaption .pl-ini::before { content: attr(data-i); }
.xh-q figcaption .pl-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
/* dernière invitation */
.xh-last { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(90px, 16vw, 200px); text-align: center; border-top: 1px solid #141416; }
.xh-last-bg { position: absolute; inset: 0; z-index: -1; }
.xh-last-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(1.1); }
.xh-last-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.2), #000 78%); }
.xh-last-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.xh-last h2 { font-size: clamp(38px, 7vw, 92px); }
.xh-last .xh-cta { justify-content: center; }
/* apparitions au défilement */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
body.xh-leaving main, body.xh-leaving .top, body.xh-leaving .tabbar, body.xh-leaving .foot { opacity: 0; transition: opacity .6s ease; }
body.xh-leaving::after { content: ""; position: fixed; inset: 0; z-index: 99; background: radial-gradient(ellipse at 50% 35%, rgba(120, 0, 0, .25), #000 65%); animation: zx-in2 .6s ease-out; pointer-events: none; }
.xh-vid { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.92); }
.xh-vid video { max-width: 100%; max-height: 86vh; }
.xh-vid button { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); min-width: 44px; min-height: 44px; border: 1px solid rgba(255,255,255,.3); background: #000; color: #fff; font-size: 22px; cursor: pointer; }
@media (max-width: 760px) {
  .xh-hero { align-items: flex-end; padding-bottom: calc(var(--tab-h, 64px) + 28px); }
  .xh-bg-img { object-position: 50% 30%; }
  .xh-cta, .xh-cta1 { width: 100%; } .xh-cta .btn { flex: 1 1 100%; }
  .xh-zero-in, .xh-imm-in { grid-template-columns: 1fr; }
  .xh-zero-art { width: min(100%, 420px); margin: 0 auto 30px; }
  .xh-file { right: 0; width: 70%; }
  .xh-whisper { display: none; }
}
/* 1.94.1 — petits écrans de téléphone (iPhone SE, affichage agrandi) : le bouton de l'épreuve tient dans le premier écran, au-dessus de la barre d'onglets */
@media (max-width: 760px) and (max-height: 640px) {
  .xh-hero .xh-logo { display: none; }
  .xh-hero { padding-top: calc(var(--top-h, 70px) + 16px); }
  .xh-hero-in { gap: 10px; } .xh-hero h1 { gap: 6px; }
  .xh-sub { font-size: 18px; }
  .xh-text { font-size: 15px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .xh-bg-img, .xh-glow, .xh-dust { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .xh-case, .xh-file, .xh-case-art img { transition: none; }
}

/* ---------------------------------------------------------------- 2.61.0 — refonte de l'accueil (maquette validée le 06/11/2026) */
/* haut de page : le texte à gauche, l'affaire mise en avant à droite (ordinateur) ou dessous, en ligne (téléphone) */
.xh-hero-in { align-items: stretch; }
.xh-hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
@media (min-width: 1024px) { .xh-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: end; } .xh-hero-in .xh-title { font-size: clamp(56px, 7.4vw, 112px); } }   /* deux lignes de titre à côté de l'affaire mise en avant */
.xh-proof { list-style: none; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 10px 34px; }
.xh-proof li { display: flex; align-items: baseline; gap: 8px; }
.xh-proof b { font: 400 28px/1 var(--serif); color: #fff; letter-spacing: .01em; }
.xh-proof span { font-size: 14px; color: #b9b3a8; }
.xh-star { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: rgba(11, 11, 12, .92); border: 1px solid #3a1a1d; box-shadow: 0 30px 80px rgba(209, 26, 38, .22); transition: border-color .25s ease, transform .25s ease; }
.xh-star:hover, .xh-star:focus-visible { border-color: var(--brass); transform: translateY(-3px); }
.xh-star-art { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #0a0a0a; }
.xh-star-art img { width: 100%; height: 100%; object-fit: cover; }
.xh-star-b { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; min-width: 0; }
.xh-star-k { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-sm); }
.xh-star-t { font: 400 22px/1.08 var(--serif); text-transform: uppercase; }
.xh-star-go { margin-top: 4px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-sm); }
@media (max-width: 1023px) {
  .xh-star { flex-direction: row; align-items: center; gap: 14px; padding: 10px; width: 100%; max-width: 520px; }
  .xh-star-art { flex: none; width: 76px; }
  .xh-star-b { padding: 0; gap: 3px; }
  .xh-star-t { font-size: 18px; }
  .xh-star-go { display: none; }
  .xh-star::after { content: "›"; margin-left: auto; padding: 0 6px; color: var(--brass2); font-size: 24px; line-height: 1; }
}
/* la bande « bon à savoir » */
.xh-know { border-top: 1px solid #141416; border-bottom: 1px solid #141416; background: #060607; }
.xh-know-l { list-style: none; margin: 0 auto; padding-block: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; }
.xh-know-l li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; color: #c9c4ba; min-width: 0; }
.xh-know-l svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--brass2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .xh-know-l { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 16px; gap: 12px 14px; } .xh-know-l li { font-size: 13px; gap: 9px; } .xh-know-l svg { width: 19px; height: 19px; } }
/* les affaires : filtres, une action principale par carte */
.xh-flt { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.xh-flt[hidden] { display: none; }
.xh-flt button { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: var(--ink); font: 14px/1 var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.xh-flt button:hover { border-color: rgba(255, 255, 255, .5); }
.xh-flt button[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: #fff; }
.xh-flt button span { opacity: .75; }
.xh-flt button[aria-pressed="true"] span { opacity: 1; }   /* 2.63.0 (PageSpeed, contraste) : le nombre sur le bouton rouge, en blanc plein (75 % : 3,5:1, trop pâle) */
.xh-case[hidden] { display: none; }
.xh-case-img { display: block; width: 100%; height: 100%; }
.xh-flag, .xh-pchip { position: absolute; pointer-events: none; }
.xh-flag { left: 12px; top: 12px; padding: 6px 10px; background: var(--brass); color: #fff; font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.xh-pchip { right: 12px; bottom: 12px; padding: 7px 10px; background: rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font: 600 15px/1 var(--sans); }
.xh-pchip s { margin-left: 6px; color: #b9b3a8; font-weight: 400; font-size: 12px; }
.xh-case-art .xh-teaser { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; background: rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font: 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.xh-case-art .xh-teaser svg { width: 12px; height: 12px; fill: currentColor; }
.xh-case-art .xh-teaser:hover { border-color: var(--brass2); color: #fff; }
.xh-case .xh-meta, .xh-star .xh-meta { gap: 2px 0; font-size: 13px; color: #b9b3a8; }
.xh-meta > span + span::before { content: "·"; margin: 0 7px; color: #6b6760; }
.xh-case-a { align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: auto; padding-top: 6px; }
.xh-case-b { flex: 1; }
.xh-alt { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink); text-underline-offset: 3px; } .xh-alt:hover { color: var(--brass2); }
.xh-all { margin: 26px 0 0; }
@media (min-width: 900px) { .xh-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* ordinateur et tablette en paysage : 3 affiches par rangée */
@media (min-width: 641px) and (max-width: 899px) { .xh-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* tablette en portrait : 2 */
@media (max-width: 640px) {
  .xh-flt { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .xh-flt::-webkit-scrollbar { display: none; }
  .xh-flt button { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .xh-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin-top: 18px; }
  .xh-case { background: none; border: 0; }
  .xh-case-art { border: 1px solid #1d1a1a; }
  .xh-case-b { padding: 10px 0 0; gap: 4px; }
  .xh-case h3 { font-size: 17px; line-height: 1.1; }
  .xh-case .xh-tag, .xh-case-a, .xh-x, .xh-case-art .xh-teaser { display: none; }
  .xh-case .xh-meta { font-size: 12px; }
  .xh-meta > span + span::before { margin: 0 5px; }
  .xh-flag { left: 6px; top: 6px; padding: 5px 6px; font-size: 12px; letter-spacing: .04em; }
  .xh-pchip { right: 6px; bottom: 6px; padding: 4px 6px; font-size: 12px; }
  .xh-pchip s { display: none; }
  .xh-all .btn { width: 100%; }
}
/* comment ça marche (réuni avec l'expérience) : 3 étapes et la bande-annonce, puis les 4 façons de jouer */
.xh-how-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 26px; }
.xh-steps3 { list-style: none; counter-reset: s3; margin: 0; padding: 0; display: grid; gap: 22px; }
.xh-steps3 li { counter-increment: s3; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; }
.xh-steps3 li::before { content: counter(s3); grid-row: span 2; font: 400 34px/1 var(--serif); color: var(--brass); }
.xh-steps3 b { font-size: 18px; color: #fff; } .xh-steps3 span { color: #b9b3a8; line-height: 1.55; }
.xh-how .xh-tv { aspect-ratio: 16 / 9; width: 100%; max-height: none; justify-self: stretch; } .xh-how .xh-tv-play { top: 80%; }   /* sous le slogan de l'image */
.xh-modes4 { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.xh-modes4 li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid #1d1d20; background: #08080a; min-width: 0; }
.xh-modes4 b { font: 400 21px/1.1 var(--serif); text-transform: uppercase; } .xh-modes4 span { color: #b9b3a8; font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) {
  .xh-how-in { grid-template-columns: minmax(0, 1fr); }
  .xh-how .xh-tv { order: -1; }
  .xh-modes4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  .xh-modes4 li { padding: 14px; } .xh-modes4 b { font-size: 18px; } .xh-modes4 span { font-size: 13px; }
}
/* en ce moment : défi du jour, tournoi, prochaine sortie */
.xh-now-l { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 18px; margin-top: 26px; }
.xh-now-c { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 28px); border: 1px solid #1d1d20; background: #08080a; min-width: 0; }
.xh-now-c .eyebrow { margin: 0; }
.xh-now-c h3 { margin: 0; font: 400 28px/1.05 var(--serif); text-transform: uppercase; }
.xh-now-p { margin: 0; color: #b9b3a8; font-size: 15px; line-height: 1.55; }
.xh-now-c .xh-note { margin: 0; }
.xh-now-c .btn { margin-top: auto; align-self: flex-start; }
.xh-now-daily { border-color: var(--blood); background: radial-gradient(ellipse at 20% 0%, rgba(122, 10, 18, .35), transparent 60%), #070606; }
/* 2.62.2 — la prochaine sortie : l'affiche entière, jamais rognée (une affiche 2:3 en 16:9 ne montrait que le buste), posée sur un fond
   tiré d'elle-même (flou, sombre) ; une affiche en hauteur (.is-tall) passe à côté du texte dès que la carte fait 460 px de large. */
.xh-now-soon { padding: 0; overflow: hidden; gap: 0; container-type: inline-size; }
.xh-now-in { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.xh-now-art { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: #050506; border-bottom: 1px solid #1d1d20; }
.xh-now-soon.is-tall .xh-now-art { aspect-ratio: 5 / 4; }
.xh-now-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.xh-now-art .xh-now-bg { object-fit: cover; filter: blur(20px) brightness(.36) saturate(1.15); transform: scale(1.18); }
.xh-now-art .xh-now-img { object-fit: contain; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .65)); }
.xh-now-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 70px rgba(0, 0, 0, .55); pointer-events: none; }
.xh-now-txt { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px); }
.xh-now-txt .eyebrow { text-wrap: balance; }   /* « Prochainement · date à venir » coupé en deux moitiés, pas un mot seul en bas */
@container (min-width: 460px) {
  .xh-now-soon.is-tall .xh-now-in { flex-direction: row; }
  .xh-now-soon.is-tall .xh-now-art { aspect-ratio: auto; width: clamp(190px, 40%, 300px); min-height: 330px; border-bottom: 0; border-right: 1px solid #1d1d20; }
  .xh-now-soon.is-tall .xh-now-txt { padding: clamp(22px, 3vw, 30px); }
}
.xh-now-more { margin: 18px 0 0; font-size: 14px; } .xh-now-more a { color: var(--brass-sm); }
@media (max-width: 640px) {
  .xh-now-l { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); gap: 12px; }
  .xh-now-l::-webkit-scrollbar { display: none; }
  .xh-now-c { flex: 0 0 84%; scroll-snap-align: start; }
  .xh-now-c h3 { font-size: 24px; }
}
/* avis : la note en grand, 3 avis */
.xh-rev-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.xh-rev-h h2 { margin-bottom: 8px; }
.xh-score { margin: 6px 0 0; } .xh-score b { font: 400 72px/1 var(--serif); color: #fff; } .xh-score span { font: 400 28px/1 var(--serif); color: var(--dim); }
.xh-rev-h .xh-stars { font-size: 20px; margin: 4px 0 8px; }
.xh-rev .xh-revs { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); margin: 0; }
@media (max-width: 900px) {
  .xh-rev-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .xh-score b { font-size: 56px; }
  .xh-rev .xh-revs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); gap: 12px; }
  .xh-rev .xh-revs::-webkit-scrollbar { display: none; }
  .xh-rev .xh-q { flex: 0 0 84%; scroll-snap-align: start; }
}
/* questions fréquentes : l'essentiel, puis l'aide */
.xh-faq-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.xh-faq-h h2 { margin-bottom: 12px; }
.xh-faq-h .xh-note { font-size: 15px; } .xh-faq-h .xh-note a, .xh-faq-more a { color: var(--brass-sm); }
.xh-faq-more { margin: 18px 0 0; font-size: 14px; color: var(--dim); }
@media (max-width: 900px) { .xh-faq-in { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .xh-star { transition: none; } .xh-star:hover, .xh-star:focus-visible { transform: none; } }
/* téléphone : le bouton de l'épreuve plus haut dans le premier écran (au-dessus du bandeau des cookies à la première visite) ; la pièce du logo
   est déjà dans l'en-tête ; sur un petit écran (iPhone SE, 8…), l'accroche de la régie passe sous la ligne de flottaison… en restant dans la page */
@media (max-width: 760px) { .xh-hero .xh-logo { display: none; } .xh-hero { padding-top: calc(var(--top-h, 70px) + 16px); } }
@media (max-width: 760px) and (max-height: 700px) { .xh-hero .xh-text { display: none; } }
/* téléphone couché (écran de moins de 500 px de haut) : un haut de page compact, le titre sur une ligne, le bouton de l'épreuve dans le premier écran */
@media (orientation: landscape) and (max-height: 500px) {
  .xh-hero { min-height: 0; align-items: flex-start; padding: calc(max(var(--top-h, 0px), 64px) + 10px) 0 24px; }   /* l'en-tête (posé sur l'image) fait 52 à 70 px de haut */
  .xh-hero .xh-logo, .xh-hero .xh-text, .xh-whisper { display: none; }
  .xh-hero h1 { gap: 4px; } .xh-hero .xh-k { font-size: 12px; }
  .xh-hero .xh-title, .xh-hero-in .xh-title { font-size: clamp(28px, 5.4vw, 44px); line-height: 1; }
  .xh-sub { font-size: 17px; }
  .xh-hero-main { gap: 10px; }
  .xh-cta, .xh-cta1 { width: auto; } .xh-cta { flex-wrap: nowrap; align-items: center; margin-top: 2px; } .xh-cta .btn { flex: 0 1 auto; min-height: 44px; padding: 10px 16px; font-size: 12px; }
  .xh-cta1 small { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) and (max-width: 760px) { .xh-hero .xh-k { display: none; } .xh-hero { padding-top: calc(var(--top-h, 52px) + 8px); } }   /* avec la barre du bas : le petit titre du haut cède sa place */
@media (max-width: 380px) { .xh-cta .btn { letter-spacing: .08em; padding-inline: 12px; } }   /* « Commencer l'épreuve gratuite » sur une ligne (iPhone SE…) */
@media (max-width: 760px) { .xh-zero-art { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 26px; } .xh-file { width: 64%; padding: 10px 12px; font-size: 12px; } }   /* l'Épreuve Zéro moins haute sur téléphone */

/* ---------------------------------------------------------------- Le Défi du Maître du Jeu (page /defi-du-jour) */
.dj { padding-block: clamp(28px, 6vw, 64px); padding-inline: var(--gut); }
.dj-wrap { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.dj-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dj-main .eyebrow { margin: 0; }
.dj-title { margin: 0; font: 400 clamp(36px, 6.4vw, 68px)/1 var(--serif); text-transform: uppercase; text-wrap: balance; }
.dj-prev { margin: 0; padding: 8px 12px; border: 1px dashed var(--warn); color: var(--warn); font-size: 14px; }
.dj-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.dj-meta li { display: inline-flex; align-items: center; gap: 8px; }
.dj-dots { display: inline-flex; gap: 4px; } .dj-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--brass); } .dj-dots i.on { background: var(--brass); }
.dj-scn { margin: 0; max-width: 62ch; font: 17px/1.6 var(--type); color: #e1dbcf; }
.dj-box { position: relative; margin-top: 8px; padding: clamp(18px, 3.5vw, 32px); border: 1px solid var(--blood); background: radial-gradient(ellipse at 15% 0%, rgba(122, 10, 18, .3), transparent 62%), #070606; }
.dj-box.nope { animation: dj-nope .38s ease; }
@keyframes dj-nope { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
.dj-pre { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.dj-pre p { margin: 0; }
.dj-go { min-width: 220px; }
.dj-small { margin: 0; color: var(--dim); font-size: 14px; } .dj-small a { color: var(--ink); }
.dj-play { display: flex; flex-direction: column; gap: 16px; }
.dj-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #1d1d20; }
.dj-clock { font: 400 28px/1 var(--mono); color: var(--brass2); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.dj-tries { color: var(--dim); font-size: 13px; }
.dj-prompt { font: 17px/1.65 var(--type); color: var(--ink); outline: none; }
.dj-prompt p { margin: 0 0 12px; } .dj-prompt p:last-child { margin: 0; }
.dj-prompt img { display: block; max-width: 100%; height: auto; margin: 0 0 14px; border: 1px solid #1d1d20; }
.dj-ans { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.dj-ans > .dj-ok { flex: 0 0 auto; }
.dj-lbl { flex: 1 1 100%; color: var(--dim); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.dj-in { flex: 1 1 220px; min-width: 0; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line2, #3a3a40); background: #000; color: var(--ink); font: 20px/1.2 var(--type); }
.dj-in:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.dj-code { flex: 0 1 auto; width: calc(var(--n, 4) * 1.4em + 30px); max-width: 100%; font: 400 34px/1 var(--mono); letter-spacing: .4em; text-align: center; }
.dj-ch { flex: 1 1 100%; margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.dj-ch label { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px; border: 1px solid #2a2a2e; background: #000; cursor: pointer; }
.dj-ch input { accent-color: var(--brass); width: 18px; height: 18px; flex: none; }
.dj-ch label:has(input:checked) { border-color: var(--brass); background: #140405; }
.dj-ch label:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.dj-sw { flex: 1 1 100%; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 8px; max-width: calc(var(--n, 5) * 110px); }
.dj-lever { min-width: 0; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 6px 10px; border: 1px solid #2a2a2e; background: linear-gradient(#0d0d0f, #050506); color: var(--ink); font: 400 20px/1 var(--serif); cursor: pointer; }
.dj-lever i { position: relative; width: 14px; height: 58px; border-radius: 7px; background: #1a1a1d; box-shadow: inset 0 0 0 1px #2c2c30; }
.dj-lever i::after { content: ""; position: absolute; left: -5px; right: -5px; height: 24px; bottom: 2px; border-radius: 4px; background: #5b5b60; transition: bottom .18s ease, background .18s ease; }
.dj-lever[aria-pressed="true"] { border-color: var(--brass); }
.dj-lever[aria-pressed="true"] i::after { bottom: 32px; background: var(--brass2); box-shadow: 0 0 14px rgba(255, 59, 71, .55); }
.dj-seq { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.dj-card { position: relative; min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #2a2a2e; background: #000; color: var(--ink); font: 17px/1.2 var(--type); text-align: left; cursor: pointer; }
.dj-card b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #3a3a40; border-radius: 50%; font: 600 14px/1 var(--sans); color: #fff; }
.dj-card.on { border-color: var(--brass); background: #140405; } .dj-card.on b { background: var(--brass); border-color: var(--brass); }
.dj-order { flex: 1 1 100%; margin: 0; min-height: 1.4em; color: var(--dim); font-size: 14px; }
.dj-fb { margin: 0; min-height: 1.4em; color: var(--brass-sm); font-size: 15px; }
.dj-fb:empty { display: none; }
.dj-hints { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; color: #e1dbcf; font: 15px/1.5 var(--type); }
.dj-hints:empty { display: none; }
.dj-hints li::marker { color: var(--brass-sm); }
.dj-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dj-act .btn { min-height: 44px; padding: 9px 18px; font-size: 14px; }
.dj-sure { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .dj-sure span { color: var(--ink); }
.dj-res { display: flex; flex-direction: column; gap: 12px; outline: none; }
.dj-res .cta { margin-top: 6px; }
.dj-res-k { margin: 0; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-sm); }
.dj-res-t { margin: 0; font: 400 clamp(56px, 12vw, 104px)/.95 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.dj-res-t.sm { font-size: clamp(34px, 7vw, 54px); color: var(--dim); }
.dj-res-r { margin: 0; font: 400 24px/1.1 var(--serif); text-transform: uppercase; color: var(--brass2); }
.dj-res-p { margin: 0; display: flex; align-items: center; gap: 10px; }
.dj-res-p svg, .dj-pc svg { width: 26px; height: 26px; fill: var(--brass); flex: none; }
.dj-award { padding: 14px; border: 1px solid var(--gold-d, #9a6a12); background: #0d0a03; } .dj-award p { margin: 4px 0 0; }
.dj-award .dj-res-k { color: var(--gold, #e0b44a); }
.dj-sol { padding: 14px 16px; border-left: 3px solid var(--brass); background: #0b0b0c; } .dj-sol p { margin: 6px 0 0; color: #e1dbcf; } .dj-sol .dj-res-k { margin: 0; }
.dj-sol-a { font: 400 26px/1.1 var(--serif) !important; text-transform: uppercase; color: var(--ink) !important; }
.dj-share-m { margin: 0; color: var(--ok, #5fd06c); font-size: 14px; } .dj-share-m:empty { display: none; }
.dj-copy { display: block; width: 100%; margin-top: 6px; padding: 8px; background: #000; color: var(--ink); border: 1px solid #3a3a40; font: 14px/1.4 var(--sans); }
.dj code { font-family: var(--mono); color: var(--ink); }
.dj-side { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dj-panel { padding: 18px; border: 1px solid #1d1d20; background: #08080a; display: flex; flex-direction: column; gap: 10px; }
.dj-panel h2 { margin: 0; font: 400 22px/1.1 var(--serif); text-transform: uppercase; letter-spacing: .02em; }
.dj-panel .cta { margin-top: 2px; }
.dj-board, .dj-hist, .dj-miles, .dj-aw { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dj-board li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 4px; border-bottom: 1px solid #141416; font-size: 15px; }
.dj-board .rk { color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; border: 0; background: none; padding: 0; margin: 0; }   /* 2.41.0 : sans le cadre des cartes « .rk » de la page Classements (site.css), qui encadrait le rang */ .dj-board li:nth-child(-n+3) .rk { color: var(--brass2); }
/* 2.41.0 : la photo de profil (sinon l'initiale) à côté du pseudo */
.dj-board .nm .pl-av { width: 24px; height: 24px; margin-right: 8px; vertical-align: middle; } .dj-board .nm .pl-ini { font: 400 12px/1 var(--serif); color: var(--ink); text-transform: uppercase; } .dj-board .pl-ini::before { content: attr(data-i); }
.dj-board .pl-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.dj-board .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dj-board .tm { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dj-board li.me { background: rgba(209, 26, 38, .12); } .dj-board li.me .nm::after { content: " (vous)"; color: var(--dim); }
.dj-board .dj-empty { display: block; color: var(--dim); border: 0; }
.dj-pc { margin: 0; display: flex; align-items: center; gap: 10px; } .dj-pc b { font: 400 44px/1 var(--serif); color: var(--ink); } .dj-pc span { color: var(--dim); }
.dj-next { margin: 0; font-size: 14px; }
.dj-miles li, .dj-aw li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 14px; color: var(--dim); }
.dj-miles b, .dj-aw b { min-width: 28px; font-family: var(--mono); color: var(--ink); }
.dj-miles li.got { color: var(--ink); } .dj-miles li.got b { color: var(--brass2); }
.dj-hist li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; padding: 5px 0; border-bottom: 1px solid #141416; font-size: 14px; }
.dj-hist .d { color: var(--dim); font-family: var(--mono); } .dj-hist .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dj-hist .r { font-family: var(--mono); }
.dj-hist li.gaveup .r, .dj-hist li.open .r { color: var(--dim); font-family: inherit; }
@media (max-width: 900px) { .dj-wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .dj-ans > .dj-ok, .dj-go { width: 100%; }
  .dj-lever { min-height: 104px; }
}
@media (prefers-reduced-motion: reduce) { .dj-box.nope { animation: none; } .dj-lever i::after { transition: none; } }

/* ---------------------------------------------------------------- Quel type de joueur êtes-vous ? (après l'épreuve, et /type-de-joueur) */
.zx-pt { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid #1d1d20; }
.zx-pt .pt { width: 100%; text-align: left; }
.pt { display: flex; flex-direction: column; gap: 14px; }
.pt-q { margin: 0; font: 400 clamp(24px, 5vw, 34px)/1.05 var(--serif); text-transform: uppercase; text-align: center; color: var(--ink); }
.pt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 16px 14px; border: 1px solid #2a2a2e; background: linear-gradient(#0c0c0e, #050506); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pt-card svg { width: 40px; height: 40px; fill: none; stroke: var(--brass2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-card b { font: 400 22px/1 var(--serif); text-transform: uppercase; letter-spacing: .02em; }
.pt-card q { font: 15px/1.45 var(--type); color: #e1dbcf; quotes: "« " " »"; }
.pt-card small { color: var(--dim); font-size: 13px; line-height: 1.4; }
.pt-card:hover { border-color: #4a1015; }
.pt-card.on { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass), 0 0 28px rgba(209, 26, 38, .28); background: radial-gradient(ellipse at 30% 0%, rgba(122, 10, 18, .45), transparent 70%), #070606; }
.pt-card:focus-visible { outline: 2px solid var(--brass2); outline-offset: 3px; }
.pt-note { margin: 0; color: var(--dim); font-size: 13px; text-align: center; }
.pt-res { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: calc(var(--top-h, 70px) + 16px); scroll-margin-bottom: calc(var(--tab-h, 64px) + 16px); }
.pt-res:empty { display: none; }
.pt-you { margin: 0; font-size: 16px; } .pt-you b { color: var(--brass2); font-weight: 600; } .pt-you small { color: var(--dim); margin-left: 6px; }
.pt-k { margin: 6px 0 0; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-sm); }
.pt-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.pt-games a { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid #1d1d20; background: #08080a; color: var(--ink); text-decoration: none; min-width: 0; }
.pt-games a:hover { border-color: var(--blood); }
.pt-games img, .pt-ph { flex: none; width: 54px; height: 76px; object-fit: cover; background: #111; }
.pt-gt { min-width: 0; display: flex; flex-direction: column; gap: 4px; } .pt-gt b { font: 400 18px/1.05 var(--serif); text-transform: uppercase; } .pt-gt small { color: var(--dim); font-size: 12.5px; }
.pt-none { margin: 0; color: var(--dim); }
.pt-act { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pt-act .btn { min-height: 44px; padding: 9px 18px; font-size: 14px; }
.pt-err { margin: 0; color: var(--brass-sm); } .pt-load { margin: 0; color: var(--dim); }
.pt-page { max-width: 980px; padding-block: clamp(28px, 6vw, 64px); display: flex; flex-direction: column; gap: 14px; }
.pt-page .eyebrow { margin: 0; }
/* 1.94.1 : place gardée pour les cartes (remplies par ptype.js) : le pied de page ne saute plus pendant le chargement (CLS 0,19 mesuré) */
.pt-page [data-ptype-page] { min-height: 250px; }
@media (max-width: 760px) { .pt-page [data-ptype-page] { min-height: 480px; min-height: min(480px, 100svh); } }
.pt-page h1 { margin: 0; font: 400 clamp(36px, 6.4vw, 64px)/1 var(--serif); text-transform: uppercase; text-wrap: balance; }
.pt-lede { margin: 0 0 8px; max-width: 62ch; font: 17px/1.6 var(--type); color: #e1dbcf; }
@media (max-width: 760px) { .pt-cards { grid-template-columns: 1fr; } .pt-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; } .pt-card svg { grid-row: span 3; } }
@media (prefers-reduced-motion: reduce) { .pt-card { transition: none; } }
/* 1.94.1 — .zx en « overflow: clip » : la salle ne peut plus être décalée de côté (un point d'intérêt hors de l'écran qui reçoit le focus la faisait défiler, sans retour possible) ;
   réseau coupé pendant l'Épreuve Zéro : l'épreuve le dit elle-même (« Connexion perdue… ») ; le bandeau général « Hors connexion »
   cachait le chronomètre et les boutons du haut */
.zx-on .offline-bar { display: none; }
/* 2.38.0 (SEC-12) — nombre de colonnes du défi (u-n4 = --n 4), à la place d'un style écrit dans la page */
.u-n1{--n:1} .u-n2{--n:2} .u-n3{--n:3} .u-n4{--n:4} .u-n5{--n:5} .u-n6{--n:6} .u-n7{--n:7} .u-n8{--n:8} .u-n9{--n:9} .u-n10{--n:10} .u-n11{--n:11} .u-n12{--n:12}
/* 2.62.1 (audit des jeux) — Épreuve Zéro sur téléphone : les touches du clavier de la serrure (34 à 43 px de haut) et les leviers du
   tableau (33 à 43 px de large) répondent un peu au-delà de leur dessin, sans empiéter sur la touche ou le levier voisin (moins de la
   moitié de l'écart qui les sépare) ; l'emplacement de la pièce aussi. Rien ne change à la souris. */
@media (pointer: coarse) {
  .zx-key button { left: -11%; top: -16%; width: 122%; height: 132%; }   /* un bouton ne s'étire pas entre left et right : largeur et hauteur données */
  .zx-lv button { left: -18%; width: 136%; }
  .zx-slot button { left: -6px; top: -6px; width: calc(100% + 12px); height: calc(100% + 12px); }
}

/* ---------------------------------------------------------------- 2.75.1 — l'accueil d'après la maquette validée (refonte R4 sur le nouvel accueil)
   Ordinateur : l'affaire à la une au centre d'un éventail de trois affiches, la pièce rouge qui luit dessous.
   Téléphone et tablette : rien ne change dans le haut (l'affaire à la une en ligne, sans les affiches de côté). */
.xh-fan { position: relative; min-width: 0; }
.xh-fan-s, .xh-fan-p { display: none; }
@media (max-width: 1023px) { .xh-fan { display: contents; } }
@media (min-width: 1024px) {
  .xh-hero-in { grid-template-columns: minmax(0, 1fr) clamp(380px, 36vw, 500px); gap: 40px; }
  .xh-hero-in .xh-title { font-size: clamp(52px, 6.2vw, 96px); }   /* le titre de la régie à côté de l'éventail */
  .xh-hero-in .xh-sub { text-wrap: balance; }
  .xh-hero-in .xh-title { margin-top: .2em; }   /* l'accent d'un « Ê » en tête de titre ne touche plus la petite ligne du dessus */
  .xh-fan { display: flex; justify-content: center; padding: 34px 0 96px; }
  .xh-fan .xh-star { position: relative; z-index: 2; width: min(280px, 60%); box-shadow: 0 40px 80px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(209, 26, 38, .2); }
  .xh-fan-s { display: block; position: absolute; top: 86px; z-index: 1; width: min(210px, 40%); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; opacity: .8; box-shadow: 0 30px 60px rgba(0, 0, 0, .7); transition: transform .35s ease, opacity .35s ease; }
  .xh-fan-l { left: 0; transform: rotate(-8deg); }
  .xh-fan-r { right: 0; transform: rotate(8deg); }
  .xh-fan:hover .xh-fan-l { transform: rotate(-11deg) translateX(-8px); opacity: .9; }
  .xh-fan:hover .xh-fan-r { transform: rotate(11deg) translateX(8px); opacity: .9; }
  .xh-fan-p { display: block; position: absolute; left: 50%; bottom: 0; z-index: 0; width: 120px; height: 120px; margin-left: -60px; fill: var(--brass); filter: drop-shadow(0 0 24px rgba(209, 26, 38, .7)); }
}
/* écrans d'ordinateur peu hauts (portable 1366 × 768, fenêtre réduite) : l'éventail plus petit, pour que tout le haut tienne dans le premier écran */
@media (min-width: 1024px) and (max-height: 820px) { .xh-hero .xh-logo { display: none; } .xh-fan { padding: 8px 0 80px; } .xh-fan .xh-star { width: min(236px, 56%); } .xh-fan-s { top: 52px; width: min(176px, 36%); } .xh-fan-p { width: 100px; height: 100px; margin-left: -50px; } }
@media (min-width: 1024px) and (max-height: 690px) { .xh-fan { padding: 0 0 64px; } .xh-fan .xh-star { width: min(220px, 52%); } .xh-fan .xh-star-m .xh-x { display: none; } .xh-fan .xh-star-go { letter-spacing: .1em; white-space: nowrap; } .xh-fan .xh-star-art { aspect-ratio: 4 / 5; } .xh-fan-s { top: 36px; width: min(150px, 32%); } .xh-fan-p { width: 84px; height: 84px; margin-left: -42px; } }
@media (prefers-reduced-motion: reduce) { .xh-fan-s { transition: none; } }
@media (min-width: 761px) and (max-width: 1023px) { .xh-hero .xh-title { margin-top: .16em; } }   /* tablette : même chose pour l'accent du titre */
/* « À l'affiche · Choisissez votre cauchemar » */
.xh-games .sec-head { align-items: flex-end; }
.xh-sh { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.xh-sh h2 { margin-bottom: 0; }
/* les trois façons de jouer, juste après les affaires */
.xh-ways { border-top: 1px solid #141416; }
