/* ==========================================================================
   Hunter From Hell — feuille de style
   Sombre, rouge sang et violet. Grain VHS léger, flicker discret.
   Respecte prefers-reduced-motion. Aucune dépendance.
   ========================================================================== */

:root {
  --bg: #08060b;
  --bg-2: #0e0a12;
  --surface: #141018;
  --surface-2: #1b1520;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #ece6ee;
  --muted: #b3a9bb;
  --dim: #8a8092;
  --blood: #c4142b;
  --blood-2: #ff3048;
  --blood-dark: #6d0a17;
  --purple: #7c3aed;
  --purple-2: #b388ff;
  --purple-dark: #2a1245;
  --ecto: #7fe0b0;
  --amber: #ffb547;
  --discord: #5865f2;
  --twitch: #9146ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --glow-red: 0 0 0 1px rgba(255, 48, 72, .35), 0 10px 40px rgba(196, 20, 43, .35);
  --glow-purple: 0 0 0 1px rgba(179, 136, 255, .3), 0 10px 40px rgba(124, 58, 237, .3);
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-type: "Special Elite", "Courier New", monospace;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(124, 58, 237, .12), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(196, 20, 43, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blood-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ff6b7c; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: rgba(255, 255, 255, .07); padding: .1em .35em; border-radius: 5px; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 2em 0; }
::selection { background: var(--blood); color: #fff; }

:focus-visible { outline: 2px solid #ff8a97; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--blood); color: #fff; padding: .6em 1em; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 68ch; }
.lead.center { margin-left: auto; margin-right: auto; }
.empty { color: var(--muted); text-align: center; padding: 3em 0; }

/* ---------- Effets : grain, lignes de balayage, vignette ---------- */
.fx-grain, .fx-scan, .fx-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 900; }
.fx-grain {
  inset: -50%;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
.fx-scan {
  opacity: .05;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .5) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.fx-vignette { background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%); z-index: 899; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* Flicker discret des titres + aberration chromatique légère */
.title-flicker { position: relative; text-shadow: 1px 0 rgba(255, 48, 72, .45), -1px 0 rgba(179, 136, 255, .4); animation: flicker 7s infinite; }
@keyframes flicker {
  0%, 89%, 100% { opacity: 1; }
  90% { opacity: .55; } 90.6% { opacity: 1; } 91.4% { opacity: .3; } 92% { opacity: 1; }
  96% { opacity: .85; text-shadow: 3px 0 rgba(255, 48, 72, .6), -3px 0 rgba(179, 136, 255, .55); } 96.6% { opacity: 1; }
}

/* ---------- Boutons ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon.flip { transform: scaleX(-1); }
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--text); --b-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.25em; min-height: 44px;
  border-radius: 10px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font: 700 .95rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { color: var(--b-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55em .9em; min-height: 38px; font-size: .78rem; border-radius: 8px; }
.btn-xl { padding: 1em 1.6em; font-size: 1.02rem; border-radius: 12px; }

.btn-steam {
  --b-fg: #fff; --b-bd: rgba(255, 90, 105, .55);
  --b-bg: linear-gradient(180deg, #e01e37 0%, #a20f22 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 8px 30px rgba(196, 20, 43, .45);
  position: relative; overflow: hidden;
}
.btn-steam::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%);
  transform: translateX(-120%); animation: shine 5s ease-in-out infinite 1.5s;
}
.btn-steam:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 10px 44px rgba(255, 48, 72, .6); }
.btn-xl.btn-steam { animation: pulse-red 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 8px 30px rgba(196, 20, 43, .45); }
  50% { box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 8px 50px rgba(255, 48, 72, .75); }
}

.btn-discord { --b-fg: #fff; --b-bg: linear-gradient(180deg, #6873ff 0%, #4752d6 100%); --b-bd: rgba(160, 170, 255, .45); box-shadow: 0 8px 26px rgba(88, 101, 242, .3); }
.btn-discord:hover { box-shadow: 0 10px 36px rgba(88, 101, 242, .5); }
.btn-discord.btn-ghost { --b-bg: rgba(88, 101, 242, .14); --b-bd: rgba(140, 150, 255, .6); --b-fg: #e5e8ff; box-shadow: none; }
.btn-discord.btn-ghost:hover { --b-bg: rgba(88, 101, 242, .3); }
.btn-twitch { --b-fg: #fff; --b-bg: rgba(145, 70, 255, .16); --b-bd: rgba(170, 120, 255, .6); }
.btn-twitch:hover { --b-bg: rgba(145, 70, 255, .32); }
.btn-bug { --b-fg: #ffd9de; --b-bg: rgba(196, 20, 43, .14); --b-bd: rgba(255, 70, 90, .65); }
.btn-bug:hover, .btn-bug[aria-current] { --b-bg: rgba(196, 20, 43, .32); --b-fg: #fff; box-shadow: var(--glow-red); }
.btn-outline { --b-bg: transparent; --b-bd: rgba(255, 255, 255, .28); }
.btn-outline:hover { --b-bd: var(--blood-2); box-shadow: var(--glow-red); }
.btn-ghost { --b-bg: transparent; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--blood-2); }
.text-link:hover { text-decoration: underline; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .28em .6em; border-radius: 6px; font: 700 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 255, 255, .1); color: var(--text); border: 1px solid var(--line-strong); }
.badge-beta { background: var(--purple); border-color: var(--purple-2); color: #fff; box-shadow: 0 0 18px rgba(124, 58, 237, .6); }
.badge-live { background: rgba(196, 20, 43, .85); border-color: #ff6b7c; color: #fff; }
.badge-soon { background: rgba(127, 224, 176, .14); border-color: rgba(127, 224, 176, .6); color: var(--ecto); }
.badge-tag { background: rgba(8, 6, 11, .78); border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(4px); }

.kicker { font: 400 .92rem/1.4 var(--font-type); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; display: flex; flex-wrap: wrap; align-items: center; gap: .6em; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 800; height: var(--header-h);
  background: linear-gradient(180deg, rgba(8, 6, 11, .92), rgba(8, 6, 11, .78));
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.page-home .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(8, 6, 11, .85), rgba(8, 6, 11, 0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s ease, border-color .3s ease; }
.page-home .site-header.is-scrolled { background: rgba(8, 6, 11, .9); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-inner { height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 1.25rem; }
.brand { flex: none; display: block; }
.brand img { height: 42px; width: auto; filter: drop-shadow(0 0 12px rgba(196, 20, 43, .45)); }
.main-nav { flex: 1; display: flex; align-items: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.main-nav a { display: block; padding: .55em .85em; color: var(--muted); text-decoration: none; font: 700 .82rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; border-radius: 8px; position: relative; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .85em; right: .85em; bottom: .15em; height: 2px; background: var(--blood-2); box-shadow: 0 0 10px var(--blood-2); }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.lang-switch { display: flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.lang-switch a { display: flex; align-items: center; gap: .35em; padding: .45em .6em; min-height: 38px; color: var(--muted); text-decoration: none; font: 700 .74rem/1 var(--font-body); letter-spacing: .1em; }
.lang-switch a + a { border-left: 1px solid var(--line-strong); }
.lang-switch a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lang-switch a[aria-current] { color: #fff; background: rgba(196, 20, 43, .28); }
.lang-switch .flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-sm { padding: 32px var(--gutter); }
.section-title { text-align: center; margin-bottom: .45em; }
.section-title.left { text-align: left; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section-head .section-title { margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 24px) 0 80px; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: saturate(.95) contrast(1.06) brightness(.92); animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
.hero::before { /* assombrissement + lampe torche (position fournie par JS) */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle 260px at var(--mx, 62%) var(--my, 42%), transparent 0, rgba(5, 3, 8, .22) 55%, rgba(5, 3, 8, .68) 100%),
    linear-gradient(180deg, rgba(8, 6, 11, .2) 0%, rgba(8, 6, 11, .35) 55%, var(--bg) 100%);
  transition: background .05s linear;
}
.hero-fog { position: absolute; inset: auto -20% -10% -20%; height: 55%; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(60% 60% at 30% 70%, rgba(124, 58, 237, .25), transparent 70%), radial-gradient(50% 60% at 75% 80%, rgba(196, 20, 43, .22), transparent 70%);
  filter: blur(30px); animation: fog 18s ease-in-out infinite alternate; }
@keyframes fog { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.rec { font-size: .82rem; color: #ffd0d6; background: rgba(8, 6, 11, .55); border: 1px solid rgba(255, 255, 255, .14); padding: .45em .8em; border-radius: 999px; }
.rec-dot { width: .6em; height: .6em; border-radius: 50%; background: #ff2a3f; box-shadow: 0 0 10px #ff2a3f; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-logo { margin: .2em 0 .1em; width: min(680px, 88vw); }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8)) drop-shadow(0 0 28px rgba(196, 20, 43, .6)) drop-shadow(0 0 60px rgba(124, 58, 237, .35)); }
.hero-tagline { font: 400 clamp(1.1rem, 2.4vw, 1.55rem)/1.4 var(--font-type); color: #f1e8f0; margin: .4em 0 1.4em; text-shadow: 0 2px 12px #000; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero-badge { margin-top: 1.8rem; display: inline-flex; align-items: center; gap: .7em; flex-wrap: wrap; justify-content: center; padding: .65em 1em; border-radius: 12px; background: rgba(20, 12, 30, .72); border: 1px solid rgba(179, 136, 255, .4); color: var(--text); text-decoration: none; backdrop-filter: blur(6px); transition: border-color .2s, box-shadow .2s; }
.hero-badge span:not(.badge) { color: var(--muted); }
.hero-badge:hover { color: var(--text); border-color: var(--purple-2); box-shadow: var(--glow-purple); }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Pitch ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.pillar { padding: 1.8rem 1.6rem; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blood-2), transparent); opacity: .7; }
.pillar-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: rgba(196, 20, 43, .14); color: var(--blood-2); margin-bottom: 1rem; border: 1px solid rgba(255, 48, 72, .3); }
.pillar-icon .icon { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.35rem; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Versus ---------- */
.versus { background: linear-gradient(180deg, transparent, rgba(42, 18, 69, .35) 30%, rgba(42, 18, 69, .35) 70%, transparent); }
.versus-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.versus-media { position: relative; padding-bottom: 12%; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: #000; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame-tilt { transform: rotate(-1.2deg); box-shadow: var(--shadow), var(--glow-purple); }
.frame-small { position: absolute; width: 52%; right: -4%; bottom: 0; transform: rotate(2deg); box-shadow: var(--shadow), var(--glow-red); }
.versus-text p { color: var(--muted); }
.list-blood { list-style: none; padding: 0; margin: 0 0 1.6em; }
.list-blood li { position: relative; padding-left: 1.6em; margin: .55em 0; }
.list-blood li::before { content: ""; position: absolute; left: .2em; top: .55em; width: .55em; height: .55em; background: var(--blood-2); transform: rotate(45deg); box-shadow: 0 0 10px var(--blood-2); }

/* ---------- Bande-annonce ---------- */
.video-frame { margin: 2rem 0 1.2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow), var(--glow-red); background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---------- Cartes (lieux) ---------- */
.map-grid { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); isolation: isolate; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.map-card:hover { transform: translateY(-4px); border-color: rgba(255, 48, 72, .45); box-shadow: var(--glow-red); }
.map-card.is-event:hover { border-color: rgba(179, 136, 255, .55); box-shadow: var(--glow-purple); }
.map-img { aspect-ratio: 1; overflow: hidden; }
.map-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.9); transition: transform .6s ease, filter .4s ease; }
.map-card:hover .map-img img { transform: scale(1.06); filter: brightness(1) saturate(1.05); }
.map-body { position: absolute; inset: auto 0 0 0; padding: 3.5rem 1rem 1rem; background: linear-gradient(180deg, transparent, rgba(8, 6, 11, .88) 45%, rgba(8, 6, 11, .97)); }
.map-body h3 { font-size: 1.08rem; margin: .35em 0 .3em; }
.map-body p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.45; }
.map-body .badge { position: absolute; top: .8rem; left: 1rem; }

/* ---------- Galerie + visionneuse ---------- */
.gallery { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: .7rem; }
.gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery a { display: block; height: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(.85); transition: transform .5s ease, filter .3s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); filter: brightness(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 950; background: rgba(4, 2, 6, .94); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 16px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 140px); width: auto; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox figcaption { color: var(--muted); margin-top: .8rem; font-family: var(--font-type); text-align: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(20, 16, 24, .85); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { border-color: var(--blood-2); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; }
.lb-next { right: 12px; top: 50%; }
.lb-prev .icon { transform: scaleX(-1); }

/* ---------- Cartes de news ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 48, 72, .4); box-shadow: var(--glow-red); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .badge { position: absolute; top: .8rem; left: .8rem; }
.card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-date { font: .85rem/1.3 var(--font-type); color: var(--dim); margin: 0 0 .5em; }
.card-title { font-size: 1.18rem; margin-bottom: .45em; }
.card-excerpt { color: var(--muted); font-size: .96rem; margin-bottom: 1em; }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; color: var(--blood-2); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.news-grid .card-featured { grid-column: 1 / -1; }
.news-grid .card-featured .card-link { display: grid; grid-template-columns: 1.4fr 1fr; }
.news-grid .card-featured .card-img { aspect-ratio: auto; min-height: 320px; }
.news-grid .card-featured .card-body { padding: 2rem; justify-content: center; }
.news-grid .card-featured .card-title { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* ---------- Panneaux ---------- */
.panel { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.panel-title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; align-items: start; }
.clamp { max-height: 300px; overflow: hidden; position: relative; margin-bottom: 1.2rem; }
.clamp::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(180deg, transparent, var(--bg-2)); }
.mini-roadmap { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.mini-roadmap li { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "dot status when" "dot title title"; column-gap: .8rem; padding: .85rem 0; border-bottom: 1px dashed var(--line-strong); }
.mini-roadmap .dot { grid-area: dot; width: 12px; height: 12px; border-radius: 50%; margin-top: .4em; background: var(--purple-2); box-shadow: 0 0 10px var(--purple-2); }
.mini-roadmap .st-progress .dot { background: var(--blood-2); box-shadow: 0 0 10px var(--blood-2); animation: blink 1.6s steps(1) infinite; }
.mr-status { grid-area: status; font: .78rem/1.6 var(--font-type); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mini-roadmap strong { grid-area: title; font-weight: 600; }
.mr-when { grid-area: when; font-size: .8rem; color: var(--dim); }

/* ---------- CTA final ---------- */
.final-cta { overflow: hidden; isolation: isolate; text-align: center; }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(1.1); }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(8, 6, 11, .55) 40%, rgba(8, 6, 11, .55) 60%, var(--bg) 100%); }
.final-cta .lead { color: #ddd3df; }

/* ---------- Bandeau des pages intérieures ---------- */
.page-banner { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 9vw, 110px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.banner-media { position: absolute; inset: 0; z-index: -1; }
.banner-img { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(.85); }
.banner-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(8, 6, 11, .6) 55%, rgba(8, 6, 11, .3) 100%), linear-gradient(0deg, var(--bg), transparent 60%); }
.banner-inner h1 { margin-bottom: .3em; }

