/* ==========================================================================
   VYRON RP — feuille de style
   Palette : nuit de Los Santos + trois accents (bleu = ville, vert = légal,
   rouge = illégal). Le site est volontairement sombre, dans les deux thèmes.
   ========================================================================== */

:root {
  color-scheme: dark;

  --sol: #04060c;
  --sol-2: #070b16;
  --panneau: #0a1120;
  --panneau-2: #0f1a30;
  --trait: #17243d;
  --trait-fort: #2a4270;
  --texte: #e6edfa;
  --doux: #97a6c6;
  --pale: #7684aa;

  --bleu: #2f8fff;       --bleu-rgb: 47, 143, 255;   --bleu-clair: #8fd8ff;
  --vert: #2fe07f;       --vert-rgb: 47, 224, 127;   --vert-clair: #a6ffc9;
  --rouge: #ff3348;      --rouge-rgb: 255, 51, 72;   --rouge-clair: #ffa0aa;
  --ambre: #ffb23e;      --ambre-rgb: 255, 178, 62;
  --cyan: #5fd0ff;       --cyan-rgb: 95, 208, 255;
  --lavande: #8b93b8;    --lavande-rgb: 139, 147, 184;

  --accent: var(--bleu);
  --accent-rgb: var(--bleu-rgb);
  --accent-clair: var(--bleu-clair);

  --f-titre: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --f-hud: "Chakra Petch", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gouttiere: clamp(16px, 4vw, 48px);
  --barre-h: 72px;
  --large: 1260px;
  --b: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
}

[data-camp="legal"]   { --accent: var(--vert);  --accent-rgb: var(--vert-rgb);  --accent-clair: var(--vert-clair); }
[data-camp="illegal"] { --accent: var(--rouge); --accent-rgb: var(--rouge-rgb); --accent-clair: var(--rouge-clair); }
[data-camp="ville"]   { --accent: var(--bleu);  --accent-rgb: var(--bleu-rgb);  --accent-clair: var(--bleu-clair); }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--barre-h) + 24px);
  -webkit-text-size-adjust: 100%;
  background: var(--sol);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sol);
  color: var(--texte);
  font: 400 1rem/1.65 var(--f-texte);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Trame de fond : grille fine + lueur de la couleur active */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(var(--accent-rgb), .10), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(var(--accent-rgb), .07), transparent 60%),
    linear-gradient(rgba(143, 216, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(143, 216, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--sol);
  transition: background .8s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(var(--accent-rgb), .35); color: #fff; }

h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent-clair);
  outline-offset: 3px;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.visuel-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.evitement {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 2000;
  padding: .6em 1em;
  background: var(--accent);
  color: #02101f;
  font: 600 .85rem var(--f-hud);
  transform: translateY(-200%);
}
.evitement:focus { transform: none; }

/* Icônes Material Symbols (police Google) */
.ms {
  font-family: "Material Symbols Sharp";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  width: 1em;
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  flex: none;
}

/* ==========================================================================
   Écran de chargement
   ========================================================================== */
.chargeur {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  background:
    radial-gradient(40rem 28rem at 50% 45%, rgba(47, 143, 255, .14), transparent 70%),
    var(--sol);
  cursor: pointer;
}
.chargeur[hidden] { display: none; }
html:not(.chargement-actif) .chargeur { display: none; }
/* Filet de sécurité : si le script ne démarre pas, l'écran disparaît seul. */
.chargement-actif .chargeur:not(.fini) { animation: secours .01s 4.5s forwards; }
@keyframes secours { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.sans-js {
  margin: calc(var(--barre-h) + 24px) var(--gouttiere) 0;
  padding: 16px 20px;
  border: 1px solid rgba(var(--ambre-rgb), .5);
  color: var(--ambre);
}
.fiche-image {
  margin-top: 22px;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--trait);
}

.chargeur-coeur { display: grid; justify-items: center; gap: 22px; }
.chargeur-v {
  width: clamp(120px, 22vw, 180px);
  height: auto;
  fill: transparent;
  stroke: var(--bleu-clair);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    trace-v 1s var(--ease) forwards,
    remplit-v .5s .85s ease forwards;
  filter: drop-shadow(0 0 18px rgba(47, 143, 255, .7));
}
@keyframes trace-v { to { stroke-dashoffset: 0; } }
@keyframes remplit-v { to { fill: url(#g-bleu); stroke-width: 1; } }

.chargeur-texte {
  font: 600 .78rem var(--f-hud);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--bleu-clair);
  padding-left: .42em;
}
.chargeur-texte::after {
  content: "_";
  animation: clignote .8s steps(1) infinite;
}
.chargeur-barre {
  width: min(280px, 60vw);
  height: 2px;
  background: rgba(143, 216, 255, .12);
  overflow: hidden;
}
.chargeur-barre span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--bleu), var(--bleu-clair));
  box-shadow: 0 0 12px var(--bleu);
}
.chargeur-pct {
  font: 700 .9rem var(--f-hud);
  letter-spacing: .2em;
  color: var(--doux);
  font-variant-numeric: tabular-nums;
}
.chargeur-astuce {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  font: 500 .7rem var(--f-hud);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--pale);
}
.chargeur.fini { animation: crt-off .55s var(--ease-in) forwards; pointer-events: none; }
@keyframes crt-off {
  0%   { transform: scale(1, 1); filter: brightness(1); opacity: 1; }
  60%  { transform: scale(1, .004); filter: brightness(3); opacity: 1; }
  100% { transform: scale(0, .004); filter: brightness(5); opacity: 0; }
}
@keyframes clignote { 50% { opacity: 0; } }

/* ==========================================================================
   Transition entre les pages
   ========================================================================== */
.transition {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  visibility: hidden;
}
.transition > span {
  background: linear-gradient(90deg, var(--sol-2), var(--panneau-2));
  border-bottom: 1px solid rgba(var(--accent-rgb), .25);
  transform: scaleX(0);
  transform-origin: left;
}
.transition-v {
  position: absolute;
  top: 50%; left: 50%;
  width: 110px;
  height: auto;
  translate: -50% -50%;
  fill: url(#g-bleu);
  opacity: 0;
  filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), .8));
}
[data-camp="legal"] .transition-v { fill: url(#g-vert); }
[data-camp="illegal"] .transition-v { fill: url(#g-rouge); }

.transition.entre { visibility: visible; }
.transition.entre > span { animation: barre-entre .38s var(--ease) forwards; }
.transition.entre > span:nth-child(2) { animation-delay: .04s; }
.transition.entre > span:nth-child(3) { animation-delay: .08s; }
.transition.entre > span:nth-child(4) { animation-delay: .12s; }
.transition.entre > span:nth-child(5) { animation-delay: .16s; }
.transition.entre .transition-v { animation: flash-v .5s .22s ease forwards; }
.transition.sort { visibility: visible; }
.transition.sort > span { transform: scaleX(1); transform-origin: right; animation: barre-sort .42s var(--ease) forwards; }
.transition.sort > span:nth-child(2) { animation-delay: .04s; }
.transition.sort > span:nth-child(3) { animation-delay: .08s; }
.transition.sort > span:nth-child(4) { animation-delay: .12s; }
.transition.sort > span:nth-child(5) { animation-delay: .16s; }
@keyframes barre-entre { to { transform: scaleX(1); } }
@keyframes barre-sort { to { transform: scaleX(0); } }
@keyframes flash-v { 0% { opacity: 0; scale: .8; } 50% { opacity: 1; scale: 1; } 100% { opacity: 1; scale: 1.02; } }

/* ==========================================================================
   Curseur et barre de défilement
   ========================================================================== */
.curseur { position: fixed; inset: 0; z-index: 1300; pointer-events: none; display: none; }
.avec-curseur .curseur { display: block; }
.curseur-point, .curseur-anneau {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  translate: -50% -50%;
  will-change: transform;
}
.curseur-point { width: 5px; height: 5px; background: var(--accent-clair); box-shadow: 0 0 10px var(--accent); }
.curseur-anneau {
  width: 36px; height: 36px;
  border: 1px solid rgba(var(--accent-rgb), .55);
  transition: width .25s var(--ease), height .25s var(--ease), background-color .25s, border-color .25s;
}
.curseur.survol .curseur-anneau {
  width: 58px; height: 58px;
  background: rgba(var(--accent-rgb), .08);
  border-color: var(--accent-clair);
}
.curseur.appui .curseur-anneau { width: 26px; height: 26px; }

.defilement {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1100;
  pointer-events: none;
}
.defilement span {
  display: block;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .2), var(--accent), var(--accent-clair));
  box-shadow: 0 0 10px var(--accent);
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  --b: 10px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  padding: 1em 1.5em;
  font: 600 .8rem/1 var(--f-hud);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte);
  cursor: pointer;
  border: 0;
  background: none;
  white-space: nowrap;
  transition: color .25s, filter .35s var(--ease), translate .2s;
}
.btn::before, .btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--b) 0, 100% 0, 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, 0 100%, 0 var(--b));
  transition: background .3s, opacity .3s;
}
.btn::before { inset: 0; background: rgba(var(--accent-rgb), .55); }
.btn::after {
  inset: 1px;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%) -150% 0 / 250% 100% no-repeat,
    rgba(6, 12, 24, .85);
  clip-path: polygon(calc(var(--b) - .4px) 0, 100% 0, 100% calc(100% - var(--b) + .4px), calc(100% - var(--b) + .4px) 100%, 0 100%, 0 calc(var(--b) - .4px));
}
.btn:hover::after, .btn:focus-visible::after { animation: reflet .9s var(--ease); }
@keyframes reflet { to { background-position: 150% 0, 0 0; } }
.btn .ms { font-size: 1.35em; }

