/* Noct, page de la démo. Pixel art nocturne : indigo, crème, or, un filet de cyan. */

@font-face {
  font-family: "Pixelify Sans";
  src: url("assets/fonts/pixelify-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #12152b;
  --bg-deep: #0b0d1f;
  --surface: #1a1e3c;
  --surface-2: #232850;
  --line: rgba(255, 243, 220, 0.14);
  --line-strong: rgba(255, 243, 220, 0.28);
  --cream: #fff3dc;
  --gold: #f2c75c;
  --gold-deep: #a57f22;
  --cyan: #9ff0ff;
  --ink: #1a1245;
  --text: #d9d6e4;
  --muted: #a9adc9;

  --font-pixel: "Pixelify Sans", "Courier New", ui-monospace, monospace;
  --font-text: "Newsreader", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --edge: clamp(20px, 5vw, 56px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  background: var(--cream); color: var(--ink); padding: 12px 20px;
  font-family: var(--font-pixel); font-size: 1rem; text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--edge); }
.wrap-wide { max-width: 1320px; }

/* ---------- Typographie ---------- */
h2, h3 { font-family: var(--font-pixel); font-weight: 500; color: var(--cream); letter-spacing: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); line-height: 1.08; }
h3 { font-size: 1.375rem; line-height: 1.2; }
.lead { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.5; color: var(--cream); font-weight: 350; text-wrap: pretty; }
p { text-wrap: pretty; }
.center-h { text-align: center; }

.link {
  color: var(--cyan); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 1px; transition: background-size 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .link:hover { background-size: 100% 1px; } }
.link:focus-visible { background-size: 100% 1px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.site-header.is-solid { background: rgba(11, 13, 31, 0.92); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid { background: rgba(11, 13, 31, 0.8); backdrop-filter: blur(10px); }
}
.bar {
  height: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--edge);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: block; line-height: 0; opacity: 0; transform: translateY(-4px); transition: opacity 240ms ease, transform 240ms var(--ease-out); pointer-events: none; }
.site-header.is-solid .brand { opacity: 1; transform: none; pointer-events: auto; }
.brand img { image-rendering: pixelated; }
.nav { display: flex; gap: 4px; margin-left: auto; font-family: var(--font-pixel); font-size: 1rem; }
.nav a {
  padding: 10px 12px; text-decoration: none; color: var(--text); border-radius: 2px;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--gold); } }
.nav a[aria-current="true"] { color: var(--gold); }

/* ---------- Boutons : une touche physique, façon console ---------- */
.btn {
  --face: var(--cream); --edge-c: #b9a98b; --on: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 44px; padding: 10px 20px;
  background: var(--face); color: var(--on);
  font-family: var(--font-pixel); font-size: 1rem; font-weight: 500; text-decoration: none;
  border: 0; border-radius: 3px; cursor: pointer;
  box-shadow: 0 4px 0 var(--edge-c);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { --face: var(--gold); --edge-c: var(--gold-deep); min-height: 68px; padding: 12px 28px 12px 22px; text-align: left; }
.btn-small { min-height: 40px; padding: 6px 16px; box-shadow: 0 3px 0 var(--edge-c); }
.btn-txt { display: grid; gap: 2px; }
.btn-txt strong { font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.btn-txt small { font-family: var(--font-text); font-size: 0.9375rem; font-weight: 450; opacity: 0.8; }
.btn-ico { flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge-c); }
  .btn-primary:hover { --face: #f7d57a; }
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge-c); transition-duration: 80ms; }
.btn.is-alt {
  --face: transparent; --on: var(--cream); min-height: 44px; padding: 8px 4px; box-shadow: none; justify-content: flex-start;
  border-radius: 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; background-size: 0 1px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 20%, #2a2057 0%, rgba(42, 32, 87, 0) 60%),
    linear-gradient(180deg, #0b0d1f 0%, #12152b 100%);
  isolation: isolate;
}
.hero::after { /* fondu vers la section suivante */
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 21, 43, 0), var(--bg));
}
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-art {
  position: absolute; z-index: 0; top: 40px; right: 0; bottom: 0; width: min(52vw, calc(100svh * 0.8));
  will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%), linear-gradient(180deg, transparent 0, #000 18%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 32%), linear-gradient(180deg, transparent 0, #000 18%);
  mask-composite: intersect;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; image-rendering: pixelated; }
