:root {
  --noir: #060606;
  --fer: #101110;
  --fer-2: #191a18;
  --trait: #34352f;
  --fluo: #e6ff1f;
  --fluo-2: #cfe600;
  --orange: #ff5a0a;
  --argent: #bdbcb0;
  --craie: #efeee4;
  --gris: #a9a89c;
  --display: 'Anton', 'Impact', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --body: 'Barlow Semi Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 3.2vw, 48px);
  --bx: 50vw;
  --by: 50vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noir); color: var(--craie); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(60vmax 60vmax at 62% 8%, rgba(232, 214, 150, .10), transparent 62%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, .012) 38px 40px),
    var(--noir);
  background-attachment: fixed;
  font-family: var(--body);
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.42;
  cursor: crosshair;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html.webgl body { background: var(--noir); }

a, button, summary, input { cursor: pointer; }
input { cursor: text; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--fluo); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: var(--gutter); top: -80px; z-index: 40; padding: 10px 14px;
  background: var(--fluo); color: #000; font-family: var(--mono); font-size: 12px;
}
.skip:focus { top: 10px; }

#scene { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; }
html:not(.webgl) #scene { display: none; }
html.still #scene { transition: none; }

/* ---------- Entrée au noir ---------- */
#blackout {
  position: fixed; inset: 0; z-index: 30; background: #000; pointer-events: none;
  display: none; place-items: center;
}
html.boot #blackout, html.webgl #blackout { display: grid; }
#blackout span {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--argent); opacity: 0;
}
#blackout.click span { opacity: 1; }
#blackout.gone { background: transparent; }
#blackout.gone span { opacity: 0; }
html.no-webgl #blackout { display: none; }