.btn-plein { color: #02101f; }
.btn-plein::before { background: linear-gradient(120deg, var(--accent-clair), var(--accent)); }
.btn-plein::after {
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%) -150% 0 / 250% 100% no-repeat;
}
.btn-plein { filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), .45)); }
.btn-plein:hover { filter: drop-shadow(0 0 26px rgba(var(--accent-rgb), .75)); }

.btn-contour:hover { color: var(--accent-clair); }
.btn-contour:hover::before { background: var(--accent); }

.btn-mini { padding: .75em 1.1em; font-size: .72rem; --b: 7px; }
.btn-large { width: 100%; padding-block: 1.2em; }

.btn-legal { --accent: var(--vert); --accent-rgb: var(--vert-rgb); --accent-clair: var(--vert-clair); }
.btn-illegal { --accent: var(--rouge); --accent-rgb: var(--rouge-rgb); --accent-clair: var(--rouge-clair); }
.btn-legal, .btn-illegal { color: #fff; }
.btn-legal::before, .btn-illegal::before { background: linear-gradient(120deg, var(--accent-clair), var(--accent)); }
.btn-legal::after, .btn-illegal::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .2) 45%, transparent 60%) -150% 0 / 250% 100% no-repeat, rgba(4, 8, 14, .78); }
.btn-legal:hover, .btn-illegal:hover { filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), .6)); }

/* Lien pas encore publié */
[data-lien][aria-disabled="true"], #btn-jouer[aria-disabled="true"] { cursor: not-allowed; }
.btn[aria-disabled="true"] { filter: saturate(.75) brightness(.92); }
.btn[aria-disabled="true"]::after { animation: none; }

/* ==========================================================================
   Barre de navigation
   ========================================================================== */
.barre {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: calc(var(--barre-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gouttiere) 0;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
/* Le flou est porté par un pseudo-élément : sur la barre elle-même, il
   enfermerait le menu mobile (position: fixed) dans ses 72 px de haut. */
.barre::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(4, 6, 12, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: opacity .35s;
}
.barre.defile::before { opacity: 1; }
.barre.defile { border-bottom-color: var(--trait); }

.marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.marque-v {
  width: 38px;
  height: auto;
  fill: url(#g-bleu);
  filter: drop-shadow(0 0 8px rgba(47, 143, 255, .7));
  transition: filter .3s, transform .5s var(--ease);
}
[data-camp="legal"] .marque-v { fill: url(#g-vert); filter: drop-shadow(0 0 8px rgba(var(--vert-rgb), .7)); }
[data-camp="illegal"] .marque-v { fill: url(#g-rouge); filter: drop-shadow(0 0 8px rgba(var(--rouge-rgb), .7)); }
.marque:hover .marque-v { transform: rotateY(180deg); }
.marque-nom {
  font: 700 1rem var(--f-titre);
  letter-spacing: .28em;
}
.marque-nom b { color: var(--accent); margin-left: .35em; font-weight: 700; }

.menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  margin-left: auto;
}
.menu a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  padding: .5em 0;
  font: 600 .78rem var(--f-hud);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--doux);
  transition: color .25s;
}
.menu a { white-space: nowrap; }
.menu-num { font-size: .62rem; color: var(--pale); letter-spacing: .05em; transition: color .25s; }
.menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.menu a:hover { color: var(--texte); }
.menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu a.actif { color: var(--texte); }
.menu a.actif .menu-num { color: var(--accent); }
.menu a.actif::after { transform: scaleX(1); }

.barre-droite { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--trait-fort);
  background: rgba(6, 12, 24, .6);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--texte);
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; right: 17px; background: var(--accent); }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Pastille d'état (serveur, boutique…)
   ========================================================================== */
.etat {
  --c: var(--ambre); --c-rgb: var(--ambre-rgb);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .45em .85em;
  font: 600 .68rem/1 var(--f-hud);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c);
  border: 1px solid rgba(var(--c-rgb), .4);
  background: rgba(var(--c-rgb), .08);
  white-space: nowrap;
}
.etat i {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}
.etat i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--c);
  animation: onde 1.8s ease-out infinite;
}
@keyframes onde { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.etat[data-etat="en-ligne"], .etat[data-etat="ouvert"] { --c: var(--vert); --c-rgb: var(--vert-rgb); }
.etat[data-etat="hors-ligne"] { --c: var(--rouge); --c-rgb: var(--rouge-rgb); }
.etat[data-etat="construction"] {
  background: repeating-linear-gradient(-45deg, rgba(var(--c-rgb), .12) 0 8px, rgba(var(--c-rgb), .03) 8px 16px);
}

/* ==========================================================================
   Vues (pages)
   ========================================================================== */
.vue { display: block; }
.vue[hidden] { display: none; }
main { outline: none; }
.vue.arrive > * { animation: arrive .7s var(--ease) both; }
.vue.arrive > *:nth-child(2) { animation-delay: .06s; }
.vue.arrive > *:nth-child(3) { animation-delay: .12s; }
@keyframes arrive { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

/* ==========================================================================
   Héros
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(660px, 94svh, 980px);
  padding: calc(var(--barre-h) + env(safe-area-inset-top, 0px) + 32px) var(--gouttiere) 28px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}
.hero-fond { position: absolute; inset: 0; z-index: -1; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-voile {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 12, .82) 0%, rgba(4, 6, 12, .35) 45%, transparent 70%),
    linear-gradient(180deg, rgba(4, 6, 12, .55) 0%, transparent 22%, transparent 70%, var(--sol) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}
.balayage {
  position: absolute;
  inset: -50% -10%;
  background: linear-gradient(105deg, transparent 42%, rgba(143, 216, 255, .06) 48%, rgba(143, 216, 255, .12) 50%, transparent 56%);
  animation: balaye 9s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes balaye { 0%, 20% { transform: translateX(-60%); } 70%, 100% { transform: translateX(60%); } }

.hud { position: absolute; inset: calc(var(--barre-h) + 14px) var(--gouttiere) 20px; pointer-events: none; }
.hud-coin {
  position: absolute;
  width: 26px; height: 26px;
  border: 0 solid rgba(var(--accent-rgb), .6);
}
.hud-hg { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.hud-hd { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.hud-bg { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hud-bd { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hud-texte {
  position: absolute;
  font: 500 .66rem var(--f-hud);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(151, 166, 198, .75);
  font-variant-numeric: tabular-nums;
}
.hud-coord { top: 8px; left: 40px; }
.hud-heure { top: 8px; right: 40px; }

.hero-grille {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font: 600 .74rem var(--f-hud);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-clair);
}
.puce {
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: clignote 1.4s steps(1) infinite;
}

.hero-titre {
  margin-top: 18px;
  font-family: var(--f-titre);
  line-height: .86;
}
.hero-titre-l1 {
  position: relative;
  display: block;
  /* le dégradé du texte ne couvre que la boîte : la taille doit tenir dans la colonne */
  font-size: clamp(3.2rem, 8.2vw, 8.6rem);
  font-weight: 900;
  letter-spacing: .015em;
  background: linear-gradient(180deg, #ffffff 10%, #cfe9ff 55%, var(--accent-clair) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(var(--accent-rgb), .35));
}
.hero-titre-l1::before, .hero-titre-l1::after {
  content: attr(data-texte);
  position: absolute;
  inset: 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  pointer-events: none;
}
.hero-titre-l1::before { background-image: linear-gradient(#ff2f5b, #ff2f5b); animation: glitch-a 7s infinite steps(1); }
.hero-titre-l1::after { background-image: linear-gradient(#27d3ff, #27d3ff); animation: glitch-b 7s infinite steps(1); }
@keyframes glitch-a {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  92% { opacity: .8; transform: translate(-4px, 1px); clip-path: inset(12% 0 60% 0); }
  94% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(55% 0 20% 0); }
  96% { opacity: .8; transform: translate(-2px, 0); clip-path: inset(30% 0 45% 0); }
}
@keyframes glitch-b {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  92.5% { opacity: .8; transform: translate(4px, -1px); clip-path: inset(62% 0 10% 0); }
  94.5% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(8% 0 70% 0); }
  96.5% { opacity: .8; transform: translate(2px, 0); clip-path: inset(40% 0 35% 0); }
}
.hero-titre-l2 {
  display: flex;
  align-items: center;
  gap: .5em;
  margin-top: .18em;
  font-size: clamp(1.5rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: .62em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-clair);
}
.hero-titre-l2::after {
  content: "";
  flex: 1;
  max-width: 320px;
  height: 2px;
  background:
    linear-gradient(90deg, var(--accent-clair), var(--accent) 30%, transparent) 0 0 / 100% 100% no-repeat;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .6);
  -webkit-mask: linear-gradient(90deg, #000 0 40%, rgba(0,0,0,.4) 50%, #000 60% 100%) 0 0 / 250% 100%;
  mask: linear-gradient(90deg, #000 0 40%, rgba(0,0,0,.4) 50%, #000 60% 100%) 0 0 / 250% 100%;
  animation: court 2.6s linear infinite;
}
@keyframes court { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: -150% 0; mask-position: -150% 0; } }

.hero-slogan {
  margin-top: 22px;
  font: 500 clamp(1.1rem, 2.1vw, 1.45rem)/1.4 var(--f-texte);
  color: var(--doux);
}
.hero-slogan em { font-style: normal; color: var(--texte); }

/* Compte à rebours */
.compte { margin-top: 30px; max-width: 560px; }
.compte-titre {
  display: flex;
  align-items: center;
  gap: .6em;
  flex-wrap: wrap;
  font: 500 .76rem var(--f-hud);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--doux);
}
.compte-titre strong { color: var(--texte); font-weight: 700; }
.compte-titre .ms { color: var(--accent); }
.compte-cases {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.case {
  --b: 12px;
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 6px 12px;
}
.case::before, .case::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--b) 0, 100% 0, 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, 0 100%, 0 var(--b));
}
.case::before { inset: 0; background: linear-gradient(160deg, rgba(var(--accent-rgb), .7), rgba(var(--accent-rgb), .12) 60%); }
.case::after {
  inset: 1px;
  background: linear-gradient(180deg, rgba(10, 17, 32, .95), rgba(5, 9, 18, .95));
  clip-path: polygon(calc(var(--b) - .4px) 0, 100% 0, 100% calc(100% - var(--b) + .4px), calc(100% - var(--b) + .4px) 100%, 0 100%, 0 calc(var(--b) - .4px));
}
.case-val {
  display: block;
  font: 700 clamp(1.7rem, 4vw, 2.6rem)/1 var(--f-hud);
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 18px rgba(var(--accent-rgb), .6);
}
.case-val.tic { animation: tic .45s var(--ease); }
@keyframes tic { from { transform: translateY(-45%); opacity: 0; filter: blur(3px); } }
.case-lib {
  font: 600 .6rem var(--f-hud);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--pale);
}