.hero-grid { position: relative; z-index: 2; padding-block: calc(var(--header-h) + 32px) 96px; }
.hero-copy { max-width: 580px; display: grid; justify-items: start; gap: 28px; }
.hero-title { display: grid; gap: 14px; margin: 0; justify-self: stretch; }
.logo { width: 100%; max-width: 504px; height: auto; image-rendering: pixelated; }
.sub { font-family: var(--font-text); font-style: italic; font-weight: 400; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); color: var(--cream); padding-left: 4px; }
.hero-lead { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem); line-height: 1.5; max-width: 30em; color: var(--text); }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  font-family: var(--font-pixel); font-size: 1rem; color: var(--gold);
  border: 2px solid var(--gold); border-radius: 3px; background: rgba(18, 21, 43, 0.6);
}
.pip { width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.cta-alt { font-size: 1rem; color: var(--muted); margin-top: -12px; }
.hero-credit { font-size: 1rem; color: var(--muted); }

.share { display: grid; gap: 16px; justify-items: start; padding: 20px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(18, 21, 43, 0.75); max-width: 26em; }
.share p { font-size: 1.0625rem; color: var(--cream); }
.share .share-status { font-size: 1rem; color: var(--cyan); }
.share-status:empty { display: none; }
.share-block { margin-top: 64px; justify-items: center; text-align: center; max-width: 34em; margin-inline: auto; }

/* Entrée du hero : une fois, au chargement */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
[data-enter] { animation: rise 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
.hero-art { animation: fade 1200ms ease both; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 152px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }

/* Histoire */
.story { padding-top: clamp(64px, 8vw, 112px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.story-text { display: grid; gap: 24px; max-width: 36em; }
.story-text h2 { margin-bottom: 8px; }
.story-text > p:not(.lead) { color: var(--text); }
.story-art { display: grid; place-items: center; }
.emblem { width: min(100%, 420px); height: auto; image-rendering: pixelated; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.figures > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 28px 24px 0 0; }
.figures dd { font-family: var(--font-pixel); font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); line-height: 1; color: var(--gold); }
.figures dt { font-size: 1.0625rem; color: var(--muted); }

/* Chapitres */
.chapters { background: var(--bg-deep); }
.chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.chapter { display: grid; gap: 20px; align-content: start; }
.chapter h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 12px; }
.chapter-2 h3 { color: var(--gold); }
.shot { width: 100%; height: auto; border-radius: 3px; outline: 1px solid var(--line-strong); outline-offset: 0; background: var(--bg); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-pixel); font-size: 1rem; color: var(--gold); padding-top: 2px; }
.facts dd { font-size: 1.0625rem; line-height: 1.5; }

.letters { display: grid; gap: 12px; margin-top: 8px; padding: 20px 20px 18px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(255, 243, 220, 0.03); }
.letters-label { font-family: var(--font-pixel); font-size: 1.125rem; color: var(--cream); }
.letters-note { font-size: 1rem; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; max-width: 420px; }
.slots li {
  aspect-ratio: 1; border: 2px solid var(--line-strong); border-radius: 2px; position: relative;
  transition: border-color 360ms ease calc(var(--k) * 110ms), background-color 360ms ease calc(var(--k) * 110ms);
}
.slots li::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; background: var(--gold); opacity: 0.25;
  transition: opacity 360ms ease calc(var(--k) * 110ms), transform 360ms var(--ease-out) calc(var(--k) * 110ms);
}
.js .slots li { border-color: var(--line); }
.js .slots li::after { opacity: 0; transform: scale(0.5); }
.letters.is-lit .slots li { border-color: var(--gold); }
.letters.is-lit .slots li::after { opacity: 1; transform: none; }