/* ---------- Article ---------- */
.article-head { position: relative; isolation: isolate; padding: clamp(40px, 8vw, 100px) 0 1.5rem; }
.article-media { position: absolute; inset: 0; z-index: -1; max-height: 560px; }
.article-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.article-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 4%, rgba(8, 6, 11, .45) 60%, rgba(8, 6, 11, .7)); }
.article-head-inner { padding-top: clamp(80px, 16vw, 220px); }
.article-head h1 { font-size: clamp(1.8rem, 4.5vw, 3.1rem); }
.article-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; padding-bottom: 4rem; border-top: 1px solid var(--line); margin-top: 2.5rem; }
.article-cta { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Texte riche (Markdown) */
.prose { font-size: 1.07rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin: 1.8em 0 .55em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; color: #ffd0d6; }
.prose h4, .prose h5, .prose h6 { font-family: var(--font-body); font-size: 1.05rem; margin: 1.3em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose ul > li::marker { color: var(--blood-2); }
.prose ol > li::marker { color: var(--blood-2); font-weight: 700; }
.prose blockquote { margin: 1.2em 0; padding: .9em 1.2em; border-left: 3px solid var(--purple-2); background: rgba(124, 58, 237, .08); border-radius: 0 10px 10px 0; color: #ddd3e6; }
.prose blockquote p:last-child { margin: 0; }
.prose strong { color: #fff; }
.prose em { color: #e7dcea; }
.prose a { color: #ff7f8e; }
.prose-compact { font-size: 1rem; }
.prose-compact h2 { font-size: 1.15rem; margin: 1.4em 0 .5em; border: 0; padding: 0; color: #ffd0d6; font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; }
.prose-compact h3 { font-size: 1.05rem; }

/* ---------- Mises à jour ---------- */
.updates-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.updates-index { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding-right: .4rem; scrollbar-width: thin; }
.updates-index ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-strong); }
.updates-index a { display: flex; justify-content: space-between; gap: .6rem; padding: .42rem .8rem; color: var(--muted); text-decoration: none; font-size: .9rem; border-left: 2px solid transparent; margin-left: -1px; }
.updates-index a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.updates-index a[aria-current] { color: #fff; border-left-color: var(--blood-2); background: rgba(196, 20, 43, .12); }
.ui-ver { font-weight: 700; font-variant-numeric: tabular-nums; }
.ui-date { color: var(--dim); font-size: .8rem; white-space: nowrap; }
.updates-list { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.update { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.update[open] { border-color: rgba(255, 48, 72, .35); box-shadow: 0 0 0 1px rgba(255, 48, 72, .12), var(--shadow); }
.update summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 1.05rem 1.3rem; }
.update summary::-webkit-details-marker { display: none; }
.update summary:hover { background: rgba(255, 255, 255, .03); }
.update-ver { font: 800 1.15rem/1.2 var(--font-display); }
.update-date { margin-left: auto; color: var(--dim); font: .88rem/1 var(--font-type); }
.update-chevron { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin: 0 .2rem -.2rem; }
.update[open] .update-chevron { transform: rotate(225deg); }
.update .prose { padding: 0 1.3rem 1.3rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* ---------- Roadmap ---------- */
.roadmap-updated { display: flex; align-items: center; gap: .5em; justify-content: center; font-family: var(--font-type); }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; align-items: start; }
.rm-col { --c: var(--ecto); background: rgba(20, 16, 24, .6); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: var(--radius); padding: 1rem; }
.rm-progress { --c: var(--blood-2); }
.rm-planned { --c: var(--purple-2); }
.rm-head { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; color: var(--c); margin: .2rem .2rem 1rem; }
.rm-count { margin-left: auto; font: 700 .8rem/1 var(--font-body); color: var(--muted); background: rgba(255, 255, 255, .07); padding: .35em .6em; border-radius: 999px; }
.rm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.rm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s, transform .2s; }
.rm-card:hover { border-color: var(--c); transform: translateY(-2px); }
.rm-img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; filter: brightness(.8); }
.rm-body { padding: .9rem 1rem 1rem; }
.rm-meta { display: flex; align-items: center; gap: .5rem; color: var(--c); margin-bottom: .4rem; }
.rm-when { font: .78rem/1.3 var(--font-type); color: var(--muted); letter-spacing: .05em; }
.rm-body h3 { font-size: 1.06rem; margin-bottom: .35em; }
.rm-body p { font-size: .93rem; color: var(--muted); margin: 0; }
.rm-done .rm-card h3::after { content: " ✓"; color: var(--ecto); }
.rm-progress .rm-meta .icon { animation: blink 1.6s steps(1) infinite; }
.roadmap-suggest { margin-top: 2.4rem; color: var(--muted); }

/* ---------- Formulaire de bug ---------- */
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.report-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 1rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .4em; font-size: .95rem; padding: 0; }
.req { color: var(--blood-2); }
.opt { color: var(--dim); font-weight: 400; font-size: .85rem; }
.help { font-size: .85rem; color: var(--dim); margin: .35em 0 0; }
input[type="text"], input[type="password"], input[type="search"], input[type="email"], select, textarea {
  width: 100%; padding: .75em .9em; min-height: 46px;
  background: #0b080e; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4em; }
select option { background: #141018; color: var(--text); }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blood-2); box-shadow: 0 0 0 3px rgba(255, 48, 72, .25); }
[aria-invalid="true"] { border-color: #ff5a6b !important; }
.field-error { color: #ff8a97; font-size: .88rem; font-weight: 600; margin: .4em 0 0; }
.field-error::before { content: "⚠ "; }
.sev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.field .sev, .sev { position: relative; display: flex !important; margin: 0; align-items: center; gap: .7em; padding: .8em 1em; border: 1px solid var(--line-strong); border-radius: 10px; background: #0b080e; cursor: pointer; font-weight: 500 !important; font-size: .92rem !important; transition: border-color .15s, background .15s; }
.sev input { accent-color: var(--blood-2); width: 18px; height: 18px; flex: none; margin: 0; }
.sev:hover { border-color: rgba(255, 255, 255, .35); }
.sev:has(input:checked) { border-color: var(--blood-2); background: rgba(196, 20, 43, .14); }
.sev-low { --s: var(--ecto); } .sev-medium { --s: var(--amber); } .sev-high { --s: #ff7a45; } .sev-critical { --s: var(--blood-2); }
.sev::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--s); }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border: 1px solid rgba(255, 90, 107, .6); background: rgba(196, 20, 43, .12); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.form-alert ul { margin: .5em 0 0; padding-left: 1.2em; }
.form-alert a { color: #ffb3bc; }
.form-actions { display: flex; justify-content: flex-end; margin-top: .5rem; }
.counter { display: block; text-align: right; font-size: .78rem; color: var(--dim); margin-top: .25em; font-variant-numeric: tabular-nums; }
.report-ok { text-align: center; padding: 3rem 1.5rem; }
.ok-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(127, 224, 176, .12); border: 1px solid rgba(127, 224, 176, .55); color: var(--ecto); box-shadow: 0 0 30px rgba(127, 224, 176, .25); }
.ok-icon .icon { width: 36px; height: 36px; }
.ticket code { display: inline-block; font-size: clamp(1.3rem, 4vw, 2rem); letter-spacing: .08em; padding: .45em .8em; border: 1px dashed var(--blood-2); background: rgba(196, 20, 43, .1); color: #fff; user-select: all; }

/* ---------- Admin ---------- */
.admin-login { max-width: 420px; margin: 0 auto; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin-bottom: 1.2rem; padding: 1rem 1.2rem; }
.admin-bar p { margin: 0; }
.admin-filter { display: flex; gap: .5rem; flex-wrap: wrap; }
.admin-filter input, .admin-filter select { width: auto; min-height: 38px; padding: .45em .7em; }
.admin-list { display: flex; flex-direction: column; gap: 1rem; }
.bug-item { padding: 1.2rem 1.4rem; border-left: 4px solid var(--dim); }
.bug-item.sev-low { border-left-color: var(--ecto); } .bug-item.sev-medium { border-left-color: var(--amber); }
.bug-item.sev-high { border-left-color: #ff7a45; } .bug-item.sev-critical { border-left-color: var(--blood-2); }
.bug-item header { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }
.bug-item header time { margin-left: auto; color: var(--dim); font-size: .85rem; }
.bug-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .4rem 1rem; margin: 0 0 1rem; font-size: .9rem; }
.bug-meta dt { color: var(--dim); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.bug-meta dd { margin: 0; overflow-wrap: anywhere; }
.bug-item h3 { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: .8em 0 .3em; }
.bug-text { white-space: normal; overflow-wrap: anywhere; background: #0b080e; border: 1px solid var(--line); border-radius: 8px; padding: .8em 1em; font-size: .95rem; }

/* ---------- 404 ---------- */
.nf { position: relative; min-height: 70vh; display: grid; place-items: center; isolation: isolate; overflow: hidden; }
.nf-media { position: absolute; inset: 0; z-index: -1; }
.nf-media img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.nf-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(8, 6, 11, .3), var(--bg) 75%); }
.nf-code { font: 900 clamp(5rem, 18vw, 10rem)/1 var(--font-display); color: var(--blood-2); margin: 0; text-shadow: 4px 0 rgba(124, 58, 237, .7), -4px 0 rgba(255, 48, 72, .5), 0 0 40px rgba(196, 20, 43, .6); animation: flicker 4s infinite; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), #050307); margin-top: 0; }
.footer-top { padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 40ch; }
.footer-cta { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-h { font: 700 .8rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin: .4rem 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .45rem 0; }
.site-footer nav a, .footer-social a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: .55em; }
.site-footer nav a:hover, .footer-social a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.2rem; padding-bottom: 1.6rem; font-size: .85rem; color: var(--muted); }
.footer-bottom p { margin: .2rem 0; }
.footer-bottom .muted { color: var(--dim); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .map-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .btn-head-discord .lbl { display: none; }
  .header-actions .btn-head-discord { padding-left: .7em; padding-right: .7em; }
}
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 1.2rem;
    padding: 1.4rem var(--gutter) 2rem; background: rgba(8, 6, 11, .98);
    border-top: 1px solid var(--line); overflow: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: .2rem; }
  .main-nav a { font-size: 1.05rem; padding: .95em .6em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"]::after { left: .6em; right: auto; width: 40px; bottom: -1px; }
  .nav-extra { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
  .nav-extra .social-link { color: var(--muted); text-decoration: none; display: inline-flex; gap: .5em; align-items: center; }
  .page-home .site-header { background: rgba(8, 6, 11, .9); }
  .versus-grid, .split, .report-layout { grid-template-columns: 1fr; }
  .versus-media { max-width: 640px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid .card-featured .card-link { grid-template-columns: 1fr; }
  .news-grid .card-featured .card-img { min-height: 0; aspect-ratio: 16 / 9; }
  .pillars { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .updates-layout { grid-template-columns: 1fr; }
  .updates-index { position: static; max-height: none; }
  .updates-index ol { display: flex; gap: .4rem; overflow-x: auto; border: 0; padding-bottom: .5rem; scrollbar-width: thin; }
  .updates-index li { flex: none; }
  .updates-index a { flex-direction: column; gap: .1rem; border: 1px solid var(--line-strong); border-radius: 8px; margin: 0; padding: .45rem .7rem; }
  .updates-index a[aria-current] { border-color: var(--blood-2); }
  .roadmap { grid-template-columns: 1fr; }
  .report-aside { position: static; }
  .report-aside .frame { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { height: 34px; }
  .header-inner { gap: .6rem; }
  .header-actions { gap: .4rem; }
  .lang-switch a { padding: .4em .45em; }
  .lang-switch .flag { display: none; }
  .btn-bug.btn-sm { padding: .5em .65em; }
  .btn-bug.btn-sm span { font-size: .7rem; letter-spacing: .06em; }
  .hero-cta .btn-xl { width: 100%; }
  .hero-badge { font-size: .9rem; }
  .rec { font-size: .7rem; letter-spacing: .04em; }
  .card-grid { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .map-body { padding: 2.5rem .7rem .7rem; }
  .map-body p { display: none; }
  .map-body h3 { font-size: .95rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery li:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .form-grid, .sev-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .frame-small { width: 58%; right: 0; }
  .update summary { padding: .9rem 1rem; }
  .update .prose { padding: 1rem; }
  .update-date { margin-left: 0; width: 100%; order: 3; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; }
}
@media (max-width: 420px) {
  .header-inner { padding: 0 12px; gap: .4rem; }
  .brand img { height: 28px; }
  .header-actions { gap: .3rem; }
  .btn-head-discord { padding: .5em .55em; }
  .nav-toggle { width: 40px; height: 40px; }
  .lang-switch a { padding: .4em .4em; font-size: .7rem; }
}
@media (max-width: 380px) {
  .btn-bug.btn-sm span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ==========================================================================
   Mouvement réduit : plus d'animations ni de grain animé
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .fx-grain { animation: none; }
  .title-flicker, .nf-code { animation: none; }
  .hero-img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #d6cfdb; --dim: #b9b0c0; --line: rgba(255, 255, 255, .25); }
  .fx-grain, .fx-scan { display: none; }
}
@media print {
  .fx-grain, .fx-scan, .fx-vignette, .site-header, .site-footer, .hero-scroll { display: none !important; }
  body { background: #fff; color: #000; }
}