.chargement { margin-top: 16px; }
.chargement-lib {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 600 .64rem var(--f-hud);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--doux);
}
.chargement-pct { color: var(--accent-clair); font-variant-numeric: tabular-nums; }
.chargement-barre {
  margin-top: 8px;
  height: 4px;
  background: rgba(143, 216, 255, .1);
  overflow: hidden;
}
.chargement-barre span {
  display: block;
  height: 100%;
  width: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent) -40% 0 / 30% 100% no-repeat,
    linear-gradient(90deg, var(--accent), var(--accent-clair));
  box-shadow: 0 0 14px var(--accent);
  transition: width 1.6s var(--ease);
  animation: lueur-barre 2.4s linear infinite;
}
@keyframes lueur-barre { to { background-position: 140% 0, 0 0; } }

.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Emblème V + anneaux */
.embleme {
  position: relative;
  justify-self: center;
  width: min(100%, 540px);
  aspect-ratio: 1;
  transition: transform .6s var(--ease);
}
.anneaux { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anneau, .viseur { transform-origin: 50% 50%; transform-box: view-box; fill: none; stroke: rgba(var(--accent-rgb), .55); }
.anneau-1 { stroke-width: 6; stroke: rgba(var(--accent-rgb), .35); animation: tourne 60s linear infinite; }
.anneau-2 { animation: tourne 90s linear infinite reverse; }
.anneau-2 text {
  font: 600 11px var(--f-hud);
  letter-spacing: 5.1px;
  fill: rgba(143, 216, 255, .6);
  stroke: none;
}
.anneau-3 { stroke-width: 1.5; animation: tourne 26s linear infinite; }
.anneau-4 { stroke-width: 10; stroke: rgba(var(--accent-rgb), .22); animation: tourne 40s linear infinite reverse; }
.viseur { stroke-width: 2; stroke: rgba(143, 216, 255, .6); animation: respire 4s ease-in-out infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes respire { 50% { opacity: .35; transform: scale(.97); } }

.embleme-halo {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .45), transparent 70%);
  filter: blur(30px);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.15); opacity: .7; } }
.embleme-v {
  position: absolute;
  inset: 17%;
  width: 66%;
  height: 66%;
  object-fit: contain;
  mix-blend-mode: screen;
  /* fondu doux sur les quatre bords de l'image, sans rogner les pointes du V */
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
  animation: flotte 6s ease-in-out infinite, scintille 5s ease-in-out infinite;
}
@keyframes flotte { 50% { transform: translateY(-10px); } }
@keyframes scintille { 50% { filter: brightness(1.25) saturate(1.1); } }
.embleme-eclat {
  position: absolute;
  top: 34%;
  left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(190, 235, 255, .9), transparent);
  filter: blur(.5px);
  transform: scaleX(0);
  animation: eclat 5s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes eclat { 0%, 60% { transform: scaleX(0); opacity: 0; } 75% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1.1); opacity: 0; } }

/* Pied du héros : radar, défilement, statut */
.hero-pied {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
}
.hero-statut { justify-self: end; }

.radar {
  position: relative;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), .45);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), .18), inset 0 0 22px rgba(0, 0, 0, .8);
  background: rgba(4, 10, 20, .72);
}
.radar-carte {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(var(--accent-rgb), .25), rgba(var(--accent-rgb), .25)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(var(--accent-rgb), .25), rgba(var(--accent-rgb), .25)) 0 50% / 100% 1px no-repeat,
    repeating-radial-gradient(circle, transparent 0 18px, rgba(var(--accent-rgb), .2) 18px 19px);
}
.radar-balayage {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(var(--accent-rgb), .5), rgba(var(--accent-rgb), 0) 70deg, transparent 360deg);
  animation: tourne 3.6s linear infinite;
}
.blip {
  position: absolute;
  top: var(--y); left: var(--x);
  width: 6px; height: 6px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
  animation: blip 3.6s ease-in-out infinite;
}
.blip-bleu { --c: var(--bleu-clair); width: 8px; height: 8px; animation: none; }
.blip-vert { --c: var(--vert); }
.blip-rouge { --c: var(--rouge); animation-delay: 1.2s; }
@keyframes blip { 0%, 100% { opacity: .25; } 30% { opacity: 1; } }
.radar-nord {
  position: absolute;
  top: 4px; left: 50%;
  translate: -50% 0;
  font: 700 .58rem var(--f-hud);
  color: var(--accent-clair);
}

.hero-suite {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 .62rem var(--f-hud);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--doux);
  padding-left: .34em;
}
.hero-suite i {
  width: 22px; height: 36px;
  border: 1px solid rgba(var(--accent-rgb), .6);
  border-radius: 12px;
  position: relative;
}
.hero-suite i::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 2px; height: 7px;
  translate: -50% 0;
  background: var(--accent-clair);
  animation: molette 1.8s var(--ease) infinite;
}
@keyframes molette { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================================
   Bandeau défilant
   ========================================================================== */
.defilant {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--trait);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .07), rgba(var(--accent-rgb), .02), rgba(var(--accent-rgb), .07));
  padding-block: 18px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.defilant-piste {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: defile 46s linear infinite;
}
.defilant span {
  font: 700 clamp(1rem, 2vw, 1.4rem) var(--f-titre);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.defilant span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(143, 216, 255, .55); }
.defilant i {
  width: 10px; height: 10px;
  background: var(--accent);
  rotate: 45deg;
  box-shadow: 0 0 10px var(--accent);
  flex: none;
}
@keyframes defile { to { transform: translateX(-50%); } }

/* ==========================================================================
   Blocs de contenu
   ========================================================================== */
.bloc {
  width: 100%;
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: clamp(80px, 11vw, 140px) var(--gouttiere) 0;
}
.bloc-tete { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 .74rem var(--f-hud);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent-clair);
  margin-bottom: 16px;
}
.etiquette::before {
  content: "";
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 8px var(--accent);
}
.bloc-tete h2, .final h2 {
  font: 700 clamp(2rem, 5.2vw, 3.7rem)/1.04 var(--f-titre);
  letter-spacing: -.01em;
}
.chapeau {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--doux);
}

/* Panneau à coins de visée (cartes) */
.pilier, .nouv, .job, .produit, .article, .terme {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 26, 48, .72), rgba(8, 13, 25, .78));
  border: 1px solid var(--trait);
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.pilier::before, .nouv::before, .job::before, .produit::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 0 / 2px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 2px 14px no-repeat;
  opacity: .8;
  transition: background-size .35s var(--ease), opacity .35s;
}
.pilier::after, .nouv::after, .job::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), .14), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
}
.pilier:hover, .nouv:hover, .job:hover { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 20px 60px -20px rgba(var(--accent-rgb), .35); }
.pilier:hover::before, .nouv:hover::before, .job:hover::before {
  background-size: 34px 2px, 2px 34px, 34px 2px, 2px 34px;
  opacity: 1;
}
.pilier:hover::after, .nouv:hover::after, .job:hover::after { opacity: 1; }

.inclinable { transform-style: preserve-3d; will-change: transform; }

/* Piliers */
.piliers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pilier { padding: 30px 26px 28px; }
.pilier-icone {
  font-size: 2.4rem;
  color: var(--accent-clair);
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), .6));
  transition: transform .4s var(--ease);
}
.pilier:hover .pilier-icone { transform: translateY(-4px) scale(1.08); }
.pilier h3 { margin-top: 22px; font: 700 1.08rem var(--f-titre); letter-spacing: .02em; }
.pilier p { margin-top: 10px; color: var(--doux); font-size: .96rem; }

/* Compteurs */
.compteurs {
  margin: clamp(40px, 6vw, 64px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--trait);
}
.compteur {
  padding: 28px 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}
.compteur + .compteur { border-left: 1px solid var(--trait); }
.compteur dt {
  font: 600 .7rem var(--f-hud);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--doux);
}
.compteur dd {
  margin: 0;
  font: 900 clamp(2.4rem, 5.6vw, 4rem)/1 var(--f-titre);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, var(--accent-clair));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Séquence « cinéma » (visuel officiel)
   ========================================================================== */