/* Le jeu */
.mech-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.mech-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; }
.mech-list { display: grid; }
.mech-list li { padding: 28px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.mech-list li:first-child { border-top: 0; padding-top: 4px; }
.mech-list h3 { display: flex; align-items: center; gap: 12px; }
.mech-list h3::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.mech-list p { padding-left: 24px; }

/* Bestiaire */
.bestiary {
  background:
    radial-gradient(circle at 12px 20px, rgba(255, 243, 220, 0.5) 1px, transparent 1.5px) 0 0 / 220px 180px,
    radial-gradient(circle at 150px 90px, rgba(255, 243, 220, 0.35) 1px, transparent 1.5px) 0 0 / 260px 210px,
    radial-gradient(circle at 70px 150px, rgba(242, 199, 92, 0.45) 1.2px, transparent 1.8px) 0 0 / 340px 280px,
    var(--bg-deep);
}
.bestiary-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.boss-grid > li { display: grid; }
.boss-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
.boss {
  width: 100%; height: 100%; display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 6px; text-align: left; cursor: pointer;
  background: rgba(18, 21, 43, 0.55); border: 1px solid var(--line); border-radius: 4px; padding: 0 20px 22px;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, background-color 220ms ease;
}
@media (hover: hover) and (pointer: fine) { .boss:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(26, 30, 60, 0.8); } }
.boss[aria-pressed="true"] { border-color: var(--gold); }
.stage {
  position: relative; height: 270px; margin-inline: -20px; overflow: hidden; border-radius: 4px 4px 0 0;
  background: radial-gradient(70% 55% at 50% 78%, color-mix(in srgb, var(--aura) 26%, transparent), transparent 72%);
}
.stage::after { /* socle */
  content: ""; position: absolute; left: 50%; bottom: 22px; width: 62%; height: 16px; translate: -50% 0;
  border: 1px solid color-mix(in srgb, var(--aura) 55%, transparent); border-radius: 50%;
}
.sprite {
  position: absolute; z-index: 1; left: 50%; bottom: 6px; translate: -50% 0; display: block; overflow: hidden;
  width: calc(192px * var(--z)); height: calc(128px * var(--z));
}
.sprite img { position: absolute; left: 0; top: 0; width: auto; height: 128px; max-width: none; transform-origin: 0 0; image-rendering: pixelated; }
.sprite { --x: 0; }
.sprite img { transform: scale(var(--z)) translateX(calc(var(--x) * -192px)); }
.boss-name { font-family: var(--font-pixel); font-size: 1.25rem; line-height: 1.2; color: var(--cream); margin-top: 8px; }
.boss-line { font-size: 1rem; line-height: 1.45; color: var(--muted); }

/* Captures */
.gallery .wrap > h2 { margin-bottom: clamp(32px, 4vw, 56px); }

.shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.shots li { min-width: 0; overflow: hidden; border-radius: 3px; outline: 1px solid var(--line-strong); background: var(--bg-deep); }
.s-a { grid-column: 1 / span 8; grid-row: 1 / span 2; }
.s-b { grid-column: 9 / span 4; grid-row: 1; aspect-ratio: 1372 / 861; }
.s-c { grid-column: 9 / span 4; grid-row: 2; aspect-ratio: 1372 / 861; }
.s-d, .s-e, .s-f { grid-column: span 4; aspect-ratio: 1372 / 861; }
.shots button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .shots button:hover img { transform: scale(1.03); } }
.shots button:focus-visible { outline-offset: -3px; }

.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(6, 7, 18, 0.94); color: var(--cream);
}
.lightbox:not([open]) { display: none; }
.lightbox[open] { display: grid; place-items: center; animation: fade 200ms ease both; }
.lightbox::backdrop { background: rgba(6, 7, 18, 0.9); }
.lb-frame { width: min(92vw, 1500px); max-height: 86dvh; display: grid; place-items: center; }
.lb-img { width: auto; max-width: 100%; max-height: 86dvh; height: auto; border-radius: 3px; outline: 1px solid var(--line-strong); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  font-family: var(--font-pixel); font-size: 1.75rem; line-height: 1; color: var(--cream);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 3px;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.lb-btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: var(--surface-2); } }
.lb-prev { left: max(12px, 2vw); top: 50%; translate: 0 -50%; }
.lb-next { right: max(12px, 2vw); top: 50%; translate: 0 -50%; }
.lb-close { right: max(12px, 2vw); top: 16px; }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-family: var(--font-pixel); font-size: 1rem; color: var(--muted); }

/* Commandes */
.controls { background: var(--bg-deep); }
.controls-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.table-wrap { overflow-x: auto; }
.keys { width: 100%; border-collapse: collapse; min-width: 680px; }
.keys th, .keys td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.keys thead th { font-family: var(--font-pixel); font-weight: 500; font-size: 1rem; color: var(--gold); border-bottom: 1px solid var(--line-strong); padding-bottom: 12px; }
.keys tbody th { font-weight: 450; color: var(--cream); width: 24%; font-size: 1.1875rem; }
.keys td { width: 54%; }
.keys td:last-child { width: 22%; }
.grp { white-space: nowrap; display: inline-block; }
kbd {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; margin-right: 3px;
  font-family: var(--font-pixel); font-size: 1.0625rem; color: var(--cream);
  background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: 3px;
}
kbd.wide { padding: 0 14px; }
.or { font-size: 0.9375rem; color: var(--muted); margin: 0 6px 0 2px; font-style: italic; }
.pad {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px;
  font-family: var(--font-pixel); font-size: 1.0625rem; color: var(--cyan);
  border: 2px solid rgba(159, 240, 255, 0.5); border-radius: 19px;
}
.pad-soft { border-color: var(--line); color: var(--muted); font-family: var(--font-text); font-size: 1rem; }
.controls-note { margin-top: 24px; font-size: 1.0625rem; color: var(--muted); }