/* ---------- Bandeau et compteur ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
}
.brand {
  font-family: var(--display); font-size: 24px; letter-spacing: .02em; text-decoration: none; color: var(--craie);
  background: #000; padding: 3px 9px;
}
.brand span { color: var(--fluo); }
.top-cta {
  font-family: var(--mono); font-size: 11px; font-weight: 500; text-decoration: none; color: #000;
  background: var(--fluo); padding: 10px 14px; white-space: nowrap;
  transition: background-color .12s steps(2);
}
.top-cta:hover { background: #fff; }

.hud {
  position: fixed; left: var(--gutter); bottom: 14px; z-index: 20; display: grid; grid-template-columns: auto auto; gap: 0 12px;
  align-items: end; font-family: var(--mono); font-size: 10px; color: var(--argent);
  background: rgba(0, 0, 0, .78); padding: 7px 10px; pointer-events: none;
}
.hud-count { font-size: 11px; color: var(--craie); }
.hud-count b { color: var(--fluo); font-weight: 600; font-size: 15px; display: inline-block; }
.hud-count.bump b { animation: bump .5s cubic-bezier(.2, 1.6, .4, 1); }
.hud-hint { grid-column: 1 / -1; color: var(--gris); }
@keyframes bump { from { transform: scale(1.9); color: #fff; } }
html.lit .hud { display: none; }

/* ---------- Étiquettes ancrées au point 3D ---------- */
#tags { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; contain: strict; }
html:not(.webgl) #tags { display: none; }
.tag { position: absolute; left: 0; top: 0; width: 0; height: 0; visibility: hidden; will-change: transform; }
.tag-dot {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border: 2px solid var(--fluo); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .6);
}
.tag-line {
  position: absolute; left: 3px; top: -1px; width: 62px; height: 2px; background: var(--fluo);
  transform: rotate(-36deg); transform-origin: 0 50%;
}
.tag-chip {
  position: absolute; left: calc(50px + var(--cx, 0px)); top: -56px; min-width: 214px; padding: 7px 10px 8px; background: #000;
  border-left: 4px solid var(--fluo); font-family: var(--mono); font-size: 10.5px; line-height: 1.45; color: var(--craie);
  white-space: nowrap;
}
.tag-chip b { display: block; font-weight: 600; font-size: 11.5px; color: var(--fluo); }
.tag-rate { display: block; }
.tag-fix { display: none; }
.tag.flip .tag-line { transform: rotate(-144deg); left: -3px; }
.tag.flip .tag-chip { left: auto; right: 50px; border-left: 0; border-right: 4px solid var(--fluo); text-align: right; }
.tag.treated .tag-chip { background: var(--fluo); color: #000; border: 0; min-width: 0; left: -8px; right: auto; top: auto; bottom: 64px; padding: 5px 8px 6px; text-align: left; }
.tag.treated .tag-line { left: -1px; top: -64px; width: 2px; height: 64px; transform: none; }
.tag.treated[data-row='1'] .tag-chip { top: 64px; bottom: auto; }
.tag.treated[data-row='1'] .tag-line { top: 0; }
.tag.treated[data-row='2'] .tag-chip { bottom: 122px; }
.tag.treated[data-row='2'] .tag-line { top: -122px; height: 122px; }
.tag.treated[data-row='3'] .tag-chip { top: 122px; bottom: auto; }
.tag.treated[data-row='3'] .tag-line { top: 0; height: 122px; }
.tag.treated .tag-chip b { color: #000; }
.tag.treated .tag-rate { display: none; }
.tag.treated .tag-fix { display: block; }
.tag.treated .tag-fix em { font-style: normal; text-decoration: line-through; }
.tag.treated .tag-fix strong { font-weight: 600; }
.tag.treated .tag-fix i { font-style: normal; margin: 0 .3em; }
.tag.treated .tag-dot { border-color: #000; background: var(--fluo); }
.tag.treated .tag-line { background: #000; }

/* ---------- Texte rétroréfléchissant : argent éteint, fluo sous la torche ---------- */
.retro {
  --lx: -999px; --ly: -999px;
  color: var(--argent);
  background: radial-gradient(circle 240px at var(--lx) var(--ly), #fffef0 0, var(--fluo) 34%, var(--argent) 74%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

main { position: relative; z-index: 3; display: block; }

.kicker { font-family: var(--mono); font-size: 11px; color: var(--fluo); }

.btn {
  display: inline-block; font-family: var(--display); font-size: clamp(19px, 1.7vw, 24px); letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; color: #000; background: var(--fluo); padding: 14px 22px 13px; white-space: nowrap;
  box-shadow: 6px 6px 0 #000;
  transition: transform .14s cubic-bezier(.2, 1.4, .4, 1), box-shadow .14s;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #000; }

/* ---------- Héros ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(66px, 9vh, 92px);
}
.hero-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .98; letter-spacing: .005em;
  font-size: clamp(64px, 15vw, 210px); margin-bottom: auto; padding-top: 84px; color: var(--argent);
}
html.webgl .hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; margin: 0; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: space-between; align-items: end; gap: 24px 40px;
  position: relative;
}
.hero-lead {
  font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; line-height: 1.32; color: var(--craie); max-width: 34em;
  background: rgba(0, 0, 0, .8); padding: 10px 14px; margin-left: -14px;
}
html.webgl .hero-foot { opacity: 0; transform: translateY(14px); }
html.ready .hero-foot { opacity: 1; transform: none; transition: opacity .28s .62s steps(3), transform .6s .62s cubic-bezier(.2, 1.2, .3, 1); }

/* ---------- La loi ---------- */
.law { position: relative; min-height: 150vh; padding: 30vh var(--gutter) 10vh; }
.law-inner {
  position: sticky; top: 16vh; max-width: min(760px, 58vw); padding: clamp(22px, 2.6vw, 38px);
  background: rgba(4, 4, 4, .9); border-top: 8px solid var(--orange);
}
.law-amount { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1; margin-top: 12px; }
.law-amount span { display: block; font-size: clamp(26px, 3.2vw, 46px); color: var(--craie); }
.law-amount strong { display: block; font-weight: 400; font-size: clamp(96px, 14.5vw, 214px); line-height: 1.04; letter-spacing: -.005em; white-space: nowrap; }
.law-copy { margin-top: 18px; color: var(--craie); }
.law-copy em { font-style: normal; color: var(--fluo); font-weight: 600; }
.law-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--trait); color: var(--gris); font-size: .92em; }

/* ---------- Repères ---------- */
.marks { position: relative; min-height: 140vh; padding: 16vh var(--gutter) 14vh; display: flex; justify-content: flex-end; }
.marks-inner { position: sticky; top: 11vh; align-self: flex-start; width: min(660px, 58vw); background: rgba(4, 4, 4, .9); padding: clamp(20px, 2.4vw, 34px); }
.section-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.03; color: var(--craie); }
.marks-list { margin-top: 16px; }
.marks-list > div { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--trait); align-items: baseline; }
.marks-list dt { font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; text-transform: uppercase; }
.marks-list dt sup { font-size: .55em; }
.marks-list dd { font-size: .95em; line-height: 1.32; color: var(--craie); }
.marks-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--trait); font-family: var(--mono); font-size: 10.5px; line-height: 1.6; color: var(--gris); }

/* ---------- Les plaques ---------- */
.stop { position: relative; min-height: 158vh; padding: 0 var(--gutter); display: flex; align-items: flex-start; }
.stop[data-side='r'] { justify-content: flex-end; }
.plate {
  --lx: -999px; --ly: -999px;
  position: sticky; top: max(72px, calc(50vh - 340px)); width: min(600px, 46vw); padding: 20px 24px 24px;
  background: linear-gradient(160deg, #1b1c1a, #0e0f0e 70%);
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #3a3b35, 0 26px 60px rgba(0, 0, 0, .66);
  transform-origin: 50% 0; will-change: transform; isolation: isolate;
}
/* La plaque accroche la lumière de la torche, en surface */
.plate::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle 300px at var(--lx) var(--ly), rgba(255, 244, 196, .22), rgba(255, 244, 196, .07) 42%, transparent 72%);
}
/* Liseré rétroréfléchissant : éteint il est gris, il s'embrase là où passe le faisceau */
.rim {
  position: absolute !important; inset: 0; z-index: 4 !important; padding: 3px; pointer-events: none;
  background: radial-gradient(circle 260px at var(--lx) var(--ly), #fffef0, var(--fluo) 36%, rgba(120, 120, 108, .45) 78%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Suspendue à deux chaînes : elle vit dans l'atelier, pas sur une grille */
.hang {
  position: absolute !important; left: 12%; right: 12%; bottom: 100%; height: 18vh; z-index: -1 !important; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, #4b4c46 0 7px, transparent 7px 9px) 0 0 / 3px 100% no-repeat,
    repeating-linear-gradient(0deg, #4b4c46 0 7px, transparent 7px 9px) 100% 0 / 3px 100% no-repeat;
}
/* Quatre rivets */
.plate::before {
  content: ''; position: absolute; inset: 8px; pointer-events: none; z-index: 0; opacity: .85;
  background:
    radial-gradient(circle at 4px 4px, #6b6c64 0 2px, #000 2.4px 3.4px, transparent 3.6px) 0 0 / 8px 8px no-repeat,
    radial-gradient(circle at 4px 4px, #6b6c64 0 2px, #000 2.4px 3.4px, transparent 3.6px) 100% 0 / 8px 8px no-repeat,
    radial-gradient(circle at 4px 4px, #6b6c64 0 2px, #000 2.4px 3.4px, transparent 3.6px) 0 100% / 8px 8px no-repeat,
    radial-gradient(circle at 4px 4px, #6b6c64 0 2px, #000 2.4px 3.4px, transparent 3.6px) 100% 100% / 8px 8px no-repeat;
}
.plate > * { position: relative; z-index: 1; }
.plate-head {
  display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--fluo);
  padding: 2px 14px 8px; margin: 0 -14px 12px; border-bottom: 1px solid var(--trait);
}
.plate h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 4.1vw, 60px); line-height: 1.04; }
.plate > p { margin-top: 8px; color: var(--craie); max-width: 36em; line-height: 1.32; }

/* 01 Cotation */
.score { display: grid; grid-template-columns: 216px 1fr; gap: 14px 22px; margin-top: 16px; }
.matrix { position: relative; width: 196px; height: 196px; margin: 0 0 18px 20px; grid-row: span 2; --cell: 49px; }
.cells { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; height: 100%; gap: 0; }
.cells i {
  display: grid; place-items: center; font: 400 10px var(--mono); font-style: normal; color: #cfcebf;
  box-shadow: inset 0 0 0 1px #000; background: #23241f;
}
.cells i[data-level='1'] { background: #3a3c2a; }
.cells i[data-level='2'] { background: #8c7f12; color: #fff; }
.cells i[data-level='3'] { background: #b63a06; color: #fff; }
.token {
  position: absolute; left: 0; top: 0; width: 25%; height: 25%; border: 4px solid var(--fluo); box-shadow: 0 0 0 2px #000, 0 0 18px rgba(230, 255, 31, .6);
}
.axis { position: absolute; font-family: var(--mono); font-size: 9.5px; color: var(--gris); }
.axis-g { left: -20px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); }
.axis-f { left: 50%; bottom: -18px; transform: translateX(-50%); }
.readout { display: flex; gap: 22px; }
.readout small { display: block; font-family: var(--mono); font-size: 10px; color: var(--gris); }
.readout b { display: block; font-family: var(--display); font-weight: 400; font-size: 76px; line-height: 1.02; color: var(--argent); }
.readout .res b { color: var(--fluo); }
.readout .res.hit b { animation: slam .34s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes slam { from { transform: translateY(-16px) scale(1.2); } }
.measures { display: grid; gap: 5px; }
.measures button {
  width: 100%; text-align: left; font-family: var(--mono); font-size: 10.5px; line-height: 1.3; padding: 7px 8px 7px 28px; position: relative;
  background: #0a0a09; box-shadow: inset 0 0 0 1px var(--trait); color: var(--craie);
}
.measures button::before { content: ''; position: absolute; left: 9px; top: 50%; width: 11px; height: 11px; margin-top: -6px; box-shadow: inset 0 0 0 1px var(--argent); }
.measures button[aria-pressed='true']::before { background: var(--fluo); box-shadow: none; }

/* 02 Étiquettes de consignation */
.plate--tags { background: #e9e6d6; color: #111; box-shadow: 0 26px 60px rgba(0, 0, 0, .66), inset 0 -10px 0 var(--fluo-2); padding-bottom: 28px; }
.plate--tags::after { mix-blend-mode: multiply; background: radial-gradient(circle 300px at var(--lx) var(--ly), rgba(255, 255, 255, 0), rgba(160, 150, 120, .08) 72%); }
.plate--tags::before { opacity: .4; }
.plate--tags .plate-head { color: #111; border-color: #111; }
.plate--tags h2.retro { background: none; color: #0a0a0a; -webkit-text-fill-color: #0a0a0a; }
.plate--tags > p { color: #1a1a18; }
.tags { margin-top: 12px; display: grid; gap: 7px; }
.tags li {
  position: relative; background: #fff; padding: 7px 10px 9px 30px; min-height: 66px; box-shadow: 0 1px 0 #0003, inset 0 0 0 1px #0002;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start; overflow: hidden;
}
.tags li::before { content: ''; position: absolute; left: 10px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #e9e6d6; box-shadow: inset 0 0 0 2px #333; }
.tags small { grid-column: 1; font-family: var(--mono); font-size: 9.5px; color: #4d4c44; }
.typed { grid-column: 1; font-size: 1em; font-weight: 500; line-height: 1.22; min-height: 1.22em; color: #111; padding-right: 104px; }
.tags li.typing .typed::after { content: ''; display: inline-block; width: .5em; height: 1em; margin-left: 2px; background: var(--orange); vertical-align: -.12em; }
.choice { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 3px; }
.choice button { font-family: var(--mono); font-size: 9.5px; padding: 4px 8px; background: #e9e6d6; color: #111; box-shadow: inset 0 0 0 1px #0004; }
.choice button[aria-pressed='true'] { background: #111; color: #fff; }
.stamp {
  position: absolute; right: 76px; top: 50%; font-family: var(--display); font-weight: 400; font-size: 23px; letter-spacing: .03em; text-transform: uppercase;
  color: #a33a00; padding: 0 7px; box-shadow: inset 0 0 0 3px currentColor; transform: translateY(-50%) rotate(-7deg) scale(1.8); opacity: 0;
  pointer-events: none; background: rgba(255, 255, 255, .86);
}
.tags li.stamped .stamp { opacity: 1; transform: translateY(-50%) rotate(-7deg) scale(1); transition: transform .2s cubic-bezier(.3, 1.8, .5, 1), opacity .05s; }
.tags li[data-v='Écarté'] .stamp { color: #444; }
.publish { margin-top: 12px !important; font-family: var(--mono); font-size: 10.5px; color: #111 !important; padding-left: 16px; position: relative; }
.publish::before { content: ''; position: absolute; left: 0; top: .3em; width: 9px; height: 9px; background: #a33a00; }
.publish.ready::before { background: #5e7000; }

/* 03 Tableau général */
.plate--board { background: linear-gradient(170deg, #2a2d2e, #1a1c1d); }
.board { display: grid; grid-template-columns: 136px 1fr; gap: 14px; margin-top: 14px; }
.board-main { background: #050505; padding: 10px; display: flex; flex-direction: column; justify-content: center; box-shadow: inset 0 0 0 1px #000, inset 0 0 18px #000; }
.board-main small { font-family: var(--mono); font-size: 9.5px; line-height: 1.4; color: var(--gris); }
.board-main b { font-family: var(--display); font-weight: 400; font-size: 84px; line-height: 1.04; color: var(--argent); }
.board-main.full b { color: var(--fluo); }
.breakers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.breaker { --lever: 0; background: #0c0d0d; padding: 7px 6px 6px; display: grid; gap: 5px; justify-items: center; box-shadow: inset 0 0 0 1px #000; }
.breaker i { position: relative; display: block; width: 26px; height: 48px; background: #000; box-shadow: inset 0 0 0 1px #3a3c3c; }
.breaker i::after {
  content: ''; position: absolute; left: 3px; right: 3px; height: 22px; top: 3px; background: linear-gradient(#d6d4c8, #89877b);
  transform: translateY(calc((1 - var(--lever)) * 20px));
}
.breaker[aria-pressed='true'] i::after { background: linear-gradient(var(--fluo), var(--fluo-2)); box-shadow: 0 0 10px rgba(230, 255, 31, .6); }
.breaker span { font-family: var(--mono); font-size: 9.5px; color: var(--craie); white-space: nowrap; }
.board-line { font-family: var(--mono); font-size: 11px !important; color: var(--fluo) !important; margin-top: 12px !important; }

/* 04 Presse */
.plate--press { background: linear-gradient(170deg, #20211f, #0d0e0d); }
.press { display: grid; grid-template-columns: 1fr 96px; gap: 16px; margin-top: 14px; height: 246px; }
.press-frame { position: relative; overflow: hidden; background: #060606; box-shadow: inset 0 0 0 1px var(--trait); }
.press-frame::before, .press-frame::after { content: ''; position: absolute; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, #40413b, #1b1c19); }
.press-frame::before { left: 12px; }
.press-frame::after { right: 12px; }
.ram {
  position: absolute; left: 34px; right: 34px; top: 0; height: 176px; transform: translateY(-100%); z-index: 2; display: grid; place-items: end center;
  background: repeating-linear-gradient(0deg, #2f302b 0 8px, #24251f 8px 10px); padding-bottom: 6px; box-shadow: inset 0 -8px 0 var(--orange);
}
.ram b { font-family: var(--display); font-weight: 400; font-style: normal; font-size: 22px; color: #0a0a0a; background: var(--orange); padding: 0 8px; }
.bed { position: absolute; left: 34px; right: 34px; bottom: 16px; height: 60px; border-bottom: 6px solid #5c5d55; display: grid; place-items: end center; }
.sheet { width: 118px; height: 54px; background: #e8e5d5; color: #111; padding: 4px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.sheet span { font-family: var(--display); font-size: 34px; line-height: 1.1; }
.sheet small { font-family: var(--mono); font-size: 8px; }
.sheet.frozen { background: var(--fluo); }
.plate.thud { animation: thud .26s linear; }
@keyframes thud { 0% { translate: 0 0; } 30% { translate: 0 4px; } 60% { translate: 0 -2px; } 100% { translate: 0 0; } }
.stack { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.stack li { font-family: var(--mono); font-size: 10.5px; color: #000; background: var(--argent); padding: 6px 8px; animation: fall .35s cubic-bezier(.2, 1.5, .4, 1); box-shadow: inset 0 -2px 0 #0004; }
.stack li:first-child { background: var(--fluo); }
@keyframes fall { from { transform: translateX(-30px); } }

/* 05 Plan d'actions */
.plate--clip { width: min(660px, 50vw); background: linear-gradient(170deg, #1c1d1b, #0f100f); }
.actions { display: grid; grid-template-columns: 112px 1fr; gap: 10px 18px; margin-top: 14px; align-items: center; }
.dial { width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4c4d47, #141512 72%); box-shadow: 0 0 0 5px #000, 0 0 0 6px var(--trait); position: relative; }
.dial i { position: absolute; inset: 14px; border-radius: 50%; background: #0a0a0a; box-shadow: inset 0 0 0 2px #2c2d29; }
.dial i::after { content: ''; position: absolute; left: 50%; top: 3px; width: 7px; height: 36px; margin-left: -3.5px; background: var(--fluo); }
.dial-marks { display: flex; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--gris); white-space: nowrap; }
.dial-marks li.on { color: #000; background: var(--fluo); padding: 0 6px; }
.action-list { grid-column: 1 / -1; width: 100%; border-collapse: collapse; font-size: .92em; }
.action-list th { font-family: var(--mono); font-size: 9.5px; font-weight: 400; color: var(--gris); text-align: left; padding: 4px 8px 4px 0; }
.action-list td { padding: 7px 8px 7px 0; border-top: 1px solid var(--trait); color: var(--craie); line-height: 1.2; }
.action-list td:last-child { font-family: var(--mono); font-size: 10.5px; white-space: nowrap; color: var(--argent); }
.action-list td[data-v='1'] { color: var(--orange); }
.action-list td[data-v='2'] { color: var(--fluo); }

/* 06 Alerte */
.plate--alarm { background: var(--orange); color: #000; box-shadow: 0 26px 60px rgba(0, 0, 0, .66); width: min(540px, 42vw); }
.plate--alarm::before { opacity: .5; }
.plate--alarm::after { mix-blend-mode: soft-light; }
.plate--alarm .plate-head { color: #000; border-color: #000; }
.plate--alarm h2 { color: #000; }
.plate--alarm > p { color: #000; font-weight: 500; }
.alarm { position: relative; display: grid; grid-template-columns: 1fr; margin-top: 12px; height: 212px; background: #0a0a0a; overflow: hidden; }
.beacon {
  --r: 0deg; position: absolute; left: 50%; top: -120px; width: 240px; height: 240px; margin-left: -120px; border-radius: 50%; opacity: .25;
  background: conic-gradient(from var(--r), rgba(255, 90, 10, .75), transparent 20% 50%, rgba(255, 90, 10, .75) 50%, transparent 70%);
}
.beacon.on { opacity: 1; }
.drop { position: absolute; left: 0; right: 0; top: 34px; display: grid; justify-items: center; }
.pin { width: 2px; height: 22px; background: #444; }
.fallen { background: var(--fluo); color: #000; padding: 8px 14px 9px; min-width: 262px; transform-origin: 50% -22px; }
.fallen small { display: block; font-family: var(--mono); font-size: 10px; }
.fallen b { display: block; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.12; text-transform: uppercase; }
.switch { position: absolute; left: 12px; bottom: 11px; display: flex; gap: 9px; align-items: center; font-family: var(--mono); font-size: 10.5px; color: var(--craie); }
.switch i { position: relative; display: block; width: 36px; height: 18px; background: #2b2c28; }
.switch i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; background: var(--argent); transition: transform .18s cubic-bezier(.2, 1.6, .4, 1); }
.switch[aria-checked='true'] i { background: #000; box-shadow: inset 0 0 0 1px var(--fluo); }
.switch[aria-checked='true'] i::after { transform: translateX(18px); background: var(--fluo); }

/* 07 Impression */
.plate--print { width: min(520px, 42vw); }
.printer { margin-top: 12px; }
.slot { height: 16px; background: #000; box-shadow: inset 0 0 0 2px #40413b; position: relative; overflow: hidden; }
.slot i { position: absolute; left: 6px; top: 5px; width: 50%; height: 6px; background: var(--orange); }
.paper-clip { overflow: hidden; height: 240px; margin: 0 22px; }
.paper {
  height: 100%; background: #efece0; color: #111; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; transform: translateY(-100%);
}
.paper b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.14; text-transform: uppercase; }
.paper span { font-size: .98em; font-weight: 500; padding: 6px 0; border-top: 1px solid #0003; }
.paper em { margin-top: auto; font-family: var(--mono); font-style: normal; font-size: 10.5px; }

/* 08 Baie */
.plate--bay { background: #08090a; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #2a2d31, 0 26px 60px rgba(0, 0, 0, .66); }
.bay svg { display: block; width: 100%; margin-top: 12px; }
.bay rect { fill: #111; stroke: var(--argent); stroke-width: 1.5; }
.bay rect.alt { stroke: var(--orange); stroke-dasharray: 5 4; }
.bay text { font: 400 10.5px var(--mono); fill: var(--craie); text-anchor: middle; }
.bay text.alt { fill: var(--orange); }
.bay text.foot { font-size: 9.5px; fill: var(--gris); }
.bay .line { fill: none; stroke: var(--fluo); stroke-width: 2; stroke-dasharray: 6 8; animation: flow 1.1s linear infinite; }
.bay .line.alt { stroke: var(--orange); }
@keyframes flow { to { stroke-dashoffset: -14; } }
.log { margin-top: 8px; font-family: var(--mono); font-size: 10px; line-height: 1.75; color: var(--fluo); height: 7.2em; overflow: hidden; background: #000; padding: 6px 10px; }
.log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log li + li { color: var(--gris); }

/* ---------- Trois marches ---------- */
.steps { position: relative; }
.step {
  min-height: 118vh; display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); padding: 0 var(--gutter); max-width: 1100px;
}
.step:nth-of-type(2) { margin-left: auto; margin-right: 0; justify-content: flex-end; }
.step-n { font-family: var(--display); font-size: clamp(170px, 30vw, 460px); line-height: 1.05; }
.step > div { background: rgba(3, 3, 3, .9); padding: 16px 20px 18px; border-left: 8px solid var(--fluo); max-width: 440px; }
.step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.06; color: var(--craie); }
.step p { margin-top: 6px; color: var(--craie); }

/* ---------- Plus rien dans l'ombre ---------- */
.shadow { position: relative; height: 380vh; }
.shadow-pin {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding: 84px var(--gutter) 0; overflow: hidden;
  opacity: 0; pointer-events: none;
}
html.lit .shadow-pin { opacity: 1; }
.shadow-pin h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(66px, 14.4vw, 212px); line-height: 1.02; color: #000;
  transform-origin: 0 0; transition: transform .7s cubic-bezier(.2, 1.1, .3, 1);
}
.shadow-pin h2 span { display: block; width: fit-content; padding: 0 .07em; background: var(--fluo); }
html.lit .shadow-pin h2 { animation: slamTitle .42s cubic-bezier(.16, 1.3, .3, 1); }
@keyframes slamTitle { from { transform: scale(1.5); } }
html.open .shadow-pin h2 { transform: scale(.56); }
html.open .shadow-pin h2 span { background: none; }
.shadow-pin p {
  margin-top: 14px; align-self: flex-start; font-family: var(--mono); font-size: 12px; color: var(--craie); background: #000; padding: 7px 10px;
  transition: transform .7s cubic-bezier(.2, 1.1, .3, 1);
}
html.open .shadow-pin p { transform: translateY(calc(-.44 * 2.04 * clamp(66px, 14.4vw, 212px))); }

/* ---------- Liste d'attente ---------- */
#liste { scroll-margin-top: -30vh; }
.wait { position: relative; padding: 40vh var(--gutter) 12vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.wait-plate { background: var(--fluo); color: #000; padding: clamp(22px, 3vw, 44px); box-shadow: 12px 12px 0 #000; }
.wait-plate .kicker { color: #000; }
.wait-plate h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(50px, 7.4vw, 110px); line-height: 1.02; margin-top: 8px; }
.wait-plate label { display: block; margin-top: 22px; font-family: var(--mono); font-size: 11px; }
.field { display: grid; grid-template-columns: 1fr auto; margin-top: 6px; }
.field input { min-width: 0; font: 500 19px var(--body); padding: 14px; background: #fff; color: #000; border: 3px solid #000; border-right: 0; border-radius: 0; }
.field input::placeholder { color: #5a5a50; }
.field button { font-family: var(--display); font-size: 21px; text-transform: uppercase; color: var(--fluo); background: #000; padding: 0 20px; }
.field button:hover { color: #fff; }
.wait-plate :focus-visible { outline-color: #000; }
.note { min-height: 1.5em; margin-top: 10px; font-weight: 600; }

.faq { background: #0a0a0a; padding: clamp(18px, 2.4vw, 32px); }
.faq h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; color: var(--fluo); }
.faq details { border-top: 1px solid var(--trait); }
.faq details:first-of-type { margin-top: 12px; }
.faq summary { padding: 12px 26px 12px 0; font-weight: 600; font-size: 1.05em; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 6px; font-family: var(--mono); font-size: 20px; color: var(--fluo); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 14px; color: var(--craie); line-height: 1.36; }

.foot {
  position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px var(--gutter); background: #000; font-family: var(--mono); font-size: 12px; color: var(--craie);
}
.foot-mark { flex: 1; height: 8px; max-width: 320px; background: var(--fluo); }

/* ---------- Mobile ---------- */
@media (max-width: 860px), (max-height: 640px) {
  .stop { min-height: 118vh; align-items: flex-end; padding-bottom: 8vh; }
  .plate, .plate--clip, .plate--alarm, .plate--print { position: relative; top: auto; width: 100%; }
  .stop[data-side] { justify-content: center; }
  .hud { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .top { padding: 10px 16px; }
  .top-cta { font-size: 9.5px; padding: 8px 10px; }
  .brand { font-size: 21px; }
  .hud { display: none; }
  .hero { padding-bottom: 60px; }
  .hero-foot { grid-template-columns: 1fr; gap: 14px; }
  .hero-lead { font-size: 17px; }
  .law { padding-top: 54vh; min-height: 0; padding-bottom: 8vh; }
  .law-inner { position: relative; top: auto; max-width: none; padding: 18px 16px; }
  .law-amount strong { font-size: 26.5vw; }
  .marks { padding-top: 38vh; min-height: 0; }
  .marks-inner { position: relative; top: auto; width: 100%; padding: 18px 16px; }
  .marks-list > div { grid-template-columns: 1fr; gap: 2px; }
  .plate { padding: 14px 16px 18px; }
  .plate-head { padding-left: 16px; padding-right: 16px; margin-left: -16px; margin-right: -16px; }
  .plate h2 { font-size: 40px; }
  .score { grid-template-columns: 1fr; gap: 10px; }
  .matrix { margin: 0 auto 18px 22px; }
  .readout { position: absolute; right: 0; top: 0; flex-direction: column; gap: 4px; }
  .score { position: relative; }
  .readout b { font-size: 54px; }
  .tags li { padding-left: 28px; grid-template-columns: 1fr; }
  .typed { padding-right: 0; }
  .choice { grid-column: 1; grid-row: auto; grid-auto-flow: column; justify-content: start; margin-top: 4px; }
  .stamp { right: 8px; font-size: 21px; top: auto; bottom: 6px; transform: rotate(-7deg) scale(1.8); }
  .tags li.stamped .stamp { transform: rotate(-7deg); }
  .board { grid-template-columns: 1fr; }
  .board-main { flex-direction: row; align-items: center; gap: 10px; }
  .board-main b { font-size: 54px; }
  .action-list { font-size: .85em; }
  .actions { grid-template-columns: 92px 1fr; gap: 10px 14px; }
  .dial { width: 86px; height: 86px; }
  .dial-marks { gap: 8px; font-size: 10px; }
  .action-list th:nth-child(3), .action-list td:nth-child(3) { display: none; }
  .log li { font-size: 9px; }
  .fallen { min-width: 0; width: calc(100% - 40px); }
  .fallen b { font-size: 22px; }
  .step { min-height: 92vh; }
  .step:nth-of-type(2) { justify-content: flex-start; }
  .step-n { font-size: 34vw; line-height: 1.1; }
  .step { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
  .shadow-pin h2 { font-size: 21vw; line-height: 1.06; }
  .wait { grid-template-columns: 1fr; padding-top: 30vh; }
  .wait-plate { box-shadow: 8px 8px 0 #000; }
  .field { grid-template-columns: 1fr; }
  .field input { border-right: 3px solid #000; border-bottom: 0; }
  .field button { padding: 13px; }
  #tags .tag-chip { min-width: 0; font-size: 9.5px; }
  #tags .tag-chip b { font-size: 10.5px; }
  /* Maquette : colonnes aux bords, filet horizontal vers le point */
  #tags .tag.treated .tag-chip { width: 112px; white-space: normal; left: auto; right: var(--edge); top: calc(var(--dy, 0px) - 12px); bottom: auto; padding: 3px 6px 4px; font-size: 9px; line-height: 1.3; }
  #tags .tag.treated.side-r .tag-chip { right: auto; left: var(--edge); }
  #tags .tag.treated .tag-chip b { font-size: 9.5px; line-height: 1.2; }
  #tags .tag.treated .tag-fix { font-size: 0; }
  #tags .tag.treated .tag-fix em, #tags .tag.treated .tag-fix strong, #tags .tag.treated .tag-fix i { font-size: 10px; }
  html.open .shadow-pin p { display: none; }
  #tags .tag.treated .tag-line { top: -1px; height: 2px; width: var(--edge); left: auto; right: 0; }
  #tags .tag.treated.side-r .tag-line { left: 0; right: auto; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #blackout { display: none !important; }
  html.webgl .hero-foot { opacity: 1; transform: none; }
  html.still.past #scene { filter: brightness(.5); }
  html.still .hud { display: none; }
  .ram { transform: translateY(0); }
  .fallen { transform: none; }
  .paper { transform: none; }
  .beacon { opacity: 1; }
}

/* ---------- Sans WebGL : le fond CSS porte la même idée ---------- */
html:not(.webgl) .hero-title { color: var(--argent); font-size: clamp(60px, 11.4vw, 170px); }
html:not(.webgl) .shadow, html.still .shadow { height: auto; }
html:not(.webgl) .shadow-pin, html.still .shadow-pin { position: relative; height: auto; opacity: 1; padding-top: 16vh; padding-bottom: 12vh; }
html:not(.webgl) .wait, html.still .wait { padding-top: 8vh; }
html:not(.webgl) .hud { display: none; }
html:not(.webgl) body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle 46vmin at var(--bx) var(--by), rgba(255, 240, 190, .2), rgba(255, 240, 190, .05) 46%, transparent 72%);
}
html:not(.webgl) .law-inner, html:not(.webgl) .marks-inner { background: #0b0b0a; }