.cinema {
  width: 100%;
  max-width: 1440px;
  margin: clamp(80px, 11vw, 140px) auto 0;
  padding-inline: var(--gouttiere);
}
.cinema-cadre {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  max-width: 100%;
  border: 1px solid var(--trait);
  box-shadow: 0 40px 120px -40px rgba(var(--accent-rgb), .35);
}
.cinema-image {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translateY(calc(var(--p, 0) * -10%));
  will-change: transform;
}
.cinema-bande {
  position: absolute;
  left: 0; right: 0;
  height: 11%;
  background: var(--sol);
  transition: height 1.3s var(--ease);
}
.cinema-bande-h { top: 0; }
.cinema-bande-b { bottom: 0; }
.js .cinema-cadre.ferme .cinema-bande { height: 50.5%; }
.cinema-legende {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font: 500 .95rem var(--f-texte);
  color: var(--doux);
}
.cinema-legende span {
  font: 600 .72rem var(--f-hud);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-clair);
  padding-top: .3em;
}

/* ==========================================================================
   Duel légal / illégal
   ========================================================================== */
.duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  min-height: 600px;
  transition: grid-template-columns .7s var(--ease);
}
.duel:has(.camp-legal:hover) { grid-template-columns: minmax(0, 1.3fr) 80px minmax(0, .8fr); }
.duel:has(.camp-illegal:hover) { grid-template-columns: minmax(0, .8fr) 80px minmax(0, 1.3fr); }

.camp {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(var(--accent-rgb), .35);
  background: var(--sol-2);
}
.camp-legal { --accent: var(--vert); --accent-rgb: var(--vert-rgb); --accent-clair: var(--vert-clair); }
.camp-illegal { --accent: var(--rouge); --accent-rgb: var(--rouge-rgb); --accent-clair: var(--rouge-clair); }
.camp-fond {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease), opacity .6s, filter .6s;
  filter: saturate(1.1);
}
.camp::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(4, 6, 12, .97) 12%, rgba(4, 6, 12, .75) 48%, rgba(4, 6, 12, .25) 100%),
    radial-gradient(80% 60% at 50% 110%, rgba(var(--accent-rgb), .35), transparent 70%);
}
.camp::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.camp:hover .camp-fond { transform: scale(1.02); opacity: .7; }
.camp:hover { border-color: rgba(var(--accent-rgb), .8); box-shadow: inset 0 0 80px rgba(var(--accent-rgb), .18), 0 0 60px -10px rgba(var(--accent-rgb), .35); }
.camp-contenu { position: relative; padding: clamp(24px, 3.4vw, 44px); max-width: 560px; }
.camp-tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .4em .8em;
  font: 700 .72rem var(--f-hud);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-clair);
  border: 1px solid rgba(var(--accent-rgb), .5);
  background: rgba(var(--accent-rgb), .1);
}
.camp h3 {
  margin-top: 18px;
  font: 800 clamp(1.7rem, 3.4vw, 2.6rem)/1.05 var(--f-titre);
  color: #fff;
  text-shadow: 0 0 30px rgba(var(--accent-rgb), .5);
}
.camp-slogan { margin-top: 10px; font: 600 .9rem var(--f-hud); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-clair); }
.camp-texte { margin-top: 14px; color: #c3cde2; }
.camp-points { margin-top: 18px; list-style: none; display: grid; gap: 8px; }
.camp-points li { position: relative; padding-left: 20px; font-size: .95rem; }
.camp-points li::before {
  content: "";
  position: absolute;
  left: 1px; top: .55em;
  width: 8px; height: 8px;
  rotate: 45deg;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.camp .btn { margin-top: 26px; }

.duel-axe { position: relative; display: grid; place-items: center; }
.duel-ligne {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  translate: -50% 0;
  background: linear-gradient(180deg, var(--vert), rgba(255, 255, 255, .15) 50%, var(--rouge));
  box-shadow: 0 0 14px rgba(255, 255, 255, .15);
}
.duel-v {
  position: relative;
  width: 110px;
  aspect-ratio: 1;
}
.duel-v img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(circle, #000 58%, transparent 72%);
  mask: radial-gradient(circle, #000 58%, transparent 72%);
  transition: opacity .5s;
}
.duel-v-rouge { animation: alterne 5s ease-in-out infinite; }
@keyframes alterne { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.duel:has(.camp-legal:hover) .duel-v-rouge { animation: none; opacity: 0; }
.duel:has(.camp-illegal:hover) .duel-v-rouge { animation: none; opacity: 1; }
.duel:has(.camp-illegal:hover) .duel-v-vert { opacity: 0; }
.duel-vs {
  position: absolute;
  bottom: 18%;
  font: 900 .9rem var(--f-titre);
  letter-spacing: .2em;
  color: var(--doux);
  background: var(--sol);
  padding: 6px 4px;
}

/* ==========================================================================
   Nouveautés
   ========================================================================== */
.nouveautes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.nouv { padding: 26px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.nouv-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nouv-icone {
  font-size: 2rem;
  color: var(--accent-clair);
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .6));
}
.puce-statut {
  font: 600 .62rem var(--f-hud);
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .45em .7em;
  color: var(--accent-clair);
  border: 1px solid rgba(var(--accent-rgb), .45);
  background: rgba(var(--accent-rgb), .08);
  white-space: nowrap;
}
.puce-statut[data-statut="bientot"] { --accent-rgb: var(--ambre-rgb); color: var(--ambre); }
.nouv h3 { font: 700 1.15rem/1.2 var(--f-titre); }
.nouv-accroche { font: 600 .9rem var(--f-hud); letter-spacing: .04em; color: var(--accent-clair); }
.nouv-texte { color: var(--doux); font-size: .95rem; }
.nouv-points { list-style: none; display: grid; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--trait); }
.nouv-points li { position: relative; padding-left: 16px; font-size: .88rem; color: #c3cde2; }
.nouv-points li::before { content: "›"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

.nouv-vedette {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}
.nouv-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; }
.nouv-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.nouv-vedette:hover .nouv-media img { transform: scale(1.04); }
.nouv-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 13, 25, 1), transparent 45%);
}
.nouv-vedette .nouv-corps { padding: 0 28px 28px; margin-top: -40px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.nouv-vedette h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* ==========================================================================
   Rejoindre : étapes + statut
   ========================================================================== */
.rejoindre {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.etapes { list-style: none; position: relative; display: grid; gap: 14px; counter-reset: etape; }
.etapes::before {
  content: "";
  position: absolute;
  top: 28px; bottom: 28px; left: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .1));
  transform-origin: top;
  transform: scaleY(var(--remplissage, 1));
  transition: transform 1.4s var(--ease);
}
.etape {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.etape-num {
  --b: 10px;
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  font: 700 1.3rem var(--f-hud);
  color: #02101f;
  background: linear-gradient(135deg, var(--accent-clair), var(--accent));
  clip-path: polygon(var(--b) 0, 100% 0, 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, 0 100%, 0 var(--b));
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), .5));
}
.etape-corps {
  padding: 14px 20px 16px;
  border: 1px solid var(--trait);
  background: rgba(10, 17, 32, .6);
  transition: border-color .3s, background .3s;
}
.etape:hover .etape-corps { border-color: rgba(var(--accent-rgb), .5); background: rgba(15, 26, 48, .8); }
.etape h3 { display: flex; align-items: center; gap: 10px; font: 700 1rem var(--f-titre); }
.etape h3 .ms { color: var(--accent-clair); }
.etape p { margin-top: 6px; color: var(--doux); font-size: .95rem; }

.biseau {
  --b: 18px;
  position: relative;
  isolation: isolate;
}
.biseau::before, .biseau::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--b) 0, 100% 0, 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, 0 100%, 0 var(--b));
}
.biseau::before { inset: 0; background: linear-gradient(160deg, rgba(var(--accent-rgb), .75), rgba(var(--accent-rgb), .15) 40%, rgba(var(--accent-rgb), .5)); }
.biseau::after {
  inset: 1px;
  background: linear-gradient(180deg, rgba(12, 20, 38, .97), rgba(6, 10, 20, .97));
  clip-path: polygon(calc(var(--b) - .4px) 0, 100% 0, 100% calc(100% - var(--b) + .4px), calc(100% - var(--b) + .4px) 100%, 0 100%, 0 calc(var(--b) - .4px));
}

