/* =========================================================
   Robin Steffen — Portfolio 2026 · « Le site comme une série d'affiches »
   Papier gris granuleux + un seul rouge ; version nuit noir / gris / orange.
   ========================================================= */

:root {
  --paper: #E4E1DA;
  --paper-2: #D9D5CC;
  --red: #E3170E;        /* titres et grands chiffres (≥ 18px gras / 24px) — 3.66:1 sur le papier */
  --red-ink: #B8120B;    /* rouge « texte » : tout texte rouge < 18px — 5.14:1 sur --paper, 4.58:1 sur --paper-2 */
  --ink: #0B0B0A;
  --ink-2: #3A3732;
  --night: #0D0D0C;
  --grey: #C9C7C2;
  --grey-2: #A9A7A1;
  --orange: #FF4A1C;
  --pad: clamp(16px, 3.9vw, 56px);
  --sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wide: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; color: var(--red-ink);
  background: var(--paper) url(../assets/grain-papier.png) repeat;
  font-family: var(--sans); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--red-ink); color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.night :focus-visible, .pj--night :focus-visible { outline-color: var(--orange); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 12px 16px; min-height: 44px; background: var(--red-ink); color: var(--paper); font-weight: 700; }
.skip:focus { top: 12px; }
.logo { width: .81em; height: 1em; }
#logo .l-head { fill: currentColor; }
#logo .l-eye { fill: var(--logo-eye, var(--paper)); }
.u-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--red-ink); }
.u-link:hover { color: var(--ink); }

/* ---------- Ligne d'étiquettes « affiche » ---------- */
.ph { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 24px; align-items: start; }
.ph > * { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ph .c { align-items: center; text-align: center; }
.ph .r { align-items: flex-end; text-align: right; }
.ph p { font-size: 12px; line-height: 1.35; font-weight: 500; color: var(--red-ink); }
.ph p strong { font-weight: 700; }
.ph__lab { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--red-ink); line-height: 1.1; }
a.ph__lab:hover, .ph p a:hover { color: var(--ink); }
/* Zones tactiles ≥ 44px sans décaler la mise en page (marges négatives) */
a.ph__lab, .ph p a { display: inline-flex; align-items: center; min-height: 44px; margin: -14px 0; }
.ph .c > a.ph__lab { align-self: center; } .ph .r > a.ph__lab { align-self: flex-end; }
.ph > div:not(.c):not(.r) > a.ph__lab { align-self: flex-start; }
.ph--foot { align-items: end; }
.ph--foot p, .ph--foot a { font-size: 12px; }
.ph--foot .ph__lab { font-size: 12px; }

/* ---------- Affiches (sections papier) ---------- */
.poster { position: relative; padding: 40px var(--pad); }
.sq { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--red-ink); }
.sq::before { content: ''; width: 11px; height: 11px; background: var(--red); flex: none; }
.sq-box { display: block; width: .62em; height: .62em; background: var(--red); flex: none; }