/* Télécharger */
.download { background: var(--bg); }
.download-head { display: grid; gap: 20px; max-width: 40em; margin-bottom: clamp(40px, 5vw, 64px); }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.platform {
  display: grid; gap: 24px; align-content: start; padding: clamp(24px, 3vw, 40px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color 220ms ease;
}
.platform header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.platform h3 { font-size: 2rem; }
.meta { font-size: 1rem; color: var(--muted); }
.platform .btn { justify-self: start; }
.is-recommended { border-color: var(--gold); }
.is-recommended header::after {
  content: "Pour votre appareil"; order: 3; width: 100%; font-family: var(--font-pixel); font-size: 1rem; color: var(--gold);
}
.steps { counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; font-size: 1.0625rem; line-height: 1.55; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--font-pixel); font-size: 1rem; color: var(--gold); border: 1px solid var(--line-strong); border-radius: 2px;
}
.steps strong { color: var(--cream); font-weight: 600; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 1.0625rem; color: var(--text); }
.notes strong { color: var(--cream); font-family: var(--font-pixel); font-weight: 500; font-size: 1.125rem; display: block; margin-bottom: 4px; }

/* Pied de page */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: 64px 48px; font-size: 1rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); gap: 48px; align-items: start; }
.foot-sign { display: grid; gap: 20px; justify-items: start; }
.foot-sign p { color: var(--cream); font-size: 1.125rem; }
.foot-logo img { image-rendering: pixelated; }
.milo { opacity: 0.9; }
.foot-credits { display: grid; gap: 12px; }
.foot-meta { display: grid; gap: 12px; }
.site-footer em { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a:nth-child(n+5) { display: none; }
  .boss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-meta { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .nav { display: none; }
  .bar { justify-content: space-between; }
  .story-grid, .mech-grid, .bestiary-head, .controls-head { grid-template-columns: 1fr; gap: 32px; }
  .story-art { order: -1; justify-items: start; }
  .emblem { width: 220px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures > div { padding-bottom: 20px; }
  .chapter-grid, .platforms { grid-template-columns: 1fr; }
  .mech-side { position: static; }
  .notes { grid-template-columns: 1fr; gap: 20px; }
  .shots { grid-template-columns: 1fr; }
  .shots li { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 16 / 10 !important; }

  .hero { align-items: flex-end; min-height: 100svh; }
  .hero-art { width: 100%; height: 56svh; top: 0; bottom: auto; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-composite: initial; mask-composite: initial; }
  .hero-art img { object-position: 50% 8%; }
  .hero-grid { padding-block: 44svh 56px; }
  .hero-title, .hero-lead { text-shadow: 0 1px 12px rgba(11, 13, 31, 0.9); }
  .hero-copy { gap: 20px; max-width: none; }
  .hero-lead { font-size: 1.125rem; }
  .btn-primary { width: 100%; justify-content: flex-start; }
  .cta { width: 100%; }
  .cta .btn { flex: 1 1 100%; }
  .share { max-width: none; width: 100%; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .boss-grid { grid-template-columns: 1fr; }
  .stage { height: 250px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn-txt strong { font-size: 1.125rem; }
}

/* ---------- Mouvement réduit : tout au repos, rien de caché ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-enter], .hero-art, .emblem { animation: none; }
  .btn, .boss, .shots img, .link, .platform { transition-duration: 0.01ms; }
  .slots li, .slots li::after { transition: none; }
  .js .slots li { border-color: var(--gold); }
  .js .slots li::after { opacity: 1; transform: none; }
  .lightbox[open] { animation: none; }
}

@media (max-width: 700px) {
  .table-wrap { overflow: visible; }
  .keys { min-width: 0; display: block; }
  .keys thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .keys tbody, .keys tr, .keys th, .keys td { display: block; width: auto !important; }
  .keys tr { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
  .keys tbody th, .keys td { padding: 0; border: 0; }
  .keys tbody th { font-size: 1.25rem; }
  .keys td { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
  .keys td::before { content: attr(data-label); flex: 0 0 8.5em; font-family: var(--font-pixel); font-size: 0.9375rem; color: var(--muted); }
}