.statut { padding: 28px; display: grid; gap: 22px; position: sticky; top: calc(var(--barre-h) + 24px); }
.statut-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.statut h3 { font: 700 1.1rem var(--f-titre); }
.statut-infos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--trait); border: 1px solid var(--trait); }
.statut-infos > div { padding: 14px 16px; background: var(--sol-2); }
.statut-infos dt { font: 600 .62rem var(--f-hud); letter-spacing: .22em; text-transform: uppercase; color: var(--pale); }
.statut-infos dd { margin: 4px 0 0; font: 700 1rem var(--f-hud); font-variant-numeric: tabular-nums; }
.statut-lib { font: 600 .66rem var(--f-hud); letter-spacing: .2em; text-transform: uppercase; color: var(--doux); }
.statut-lib span { color: var(--pale); letter-spacing: .1em; text-transform: none; }
.commande {
  margin-top: 8px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--trait-fort);
  background: #03060d;
}
.commande code {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font: 500 .9rem/1.3 ui-monospace, "Cascadia Code", Consolas, monospace;
  color: var(--accent-clair);
  overflow-x: auto;
  white-space: nowrap;
}
.btn-copier {
  flex: none;
  width: 48px;
  border: 0;
  border-left: 1px solid var(--trait-fort);
  background: rgba(var(--accent-rgb), .08);
  color: var(--accent-clair);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s;
}
.btn-copier:hover { background: rgba(var(--accent-rgb), .22); }
.btn-copier:disabled { cursor: not-allowed; opacity: .45; }
.statut-note { margin-top: 10px; font-size: .86rem; color: var(--doux); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.faq-item { border-bottom: 1px solid var(--trait); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font: 600 1rem/1.4 var(--f-texte);
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover, .faq-item[open] summary { color: var(--accent-clair); }
.faq-signe {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid rgba(var(--accent-rgb), .5);
}
.faq-signe::before, .faq-signe::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 2px;
  translate: -50% -50%;
  background: var(--accent-clair);
  transition: rotate .3s var(--ease);
}
.faq-signe::after { rotate: 90deg; }
.faq-item[open] .faq-signe::after { rotate: 0deg; }
.faq-item[open] .faq-signe { background: rgba(var(--accent-rgb), .15); }
.faq-r { padding: 0 44px 22px 4px; color: var(--doux); }
.faq-item[open] .faq-r { animation: deplie .4s var(--ease); }
@keyframes deplie { from { opacity: 0; transform: translateY(-8px); } }

/* ==========================================================================
   Appel final + cartes Discord
   ========================================================================== */
.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: clamp(90px, 12vw, 160px);
  padding: clamp(80px, 10vw, 130px) var(--gouttiere);
  text-align: center;
  border-top: 1px solid var(--trait);
}
.final-fond {
  position: absolute;
  z-index: -1;
  top: 50%; left: 50%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  opacity: .16;
  filter: blur(2px) saturate(1.2);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 68%);
  mask: radial-gradient(circle, #000 30%, transparent 68%);
}
.final-fond img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; animation: tourne 180s linear infinite; }
.final .etiquette { justify-content: center; }
.final h2 { font-size: clamp(2.4rem, 7vw, 5.4rem); }
.final h2 .final-heure { color: transparent; -webkit-text-stroke: 2px var(--accent-clair); }
.final .chapeau { margin-inline: auto; }
.final-discords {
  margin: 48px auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.discord-carte {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 20px 26px;
  text-decoration: none;
  border: 1px solid rgba(var(--accent-rgb), .35);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .1), rgba(8, 13, 25, .8) 60%);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  cursor: pointer;
}
.discord-bleu { --accent: var(--bleu); --accent-rgb: var(--bleu-rgb); --accent-clair: var(--bleu-clair); }
.discord-vert { --accent: var(--vert); --accent-rgb: var(--vert-rgb); --accent-clair: var(--vert-clair); }
.discord-rouge { --accent: var(--rouge); --accent-rgb: var(--rouge-rgb); --accent-clair: var(--rouge-clair); }
.discord-carte img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .6), 0 0 30px rgba(var(--accent-rgb), .45);
  transition: transform .5s var(--ease);
}
.discord-carte:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 60px -24px rgba(var(--accent-rgb), .7); }
.discord-carte:hover img { transform: rotate(-8deg) scale(1.06); }
.discord-nom { margin-top: 10px; font: 700 1.05rem var(--f-titre); }
.discord-info { font-size: .88rem; color: var(--doux); }
.discord-etat {
  margin-top: 8px;
  font: 600 .64rem var(--f-hud);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-clair);
}
.discord-carte[aria-disabled="true"] { cursor: not-allowed; }
.discord-carte[aria-disabled="true"] .discord-etat { color: var(--ambre); }

/* ==========================================================================
   En-tête des pages intérieures
   ========================================================================== */
.vue-tete {
  width: 100%;
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: calc(var(--barre-h) + env(safe-area-inset-top, 0px) + clamp(48px, 8vw, 96px)) var(--gouttiere) clamp(28px, 4vw, 44px);
}
.vue-titre {
  position: relative;
  font: 900 clamp(3rem, 11vw, 7.6rem)/.9 var(--f-titre);
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff 20%, var(--accent-clair));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(var(--accent-rgb), .3));
}
.vue-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font: 600 .74rem var(--f-hud);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--doux);
}
.vue-meta b { color: var(--accent-clair); font-weight: 700; }

.recherche {
  margin-top: 28px;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--trait-fort);
  background: rgba(6, 11, 22, .8);
  transition: border-color .25s, box-shadow .25s;
}
.recherche:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15), 0 0 30px -8px rgba(var(--accent-rgb), .5); }
.recherche .ms { color: var(--accent-clair); }
.recherche input {
  flex: 1;
  min-width: 0;
  padding: 16px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--texte);
  font: 500 1rem var(--f-texte);
}
.recherche input::placeholder { color: var(--pale); }
.recherche-compte { font: 600 .7rem var(--f-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--doux); white-space: nowrap; }

/* ==========================================================================
   Règlement
   ========================================================================== */
.regl {
  width: 100%;
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: 0 var(--gouttiere) 40px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.regl-cote {
  position: sticky;
  top: calc(var(--barre-h) + 20px);
  max-height: calc(100vh - var(--barre-h) - 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sommaire {
  overflow-y: auto;
  scrollbar-width: thin;
  border: 1px solid var(--trait);
  background: rgba(8, 13, 25, .75);
  padding: 8px;
}
.sommaire-lien {
  --c-rgb: var(--bleu-rgb);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  text-decoration: none;
  font-size: .88rem;
  color: var(--doux);
  border-left: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.sommaire-lien[data-camp="legal"] { --c-rgb: var(--vert-rgb); }
.sommaire-lien[data-camp="illegal"] { --c-rgb: var(--rouge-rgb); }
.sommaire-lien:hover { color: var(--texte); background: rgba(var(--c-rgb), .07); }
.sommaire-lien.actif { color: #fff; border-left-color: rgb(var(--c-rgb)); background: rgba(var(--c-rgb), .12); }
.sommaire-num { font: 700 .72rem var(--f-hud); color: rgb(var(--c-rgb)); }
.sommaire-nb { font: 600 .66rem var(--f-hud); color: var(--pale); }
.sommaire-lien.vide { opacity: .35; }

.lecture {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--trait);
  background: rgba(8, 13, 25, .75);
  font: 600 .7rem var(--f-hud);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--doux);
}
.lecture svg { width: 38px; height: 38px; rotate: -90deg; }
.lecture circle { fill: none; stroke: var(--trait-fort); stroke-width: 4; }
.lecture .lecture-arc { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: square; filter: drop-shadow(0 0 4px var(--accent)); transition: stroke-dashoffset .2s; }
.lecture span { color: var(--texte); font-variant-numeric: tabular-nums; }

.chapitre + .chapitre { margin-top: clamp(56px, 8vw, 88px); }
.chapitre-tete {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(var(--accent-rgb), .3);
}
.chapitre-tete::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 120px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.chapitre-num {
  font: 900 clamp(3.4rem, 7vw, 5.4rem)/.8 var(--f-titre);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), .8);
  font-variant-numeric: tabular-nums;
}
.chapitre-etiquette {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 .7rem var(--f-hud);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-clair);
}
.chapitre-tete h2 { margin-top: 6px; font: 700 clamp(1.4rem, 3vw, 2.1rem)/1.1 var(--f-titre); }
.chapitre-resume { margin-top: 8px; color: var(--doux); }