/* Trame précalculée (images en points noirs, fond transparent) */
.trame { position: relative; display: block; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%); }
.trame img, .trame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0; transition: opacity 1s ease; }
.trame img.is-on, .trame video.is-on { opacity: 1; }
.sel__img.trame { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); }
/* Ancien halftone (plus utilisé) */
.ht-wrap { position: relative; display: block; overflow: hidden; cursor: crosshair; }
.ht-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ht-color { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1;
  -webkit-mask-image: radial-gradient(circle var(--mr, 0px) at var(--mx, 50%) var(--my, 50%), #000 55%, transparent 100%);
  mask-image: radial-gradient(circle var(--mr, 0px) at var(--mx, 50%) var(--my, 50%), #000 55%, transparent 100%); }
.no-hover .ht-color { display: none; }

/* ---------- Barre fixe ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 0 var(--pad);
  color: var(--red-ink); background: rgba(228, 225, 218, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(196, 17, 10, .25);
  transform: translateY(-101%); transition: transform .5s var(--ease), background .3s, color .3s; }
.is-scrolled .bar { transform: none; }
.bar.on-night { color: var(--grey); background: rgba(13, 13, 12, .82); border-bottom-color: rgba(255, 74, 28, .3); --logo-eye: var(--night); }
.bar__id { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.bar__id .logo { font-size: 18px; }
.bar__links { display: flex; gap: 4px 26px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.bar__links a { display: inline-flex; align-items: center; min-height: 44px; }
.bar a:hover { color: var(--ink); }
.bar.on-night a:hover { color: var(--orange); }
.bar__burger { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.bar__burger span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-open .bar__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .bar__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .bar { transform: none; }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--paper) url(../assets/grain-papier.png); display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; padding: 90px var(--pad) 36px; }
.menu a { color: var(--red-ink); }
.menu nav a { color: var(--red); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(196, 17, 10, .3); font-size: 38px; font-weight: 700; letter-spacing: -.04em; }
.menu nav span { font-size: 12px; letter-spacing: 0; color: var(--red-ink); }
.menu__mail { font-size: 14px; font-weight: 700; }
.menu__mail a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 01 · Accueil ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero > .ph { position: relative; z-index: 3; }
.hero__img { position: absolute; left: 50%; top: 52%; width: min(66vw, 1060px); height: min(74vh, 780px); transform: translate(-50%, -50%); z-index: 1; }
.hero__title { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; pointer-events: none; margin: 0; }
.hero__title > span { grid-area: 1 / 1; }
.hero__name { font-size: clamp(64px, 14.6vw, 240px); line-height: .8; font-weight: 700; letter-spacing: -.055em; color: var(--red); white-space: nowrap; }
.hero__l, .hero__r { align-self: center; font-size: clamp(16px, 1.8vw, 28px); font-weight: 700; letter-spacing: -.02em; color: var(--red); transform: translateY(clamp(48px, 7.4vw, 124px)); }
.hero__l { justify-self: start; margin-left: 4.5vw; }
.hero__r { justify-self: end; margin-right: 4.5vw; }
.hero__foot { position: relative; z-index: 3; grid-template-columns: 1fr auto 1fr; }
.hero__foot > p { display: block !important; }
.hero__cap { font-size: 12px !important; }
.hero__cap strong { font-size: 12px; }
.hero__logo { align-self: end; display: block; color: var(--red); --logo-eye: var(--paper); font-size: 40px; line-height: 0; transition: transform .4s var(--ease); }
.hero__logo .logo { width: 32px; height: 40px; }
.hero__logo { display: flex; align-items: flex-end; justify-content: center; min-width: 44px; min-height: 44px; }
.hero__logo:hover { transform: translateY(4px); }

/* ---------- 03 · Projets phares ---------- */
.sel { min-height: 100vh; display: flex; flex-direction: column; gap: 28px; padding-top: 64px; padding-bottom: 40px; overflow: hidden; }
.sel__stage { position: relative; flex: 1; min-height: 560px; }
.sel__num { position: absolute; right: -1vw; top: 50%; transform: translateY(-58%); font-size: clamp(220px, 34vw, 560px); line-height: .78; font-weight: 700; letter-spacing: -.07em; color: var(--red); pointer-events: none; }
.sel__img { position: absolute; left: 20%; top: 50%; width: 56%; height: min(100%, 600px); transform: translateY(-50%); }
.sel__txt { position: absolute; left: 0; bottom: 6%; width: min(430px, 40%); display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.sel__title { display: flex; align-items: center; gap: 12px; font-family: var(--wide); font-size: clamp(30px, 3vw, 46px); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--red); }
.sel__txt p { font-size: 13px; line-height: 1.35; font-weight: 600; text-align: justify; color: var(--red-ink); }
.sel__thumbs { display: flex; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.thumb { width: 150px; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.thumb__f { position: relative; display: block; width: 150px; height: 108px; overflow: hidden; background: var(--red); transition: outline-color .2s; outline: 3px solid transparent; outline-offset: 3px; }
.thumb__f img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.35); mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.thumb:hover .thumb__f img { transform: scale(1.06); }
.thumb.is-on .thumb__f { outline-color: var(--ink); }
.thumb span:last-child { font-size: 12px; font-weight: 700; color: var(--red-ink); }

/* ---------- 05 · Design ---------- */
.design { padding-top: 64px; padding-bottom: 100px; }
.design__title { margin: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); font-size: clamp(64px, 12vw, 200px); line-height: .8; font-weight: 700; letter-spacing: -.06em; color: var(--red); }
.posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 44px 28px; align-items: start; }
.poster-card { display: flex; flex-direction: column; gap: 10px; }
.pc__f { position: relative; display: block; overflow: hidden; background: #fff; }
.pc__f img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pc__f { background: var(--paper-2); }
.pc__f { box-shadow: 0 18px 40px rgba(11, 11, 10, .16); transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.poster-card:hover .pc__f { transform: rotate(-1.2deg) translateY(-6px); box-shadow: 0 28px 50px rgba(11, 11, 10, .22); }
.poster-card:hover .pc__f img { transform: scale(1.02); }
.pc__cap { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; color: var(--red-ink); }
.pc__cap b { font-weight: 700; color: var(--red-ink); text-transform: uppercase; }
.poster-card.down { margin-top: 64px; } .poster-card.down2 { margin-top: 32px; }
.poster-card.wide { grid-column: span 2; }

/* ---------- Nuit (code, contact) ---------- */
.night { position: relative; background: var(--night) url(../assets/grain-nuit.png) repeat; color: var(--grey); padding: 48px var(--pad) 88px; }
.night a:hover { color: var(--orange); }
.obar { position: absolute; top: 0; width: 70px; height: 6px; background: var(--orange); }
.obar--tl { left: 20%; } .obar--tr { right: 20%; }
.nh { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)) auto; gap: 8px 24px; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--grey-2); }
.contact .nh { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.nh > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nh i { font-style: normal; color: var(--orange); font-size: 10px; }
.nh .r { align-items: flex-end; text-align: right; }
.striped { font-family: var(--wide); font-weight: 700; text-transform: none; letter-spacing: -.055em; line-height: .84;
  font-size: clamp(60px, 12vw, 190px); color: var(--grey); }
.striped--sm { font-size: clamp(40px, 5vw, 72px); }
/* Contact */
.contact { padding-bottom: 0; display: flex; flex-direction: column; }
.contact__in { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding: clamp(56px, 8vw, 104px) 0 clamp(80px, 10vw, 128px); }
.contact__txt { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact__txt .striped { font-size: clamp(56px, 9vw, 150px); }
.contact__txt p { max-width: 480px; font-size: 14px; line-height: 1.45; font-weight: 700; text-transform: uppercase; color: var(--grey-2); }
.mail { align-self: flex-start; display: inline-flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 28px; background: var(--orange); color: var(--night); font-size: clamp(16px, 1.7vw, 22px); font-weight: 800; transition: background .25s; }
.night .mail:hover { background: var(--grey); color: var(--night); }
.mail-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.mail-row .mail { align-self: auto; max-width: 100%; overflow-wrap: anywhere; }
.copy { min-height: 64px; min-width: 44px; padding: 0 22px; border: 1px solid var(--grey-2); background: transparent; color: var(--grey); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.copy:hover { border-color: var(--orange); color: var(--orange); }
.copy.is-done { border-color: var(--orange); background: var(--orange); color: var(--night); }
.console-wrap { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 0 auto; }
.console { position: relative; width: 320px; max-width: 100%; padding: 0 20px 28px; background: #DCD8CF; border-radius: 12px 12px 64px 12px; color: #3B3A44; box-shadow: inset -5px -6px 0 rgba(0, 0, 0, .07), inset 3px 3px 0 rgba(255, 255, 255, .45), 0 40px 80px rgba(0, 0, 0, .6); }
.console__groove { height: 20px; margin: 0 -20px 18px; border-bottom: 1px solid rgba(0, 0, 0, .12); box-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.console__bezel { padding: 12px 22px 22px; background: #4E4D57; border-radius: 10px 10px 38px 10px; }
.console__label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 7.5px; font-weight: 600; letter-spacing: .16em; color: #B9B7C0; white-space: nowrap; }
.ln { flex: 1; height: 2px; } .ln--r { background: #8E1F45; } .ln--b { background: #3D3B8E; }
.console__screenrow { display: flex; align-items: center; gap: 12px; }
.console__led { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 6.5px; font-weight: 600; letter-spacing: .1em; color: #B9B7C0; }
.console__led span { width: 7px; height: 7px; border-radius: 50%; background: #3A2A2A; transition: background .2s, box-shadow .2s; }
.console.is-on .console__led span { background: #FF2E2E; box-shadow: 0 0 6px #FF2E2E; }
#game { flex: 1; min-width: 0; width: 100%; aspect-ratio: 10 / 9; height: auto; image-rendering: pixelated; background: #9BBC0F; box-shadow: inset 0 0 0 2px rgba(15, 56, 15, .18); }
.console__brand { display: flex; align-items: center; gap: 8px; margin: 14px 2px 24px; color: #2E2D33; }
.console__brand .logo--console { font-size: 15px; --logo-eye: #DCD8CF; }
.console__brand span:nth-child(2) { font-weight: 800; font-style: italic; font-size: 15px; }
.console__brand .mono { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #6A6873; }
.console__controls { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.dpad { position: relative; width: 84px; height: 84px; }
.dpad span { position: absolute; background: #2A292F; border-radius: 4px; box-shadow: 0 2px 0 rgba(255, 255, 255, .4); }
.dpad span:first-child { left: 28px; top: 0; width: 28px; height: 84px; }
.dpad span:nth-child(2) { left: 0; top: 28px; width: 84px; height: 28px; }
.dpad i { position: absolute; left: 33px; top: 33px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #1C1B20 0 35%, #2A292F 75%); }
.ab { display: flex; gap: 16px; transform: rotate(-25deg); margin-right: 2px; }
.ab > div { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 20px; }
.ab > .ab__a { margin-top: 0; }
.ab span { font-size: 11px; font-weight: 800; color: #3D3B8E; }
.ab__btn { width: 48px; height: 48px; border: 0; border-radius: 50%; background: #8E1F45; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28), 0 2px 0 rgba(255, 255, 255, .35); }
.ab__btn:active, .ab__btn.is-down { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .28); }
.console__ss { display: flex; justify-content: center; gap: 18px; margin: 22px 60px 0 0; }
.console__ss button { min-height: 44px; padding: 0 6px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 9px; font-weight: 700; letter-spacing: .14em; color: #3D3B8E; cursor: pointer; }
.console__ss button i { font-style: normal; }
.console__ss button span { display: block; width: 40px; height: 11px; border-radius: 6px; background: #8A8893; transform: rotate(-25deg); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); }
.console__speaker { position: absolute; right: 24px; bottom: 26px; display: flex; gap: 6px; transform: rotate(-28deg); }
.console__speaker span { display: block; width: 5px; height: 44px; border-radius: 3px; background: #C2BEB4; box-shadow: inset 0 2px 2px rgba(0, 0, 0, .25); }
.console__hint { font-size: 12px; font-weight: 700; color: var(--grey-2); letter-spacing: .04em; }
.foot { position: relative; margin: 0 calc(var(--pad) * -1); border-top: 1px solid rgba(201, 199, 194, .16); }
.foot__glow { position: absolute; left: 0; right: 0; bottom: 100%; height: 150px; pointer-events: none; will-change: height; background-image: radial-gradient(circle, rgba(255, 74, 28, .95) 1.6px, transparent 2px); background-size: 9px 9px; -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, transparent 70%); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 22px var(--pad) 26px; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--grey-2); }
.foot__in b { color: var(--grey); }
.foot__in a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Page projet / archive ---------- */
.pj { position: fixed; inset: 0; z-index: 100; background: var(--paper) url(../assets/grain-papier.png); color: var(--red); clip-path: inset(100% 0 0 0); }
.pj--night { background: var(--night) url(../assets/grain-nuit.png); color: var(--grey); }
.pj__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pj__bar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 52px; padding: 0 var(--pad); font-size: 12px; font-weight: 700; text-transform: uppercase;
  background: rgba(228, 225, 218, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(196, 17, 10, .25); }
.pj--night .pj__bar { background: rgba(13, 13, 12, .88); border-bottom-color: rgba(255, 74, 28, .3); }
.pj__bar a, .pj__bar button { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.pj__bar > :last-child { justify-self: end; }
.pj__bar .mid { color: var(--red-ink); font-weight: 600; }
.pj--night .pj__bar .mid { color: var(--grey-2); }
.pj__bar a:hover, .pj__bar button:hover { color: var(--ink); }
.pj--night .pj__bar a:hover, .pj--night .pj__bar button:hover { color: var(--orange); }
.pj__in { padding: 36px var(--pad) 96px; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.pj .ph p { color: var(--red-ink); }
.pj--night .nh { color: var(--grey-2); }
.pj__hero { position: relative; width: 100%; aspect-ratio: 16 / 8; max-height: 78vh; }
.pj__hero--img { overflow: hidden; background: var(--paper-2); }
.pj__hero--img img { width: 100%; height: 100%; object-fit: cover; }
.pj--night .pj__hero--img { background: #000; outline: 1px solid var(--orange); outline-offset: 8px; }
.pj__vid { position: relative; aspect-ratio: 16 / 9; max-height: 80vh; overflow: hidden; background: var(--red); margin: 0 auto; width: 100%; }
.pj--night .pj__vid { background: #000; outline: 1px solid var(--orange); outline-offset: 8px; }
.pj__vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; }
.pj__vid video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.pj__vid .films__play { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.pj__vid .label { position: absolute; left: 18px; bottom: 16px; font-size: 12px; font-weight: 700; color: var(--paper); text-transform: uppercase; }
.pj__vid.is-playing .films__play, .pj__vid.is-playing .label { display: none; }
.pj__title { font-family: var(--wide); font-size: clamp(56px, 10vw, 170px); line-height: .84; font-weight: 700; letter-spacing: -.055em; color: var(--red); overflow-wrap: anywhere; }
.pj--night .pj__title { color: var(--grey); }
.pj__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 18px 28px; padding-top: 14px; border-top: 2px solid var(--red); }
.pj--night .pj__meta { border-top-color: var(--orange); }
.pj__meta div { display: flex; flex-direction: column; gap: 6px; }
.pj__meta dt { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--red-ink); }
.pj--night .pj__meta dt { color: var(--orange); }
.pj__meta dd { font-size: 13px; font-weight: 600; color: var(--red-ink); }
.pj--night .pj__meta dd { color: var(--grey); }
.pj__intro { max-width: 1000px; font-size: clamp(20px, 2vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; color: var(--red); }
.pj--night .pj__intro { color: var(--grey); }
.pj__gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 24px; }
.pj__gal img { width: 100%; height: auto; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding: 40px 0; border-top: 2px solid var(--red); }
.pj--night .step { border-top: 1px solid rgba(255, 74, 28, .5); }
.step__txt { display: flex; flex-direction: column; gap: 12px; }
.step__n { font-size: 12px; font-weight: 700; color: var(--red-ink); }
.pj--night .step__n { color: var(--orange); }
.step__txt h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 2vw, 30px); line-height: 1; font-weight: 700; letter-spacing: -.035em; color: var(--red); }
.step__txt h3::before { content: ''; width: .55em; height: .55em; background: var(--red); flex: none; }
.pj--night .step__txt h3 { color: var(--grey); text-transform: uppercase; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; }
.pj--night .step__txt h3::before { background: var(--orange); }
.step__txt p { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--ink-2); }
.pj--night .step__txt p { color: var(--grey-2); }
.step__media { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; align-items: start; }
.step__media.is-one { grid-template-columns: 1fr; }
.step__media figure { position: relative; overflow: hidden; background: var(--paper-2); }
.pj--night .step__media figure { background: #1a1917; }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__code { min-width: 0; margin: 0; padding: 22px; background: var(--night); color: var(--grey); font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; }
.pj--night .step__code { border: 1px solid rgba(255, 74, 28, .5); }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.docs div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid rgba(255, 74, 28, .5); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.docs b { color: var(--orange); } .docs span { color: var(--grey-2); }
.ps1 { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.ps1 > div { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid rgba(255, 74, 28, .5); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--grey-2); }
.ps1 .res { flex: 2 1 260px; min-height: 160px; justify-content: space-between; }
.ps1 .res > div { display: flex; align-items: flex-end; gap: 16px; }
.ps1 .res i { display: block; width: 107px; height: 60px; border: 2px solid var(--orange); flex: none; }
.ps1 .res b { font-family: var(--wide); font-weight: 700; letter-spacing: -.04em; font-size: 36px; line-height: 1; color: var(--grey); }
.ps1 .bayer { flex: 1 1 170px; }
.ps1 .bayer > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 128px; }
.ps1 .bayer > div > span { display: block; height: 29px; }
.pj__next { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 28px; background: var(--red-ink); color: var(--paper); }
.pj--night .pj__next { background: var(--orange); color: var(--night); }
.pj__next > span { display: flex; flex-direction: column; gap: 6px; }
.pj__next small { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.pj__next strong { font-family: var(--wide); font-size: clamp(28px, 3.6vw, 56px); line-height: .95; font-weight: 700; letter-spacing: -.045em; }
.pj__next .nx { position: relative; width: 240px; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(0, 0, 0, .15); }
.pj__next .nx img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.3); mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.pj__next:hover .nx img { transform: scale(1.05); }
.pj__ph { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 24px; }
.pj__ph strong { font-size: clamp(40px, 7vw, 110px); line-height: .85; font-weight: 700; letter-spacing: -.05em; color: var(--red); }
.pj--night .pj__ph strong { font-family: var(--wide); font-weight: 700; color: var(--grey); }

/* ---------- Apparitions ---------- */
.js.is-loading .hero > * { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ph { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph > :nth-child(4) { display: none; }
  .hero > nav.ph > :nth-child(3) { display: none; }
  .hero__foot > a { display: flex !important; }
  .nh { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nh > :nth-child(n+4):not(.r) { display: none; }
  .poster-card.wide { grid-column: auto; }
  .poster-card.down, .poster-card.down2 { margin-top: 0; }
  .films__in, .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .bar__links { display: none; }
  .bar__burger { display: flex; }
  .ph { grid-template-columns: 1fr 1fr; }
  .ph > .c { display: none !important; }
  .ph .r { display: flex; }
  .hero > nav.ph > :nth-child(4) { display: none !important; }
  .hero__foot > .hero__logo { display: none !important; }
  .hero__img { width: 120vw; height: 62vh; top: 50%; }
  .hero__title { grid-template-columns: 1fr 1fr; align-content: center; row-gap: 12px; }
  .hero__title > .hero__name { grid-area: 1 / 1 / 2 / 3; white-space: normal; font-size: 26vw; line-height: .8; }
  .hero__title > .hero__l, .hero__title > .hero__r { grid-area: 2 / 1; transform: none; font-size: 15px; margin: 0; }
  .hero__title > .hero__r { grid-area: 2 / 2; text-align: right; }
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .hero__logo { display: none; }
  .sel__stage { min-height: 0; display: flex; flex-direction: column; gap: 18px; }
  .sel__num { position: absolute; right: -2vw; top: 0; transform: none; font-size: 44vw; }
  .sel__img { position: relative; left: auto; top: auto; transform: none; width: 100%; height: 68vw; margin-top: 18vw; }
  .sel__txt { position: relative; width: 100%; bottom: auto; }
  .sel__thumbs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .thumb, .thumb__f { width: 128px; } .thumb__f { height: 92px; }
  .pass li { grid-template-columns: 30px minmax(0, 1fr); }
  .pass i { grid-column: 2; text-align: left; }
  .lab__in { grid-template-columns: 1fr; }
  .lab__side { border-left: 0; border-top: 1px solid rgba(255, 74, 28, .4); }
  .term { height: 420px; }
  .step { grid-template-columns: 1fr; }
  .ar__row { grid-template-columns: 34px minmax(0, 1fr) 44px; }
  .ar__row .hide-sm { display: none; }
  .ar__prev { display: none; }
  .pj__bar .mid { display: none; }
  .pj__bar { grid-template-columns: 1fr 1fr; }
  .pj__next { grid-template-columns: 1fr; }
  .pj__next .nx { width: 100%; }
  .obar { display: none; }
  .contact .nh { grid-template-columns: 1fr 1fr; }
  .contact .nh > :nth-child(3) { display: none; }
}
@media (hover: none) { .cursor-img, .ar__prev { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Petits graphiques des pages projet (js/graphics.js) ---------- */
.pj { --gx-acc: var(--red-ink); --gx-line: rgba(196, 17, 10, .45); --gx-txt: var(--ink-2); --gx-big: var(--red); --gx-soft: rgba(196, 17, 10, .08); }
.pj--night { --gx-acc: var(--orange); --gx-line: rgba(255, 74, 28, .5); --gx-txt: var(--grey-2); --gx-big: var(--grey); --gx-soft: rgba(255, 74, 28, .09); }
.gx-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gx { min-width: 0; }
.gx__box { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--gx-line); min-width: 0; }
.gx__t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--gx-txt); }
.gx__n { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gx-txt); }
.gx__big { font-family: var(--wide); font-size: clamp(30px, 3.4vw, 46px); line-height: .9; font-weight: 700; letter-spacing: -.045em; color: var(--gx-big); }
.gx--stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; }
.gx--stats .gx__box { justify-content: space-between; min-height: 132px; }
/* schéma */
.gx--flow ol { display: flex; flex-wrap: wrap; gap: 10px 0; counter-reset: none; }
.gx--flow li { position: relative; flex: 1 1 120px; display: flex; flex-direction: column; gap: 6px; padding: 12px 22px 12px 12px; border: 1px solid var(--gx-line); margin-right: 18px; min-width: 0; }
.gx--flow li::after { content: '→'; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--gx-acc); }
.gx--flow li:last-child { margin-right: 0; background: var(--gx-soft); }
.gx--flow li:last-child::after { display: none; }
.gx--flow .gx__i { font-size: 12px; font-weight: 700; color: var(--gx-acc); }
.gx--flow b { font-size: 14px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--gx-big); }
.gx--flow li span:last-child:not(.gx__i) { font-size: 12px; line-height: 1.35; font-weight: 500; color: var(--gx-txt); }
/* terminal */
.gx--term { border: 1px solid var(--gx-line); background: #0D0D0C; }
.gx--term .gx__bar { display: flex; justify-content: space-between; padding: 9px 16px; border-bottom: 1px solid rgba(255, 74, 28, .35); font-family: var(--mono); font-size: 12px; color: #8A8781; }
.gx--term pre { margin: 0; padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: #C9C7C2; white-space: pre-wrap; word-break: break-word; }
.gx__p { color: var(--orange); }
.gx__o { color: #A9A7A1; }
/* étiquettes */
.gx--chips > div { display: flex; flex-wrap: wrap; gap: 6px; }
.gx--chips > div span { padding: 5px 9px; border: 1px solid var(--gx-line); font-family: var(--mono); font-size: 12px; color: var(--gx-big); }
.gx--chips > div span.on { background: var(--gx-acc); border-color: var(--gx-acc); color: var(--night); }
.pj:not(.pj--night) .gx--chips > div span.on { color: var(--paper); }
/* mémoire */
.gx__map { display: flex; flex-direction: column; min-height: 230px; border: 1px solid var(--gx-line); }
.gx__map > div { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 12px; padding: 6px 12px; border-top: 1px solid var(--gx-line); min-height: 34px; }
.gx__map > div:first-child { border-top: 0; }
.gx__map > div.on { background: var(--gx-soft); }
.gx__map code { font-family: var(--mono); font-size: 12px; color: var(--gx-acc); }
.gx__map b { font-size: 13px; font-weight: 700; color: var(--gx-big); }
.gx__map span { font-size: 12px; font-weight: 500; color: var(--gx-txt); }
/* timeline LRC */
.gx__track { position: relative; height: 64px; border-bottom: 1px solid var(--gx-line); }
.gx__track span { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0 6px 6px; border-left: 2px solid var(--gx-acc); background: var(--gx-soft); overflow: hidden; }
.gx__track span:nth-child(odd) { background: transparent; }
.gx__track b { font-size: 13px; font-weight: 700; color: var(--gx-big); white-space: nowrap; }
.gx__track i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--gx-txt); }
.gx__axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--gx-txt); }
.gx__raw { display: block; padding: 10px 12px; border: 1px dashed var(--gx-line); font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--gx-txt); word-break: break-all; }
/* règles */
.gx--rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.gx--rules p { font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--gx-big); }
.gx--rules em { display: inline-block; min-width: 52px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--gx-acc); }
/* niveau PixelQuest */
.gx__lv { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; max-width: 520px; }
.gx__lv i, .gx__legend i { display: block; aspect-ratio: 1; background: transparent; outline: 1px solid var(--gx-line); outline-offset: -1px; }
.gx i.w { background: var(--gx-big); outline: 0; }
.gx i.e { background: #2E6BFF; outline: 0; }
.gx i.p { background: var(--gx-acc); outline: 0; border-radius: 50%; }
.gx i.k { background: #F2B705; outline: 0; transform: rotate(45deg) scale(.7); }
.gx i.d { background: transparent; outline: 2px solid var(--gx-acc); outline-offset: -2px; }
.gx__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; font-weight: 600; color: var(--gx-txt); }
.gx__legend span { display: inline-flex; align-items: center; gap: 6px; }
.gx__legend i { width: 11px; }
.gx--maze .gx__legend i.k { background: var(--gx-acc); transform: none; height: 3px; aspect-ratio: auto; width: 18px; }
/* labyrinthe */
.gx__mz { width: 100%; height: auto; }
.gx__wall { fill: none; stroke: var(--gx-big); stroke-width: 1.4; stroke-linecap: square; }
.gx__path { fill: none; stroke: var(--gx-acc); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gxdraw 3s .4s ease forwards; }
@keyframes gxdraw { to { stroke-dashoffset: 0; } }
/* tramage */
.gx--dither { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; }
.gx--dither canvas { width: 100%; height: auto; image-rendering: pixelated; color: var(--gx-big); }
@media (max-width: 760px) { .gx__map > div { grid-template-columns: 58px minmax(0, 1fr); } .gx__map span { grid-column: 2; } .gx--flow li { flex-basis: 100%; margin-right: 0; } .gx--flow li::after { content: '↓'; right: 50%; top: auto; bottom: -15px; transform: none; } }

/* ---------- Graphiques uniques (js/graphics2.js) ---------- */
.gx__btn { align-self: flex-start; min-height: 44px; padding: 0 16px; border: 1px solid var(--gx-acc); background: transparent; color: var(--gx-acc); font-family: var(--mono); font-size: 12px; cursor: pointer; transition: background .2s, color .2s; }
.gx__btn:hover { background: var(--gx-acc); color: var(--night); }
.pj:not(.pj--night) .gx__btn:hover { color: var(--paper); }
.gx__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.gx__row input { min-height: 44px; padding: 0 12px; border: 1px solid var(--gx-line); background: transparent; color: var(--gx-big); font-family: var(--mono); font-size: 13px; outline: none; }
.gx__row input:focus { border-color: var(--gx-acc); }
.gx__res { font-size: 12px; font-weight: 700; color: var(--gx-big); }
/* ondes */
.gx__wv { position: relative; display: grid; gap: 8px; }
.gx__wv svg { width: 100%; height: 56px; }
.gx__wv svg path { stroke: var(--gx-txt); stroke-width: 1.6; }
.gx__wv svg[data-w="voice"] path { stroke: var(--gx-acc); }
.gx__ph { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--gx-big); }
.gx__wv .gx__ph { animation: gxsweep 4s linear infinite; }
@keyframes gxsweep { from { left: 0; } to { left: 100%; } }
/* karaoké */
.gx--kara .gx__track span { transition: background .15s; }
.gx--kara .gx__track span.on { background: var(--gx-acc); }
.gx--kara .gx__track span.on b, .gx--kara .gx__track span.on i { color: var(--night); }
.pj:not(.pj--night) .gx--kara .gx__track span.on b, .pj:not(.pj--night) .gx--kara .gx__track span.on i { color: var(--paper); }
.gx--kara .gx__ph { background: var(--gx-big); z-index: 2; }
/* vram */
.gx__vr { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.gx__vr canvas { flex: 3 1 320px; width: 100%; aspect-ratio: 2 / 1; image-rendering: pixelated; border: 1px solid var(--gx-line); }
.gx__vr dl { flex: 1 1 110px; margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; font-family: var(--mono); }
.gx__vr dl div { display: flex; justify-content: space-between; padding: 6px 10px; border: 1px solid var(--gx-line); font-size: 12px; }
.gx__vr dt { color: var(--gx-acc); } .gx__vr dd { margin: 0; color: var(--gx-big); }
/* repl */
.gx--repl { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--gx-line); }
.gx--repl .gx__col { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-width: 0; }
.gx--repl .gx__col + .gx__col { border-left: 1px solid var(--gx-line); background: rgba(0, 0, 0, .25); }
.gx--repl pre { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--gx-txt); white-space: pre-wrap; }
.gx--repl [data-l] { display: inline-block; width: 100%; transition: background .2s, color .2s; }
.gx--repl [data-l].on { background: var(--gx-soft); color: var(--gx-acc); box-shadow: -8px 0 0 var(--gx-acc); }
.gx__out { color: var(--gx-big) !important; min-height: 140px; }
@media (max-width: 760px) { .gx--repl { grid-template-columns: 1fr; } .gx--repl .gx__col + .gx__col { border-left: 0; border-top: 1px solid var(--gx-line); } }
/* tokens */
.gx__sent { display: flex; flex-wrap: wrap; gap: 6px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.03em; color: var(--gx-big); }
.gx__sent span { padding: 2px 8px; border: 1px solid var(--gx-line); }
.gx__sent .gx__next { border-style: dashed; color: var(--gx-acc); min-width: 1.4em; }
.gx--tok.is-pick .gx__next { border-style: solid; background: var(--gx-acc); color: var(--night); }
.gx--tok ul { display: grid; gap: 6px; }
.gx--tok li { display: grid; grid-template-columns: 90px minmax(0, 1fr) 46px; align-items: center; gap: 10px; font-size: 13px; }
.gx--tok li b { color: var(--gx-big); font-weight: 700; }
.gx--tok li i { height: 10px; background: var(--gx-line); transform-origin: left; transform: scaleX(var(--p)); }
.gx--tok li.on i { background: var(--gx-acc); }
.gx--tok li span { font-family: var(--mono); font-size: 12px; color: var(--gx-txt); text-align: right; }
/* paquets */
.gx__pk { display: flex; align-items: center; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.gx__node { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--gx-line); min-width: 104px; }
.gx__node b { font-size: 13px; color: var(--gx-big); } .gx__node span { font-size: 12px; color: var(--gx-txt); }
.gx__wire { position: relative; flex: 1 0 56px; height: 34px; }
.gx__wire::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--gx-line); }
.gx__wire em { position: absolute; left: 0; right: 0; top: -2px; text-align: center; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--gx-acc); white-space: nowrap; }
.gx__wire i { position: absolute; top: calc(50% - 4px); left: 0; width: 10px; height: 8px; background: var(--gx-acc); animation: gxpk 2.4s linear infinite; }
.gx__wire i:nth-child(3) { animation-delay: .8s; } .gx__wire i:nth-child(4) { animation-delay: 1.6s; }
@keyframes gxpk { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
.gx__mb { display: flex; gap: 10px; }
.gx__mb div { flex: 1; display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border: 1px solid var(--gx-line); }
.gx__mb code { font-family: var(--mono); font-size: 12px; color: var(--gx-acc); } .gx__mb b { font-family: var(--wide); font-size: 28px; letter-spacing: -.04em; color: var(--gx-big); }
/* prophéties & dés */
.gx__q { margin: 0; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; color: var(--gx-big); }
.gx__q.pop { animation: gxpop .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes gxpop { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
.gx__dz { display: flex; gap: 14px; }
.gx__d { display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid var(--gx-line); font-family: var(--wide); font-size: 40px; font-weight: 700; letter-spacing: -.04em; color: var(--gx-txt); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--gx-soft); }
.gx__d.keep { background: var(--gx-acc); color: var(--night); }
/* QTE */
.gx__qt { display: grid; justify-items: start; gap: 12px; }
.gx__qmsg { font-size: 16px; font-weight: 700; color: var(--gx-big); }
.gx__key { width: 64px; height: 64px; border: 2px solid var(--gx-acc); border-bottom-width: 6px; background: transparent; color: var(--gx-acc); font-family: var(--mono); font-size: 26px; font-weight: 700; cursor: pointer; }
.gx__key:active { transform: translateY(3px); border-bottom-width: 3px; }
.gx--qte .gx__bar { width: 100%; height: 8px; background: var(--gx-soft); }
.gx--qte .gx__bar i { display: block; height: 100%; background: var(--gx-acc); transform-origin: left; }
.gx--qte.ok .gx__key { background: var(--gx-acc); color: var(--night); }
.gx--qte.ko .gx__res { color: var(--gx-acc); }
/* diffusion */
.gx__dn { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gx__dn figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gx__dn canvas { width: 100%; height: auto; border: 1px solid var(--gx-line); image-rendering: pixelated; }
.gx__dn figcaption { font-family: var(--mono); font-size: 12px; color: var(--gx-txt); }
@media (max-width: 760px) { .gx__dn { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* fontaine */
.gx__ft { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.gx__ft canvas { width: 120px; height: 120px; image-rendering: pixelated; border: 6px solid #ECE8DF; }
.gx__ft > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; }
.gx__blocks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 340px; }
.gx__blocks i { aspect-ratio: 1; border: 1px solid var(--gx-line); transition: background .2s; }
.gx__blocks i.on { background: var(--gx-acc); border-color: var(--gx-acc); }
.gx--ft.ok .gx__res::after { content: '  ✓ fichier reconstruit'; color: var(--gx-acc); }
/* pixel sort */
.gx--ps canvas { width: min(100%, 360px); height: auto; image-rendering: pixelated; align-self: center; }
/* arbre */
.gx--tree svg, .gx--cyc svg, .gx--arc svg, .gx--face svg { width: 100%; height: auto; }
.gx--tree path { fill: none; stroke: var(--gx-line); stroke-width: 1.5; }
.gx--tree path.on { stroke: var(--gx-acc); stroke-width: 2.5; }
.gx--tree rect { fill: none; stroke: var(--gx-line); }
.gx--tree g.on rect { fill: var(--gx-acc); stroke: var(--gx-acc); }
.gx--tree text { font: 700 12px var(--sans); fill: var(--gx-big); text-anchor: middle; }
.gx--tree g.on text { fill: var(--night); }
.gx--tree text.gx__q { font-weight: 500; font-size: 12px; fill: var(--gx-txt); }
/* cycle */
.gx__cy { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.gx__cy svg { flex: 1 1 240px; max-width: 320px; }
.gx__cy path { fill: var(--gx-soft); stroke: var(--gx-line); }
.gx__cy path.nt { fill: rgba(0, 0, 0, .55); }
.gx__cy text { font: 700 10px var(--sans); fill: var(--gx-big); text-anchor: middle; text-transform: uppercase; }
.gx__cy circle { fill: var(--night); stroke: var(--gx-acc); }
.gx__cy .gx__c { fill: var(--gx-acc); font-size: 9px; }
.gx__hand { stroke: var(--gx-acc); stroke-width: 3; stroke-linecap: round; }
.gx__cy ul { flex: 1 1 200px; display: grid; gap: 6px; }
.gx__cy li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-left: 2px solid var(--gx-line); transition: border-color .3s, background .3s; }
.gx__cy li.on { border-left-color: var(--gx-acc); background: var(--gx-soft); }
.gx__cy li b { font-size: 13px; color: var(--gx-big); } .gx__cy li span { font-size: 12px; color: var(--gx-txt); }
/* saut */
.gx--arc circle { fill: var(--gx-acc); opacity: .55; }
.gx--arc .gx__gr { stroke: var(--gx-line); stroke-dasharray: 6 4; }
.gx--arc .gx__cube { fill: var(--gx-big); }
.gx--arc text { font: 600 11px var(--mono); fill: var(--gx-txt); text-anchor: end; }
/* tuiles */
.gx--tiles canvas { width: 100%; height: 240px; }
/* carte */
.gx__cd { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.gx__flip { position: relative; width: 170px; height: 240px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 800px; }
.gx__flip > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; backface-visibility: hidden; transition: transform .7s cubic-bezier(.2, .7, .2, 1); clip-path: polygon(14% 0, 86% 0, 100% 10%, 100% 88%, 50% 100%, 0 88%, 0 10%); }
.gx__back { background: repeating-linear-gradient(135deg, var(--gx-acc) 0 10px, #0D0D0C 10px 20px); color: #ECE8DF; font-family: var(--wide); font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
.gx__back small { font-family: var(--mono); font-size: 12px; letter-spacing: 0; padding: 4px 8px; background: #0D0D0C; }
.gx__front { background: linear-gradient(160deg, #F7D774, #B8892A); color: #0D0D0C; transform: rotateY(180deg); }
.gx__front b { font-family: var(--wide); font-size: 64px; line-height: .8; letter-spacing: -.05em; }
.gx__front i { font-style: normal; font-weight: 800; } .gx__front em { font-style: normal; font-size: 12px; } .gx__front span { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.gx__flip.is-open .gx__back { transform: rotateY(-180deg); }
.gx__flip.is-open .gx__front { transform: rotateY(0); }
.gx__flip.is-shake { animation: gxshake .12s linear infinite; }
@keyframes gxshake { 25% { transform: translate(2px, -1px) rotate(1deg); } 75% { transform: translate(-2px, 1px) rotate(-1deg); } }
.gx__steps { display: grid; gap: 6px; counter-reset: s; }
.gx__steps li { padding: 8px 12px; border-left: 2px solid var(--gx-line); font-size: 13px; font-weight: 600; color: var(--gx-txt); transition: all .3s; }
.gx__steps li.on { border-left-color: var(--gx-acc); color: var(--gx-big); background: var(--gx-soft); }
/* chat */
.gx__ch { display: flex; flex-direction: column; gap: 10px; }
.gx__b { max-width: 82%; padding: 12px 14px; border: 1px solid var(--gx-line); transition: opacity .4s, transform .4s; }
.gx__b.wait { opacity: 0; transform: translateY(8px); }
.gx__b.me { align-self: flex-end; background: var(--gx-acc); border-color: var(--gx-acc); }
.gx__b.me p { color: var(--night); }
.pj:not(.pj--night) .gx__b.me p { color: var(--paper); }
.gx__b p { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--gx-big); }
.gx__b cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--gx-acc); }
/* visage */
.gx__fc { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.gx__fc svg { flex: 1 1 240px; max-width: 320px; }
.gx--face circle { fill: var(--gx-acc); animation: gxdot 2.4s calc(var(--i) * 25ms) ease-in-out infinite; }
@keyframes gxdot { 50% { opacity: .35; } }
.gx--face .gx__jaw { fill: none; stroke: var(--gx-line); stroke-width: 1; }
.gx--face .gx__frame { fill: none; stroke: var(--gx-line); stroke-dasharray: 10 6; }
.gx--face .gx__scan { stroke: var(--gx-acc); stroke-width: 1.5; opacity: .7; }
.gx__fc dl { flex: 1 1 160px; margin: 0; display: grid; gap: 6px; }
.gx__fc dl div { display: flex; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--gx-line); font-size: 12px; }
.gx__fc dt { color: var(--gx-txt); } .gx__fc dd { margin: 0; font-weight: 700; color: var(--gx-big); }
/* 96 images */
.gx__fr { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.gx__cells { flex: 2 1 300px; display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.gx__cells i { aspect-ratio: 1; border: 1px solid var(--gx-line); }
.gx__cells i.past { background: var(--gx-soft); }
.gx__cells i.on { background: var(--gx-acc); border-color: var(--gx-acc); box-shadow: 0 0 12px var(--gx-acc); }
.gx__gauge { flex: 1 1 180px; display: flex; flex-direction: column; gap: 10px; }
.gx__gauge div { height: 10px; background: var(--gx-soft); }
.gx__gauge div i { display: block; height: 100%; background: var(--gx-acc); transform-origin: left; }
.gx__gauge b { font-family: var(--wide); font-size: 26px; letter-spacing: -.04em; color: var(--gx-big); }
/* pi */
.gx__digits { display: flex; flex-wrap: wrap; gap: 0; max-height: 220px; overflow-y: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--gx-txt); scrollbar-width: thin; }
.gx__digits b { color: var(--gx-big); margin-right: 2px; }
.gx__digits i { font-style: normal; width: 1ch; text-align: center; }
.gx__digits i.on { background: var(--gx-acc); color: var(--night); font-weight: 700; }
/* séquenceur */
.gx__sq { display: grid; gap: 6px; overflow-x: auto; }
.gx__tr { display: grid; grid-template-columns: 64px repeat(16, minmax(18px, 1fr)); gap: 4px; align-items: center; }
.gx__tr span { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gx-txt); }
.gx__tr button { height: 26px; padding: 0; border: 1px solid var(--gx-line); background: transparent; cursor: pointer; }
.gx__tr button:nth-of-type(4n+1) { border-color: var(--gx-txt); }
.gx__tr button.on { background: var(--gx-acc); border-color: var(--gx-acc); }
.gx__tr button.now { outline: 2px solid var(--gx-big); outline-offset: 1px; }
/* chaîne gartic */
.gx__cn { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; counter-reset: c; }
.gx__cn li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--gx-line); min-height: 140px; }
.gx__cn li.txt p { font-size: 15px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--gx-big); }
.gx__cn svg { width: 100%; height: auto; background: #ECE8DF; }
.gx__cn svg path { fill: none; stroke: #0D0D0C; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gxdraw 2.6s .3s ease forwards; }
/* carte du site */
.gx__sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.gx__sm ul { display: grid; gap: 6px; margin-top: 10px; }
.gx__sm li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--gx-line); }
.gx__sm code { font-family: var(--mono); font-size: 12px; color: var(--gx-big); }
.gx__sm .hid li { border-style: dashed; }
.gx__sm .hid code { color: var(--gx-acc); }
.gx__sm li span { font-size: 12px; color: var(--gx-txt); }
.gx__sm li.gone code { text-decoration: line-through; opacity: .6; }
.gx__sm li.deep { background: var(--gx-soft); }
/* timing ping-pong */
.gx__tz { position: relative; display: grid; grid-template-columns: 2fr 1fr 2fr; height: 74px; border: 1px solid var(--gx-line); }
.gx__tz span { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; font-size: 12px; color: var(--gx-txt); }
.gx__tz span + span { border-left: 1px solid var(--gx-line); }
.gx__tz b { font-size: 13px; color: var(--gx-big); }
.gx__tz .sw { background: var(--gx-soft); text-align: center; align-items: center; }
.gx__mk { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: var(--gx-acc); box-shadow: 0 0 10px var(--gx-acc); }
/* cassette */
.gx--tape svg { width: min(100%, 420px); height: auto; }
.gx__cs { fill: #1a1917; stroke: var(--gx-line); } .gx__lb { fill: #ECE8DF; } .gx__win { fill: #0D0D0C; stroke: var(--gx-line); }
.gx--tape text { font: 700 13px var(--sans); fill: #0D0D0C; } .gx--tape .gx__sd { fill: #E3170E; font-size: 18px; }
.gx__reel circle { fill: #ECE8DF; } .gx__reel path { stroke: #0D0D0C; stroke-width: 3; } .gx__tp { stroke: var(--gx-acc); stroke-width: 3; }
.gx__vu { display: flex; align-items: flex-end; gap: 3px; height: 48px; max-width: 420px; }
.gx__vu i { flex: 1; height: 100%; background: var(--gx-acc); transform-origin: bottom; }
/* batterie */
.gx__bt { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.gx__cell { position: relative; flex: 1 1 220px; height: 54px; border: 2px solid var(--gx-big); padding: 4px; }
.gx__cell::after { content: ''; position: absolute; right: -10px; top: 15px; width: 6px; height: 20px; background: var(--gx-big); }
.gx__cell i { display: block; height: 100%; background: var(--gx-big); transform-origin: left; }
.gx__cell i.low { background: var(--gx-acc); }
.gx__cell span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--gx-acc); mix-blend-mode: difference; }
.gx__code { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.gx__code div { display: flex; gap: 8px; }
.gx__code b { display: grid; place-items: center; width: 46px; height: 56px; border: 1px solid var(--gx-line); font-family: var(--mono); font-size: 26px; color: var(--gx-txt); }
.gx__code b.on { color: var(--gx-acc); border-color: var(--gx-acc); background: var(--gx-soft); }
/* portail */
.gx__pt { position: relative; display: grid; grid-template-columns: 1fr 24px 1fr; height: 150px; overflow: hidden; background: #000; }
.gx__scr { position: relative; padding: 10px; } .gx__scr .gx__t { color: #8A8781; }
.gx__scr.l { box-shadow: inset 0 0 0 1px #FF8C14; } .gx__scr.r { box-shadow: inset 0 0 0 1px #2896FF; }
.gx__gate { background: linear-gradient(90deg, #FF8C14, #2896FF); filter: blur(3px); animation: gxgate 1.6s ease-in-out infinite; }
@keyframes gxgate { 50% { filter: blur(7px); opacity: .7; } }
.gx__pin { position: absolute; right: 10px; bottom: 8px; font-family: var(--mono); font-size: 12px; color: #8A8781; } .gx__pin b { color: #ECE8DF; }
.gx__word { position: absolute; top: 58px; left: -30%; padding: 6px 12px; background: #4ADE80; color: #0D0D0C; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.gx__word.go { animation: gxword 4s linear forwards; }
@keyframes gxword { from { left: -30%; } to { left: 110%; } }
/* gridflow */
.gx--gp svg { width: 100%; height: auto; }
.gx__dots circle { fill: var(--gx-txt); opacity: .6; }
.gx__gpth { fill: none; stroke: url(#gpg); stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gxdraw 2.6s .3s ease forwards; }
.gx--gp input[type=range] { accent-color: var(--gx-acc); padding: 0; border: 0; min-height: 0; }
/* neural network : les 4 briques */
.gx__stackline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gx-txt); }
.gx__stackline span { padding: 5px 8px; border: 1px solid var(--gx-line); }
.gx__stackline span.k { color: var(--gx-big); border-color: var(--gx-acc); }
.gx__stackline b { color: var(--gx-acc); }
.gx__ll { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.gx__cellx { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--gx-line); min-width: 0; }
.gx__cellx svg { width: 100%; height: auto; }
.gx__cellx p { font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--gx-txt); }
.gx__cellx code { font-family: var(--mono); color: var(--gx-big); }
.gx__cellx em { font-style: normal; font-weight: 700; color: var(--gx-acc); text-transform: uppercase; font-size: 12px; }
.gx--llama .ax { stroke: var(--gx-line); stroke-dasharray: 3 3; }
.gx--llama .rb { fill: var(--gx-acc); }
.gx--llama .ring { fill: none; stroke: var(--gx-line); }
.gx--llama .vec { stroke: var(--gx-acc); stroke-width: 3; stroke-linecap: round; }
.gx--llama text { font: 600 10px var(--mono); fill: var(--gx-txt); text-anchor: middle; }
.gx--llama .relu { fill: none; stroke: var(--gx-txt); stroke-width: 1.5; stroke-dasharray: 4 3; }
.gx--llama .swish { fill: none; stroke: var(--gx-acc); stroke-width: 3; }
.gx--llama .dot { fill: var(--gx-big); }
.gx__att { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); gap: 3px; align-items: center; }
.gx__att span { font-size: 12px; font-weight: 700; color: var(--gx-txt); text-align: center; padding-right: 4px; white-space: nowrap; }
.gx__att i { aspect-ratio: 1; background: var(--gx-acc); opacity: calc(.12 + var(--w, 0) * .88); transition: outline-color .3s; outline: 1px solid transparent; }
.gx__att i.off { background: transparent; outline: 1px dashed var(--gx-line); opacity: .6; }
.gx__att i.row:not(.off) { outline: 2px solid var(--gx-big); outline-offset: -2px; }