.articles { display: grid; gap: 10px; }
.article { padding: 20px 24px; }
.article:hover { border-color: rgba(var(--accent-rgb), .4); }
.article:target, .article.cible { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px -10px rgba(var(--accent-rgb), .6); animation: cible 1.6s var(--ease); }
@keyframes cible { 0%, 30% { background: rgba(var(--accent-rgb), .18); } }
.article-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.article-id {
  font: 700 .72rem var(--f-hud);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-clair);
  text-decoration: none;
  padding: .3em .55em;
  border: 1px solid rgba(var(--accent-rgb), .4);
  background: rgba(var(--accent-rgb), .08);
  white-space: nowrap;
  transition: background .2s;
}
.article-id:hover { background: rgba(var(--accent-rgb), .22); }
.article h3 { flex: 1 1 240px; font: 600 1.06rem/1.35 var(--f-texte); color: #fff; }
.gravite {
  --c-rgb: var(--cyan-rgb);
  font: 600 .6rem var(--f-hud);
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .35em .6em;
  color: rgb(var(--c-rgb));
  border: 1px solid rgba(var(--c-rgb), .45);
  white-space: nowrap;
}
.gravite[data-gravite="moyenne"] { --c-rgb: var(--ambre-rgb); }
.gravite[data-gravite="grave"] { --c-rgb: 255, 120, 70; }
.gravite[data-gravite="critique"] { --c-rgb: var(--rouge-rgb); background: rgba(var(--rouge-rgb), .12); animation: alerte 2s ease-in-out infinite; }
@keyframes alerte { 50% { box-shadow: 0 0 14px rgba(var(--rouge-rgb), .6); } }
.article-texte { margin-top: 10px; color: #c9d3e8; max-width: 75ch; }
.article-texte strong, .article-points strong, .article-exemple strong { color: #fff; font-weight: 600; }
.article-points { margin-top: 10px; list-style: none; display: grid; gap: 6px; max-width: 75ch; }
.article-points li { position: relative; padding-left: 20px; color: #c1cbe0; font-size: .96rem; }
.article-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 7px;
  rotate: 45deg;
  border: 1.5px solid var(--accent);
}
.article-exemple {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(var(--accent-rgb), .06);
  font-size: .94rem;
  color: var(--doux);
  max-width: 75ch;
}
.article-exemple span {
  display: block;
  margin-bottom: 4px;
  font: 700 .62rem var(--f-hud);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-clair);
}
mark { background: rgba(var(--ambre-rgb), .35); color: #fff; padding: 0 .1em; }

/* Sanctions */
.echelle { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.echelle li {
  --c-rgb: var(--cyan-rgb);
  position: relative;
  padding: 16px 16px 18px;
  border: 1px solid rgba(var(--c-rgb), .35);
  background: linear-gradient(180deg, rgba(var(--c-rgb), .12), rgba(8, 13, 25, .8));
}
.echelle li::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: rgb(var(--c-rgb));
  box-shadow: 0 0 12px rgb(var(--c-rgb));
}
.echelle-niveau { display: block; font: 700 .9rem var(--f-titre); color: rgb(var(--c-rgb)); }
.echelle-desc { display: block; margin-top: 6px; font-size: .88rem; color: var(--doux); }

.sous-titre-regl { margin: 36px 0 14px; font: 700 1.1rem var(--f-titre); }
.tableau-conteneur { overflow-x: auto; border: 1px solid var(--trait); }
.bareme { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .94rem; }
.bareme th {
  text-align: left;
  padding: 14px 16px;
  font: 600 .66rem var(--f-hud);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-clair);
  background: rgba(var(--accent-rgb), .08);
  border-bottom: 1px solid var(--trait-fort);
}
.bareme td { padding: 12px 16px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.bareme tbody tr { transition: background .2s; }
.bareme tbody tr:hover { background: rgba(var(--accent-rgb), .06); }
.bareme td:first-child { color: #fff; font-weight: 600; }
.bareme td:nth-child(3) { color: var(--rouge-clair); }
.bareme a { color: var(--accent-clair); font: 600 .78rem var(--f-hud); letter-spacing: .08em; }

/* Glossaire */
.glossaire { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.terme { padding: 16px 18px; }
.terme dt { font: 700 .95rem var(--f-hud); letter-spacing: .06em; color: var(--accent-clair); }
.terme dd { margin: 6px 0 0; font-size: .92rem; color: var(--doux); }

.regl-vide {
  padding: 40px;
  border: 1px dashed var(--trait-fort);
  text-align: center;
  color: var(--doux);
}

/* Bandeau « mission réussie » */
.mission {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
  visibility: hidden;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .7) 44%, rgba(0, 0, 0, .7) 56%, transparent 62%);
  opacity: 0;
}
.mission.visible { visibility: visible; animation: mission 3.4s var(--ease) forwards; }
.mission-titre {
  font: 900 clamp(2rem, 7vw, 4.6rem)/1 var(--f-titre);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ambre);
  text-shadow: 0 0 30px rgba(var(--ambre-rgb), .6), 0 3px 0 #6b4200;
}
.mission-sous { margin-top: 12px; font: 600 .9rem var(--f-hud); letter-spacing: .3em; text-transform: uppercase; color: #fff; }
@keyframes mission {
  0% { opacity: 0; transform: scale(1.3); }
  12% { opacity: 1; transform: scale(1); }
  82% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.98); }
}

/* ==========================================================================
   Jobs
   ========================================================================== */
.bandeau-creation {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font: 600 .8rem var(--f-hud);
  letter-spacing: .08em;
  color: var(--ambre);
  border: 1px solid rgba(var(--ambre-rgb), .4);
  background: repeating-linear-gradient(-45deg, rgba(var(--ambre-rgb), .1) 0 10px, rgba(var(--ambre-rgb), .03) 10px 20px);
}
.filtres { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.filtre {
  --b: 8px;
  position: relative;
  isolation: isolate;
  padding: .85em 1.2em;
  border: 0;
  background: none;
  cursor: pointer;
  font: 600 .74rem var(--f-hud);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--doux);
  transition: color .25s;
}
.filtre::before, .filtre::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--b) 0, 100% 0, 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, 0 100%, 0 var(--b));
  transition: background .25s;
}
.filtre::before { inset: 0; background: var(--trait-fort); }
.filtre::after { inset: 1px; background: var(--sol-2); clip-path: polygon(calc(var(--b) - .4px) 0, 100% 0, 100% calc(100% - var(--b) + .4px), calc(100% - var(--b) + .4px) 100%, 0 100%, 0 calc(var(--b) - .4px)); }
.filtre span { color: var(--pale); margin-left: .3em; }
.filtre:hover { color: var(--texte); }
.filtre[aria-pressed="true"] { color: #02101f; }
.filtre[aria-pressed="true"]::before { background: var(--accent); }
.filtre[aria-pressed="true"]::after { background: linear-gradient(120deg, var(--accent-clair), var(--accent)); }
.filtre[aria-pressed="true"] span { color: rgba(2, 16, 31, .6); }

.legende {
  margin-top: 18px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: .86rem;
  color: var(--doux);
}
.legende li { display: inline-flex; align-items: center; gap: 8px; }

.statut-pastille {
  --c-rgb: var(--vert-rgb);
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .38em .65em;
  font: 700 .6rem/1 var(--f-hud);
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(var(--c-rgb));
  border: 1px solid rgba(var(--c-rgb), .5);
  background: rgba(var(--c-rgb), .1);
}
.statut-pastille::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.statut-pastille[data-statut="reprendre"] { --c-rgb: var(--ambre-rgb); }
.statut-pastille[data-statut="libre"] { --c-rgb: var(--cyan-rgb); }
.statut-pastille[data-statut="creation"] {
  --c-rgb: var(--lavande-rgb);
  background: repeating-linear-gradient(-45deg, rgba(var(--c-rgb), .16) 0 5px, transparent 5px 10px);
}
.statut-pastille[data-statut="recrute"]::before { animation: clignote 1.2s steps(1) infinite; }

.jobs {
  width: 100%;
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: 0 var(--gouttiere) 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.jobs-groupe {
  grid-column: 1 / -1;
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 .74rem var(--f-hud);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-clair);
}
.jobs-groupe:first-child { margin-top: 0; }
.jobs-groupe::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--trait-fort), transparent); }
.job {
  --accent: var(--vert); --accent-rgb: var(--vert-rgb); --accent-clair: var(--vert-clair);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
}
.job[data-statut="reprendre"] { --accent: var(--ambre); --accent-rgb: var(--ambre-rgb); --accent-clair: #ffd48f; }
.job[data-statut="libre"] { --accent: var(--cyan); --accent-rgb: var(--cyan-rgb); --accent-clair: #b5e9ff; }
.job[data-statut="creation"] { --accent: var(--lavande); --accent-rgb: var(--lavande-rgb); --accent-clair: #c3c9e6; }
.job-haut { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.job-icone {
  font-size: 2.3rem;
  color: var(--accent-clair);
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), .55));
  transition: transform .4s var(--ease);
}
.job:hover .job-icone { transform: scale(1.1) rotate(-6deg); }
.job[data-statut="creation"] .job-icone { opacity: .6; filter: none; }
.job-nom { font: 700 1.2rem/1.2 var(--f-titre); color: #fff; }
.job-sous { font: 600 .7rem var(--f-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--pale); }
.job-accroche { margin-top: 4px; color: var(--doux); font-size: .94rem; }
.job-voir {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 .7rem var(--f-hud);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-clair);
}
.job-voir .ms { transition: translate .3s var(--ease); }
.job:hover .job-voir .ms { translate: 5px 0; }
.job.sortie { display: none; }
.job.entree { animation: entree-job .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes entree-job { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* Fiche d'un job (fenêtre) */
.fiche > .fiche-fermer { position: sticky; top: 14px; display: grid; margin: 14px 14px -56px auto; z-index: 2; }
.fiche {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: 0;
  border: 1px solid rgba(var(--accent-rgb), .5);
  background: linear-gradient(180deg, #0c1528, #060b16);
  color: var(--texte);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 40px 120px -20px rgba(var(--accent-rgb), .45);
  overflow: auto;
}
.fiche[data-statut="recrute"] { --accent: var(--vert); --accent-rgb: var(--vert-rgb); --accent-clair: var(--vert-clair); }
.fiche[data-statut="reprendre"] { --accent: var(--ambre); --accent-rgb: var(--ambre-rgb); --accent-clair: #ffd48f; }
.fiche[data-statut="libre"] { --accent: var(--cyan); --accent-rgb: var(--cyan-rgb); --accent-clair: #b5e9ff; }
.fiche[data-statut="creation"] { --accent: var(--lavande); --accent-rgb: var(--lavande-rgb); --accent-clair: #c3c9e6; }
.fiche::backdrop { background: rgba(2, 4, 9, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fiche[open] { animation: fiche-entre .45s var(--ease); }
@keyframes fiche-entre { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.fiche-corps { padding: clamp(24px, 4vw, 40px); }
.fiche-fermer {
  position: absolute;
  top: 14px; right: 14px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--trait-fort);
  background: rgba(6, 11, 22, .9);
  cursor: pointer;
  color: var(--texte);
  transition: border-color .2s, color .2s;
}
.fiche-fermer:hover { border-color: var(--accent); color: var(--accent-clair); }
.fiche-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding-right: 48px; }
.fiche-icone {
  --b: 12px;
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: #02101f;
  background: linear-gradient(135deg, var(--accent-clair), var(--accent));
  clip-path: polygon(var(--b) 0, 100% 0, 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, 0 100%, 0 var(--b));
}
.fiche-icone .ms { font-size: 1em; }
.fiche-tete h2 { margin-top: 8px; font: 800 clamp(1.5rem, 4vw, 2.2rem)/1.05 var(--f-titre); }
.fiche-sous { margin-top: 4px; font: 600 .74rem var(--f-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--doux); }
.fiche-desc { margin-top: 22px; color: #c9d3e8; }
.fiche-colonnes { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fiche h3 {
  font: 600 .7rem var(--f-hud);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-clair);
  margin-bottom: 12px;
}
.fiche-missions { list-style: none; display: grid; gap: 8px; }
.fiche-missions li { position: relative; padding-left: 20px; font-size: .95rem; color: #c1cbe0; }
.fiche-missions li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; rotate: 45deg; background: var(--accent); }
.fiche-grades { list-style: none; display: grid; gap: 4px; counter-reset: grade; }
.fiche-grades li {
  counter-increment: grade;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font-size: .92rem;
  border-left: 2px solid rgba(var(--accent-rgb), calc(.25 + var(--n, 0) * .12));
  background: rgba(var(--accent-rgb), calc(.03 + var(--n, 0) * .025));
}
.fiche-grades li::before { content: counter(grade, decimal-leading-zero); font: 700 .7rem var(--f-hud); color: var(--accent-clair); }
.fiche-acces {
  margin-top: 26px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--accent-rgb), .35);
  background: rgba(var(--accent-rgb), .07);
  color: var(--texte);
}
.fiche-acces .ms { color: var(--accent-clair); }
.fiche-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Boutique
   ========================================================================== */
.boutique-scene {
  position: relative;
  width: 100%;
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: calc(var(--barre-h) + env(safe-area-inset-top, 0px) + clamp(40px, 6vw, 80px)) var(--gouttiere) clamp(40px, 6vw, 64px);
  display: grid;
  justify-items: center;
  text-align: center;
}
.boutique-scene .etiquette { justify-content: center; margin-top: 8px; }
.boutique-titre { font-size: clamp(3rem, 13vw, 9rem); }
.boutique-titre::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  background: repeating-linear-gradient(0deg, rgba(4, 6, 12, .55) 0 2px, transparent 2px 5px);
  pointer-events: none;
  animation: grain 1.2s steps(3) infinite;
}
@keyframes grain { 50% { transform: translateY(2px); } }
.boutique-etat { margin-top: 20px; }
.boutique-scene .chapeau { margin-inline: auto; }

.holo { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.holo-icone {
  position: relative;
  z-index: 1;
  font-size: 5rem;
  color: var(--accent-clair);
  filter: drop-shadow(0 0 18px var(--accent));
  animation: holo 3.2s ease-in-out infinite, vacille 4s steps(1) infinite;
}
@keyframes holo { 50% { transform: translateY(-10px); } }
@keyframes vacille { 0%, 91%, 95%, 100% { opacity: 1; } 93% { opacity: .35; } 97% { opacity: .6; } }
.holo-faisceau {
  position: absolute;
  bottom: 0; left: 50%;
  width: 180px; height: 170px;
  translate: -50% 0;
  background: linear-gradient(0deg, rgba(var(--accent-rgb), .45), transparent);
  clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0);
  filter: blur(2px);
  opacity: .5;
}
.holo-anneau {
  position: absolute;
  bottom: 6px; left: 50%;
  width: 150px; height: 34px;
  translate: -50% 0;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), .7);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), .5);
  animation: anneau-holo 2.4s ease-in-out infinite;
}
.holo-anneau-2 { width: 100px; height: 22px; bottom: 12px; animation-delay: -1.2s; }
@keyframes anneau-holo { 50% { transform: scale(1.12); opacity: .5; } }

.boutique-grille {
  width: 100%;
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: 0 var(--gouttiere);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.produit { padding: 28px; overflow: hidden; }
.produit::before { opacity: .4; }
.produit .produit-icone { filter: blur(.6px) grayscale(.6); opacity: .55; }
.produit h2, .produit p { opacity: .8; }
.produit-icone { font-size: 2.2rem; color: var(--accent-clair); }
.produit h2 { margin-top: 18px; font: 700 1.08rem var(--f-titre); }
.produit p { margin-top: 8px; font-size: .94rem; color: var(--doux); }
.produit-verrou {
  position: absolute;
  top: 18px; right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .4em .7em;
  font: 700 .6rem var(--f-hud);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ambre);
  border: 1px solid rgba(var(--ambre-rgb), .5);
  background: rgba(4, 6, 12, .85);
}
.produit-verrou .ms { font-size: 1.1rem; }
.produit:hover .produit-verrou .ms { animation: secoue .4s; }
@keyframes secoue { 25% { rotate: -14deg; } 75% { rotate: 14deg; } }
.produit-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), .12), transparent);
  border-bottom: 1px solid rgba(var(--accent-rgb), .4);
  animation: scan 3.6s linear infinite;
  animation-delay: calc(var(--i, 0) * -.6s);
  pointer-events: none;
}
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.boutique-note {
  width: 100%;
  max-width: 820px;
  margin: 36px auto 40px;
  padding: 0 var(--gouttiere);
  text-align: center;
  font-size: .9rem;
  color: var(--pale);
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.pied {
  margin-top: clamp(60px, 8vw, 100px);
  padding: 44px var(--gouttiere) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--trait);
  background: linear-gradient(180deg, rgba(8, 13, 25, .5), var(--sol));
}
.pied-haut {
  max-width: var(--large);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
}
.pied-devise { font: 600 .72rem var(--f-hud); letter-spacing: .3em; text-transform: uppercase; color: var(--doux); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.pied-liens a { font-size: .9rem; color: var(--doux); text-decoration: none; transition: color .2s; }
.pied-liens a:hover { color: var(--accent-clair); }
.pied-reseaux { display: flex; gap: 10px; }
.pied-reseaux:empty { display: none; }
.pied-reseaux a {
  font: 600 .7rem var(--f-hud);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--doux);
  text-decoration: none;
  padding: .5em .8em;
  border: 1px solid var(--trait-fort);
}
.pied-reseaux a:hover { color: var(--accent-clair); border-color: var(--accent); }
.pied-legal {
  max-width: var(--large);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--trait);
  font-size: .8rem;
  color: var(--pale);
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  --b: 10px;
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1450;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  font: 600 .8rem var(--f-hud);
  letter-spacing: .1em;
  color: #02101f;
  background: linear-gradient(120deg, var(--accent-clair), var(--accent));
  clip-path: polygon(var(--b) 0, 100% 0, 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, 0 100%, 0 var(--b));
  translate: -50% calc(100% + 60px);
  transition: translate .45s var(--ease);
  pointer-events: none;
}
.toast.visible { translate: -50% 0; }

/* ==========================================================================
   Mises à jour (aperçu d'accueil + journal)
   ========================================================================== */
.maj {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--trait);
  background: linear-gradient(135deg, rgba(15, 26, 48, .8), rgba(5, 9, 18, .9));
}
.maj-filigrane {
  position: absolute;
  z-index: -1;
  left: -6%;
  top: 50%;
  width: min(62%, 560px);
  height: auto;
  translate: 0 -50%;
  fill: rgba(143, 216, 255, .05);
  stroke: rgba(143, 216, 255, .14);
  stroke-width: 2;
  filter: drop-shadow(0 0 30px rgba(var(--accent-rgb), .25));
}
.maj-etiquette {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 .72rem var(--f-hud);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent-clair);
}
.maj-etiquette::before { content: ""; width: 30px; height: 1px; background: var(--accent-clair); }
.maj-titre { margin-top: 14px; font: 800 clamp(1.6rem, 3.2vw, 2.4rem)/1 var(--f-titre); }
.maj-version {
  font: 900 clamp(4.4rem, 11vw, 8.4rem)/.9 var(--f-titre);
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 25%, var(--bleu-clair) 70%, var(--bleu));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(var(--bleu-rgb), .35));
}
.maj-date {
  margin-top: 14px;
  font: 600 .8rem var(--f-hud);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--doux);
}
.maj-cote .btn { margin-top: 26px; }
.maj-points { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.maj-point {
  --c-rgb: var(--bleu-rgb);
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--trait);
  background: rgba(6, 10, 20, .7);
  transition: border-color .3s, transform .35s var(--ease), background .3s;
}
.maj-point:hover { border-color: rgba(var(--c-rgb), .6); background: rgba(var(--c-rgb), .07); transform: translateY(-3px); }
.maj-point[data-couleur="rouge"] { --c-rgb: var(--rouge-rgb); }
.maj-point[data-couleur="vert"] { --c-rgb: 20, 184, 140; }
.maj-point[data-couleur="ambre"] { --c-rgb: 240, 140, 20; }
.maj-point[data-couleur="violet"] { --c-rgb: 139, 92, 246; }
.maj-point[data-couleur="gris"] { --c-rgb: 100, 116, 139; }
.maj-icone {
  --b: 9px;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--c-rgb), 1), rgba(var(--c-rgb), .7));
  clip-path: polygon(var(--b) 0, 100% 0, 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, 0 100%, 0 var(--b));
  filter: drop-shadow(0 0 10px rgba(var(--c-rgb), .5));
}
.maj-icone.ms { width: 50px; font-size: 1.6rem; }
.maj-point h3 { font: 700 1rem/1.25 var(--f-titre); }
.maj-point p { margin-top: 5px; font-size: .9rem; color: var(--doux); }

.journal {
  width: 100%;
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: 0 var(--gouttiere) 40px;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
.journal .maj { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); }
.maj-visuel {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--trait-fort);
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.maj-visuel img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .4s; }
.maj-visuel:hover img { transform: scale(1.03); filter: brightness(1.08); }
.maj-visuel-lib {
  position: absolute;
  right: 14px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .5em .8em;
  font: 600 .66rem var(--f-hud);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--texte);
  background: rgba(4, 6, 12, .8);
  border: 1px solid var(--trait-fort);
}
.journal-nouveau {
  position: absolute;
  top: 18px; right: 18px;
  font: 700 .62rem var(--f-hud);
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .45em .75em;
  color: #02101f;
  background: var(--bleu-clair);
  box-shadow: 0 0 16px rgba(var(--bleu-rgb), .7);
}

/* ==========================================================================
   Galerie + visionneuse
   ========================================================================== */
.bloc-galerie { max-width: none; padding-inline: 0; }
.galerie-tete {
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.galerie-fleches { display: flex; gap: 8px; }
.fleche {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--trait-fort);
  background: rgba(6, 11, 22, .8);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.fleche:hover { border-color: var(--accent); color: var(--accent-clair); background: rgba(var(--accent-rgb), .1); }
.galerie {
  --h: clamp(260px, 38vw, 440px);
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gouttiere);
  padding: 6px max(var(--gouttiere), calc((100vw - var(--large)) / 2)) 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--trait-fort) transparent;
  cursor: grab;
}
.galerie:focus-visible { outline: 2px solid var(--accent-clair); outline-offset: -2px; }
.galerie.glisse { cursor: grabbing; scroll-snap-type: none; }
.galerie.glisse .vignette { pointer-events: none; }
.vignette {
  position: relative;
  flex: none;
  height: var(--h);
  aspect-ratio: 16 / 9;
  max-width: 88vw;
  padding: 0;
  border: 1px solid var(--trait);
  background: var(--panneau);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: border-color .3s, box-shadow .3s;
}
.vignette[data-format="portrait"] { aspect-ratio: 9 / 10; }
.vignette[data-format="carre"] { aspect-ratio: 1; }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: saturate(.9) brightness(.9); }
.vignette:hover img, .vignette:focus-visible img { transform: scale(1.05); filter: saturate(1.1) brightness(1); }
.vignette:hover { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 24px 60px -24px rgba(var(--accent-rgb), .6); }
.vignette-legende {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  text-align: left;
  background: linear-gradient(0deg, rgba(4, 6, 12, .95), transparent);
  transform: translateY(35%);
  opacity: .9;
  transition: transform .45s var(--ease), opacity .45s;
}
.vignette:hover .vignette-legende, .vignette:focus-visible .vignette-legende { transform: none; opacity: 1; }
.vignette-legende strong { display: block; font: 700 1rem var(--f-titre); color: #fff; }
.vignette-legende span { display: block; margin-top: 4px; font-size: .86rem; color: var(--doux); }

.visionneuse {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(2, 4, 9, .94);
  color: var(--texte);
}
.visionneuse::backdrop { background: rgba(2, 4, 9, .6); }
.visionneuse[open] { display: grid; place-items: center; animation: fondu .35s ease; }
@keyframes fondu { from { opacity: 0; } }
.visionneuse-cadre {
  margin: 0;
  padding: 64px 72px;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 100%;
}
.visionneuse-cadre img {
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--trait-fort);
  box-shadow: 0 40px 120px -30px rgba(var(--accent-rgb), .5);
  animation: zoom-vision .45s var(--ease);
}
@keyframes zoom-vision { from { transform: scale(.94); opacity: 0; } }
.visionneuse-cadre figcaption { font: 600 .8rem var(--f-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--doux); text-align: center; }
.visionneuse-cadre figcaption strong { color: var(--texte); margin-right: .6em; }
.visionneuse-bouton {
  position: fixed;
  top: 50%;
  translate: 0 -50%;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--trait-fort);
  background: rgba(6, 11, 22, .9);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.visionneuse-bouton:hover { border-color: var(--accent); color: var(--accent-clair); }
.visionneuse-prec { left: 12px; }
.visionneuse-suiv { right: 12px; }
.visionneuse .fiche-fermer { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); }

@media (max-width: 960px) {
  .maj, .journal .maj { grid-template-columns: 1fr; }
  .maj-filigrane { width: 90%; left: 5%; top: 30%; }
}
@media (max-width: 640px) {
  .maj-points { grid-template-columns: 1fr; }
  .visionneuse-cadre { padding: 70px 12px 80px; }
  .visionneuse-bouton { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); translate: none; }
  .visionneuse-prec { left: calc(50% - 60px); }
  .visionneuse-suiv { right: calc(50% - 60px); }
}

/* ==========================================================================
   Apparition au défilement (seulement quand le JS tourne)
   ========================================================================== */
.a-reveler { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.a-reveler.vu { opacity: 1; transform: none; }

/* ==========================================================================
   Adaptatif
   ========================================================================== */
@media (max-width: 1100px) {
  .piliers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nouveautes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nouv-vedette { grid-row: auto; }
  .boutique-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regl { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-width: 1360px) {
  .burger { display: block; }
  .menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    margin: 0;
    padding: calc(var(--barre-h) + env(safe-area-inset-top, 0px) + 24px) var(--gouttiere) 32px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(40rem 30rem at 80% 10%, rgba(var(--accent-rgb), .18), transparent 70%),
      rgba(4, 6, 12, .97);
    visibility: hidden;
    opacity: 0;
    /* visible tout de suite à l'ouverture (le focus clavier doit pouvoir y entrer),
       caché seulement après le fondu à la fermeture */
    transition: opacity .35s, visibility 0s linear .35s;
  }
  .menu.ouvert { visibility: visible; opacity: 1; transition: opacity .35s, visibility 0s; }
  .menu a {
    padding: 14px 0;
    font: 800 clamp(1.6rem, 7vw, 2.4rem) var(--f-titre);
    letter-spacing: .02em;
    text-transform: none;
    color: var(--texte);
    border-bottom: 1px solid var(--trait);
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s;
  }
  .menu-num { font: 600 .8rem var(--f-hud); color: var(--accent); }
  .menu a::after { display: none; }
  .menu.ouvert a { opacity: 1; transform: none; }
  .menu.ouvert a:nth-child(2) { transition-delay: .05s; }
  .menu.ouvert a:nth-child(3) { transition-delay: .1s; }
  .menu.ouvert a:nth-child(4) { transition-delay: .15s; }
  .menu.ouvert a:nth-child(5) { transition-delay: .2s; }
  .menu a.actif { color: var(--accent-clair); }
  .menu.ouvert a:nth-child(6) { transition-delay: .25s; }
  .menu-ouvert { overflow: hidden; }
  .barre-droite { margin-left: auto; }
}

@media (max-width: 960px) {
  :root { --barre-h: 64px; }
  .hero-grille { grid-template-columns: 1fr; text-align: left; }
  .hero-titre-l1 { font-size: clamp(3.2rem, 15vw, 7rem); }
  .embleme { order: -1; width: min(300px, 70vw); margin-bottom: -10px; }
  .hud-coord { display: none; }
  .duel { grid-template-columns: 1fr; min-height: 0; }
  .duel:has(.camp-legal:hover), .duel:has(.camp-illegal:hover) { grid-template-columns: 1fr; }
  .camp { min-height: 520px; }
  .duel-axe { height: 110px; }
  .duel-ligne { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 2px; translate: 0 -50%; background: linear-gradient(90deg, var(--vert), rgba(255, 255, 255, .15) 50%, var(--rouge)); }
  .duel-vs { bottom: auto; right: 12%; }
  .rejoindre { grid-template-columns: 1fr; }
  .statut { position: static; }
  .faq { grid-template-columns: 1fr; }
  .regl { grid-template-columns: minmax(0, 1fr); }
  .regl-cote { position: static; max-height: none; }
  .sommaire { max-height: 320px; }
  .lecture { display: none; }
  .final-discords { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 640px) {
  .barre .etat, .barre-droite .btn-mini { display: none; }
  .hero { min-height: 0; }
  .hero-titre-l2 { letter-spacing: .5em; }
  .compte-cases { gap: 6px; }
  .case { padding: 12px 2px 10px; --b: 9px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-pied { grid-template-columns: 1fr auto; }
  .radar { display: none; }
  .hero-suite { justify-self: start; }
  .hud-heure { right: 30px; }
  .piliers, .nouveautes, .boutique-grille { grid-template-columns: 1fr; }
  .nouv-vedette { grid-column: auto; }
  .compteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compteur:nth-child(3) { border-left: 0; }
  .compteur:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .statut-infos { grid-template-columns: 1fr; }
  .fiche-colonnes { grid-template-columns: 1fr; }
  .fiche-tete { grid-template-columns: 1fr; }
  .article { padding: 18px; }
  .chapitre-tete { grid-template-columns: 1fr; gap: 8px; }
  .faq-r { padding-right: 8px; }
  .pied-liens { margin-left: 0; }
  .journal-nouveau { position: static; justify-self: start; }
}

/* Écrans tactiles : pas de curseur maison ni d'inclinaison */
@media (hover: none) {
  .curseur { display: none !important; }
  .vignette-legende { transform: none; opacity: 1; }
}

/* Mouvement réduit : on garde le site lisible, sans animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .a-reveler { opacity: 1; transform: none; }
  .curseur, .balayage, .hero-titre-l1::before, .hero-titre-l1::after { display: none !important; }
}
