/* ================================================================
   THÈME "PARADIS" : rouge / noir, verre fumé, logo V3 en fond
   (chargé en dernier, redessine tout le site par-dessus style.css)
   ================================================================ */

/* ——— Sombre : rouge profond et noir ——— */
:root {
  --mid-rgb: 170, 0, 20;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Manrope", "Segoe UI", system-ui, sans-serif;

  --or1: #ff3545;
  --or2: #a80014;
  --grad: linear-gradient(120deg, #ff4250 0%, #e11228 45%, #a30015 72%, #4a0009 100%);
  --grad-text: linear-gradient(90deg, #ff3042 0%, #ff5964 34%, #f4d4d7 55%, #d60d22 78%, #8e0010 100%);
  --on-or: #ffffff;
  /* rouges réutilisés partout (lueurs, ombres) : redéfinis par pôle */
  --glow-rgb: 255, 53, 69;
  --hl-rgb: 255, 104, 116;
  --deep-rgb: 40, 0, 6;

  --bg: #050506;
  --surface: rgba(24, 12, 14, .78);
  --ink: #ffffff;
  --text: #e5d6d8;
  --muted: #ab9295;
  --line: rgba(255, 93, 106, .13);
  --line-strong: rgba(255, 93, 106, .28);
  --a-ink: #ff6570;
  --a-soft: rgba(229, 18, 40, .15);

  --glass: rgba(20, 9, 11, .9);
  --glass-line: rgba(255, 255, 255, .08);
  --paper: rgba(17, 8, 10, .92);
  --paper-solid: #15090b;
  --card: rgba(255, 255, 255, .035);
  --shadow: 0 16px 38px rgba(0, 0, 0, .42);

  --sky:
    radial-gradient(60% 50% at 5% 5%, rgba(221, 14, 35, .38), transparent 68%),
    radial-gradient(52% 48% at 95% 20%, rgba(116, 0, 14, .34), transparent 70%),
    radial-gradient(62% 58% at 88% 100%, rgba(205, 8, 29, .24), transparent 72%),
    radial-gradient(55% 52% at 4% 94%, rgba(82, 0, 10, .32), transparent 70%),
    linear-gradient(155deg, #130406 0%, #070708 48%, #020203 100%);
  --logo-op: .12;
  --bar-bg: rgba(10, 5, 6, .96);
}

/* ——— Variante claire : charbon et rouge incandescent ——— */
:root[data-theme="light"] {
  color-scheme: dark;
  --or1: #ff3a4b;
  --or2: #bd0017;
  --bg: #0c0809;
  --surface: rgba(39, 20, 22, .76);
  --ink: #fffafa;
  --text: #eadbdd;
  --muted: #b59b9e;
  --line: rgba(255, 105, 116, .15);
  --line-strong: rgba(255, 105, 116, .3);
  --a-ink: #ff6b76;
  --a-soft: rgba(237, 24, 45, .16);

  --glass: rgba(31, 14, 17, .88);
  --glass-line: rgba(255, 255, 255, .1);
  --paper: rgba(24, 10, 12, .92);
  --paper-solid: #1c0c0e;
  --card: rgba(255, 255, 255, .045);
  --shadow: 0 16px 38px rgba(0, 0, 0, .38);

  --sky:
    radial-gradient(58% 48% at 7% 7%, rgba(255, 37, 58, .5), transparent 68%),
    radial-gradient(52% 48% at 94% 18%, rgba(132, 0, 17, .42), transparent 70%),
    radial-gradient(62% 58% at 86% 98%, rgba(219, 10, 33, .3), transparent 72%),
    radial-gradient(55% 52% at 5% 94%, rgba(92, 0, 12, .38), transparent 70%),
    linear-gradient(155deg, #1b070a 0%, #0d0a0b 46%, #040405 100%);
  --logo-op: .14;
  --bar-bg: rgba(20, 9, 11, .95);
}
:root[data-theme="light"] .t-ok { --c-fg: #0f7a54; --c-bg: #d9f7ea; }

/* ——— Fond : halos rouges sur noir + logo V3 en filigrane ——— */
html { background: var(--bg); }
body { background: transparent; position: relative; }
body::before,
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; transform: translateZ(0); }
body::before { z-index: -2; background: var(--sky); }
body::after {
  z-index: -1;
  background: url("../assets/logo-v3-4k.webp") center 55% / min(64vw, 600px) auto no-repeat;
  opacity: var(--logo-op);
  transition: opacity .4s;
}
body:has(.hx)::after { opacity: 0; }  /* l'accueil a déjà le grand logo */
.side-characters { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; user-select: none; }
.side-character { position: absolute; bottom: 0; height: min(72vh, 720px); width: auto; max-width: none; opacity: .62; filter: brightness(.92) drop-shadow(0 0 34px rgba(var(--glow-rgb), .32)); }
.side-character--left { left: -7vw; }
.side-character--right { right: -7vw; }
body:has(.hx) .side-character { opacity: .55; }
body > main { position: relative; z-index: 1; }
@media (max-width: 980px) {
  .side-character { height: 52vh; width: auto; opacity: .32; }
  .side-character--left { left: -16vw; }
  .side-character--right { right: -16vw; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .kicker .dot { animation: none !important; }
}

h1, h2, h3 { font-family: var(--display); }
::selection { background: rgba(var(--glow-rgb), .4); }

/* ——— Étiquette "kicker" (accueil, en-têtes de page) ——— */
.kicker,
.band .wrap::before {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  margin: 0; padding: 6px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  font: 700 .74rem/1.4 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--a-ink);
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--or1); box-shadow: 0 0 0 4px rgba(var(--glow-rgb), .18); }

/* ================================================================
   BARRE DU HAUT : capsule flottante
   ================================================================ */
.bar, :root[data-theme="light"] .bar {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  width: min(1180px, calc(100% - 24px)); margin: 12px auto 0;
  border: 1px solid var(--glass-line); border-radius: 22px; overflow: hidden;
  background: var(--bar-bg); box-shadow: 0 18px 55px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .035);
}
.bar-in { min-height: 60px; padding-top: 8px; padding-bottom: 8px; max-width: none; }
.brand { font-family: var(--display); letter-spacing: .02em; }
.brand img { height: 40px; filter: drop-shadow(0 5px 10px rgba(var(--glow-rgb), .2)); }
:root[data-theme="light"] .brand img { filter: none; }
#read-progress { bottom: 0; height: 3px; }

.discord-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 9px 14px; border: 1px solid rgba(var(--hl-rgb), .38); border-radius: 13px;
  background: rgba(var(--mid-rgb), .18); color: #fff; white-space: nowrap;
  font-weight: 800; font-size: .82rem; line-height: 1.2; letter-spacing: .02em;
  box-shadow: inset 0 1px rgba(255, 255, 255, .05);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.discord-link .discord-mark { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }
.discord-link:hover, .discord-link:focus-visible {
  border-color: var(--or1); background: linear-gradient(135deg, var(--or1), var(--or2));
  transform: translateY(-1px); box-shadow: 0 8px 22px rgba(var(--glow-rgb), .26);
}
@media (max-width: 980px) {
  .discord-link { width: 40px; flex: 0 0 40px; padding: 0; }
  .discord-link span { display: none; }
}

/* Sur les pages de règles, tout le header tient sur une seule ligne desktop. */
@media (min-width: 1021px) {
  .bar-in:has(.tabs:not([hidden])) { flex-wrap: nowrap; column-gap: 10px; padding-left: 12px; padding-right: 12px; }
  .bar-in:has(.tabs:not([hidden])) .brand { gap: 8px; font-size: .98rem; }
  .bar-in:has(.tabs:not([hidden])) .brand img { height: 36px; }
  .bar-in:has(.tabs:not([hidden])) .switch { flex: 0 1 auto; gap: 0; margin-left: auto; }
  .bar-in:has(.tabs:not([hidden])) .switch a { padding: 5px 8px 9px; font-size: .72rem; letter-spacing: .08em; }
  .bar-in:has(.tabs:not([hidden])) .tabs { flex: 0 1 auto; gap: 4px; margin-left: 0; }
  .bar-in:has(.tabs:not([hidden])) .tab { padding: 7px 10px; font-size: .78rem; }
  .bar-in:has(.tabs:not([hidden])) .discord-link { flex: 0 0 auto; margin-left: 0; padding: 8px 10px; font-size: .76rem; }
}
@media (min-width: 981px) and (max-width: 1120px) {
  .bar-in:has(.tabs:not([hidden])) .discord-link { width: 40px; flex-basis: 40px; padding: 0; }
  .bar-in:has(.tabs:not([hidden])) .discord-link span { display: none; }
}

/* ——— Rubriques : liens numérotés, soulignement néon ——— */
.switch { counter-reset: s; display: flex; gap: 4px; margin-left: auto; padding: 0; border: 0; border-radius: 0; background: none; }
.switch .ind { display: none; }
.switch a { counter-increment: s; position: relative; flex-direction: column; gap: 0; padding: 6px 14px 10px; border-radius: 0; font-weight: 800; font-size: .82rem; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.switch a::before { content: "0" counter(s); font-size: .62rem; font-weight: 600; letter-spacing: .2em; color: var(--a-ink); opacity: .7; }
.switch a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.4, .1, .2, 1.15); }
.switch a svg { display: none; }
.switch a:hover { color: var(--ink); }
.switch a:hover::after { transform: scaleX(.35); }
.switch a[aria-current="page"] { color: var(--ink); }
.switch a[aria-current="page"]::before { opacity: 1; }
.switch a[aria-current="page"]::after { transform: scaleX(1); box-shadow: 0 0 12px rgba(var(--glow-rgb), .72), 0 0 24px rgba(var(--mid-rgb), .52); }
.switch a[aria-current="page"] span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ——— Factions : étiquettes inclinées ——— */
.tabs { gap: 6px; }
.tab { position: relative; padding: 7px 16px; border: 0; border-radius: 4px; background: none; font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: var(--text); isolation: isolate; }
.tab::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 4px; transform: skewX(-14deg); border: 1.5px solid var(--line-strong); background: var(--surface); transition: border-color .2s, background .2s, box-shadow .2s; }
.tab:hover { color: var(--ink); }
.tab:hover::before { border-color: var(--or2); }
.tab[aria-current="page"] { background: none; color: #fff; }
.tab[aria-current="page"]::before { border-color: transparent; background: var(--grad); box-shadow: 0 4px 18px rgba(var(--glow-rgb), .4); }

/* ——— Candidater : même forme inclinée ——— */
.cand-btn { border-radius: 4px; transform: skewX(-14deg); }
.cand-btn > * { transform: skewX(14deg); }
.cand-btn:hover { transform: skewX(-14deg) translateY(-1px); }

/* ——— Thème : bouton rond, une seule icône ——— */
.theme, .theme[data-dark="false"] { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); }
.theme:hover { border-color: var(--or1); box-shadow: 0 0 14px rgba(var(--glow-rgb), .4); }
.theme .tic { display: none; }
.theme .knob, .theme[data-dark="false"] .knob { inset: 0; width: auto; height: auto; background: none; box-shadow: none; transform: none; }
.theme .knob svg { font-size: 18px; }
.theme .k-moon { color: var(--a-ink); }
.theme .k-sun { color: var(--or2); }

/* "Vision Illégal" reste visible partout : le menu est assez compact */
@media (min-width: 721px) {
  .brand-t, .bar-in:has(.tabs:not([hidden])) .brand-t { display: inline; }
}

/* ================================================================
   ACCUEIL
   ================================================================ */
.hx { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(32px, 5vw, 72px); min-height: min(82vh, 780px); padding-top: 48px; padding-bottom: 56px; }
.hx-t { margin: 22px 0 0; font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; color: var(--ink); }
.hx-t em { font-style: normal; display: inline-block; padding: 0 .06em .14em 0; margin-bottom: -.14em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-p { margin: 24px 0 0; max-width: 32rem; font-size: 1.15rem; line-height: 1.65; color: var(--text); }
.hx-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border: 1px solid rgba(var(--hl-rgb), .42); border-radius: 16px; background: linear-gradient(135deg, var(--or1) 0%, var(--or2) 55%, var(--or2) 100%); color: #fff; font-weight: 800; font-size: 1rem; box-shadow: 0 14px 34px rgba(var(--mid-rgb), .26), inset 0 1px rgba(255, 255, 255, .2); transition: background .25s, color .25s, transform .2s, box-shadow .2s; }
.btn svg.i { font-size: 1.15em; transition: transform .2s; }
.btn:hover { background: linear-gradient(135deg, var(--or1) 0%, var(--or1) 54%, var(--or2) 100%); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 42px rgba(var(--glow-rgb), .34), inset 0 1px rgba(255, 255, 255, .24); }
.btn:hover svg.i { transform: translateX(3px); }
.btn.ghost { background: rgba(15, 7, 8, .78); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.btn.ghost:hover { border-color: var(--or1); background: var(--glass); color: var(--ink); }
.btn.continue-btn { background: rgba(var(--deep-rgb), .86); border-color: rgba(var(--hl-rgb), .28); box-shadow: none; }
.continue-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.continue-btn small { margin-top: 4px; color: var(--muted); font-size: .67rem; font-weight: 600; }
.btn.continue-btn:hover { background: rgba(var(--deep-rgb), .95); border-color: var(--or1); box-shadow: 0 12px 28px rgba(var(--mid-rgb), .2); }

.hx-art { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; }
.hx-art::before { content: ""; position: absolute; z-index: -1; width: min(100%, 550px); aspect-ratio: 1; border: 1px solid rgba(var(--hl-rgb), .13); border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow-rgb), .19) 0%, rgba(var(--mid-rgb), .1) 42%, transparent 70%); box-shadow: 0 0 90px rgba(var(--glow-rgb), .13), inset 0 0 80px rgba(var(--glow-rgb), .05); }
.hx-art::after { content: "V3  //  VISION ILLÉGAL"; position: absolute; right: 0; bottom: 2%; color: rgba(var(--hl-rgb), .58); font: 700 .61rem/1 var(--font); letter-spacing: .24em; }
/* Logo 4K : métal net, halo discret et double anneau technique. */
.aura { position: relative; display: grid; place-items: center; width: min(100%, 540px); aspect-ratio: 1; }
.aura::before, .aura::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.aura::before { inset: 12%; background: radial-gradient(closest-side, rgba(var(--glow-rgb), .43), rgba(var(--mid-rgb), .2) 58%, transparent 74%); filter: blur(30px); }
.aura::after { inset: 8%; border: 1px solid rgba(var(--hl-rgb), .2); background: transparent; box-shadow: 0 0 0 18px rgba(var(--glow-rgb), .018), 0 0 0 46px rgba(var(--glow-rgb), .012); transform: rotate(-7deg); }
.aura img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 32px 36px rgba(0, 0, 0, .58)) drop-shadow(0 10px 22px rgba(var(--mid-rgb), .2)); transform: translateZ(0); }
.home2 { padding-top: 44px; padding-bottom: 72px; }
.join-card { position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 3vw, 34px); margin-bottom: 16px; padding: clamp(22px, 3vw, 32px); overflow: hidden; border: 1px solid rgba(var(--hl-rgb), .19); border-radius: 26px; background: radial-gradient(70% 180% at 0% 50%, rgba(var(--glow-rgb), .22), transparent 64%), linear-gradient(120deg, rgba(var(--deep-rgb), .96), rgba(8, 5, 6, .96)); box-shadow: var(--shadow); }
.join-card::after { content: ""; position: absolute; z-index: -1; right: 22%; width: 240px; aspect-ratio: 1; border: 1px solid rgba(var(--glow-rgb), .09); border-radius: 50%; box-shadow: 0 0 0 34px rgba(var(--glow-rgb), .018), 0 0 0 70px rgba(var(--glow-rgb), .012); }
.join-card > img { width: clamp(74px, 8vw, 104px); height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }
.join-copy { min-width: 0; }
.join-copy .kicker { padding: 4px 10px; font-size: .64rem; }
.join-copy h2 { margin: 12px 0 0; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1; }
.join-copy > p:last-child { max-width: 39rem; margin: 10px 0 0; color: var(--text); line-height: 1.55; }
.join-discord { display: inline-flex; align-items: center; gap: 11px; min-height: 54px; padding: 10px 16px; border: 1px solid rgba(var(--hl-rgb), .45); border-radius: 16px; background: linear-gradient(135deg, var(--or1), var(--or2) 74%, var(--or2)); color: #fff; box-shadow: 0 13px 28px rgba(var(--mid-rgb), .25), inset 0 1px rgba(255, 255, 255, .17); transition: transform .2s, box-shadow .2s, border-color .2s; }
.join-discord:hover, .join-discord:focus-visible { transform: translateY(-2px); border-color: var(--a-ink); box-shadow: 0 18px 36px rgba(var(--glow-rgb), .33), inset 0 1px rgba(255, 255, 255, .2); }
.join-discord .discord-mark { width: 1.45rem; height: 1.45rem; flex: none; fill: currentColor; }
.join-discord span { display: flex; flex-direction: column; white-space: nowrap; font-weight: 800; line-height: 1.1; }
.join-discord small { margin-top: 5px; color: rgba(255, 255, 255, .7); font-size: .65rem; font-weight: 600; }
.join-discord > svg.i { width: 1.1rem; height: 1.1rem; margin-left: 3px; transition: transform .2s; }
.join-discord:hover > svg.i { transform: translateX(3px); }
.note { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.note-i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--ban-bg); color: var(--ban-fg); font-size: 1.25rem; }
.note p { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--text); }
.note strong { color: var(--ink); }
.note a { color: var(--a-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.sec { margin-top: 76px; }
.sec-h h2 { margin-top: 14px; font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.05; letter-spacing: -.025em; }
.sec-h > p:not(.kicker) { margin: 10px 0 0; color: var(--muted); }

.route { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.route li { display: flex; }
.rcard { display: flex; flex-direction: column; width: 100%; padding: 24px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); transition: border-color .2s; }
.rcard:hover { border-color: var(--or1); }
.rn { align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--a-soft); color: var(--a-ink); font-weight: 700; font-size: .72rem; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; }
.route li:nth-child(3) .rn { background: rgba(var(--mid-rgb), .2); color: var(--a-ink); }
.rcard strong { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.2; color: var(--ink); }
.rd { margin: 8px 0 22px; color: var(--text); font-size: .96rem; line-height: 1.6; }
.rgo { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--a-ink); }
.rgo svg.i { font-size: 1.1rem; transition: transform .2s; }
.rcard:hover .rgo svg.i { transform: translateX(4px); }

.fac { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.fcard { position: relative; display: flex; align-items: center; gap: 20px; padding: 22px 22px 22px 28px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s; }
.fcard::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad); }
.fcard:hover { border-color: var(--or1); }
.fbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fcard strong { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.fd { font-size: .95rem; line-height: 1.5; color: var(--text); }
.fd b { color: var(--ink); font-weight: 700; }
.fgo { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.fcard:hover .fgo { background: var(--grad); border-color: transparent; color: #fff; }

.home2 .all-link { margin-top: 16px; padding: 18px 22px; border-radius: 20px; border: 1.5px dashed var(--line-strong); background: var(--glass); }
.home2 .all-link:hover { border-color: var(--or1); color: var(--a-ink); }
.home2 .accept { text-align: center; max-width: none; }

/* ================================================================
   EN-TÊTES DE PAGE : panneau flottant
   ================================================================ */
.band {
  width: min(1120px, calc(100% - 40px)); margin: 28px auto 0;
  border-radius: 34px; border: 1px solid var(--glass-line); color: var(--ink);
  background:
    radial-gradient(60% 130% at 0% 0%, rgba(var(--glow-rgb), .3), transparent 60%),
    radial-gradient(50% 130% at 100% 100%, rgba(var(--mid-rgb), .34), transparent 60%),
    var(--glass);
  box-shadow: var(--shadow);
}
.band .wrap { max-width: none; padding: clamp(30px, 5vw, 56px) clamp(22px, 4.5vw, 56px); }
.band .wrap::before { content: "Vision V3 · Illégal"; }
.band h1 { margin-top: 18px; max-width: 72%; font-weight: 700; font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1; letter-spacing: -.035em; text-transform: none; color: var(--ink); text-shadow: none; }
.band h1 b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band h1 span { font-weight: 500; }
.band p { max-width: 34rem; margin-top: 16px; color: var(--text); font-weight: 500; font-size: 1.08rem; text-shadow: none; }
.band-logo { right: 5%; height: 62%; opacity: 1; filter: drop-shadow(0 16px 24px rgba(170, 20, 80, .3)); animation: none; }

/* ================================================================
   LECTURE : feuille de verre + sommaire à droite
   ================================================================ */
.doc { gap: 28px; padding-top: 28px; padding-bottom: 80px; }
@media (min-width: 861px) {
  .doc { grid-template-columns: minmax(0, 1fr) 250px; }
  .toc { grid-column: 2; grid-row: 1; }
  .main { grid-column: 1; grid-row: 1; }
}
.main { max-width: none; padding: clamp(22px, 4.5vw, 52px); border-radius: 30px; border: 1px solid var(--glass-line); background: var(--paper); box-shadow: var(--shadow); }
.toc { top: calc(var(--bar-h, 68px) + env(safe-area-inset-top, 0px) + 40px); max-height: calc(100vh - var(--bar-h, 68px) - 64px); padding: 20px 12px 12px; border-radius: 24px; border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--shadow); }
.toc h2 { padding: 0 10px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.toc a { margin: 2px 0; padding: 7px 10px; border-left: 0; border-radius: 12px; font-size: .88rem; transition: background .2s, color .2s; }
.toc a:hover { background: var(--a-soft); color: var(--ink); }
.toc a.on { background: var(--grad); color: #fff; font-weight: 700; }
.toc .sub a { padding-left: 22px; }
.jump { border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--paper-solid); }

.search input { height: 54px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); }
.search input:focus { border-color: var(--or1); }

.section-title { font-family: var(--display); text-transform: none; letter-spacing: -.02em; }
.section-title .l { font-weight: 500; color: var(--a-ink); }

/* Titres de chapitre : grand numéro en contour */
.chapter > h2 { display: block; padding-bottom: 0; font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.015em; }
.chapter > h2::after { display: none; }
.chapter > h2 .cn { display: inline-block; margin-bottom: 4px; font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 3rem); line-height: 1; letter-spacing: -.03em; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: var(--or1); color: var(--or1); }
.chapter > h2 .cn + span { display: block; }

/* Règles : cartes */
.rule { margin: 12px 0 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .2s; }
.rule:hover { border-color: var(--line-strong); }
.rule-h h3 { font-family: var(--display); font-size: 1.12rem; }
.rule-n { border-radius: 10px; background: var(--grad); color: #fff; }
.rule-n:hover { filter: brightness(1.08); color: #fff; }

.focus, .fear { border: 2px solid transparent; border-radius: 22px; background: linear-gradient(var(--paper-solid), var(--paper-solid)) padding-box, var(--grad) border-box; }
.focus li + li, .frow { border-top-color: var(--line); }

/* ——— Mentalité ——— */
.topic h3, .step h3, .fear h3 { font-family: var(--display); }
.vs > div { border-radius: 20px; }
.tile { border-radius: 16px; border-color: var(--line); background: var(--card); }
.tile i { border-radius: 12px; }
.mcard, .step { border-radius: 20px; border-color: var(--line); background: var(--card); }
.mcard:hover { border-color: var(--or1); }
.ladder li::before { width: 2px; left: 23px; background: linear-gradient(var(--or1), var(--or2)); }
.pairs li::before { border-radius: 3px; transform: rotate(45deg); }

/* Citations (mentalité + lore) : grand guillemet dégradé */
.pull, .lore p.punch {
  position: relative; margin: 28px 0; padding: 6px 0 0 58px;
  border: 0; border-radius: 0; background: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; color: var(--ink);
}
.pull::before, .lore p.punch::before {
  content: "\201C"; position: absolute; left: 0; top: -8px;
  font: 800 4.4rem/1 var(--display);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Appel à l'action : panneau de nuit avec halos */
.cta { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 48px); border-radius: 30px; color: #fff;
  background:
    radial-gradient(60% 120% at 0% 100%, rgba(var(--glow-rgb), .55), transparent 60%),
    radial-gradient(60% 120% at 100% 0%, rgba(var(--mid-rgb), .52), transparent 60%),
    var(--paper-solid); }
.cta h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); text-transform: none; letter-spacing: -.025em; }
.cta p { color: rgba(255, 255, 255, .85); font-weight: 500; text-shadow: none; }
.cta-btns a { border-radius: 14px; color: #1a0f1e; box-shadow: none; }
.cta-btns a:hover { background: #fff0f6; }
.cta-btns a.alt { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.cta-btns a.alt:hover { background: #fff; color: #1a0f1e; }

/* ——— Lore ——— */
.lore .lore-intro p:first-child { font-family: var(--display); font-weight: 600; }
.lore .chain li { margin: 0; padding: 6px 0 22px 58px; border: 0; border-radius: 0; background: none; }
.lore .chain li::before { left: 0; top: 0; transform: none; width: 38px; height: 38px; color: #fff; box-shadow: 0 6px 16px rgba(var(--glow-rgb), .34); }
.lore .chain li:not(:last-child)::after { left: 18px; top: 42px; bottom: 4px; height: auto; width: 2px; background: linear-gradient(var(--or1), var(--or2)); }
.lore .chain li:last-child { font-weight: 800; }
.finale { border-radius: 28px; border: 0;
  background: radial-gradient(ellipse at 30% 110%, rgba(var(--glow-rgb), .45), transparent 60%), radial-gradient(ellipse at 75% 110%, rgba(var(--mid-rgb), .4), transparent 60%), var(--paper-solid); }
.finale strong { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; font-family: var(--display); font-size: clamp(1.8rem, 6vw, 3.4rem); letter-spacing: -.02em; white-space: normal; }

/* ——— Candidater ——— */
.tile-t { border-radius: 24px; border-color: var(--glass-line); background: var(--glass); box-shadow: var(--shadow); }
.tile-t strong { font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
dialog { background: var(--paper-solid); border-radius: 26px; }
dialog::backdrop { background: rgba(30, 8, 26, .55); }
.c-submit, .radio span, .field input[type="text"], .field input[type="url"] { border-radius: 14px; }

.toast { border-radius: 14px; color: #fff; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 860px) {
  .hx { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; padding-top: 24px; }
  .hx-art { order: -1; }
  .aura { width: min(70vw, 320px); }
  .join-card { grid-template-columns: auto minmax(0, 1fr); }
  .join-discord { grid-column: 1 / -1; justify-content: center; }
  .route, .fac { grid-template-columns: minmax(0, 1fr); }
  .band h1 { max-width: 100%; }
  .band-logo { height: 52%; right: -4%; opacity: .2; }
}
@media (max-width: 720px) {
  .bar, :root[data-theme="light"] .bar { width: calc(100% - 16px); margin-top: 8px; top: calc(env(safe-area-inset-top, 0px) + 8px); border-radius: 18px; }
  .switch { flex: 1; min-width: 0; justify-content: space-between; }
  .switch a { padding: 4px 6px 9px; font-size: .7rem; letter-spacing: .08em; }
  .switch a::after { left: 6px; right: 6px; }
  .tabs { gap: 8px; padding: 0 4px; }
  .tab { padding: 8px 4px; font-size: .78rem; letter-spacing: 0; }
  .theme, .theme[data-dark="false"] { width: 36px; height: 36px; }

  .band { width: calc(100% - 24px); margin-top: 18px; border-radius: 26px; }
  .doc { padding-left: 12px; padding-right: 12px; padding-top: 18px; }
  .main { border-radius: 24px; }
  .rule { padding: 16px; }
  .fcard { gap: 14px; padding: 18px 16px 18px 24px; }
  .fgo { width: 38px; height: 38px; }
  .note { padding: 16px; }
  .sec { margin-top: 56px; }
  .pull, .lore p.punch { padding-left: 44px; }
  .pull::before, .lore p.punch::before { font-size: 3.4rem; }
}
@media (max-width: 420px) {
  .bar-in { column-gap: 6px; }
  .brand img { height: 30px; }
  .switch a { padding: 4px 3px 9px; font-size: .62rem; letter-spacing: .04em; }
  .switch a::after { left: 3px; right: 3px; }
}

/* ================================================================
   FINITIONS : grain, apparitions, bandeau défilant, citation, icônes
   ================================================================ */

/* Grain léger sur le fond (donne de la matière au dégradé) */
html::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .035; transform: translateZ(0);
}
html { scrollbar-width: thin; scrollbar-color: rgba(var(--glow-rgb), .62) transparent; }

/* Entrée de l'accueil */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise-art { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.hx-txt > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hx-txt > :nth-child(2) { animation-delay: .07s; }
.hx-txt > :nth-child(3) { animation-delay: .14s; }
.hx-txt > :nth-child(4) { animation-delay: .21s; }
.hx-txt > :nth-child(5) { animation-delay: .28s; }
.aura { animation: rise-art .9s .12s cubic-bezier(.2, .7, .2, 1) both; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), border-color .2s; }
.reveal.in { opacity: 1; transform: none; }

/* Chiffres clés */
.hx-stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 460px; margin: 36px 0 0; padding: 0; }
.hx-stats li { display: flex; flex-direction: column; align-items: flex-start; padding: 0 0 0 20px; border-left: 1px solid var(--line-strong); }
.hx-stats li:first-child { padding-left: 0; border-left: 0; }
.hx-stats b { width: fit-content; font-variant-numeric: tabular-nums; font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: var(--or1); color: var(--or1); }
.hx-stats span { margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }

/* Lumière qui suit la souris sur les cartes */
.rcard { position: relative; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .rcard::after, .fcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--glow-rgb), .2), rgba(var(--mid-rgb), .09) 45%, transparent 70%); }
  .rcard:hover::after, .fcard:hover::after { opacity: 1; }
}

/* Factions : icône à gauche */
.fcard { padding-left: 22px; }
.fcard::before { display: none; }
.fic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--a-soft); color: var(--a-ink); font-size: 1.45rem; transition: background .25s, color .25s; }
.fcard:nth-child(even) .fic { background: rgba(var(--mid-rgb), .2); color: var(--a-ink); }
.fcard:hover .fic { background: var(--grad); color: #fff; }

/* Citation du lore */
.qcard { position: relative; overflow: hidden; margin: 0; padding: clamp(30px, 6vw, 64px); border-radius: 32px; color: #fff; box-shadow: var(--shadow);
  background:
    radial-gradient(70% 120% at 0% 100%, rgba(var(--glow-rgb), .52), transparent 60%),
    radial-gradient(60% 120% at 100% 0%, rgba(var(--mid-rgb), .46), transparent 60%),
    var(--paper-solid); }
.qcard > :not(.qlogo) { position: relative; z-index: 1; }
.qcard .kicker { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--a-ink); }
.qcard blockquote { margin: 22px 0 0; max-width: 40rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.22; letter-spacing: -.02em; color: #fff; }
.qcard blockquote em { display: inline-block; padding-bottom: .12em; margin-bottom: -.12em; font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qcard .btn { margin-top: 30px; }
.qlogo { position: absolute; z-index: 0; right: -3%; bottom: -14%; width: min(44%, 420px); opacity: .16; transform: rotate(-8deg); pointer-events: none; }
.btn.light { background: #fff; color: #1a0f1e; }
.btn.light:hover { background: var(--grad); color: #fff; }

/* En-têtes de page : chiffres */
.band-meta { position: relative; z-index: 1; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.band-meta li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); font-weight: 700; font-size: .8rem; color: var(--ink); }

@media (max-width: 720px) {
  body:has(.hx) .bar-in { row-gap: 6px; }
  body:has(.hx) .brand-t { display: inline; font-size: .8rem; }
  body:has(.hx) .switch { order: 3; flex: 1 0 100%; justify-content: space-between; margin-left: 0; }
  body:has(.hx) .discord-link { margin-left: auto; }
  .hx-art::after { display: none; }
  .hx-stats li { min-width: 0; padding-left: 12px; }
  .hx-stats b { font-size: 1.5rem; }
  .hx-stats span { font-size: .74rem; }
  .fic { width: 44px; height: 44px; border-radius: 14px; font-size: 1.25rem; }
  .qlogo { width: 62%; opacity: .1; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-txt > *, .aura { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   LORE GLOBAL (Saison 1 · Port bloqué)
   ================================================================ */

/* Panneaux sombres sur image : étiquette claire */
.qcard .kicker, .season .kicker, .band-img .wrap::before { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--a-ink); }

/* En-tête avec l'illustration du port */
/* l'image est posée en style en ligne (une url() dans une variable CSS se résout depuis le dossier css/) */
.band-img { color: #fff; background-color: #140c17; background-size: auto, cover; background-position: center, center 72%; background-repeat: no-repeat; }
.band-img .wrap { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.band-img h1 { color: #fff; }
.band-img p { color: rgba(255, 255, 255, .85); }
.band-img .band-meta li { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); }

/* Bannière de l'accueil */
.season { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 280px; margin-top: 16px; padding: clamp(26px, 5vw, 44px); border-radius: 26px; overflow: hidden; color: #fff; box-shadow: var(--shadow);
  background-color: #140c17; background-size: auto, cover; background-position: center, center 62%; background-repeat: no-repeat; }
.season strong { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.05; letter-spacing: -.02em; }
.season-d { max-width: 32rem; color: rgba(255, 255, 255, .85); line-height: 1.55; }
.season-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; color: var(--a-ink); }
.season-go svg.i { transition: transform .2s; }
.season:hover .season-go svg.i { transform: translateX(4px); }
.season.reveal.in:hover { transform: translateY(-3px); }
/* Chapitres du Lore global sur l'accueil : autant de colonnes que de chapitres (modifiables dans l'admin) */
.route.route--lore { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Chapitres */
.glob .g-kick { margin: 0 0 8px; font: 700 .74rem/1.4 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--a-ink); }
.glob .chapter > h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.glob .g-lead { margin: 6px 0 24px; font-size: 1.12rem; line-height: 1.5; font-weight: 500; color: var(--muted); }
.g-h { margin: 28px 0 8px; font-size: 1.22rem; font-weight: 700; line-height: 1.3; }

@media (max-width: 720px) {
  .band-img .wrap { min-height: 240px; }
  .season { min-height: 240px; }
}

/* Téléphone : 4 rubriques, le menu passe sur sa propre ligne sous le logo */
@media (max-width: 520px) {
  .bar-in { row-gap: 6px; }
  .switch { order: 3; flex: 1 0 100%; justify-content: space-between; }
  .switch a { padding: 2px 4px 9px; font-size: .66rem; letter-spacing: .06em; }
  .switch a::after { left: 4px; right: 4px; }
  .bar .theme { margin-left: auto; }
  .join-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .join-card > img, .join-copy .kicker { margin-left: auto; margin-right: auto; }
  .join-discord { width: 100%; }
  .continue-btn { flex: 1 1 100%; justify-content: center; }
}
/* Très petits téléphones : les 4 rubriques tiennent sur une ligne */
@media (max-width: 360px) {
  .switch a { padding: 2px 2px 9px; font-size: .6rem; letter-spacing: .02em; }
  .switch a::after { left: 2px; right: 2px; }
}

/* Barre du haut cachée pendant la lecture (classe posée en JS au défilement) */
.bar { transition: transform .3s cubic-bezier(.2, .75, .25, 1), opacity .2s; will-change: transform; }
.bar.bar-off { transform: translateY(calc(-100% - 24px)); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
/* Le sommaire remonte quand la barre est cachée */
.toc { transition: top .3s cubic-bezier(.2, .75, .25, 1); }
html.nav-hidden .toc { top: 24px; max-height: calc(100vh - 48px); }

/* ================================================================
   INTRO DE PREMIÈRE VISITE (même principe que whoisx.fr)
   ================================================================ */
body.intro-open { overflow: hidden; }
.intro { display: none; }
html[data-intro="new"] .intro { display: grid; }
.intro {
  position: fixed; inset: 0; z-index: 9999; min-height: 100dvh; place-items: center; overflow: hidden; isolation: isolate; color: #fff6fb;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    radial-gradient(circle at 50% 46%, rgba(var(--glow-rgb), .24), transparent 38%),
    var(--paper-solid);
  background-size: 48px 48px, 48px 48px, auto, auto;
  clip-path: inset(0 0 0 0);
}
.intro::before { content: ""; position: absolute; inset: 18px; z-index: -1; border: 1px solid rgba(var(--hl-rgb), .13); pointer-events: none; }
.intro::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(110deg, transparent 0 44%, rgba(255, 255, 255, .04) 50%, transparent 56% 100%); transform: translateX(-120%); animation: intro-sheen 1.5s .35s cubic-bezier(.2, .72, .24, 1) both; }

.intro-orb { position: absolute; z-index: -1; width: min(68vw, 720px); aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: 0; animation: intro-orb-in 1.6s .2s ease-out forwards; }
.intro-orb--l { left: -27%; bottom: -48%; background: rgba(var(--glow-rgb), .28); }
.intro-orb--r { top: -47%; right: -28%; background: rgba(var(--mid-rgb), .28); }

.intro-in { position: relative; z-index: 2; width: min(1100px, calc(100% - 40px)); min-height: min(460px, 86dvh); padding: 30px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.intro-logo { width: clamp(56px, 9vw, 84px); height: auto; margin-bottom: 18px; opacity: 0; filter: blur(8px) drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); transform: scale(.85); animation: intro-logo-in .8s .15s cubic-bezier(.2, .78, .25, 1) forwards; }
.intro-kicker { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: #d1aeb1; font: 700 clamp(.6rem, 1.9vw, .74rem)/1.4 var(--font); letter-spacing: .16em; text-transform: uppercase; opacity: 0; filter: blur(8px); transform: translateY(12px); animation: intro-detail-in .65s 1.05s cubic-bezier(.2, .78, .25, 1) forwards; }
.intro-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--or1); box-shadow: 0 0 14px rgba(var(--glow-rgb), .9); }

.intro-word { display: flex; align-items: baseline; justify-content: center; white-space: nowrap; font-family: var(--display); font-size: min(clamp(3.4rem, 15vw, 10.5rem), 24vh); font-weight: 800; line-height: .85; letter-spacing: -.04em; }
.intro-l { --d: calc(var(--i) * 82ms); position: relative; display: inline-block; color: transparent; }
.intro-l .m { opacity: 0; }
.intro-l .p, .intro-l .s { position: absolute; inset: 0; display: block; color: transparent; -webkit-text-stroke: 1px rgba(255, 215, 235, .75); will-change: transform, opacity, filter; }
.intro-l .p { opacity: 0; filter: blur(5px); }
.intro-l .p1 { clip-path: inset(0 0 66% 0); transform: translate3d(-34px, -12px, 0) skewX(-8deg); animation: intro-p1 .88s var(--d) cubic-bezier(.16, .78, .24, 1) forwards; }
.intro-l .p2 { clip-path: inset(32% 0 31% 0); transform: translate3d(40px, 0, 0) skewX(11deg); animation: intro-p2 .92s calc(var(--d) + 45ms) cubic-bezier(.16, .78, .24, 1) forwards; }
.intro-l .p3 { clip-path: inset(65% 0 0 0); transform: translate3d(-28px, 13px, 0) skewX(-7deg); animation: intro-p3 .94s calc(var(--d) + 90ms) cubic-bezier(.16, .78, .24, 1) forwards; }
/* Chaque lettre montre sa part du dégradé rouge → acier → carmin */
.intro-l .s { opacity: 0; -webkit-text-stroke: 0; background: linear-gradient(90deg, var(--or1), var(--or1) 28%, var(--a-ink) 54%, var(--or1) 78%, var(--or2)); background-size: 600% 100%; background-position: calc(var(--i) * 20%) 0; -webkit-background-clip: text; background-clip: text; filter: blur(7px); transform: scale(.985); animation: intro-solid-in .58s calc(var(--d) + 610ms) ease-out forwards; }

.intro-rule { display: block; width: min(440px, 72vw); height: 1px; margin-top: 30px; background: linear-gradient(90deg, transparent, var(--or1), var(--a-ink), var(--or2), transparent); opacity: 0; transform: scaleX(0); animation: intro-rule-in .8s 1.08s cubic-bezier(.2, .76, .2, 1) forwards; }
.intro-sub { margin: 14px 0 0; color: #d8bfcf; font: 600 clamp(.66rem, 2vw, .8rem)/1.5 var(--font); letter-spacing: .18em; text-transform: uppercase; opacity: 0; filter: blur(10px); transform: translateY(12px); animation: intro-detail-in .7s 1.28s cubic-bezier(.2, .78, .25, 1) forwards; }

.intro-btn { position: relative; isolation: isolate; display: grid; place-items: center; align-content: center; gap: 7px; width: 96px; height: 96px; margin-top: 36px; padding: 0; border: 1px solid rgba(var(--hl-rgb), .66); border-radius: 50%; color: #fff; cursor: pointer;
  background: radial-gradient(circle at 34% 22%, rgba(255, 255, 255, .18), transparent 34%), linear-gradient(145deg, rgba(var(--glow-rgb), .96), rgba(var(--mid-rgb), .94) 62%, rgba(var(--deep-rgb), .98));
  box-shadow: 0 18px 55px rgba(var(--glow-rgb), .38), inset 0 1px rgba(255, 255, 255, .25);
  opacity: 0; transform: translateY(18px) scale(.76); animation: intro-btn-in .72s 1.52s cubic-bezier(.18, 1.3, .35, 1) forwards; transition: transform .28s cubic-bezier(.2, .8, .25, 1), border-color .25s, box-shadow .25s; }
.intro-btn::before { content: ""; position: absolute; width: 114px; height: 114px; border: 1px solid rgba(var(--glow-rgb), .26); border-radius: 50%; transition: transform .3s, border-color .3s; }
.intro-btn span { font: 800 .62rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.intro-btn i { display: grid; place-items: center; width: 18px; height: 18px; color: var(--a-ink); font-style: normal; transition: transform .25s; }
.intro-btn i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.intro-btn:hover, .intro-btn:focus-visible { transform: scale(1.06); border-color: rgba(var(--hl-rgb), .9); box-shadow: 0 22px 70px rgba(var(--glow-rgb), .5), 0 0 34px rgba(var(--mid-rgb), .34), inset 0 1px rgba(255, 255, 255, .3); }
.intro-btn:hover::before, .intro-btn:focus-visible::before { transform: scale(1.1); border-color: rgba(var(--glow-rgb), .5); }
.intro-btn:hover i { transform: translate(3px, -3px); }
.intro-btn:focus-visible { outline: 2px solid var(--or1); outline-offset: 7px; }
.intro-btn:disabled { cursor: default; }
.intro-idx { position: absolute; right: 30px; bottom: 28px; margin: 0; color: #8a7183; font: 700 .62rem/1 var(--font); letter-spacing: .18em; text-transform: uppercase; opacity: 0; animation: intro-detail-in .6s 1.65s ease-out forwards; }

.intro.is-leaving { pointer-events: none; animation: intro-curtain .9s cubic-bezier(.76, 0, .19, 1) forwards; }
.intro.is-leaving .intro-in { animation: intro-content-out .44s cubic-bezier(.5, 0, .8, .2) forwards; }

@keyframes intro-p1 { 0% { opacity: 0; filter: blur(6px); transform: translate3d(-34px, -12px, 0) skewX(-8deg); } 24% { opacity: .85; } 72% { opacity: 1; filter: blur(0); transform: none; } 100% { opacity: 0; filter: blur(0); transform: none; } }
@keyframes intro-p2 { 0% { opacity: 0; filter: blur(7px); transform: translate3d(40px, 0, 0) skewX(11deg); } 22% { opacity: .9; } 72% { opacity: 1; filter: blur(0); transform: none; } 100% { opacity: 0; filter: blur(0); transform: none; } }
@keyframes intro-p3 { 0% { opacity: 0; filter: blur(6px); transform: translate3d(-28px, 13px, 0) skewX(-7deg); } 22% { opacity: .86; } 72% { opacity: 1; filter: blur(0); transform: none; } 100% { opacity: 0; filter: blur(0); transform: none; } }
@keyframes intro-solid-in { 0% { opacity: 0; filter: blur(7px); transform: scale(.985); } 100% { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes intro-rule-in { 0% { opacity: 0; transform: scaleX(0); } 100% { opacity: 1; transform: scaleX(1); } }
@keyframes intro-detail-in { 0% { opacity: 0; filter: blur(10px); transform: translateY(12px); } 100% { opacity: 1; filter: blur(0); transform: none; } }
@keyframes intro-logo-in { 0% { opacity: 0; filter: blur(8px) drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); transform: scale(.85); } 100% { opacity: 1; filter: blur(0) drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); transform: none; } }
@keyframes intro-btn-in { 0% { opacity: 0; transform: translateY(18px) scale(.76); } 70% { opacity: 1; transform: translateY(-3px) scale(1.035); } 100% { opacity: 1; transform: none; } }
@keyframes intro-orb-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes intro-sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes intro-content-out { to { opacity: 0; filter: blur(12px); transform: translateY(-22px) scale(1.018); } }
@keyframes intro-curtain { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); } }

@media (prefers-reduced-motion: reduce) {
  .intro *, .intro::after { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .intro.is-leaving { animation: none; opacity: 0; }
}

/* ================================================================
   PASSAGE JOUR / NUIT : cercle qui s'ouvre depuis le bouton
   (View Transitions ; repli en fondu si le navigateur ne la gère pas)
   ================================================================ */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
html.theming body, html.theming .bar, html.theming .band, html.theming .main, html.theming .toc,
html.theming .note, html.theming .rcard, html.theming .fcard, html.theming .rule { transition: background-color .45s, color .45s, border-color .45s !important; }
.theme .knob svg { transition: opacity .3s, transform .5s cubic-bezier(.3, 1.4, .5, 1); }

/* Performances : aucun flou d'arrière-plan (y compris celui de style.css sur la barre) */
.bar, :root[data-theme="light"] .bar { backdrop-filter: none; -webkit-backdrop-filter: none; }
#read-progress { width: 100%; transform: scaleX(0); transform-origin: left; will-change: transform; }

/* Les gros flous et le grain fixe sont allégés sur les GPU mobiles. */
@media (max-width: 720px), (pointer: coarse) {
  html::after { display: none; }
  .aura::before { filter: blur(24px); }
  .aura::after { filter: blur(28px); }
  .intro-orb { filter: blur(58px); }
}

/* ================================================================
   PÔLES : accueil général, sous-menu, pages Services publics / Légal
   ================================================================ */

/* Étiquette d'en-tête propre à chaque pôle (sinon "Vision V3 · Illégal") */
.band .wrap[data-kicker]::before { content: attr(data-kicker); }

/* ——— Sous-menu du pôle, sous la barre ——— */
.subnav-wrap { max-width: none; padding-bottom: 8px; border-top: 1px solid var(--glass-line); }
.subnav { display: flex; gap: 6px; padding-top: 8px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 6px 13px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .8rem; line-height: 1.3; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s, border-color .2s; }
.subnav a:hover { color: var(--ink); background: var(--card); }
.subnav a[aria-current="page"] { color: #fff; background: var(--a-soft); border-color: var(--line-strong); }
.subnav a:last-child { margin-right: 24px; }

/* ——— Onglets de faction, dans l'en-tête des pages de règlement ——— */
.band-tabs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.band-tabs .tab { isolation: isolate; }

/* ——— Accueil : cartes des pôles ——— */
.sec-first { margin-top: 0; }
.poles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pole { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 440px; overflow: hidden; border-radius: 26px; border: 1px solid var(--glass-line); background: var(--paper-solid); box-shadow: var(--shadow); transition: transform .3s, border-color .3s; }
.pole img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pole::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 3, 4, .05) 25%, rgba(8, 3, 4, .72) 58%, rgba(8, 3, 4, .96) 100%); }
.pole-in { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.pole .kicker { background: rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .14); color: var(--a-ink); }
.pole strong { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1.05; color: #fff; }
.pole-d { color: rgba(255, 255, 255, .82); font-size: .96rem; line-height: 1.55; }
.pole-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 800; font-size: .9rem; color: var(--a-ink); }
.pole-go svg.i { transition: transform .2s; }
.pole.reveal.in:hover { transform: translateY(-4px); }
.pole:hover { border-color: var(--or1); }
.pole:hover img { transform: scale(1.05); }
.pole:hover .pole-go svg.i { transform: translateX(4px); }

/* Icône + texte des cartes larges (whitelist) */
.sanc-i { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--a-soft); color: var(--a-ink); font-size: 1.45rem; }
.sanc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sanc-t strong { font-family: var(--display); font-size: 1.35rem; color: var(--ink); }
.sanc-t span { color: var(--text); font-size: .95rem; line-height: 1.5; }

/* Philosophie / rejoindre une structure */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.icard { padding: 24px; border-radius: 22px; border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--shadow); }
.icard > p:not(.kicker) { margin: 14px 0 0; color: var(--text); line-height: 1.65; }
.home2 > .join-card { margin-top: 56px; }

/* ——— Pages des pôles ——— */
.pole-main .rule { margin-top: 10px; }
.pcard p { margin: 0 0 10px; }
.pcard > :last-child { margin-bottom: 0; }
.plist { margin: 0; padding-left: 1.2rem; }
.plist li { margin: 6px 0; line-height: 1.6; }
.plist li::marker { color: var(--a-ink); }
.icard .plist { margin-top: 12px; }
.plink { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 800; font-size: .92rem; color: var(--a-ink); }
.plink:hover { text-decoration: underline; text-underline-offset: 3px; }
.prule { display: flex; align-items: flex-start; gap: 12px; }
.prule .chip { flex: none; margin-top: 2px; }
.prule p { margin: 0; color: var(--text); line-height: 1.6; }
.ptable h4 { margin: 0; font-family: var(--display); font-size: 1.08rem; color: var(--ink); }
.ptable .psub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.ptable table { margin: 12px 0 0; }
.ptable .pfoot { margin: 10px 0 0; color: var(--muted); font-size: .86rem; font-style: italic; }
.pole-main .subsec { margin-top: 18px; }
.pole-main .subsec .g-h { margin: 0 0 4px; font-size: 1.12rem; font-weight: 700; }

@media (max-width: 900px) {
  .poles { grid-template-columns: minmax(0, 1fr); }
  .pole { min-height: 300px; }
  .pole img { object-position: center 22%; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .prule { flex-direction: column; gap: 8px; }
  .sanc-i { width: 44px; height: 44px; font-size: 1.25rem; }
}

/* ================================================================
   FONDS PAR PÔLE (attribut data-pole posé sur <html> par setNav)
   - illegal   : rouge / noir (thème de base, rien à redéfinir)
   - public    : bleu nuit, lueurs de gyrophare
   - legal     : bleu ciel
   - home      : dégradé orange (bloc « ACCUEIL » plus bas)
   ================================================================ */
:root[data-pole="public"] {
  --mid-rgb: 22, 62, 175;
  --or1: #3d8bff; --or2: #1546b8;
  --grad: linear-gradient(120deg, #5aa7ff 0%, #2f6fff 45%, #1a3fb0 72%, #0a1a4a 100%);
  --grad-text: linear-gradient(90deg, #4c9bff 0%, #8cc4ff 34%, #eef5ff 55%, #3d7dff 78%, #1b47c4 100%);
  --glow-rgb: 61, 139, 255; --hl-rgb: 130, 180, 255; --deep-rgb: 4, 14, 40;
  --surface: rgba(12, 18, 34, .78); --text: #d7dfee; --muted: #8e9cb6;
  --line: rgba(120, 165, 255, .14); --line-strong: rgba(120, 165, 255, .3);
  --a-ink: #7fb4ff; --a-soft: rgba(47, 111, 255, .16);
  --glass: rgba(8, 13, 27, .9); --paper: rgba(7, 11, 23, .92); --paper-solid: #09101f; --bar-bg: rgba(6, 9, 19, .96);
  --sky:
    radial-gradient(60% 50% at 5% 5%, rgba(40, 105, 255, .38), transparent 68%),
    radial-gradient(48% 44% at 96% 16%, rgba(225, 30, 60, .2), transparent 70%),
    radial-gradient(62% 58% at 88% 100%, rgba(30, 80, 220, .28), transparent 72%),
    radial-gradient(55% 52% at 4% 94%, rgba(10, 30, 95, .38), transparent 70%),
    linear-gradient(155deg, #050c1e 0%, #05070e 48%, #020306 100%);
}
:root[data-pole="legal"] {
  --mid-rgb: 6, 112, 170;
  --or1: #2cc4ff; --or2: #0a8fe0;
  --grad: linear-gradient(120deg, #8ae6ff 0%, #33c8ff 40%, #0aa3ee 70%, #04508a 100%);
  --grad-text: linear-gradient(90deg, #5fd6ff 0%, #b8efff 34%, #ffffff 52%, #33c8ff 76%, #0a8fe0 100%);
  --glow-rgb: 44, 196, 255; --hl-rgb: 150, 225, 255; --deep-rgb: 0, 22, 40;
  --surface: rgba(8, 26, 40, .78); --text: #d8ecf5; --muted: #8fb0c2;
  --line: rgba(120, 210, 255, .15); --line-strong: rgba(120, 210, 255, .3);
  --a-ink: #6fd3ff; --a-soft: rgba(44, 196, 255, .15);
  --glass: rgba(5, 20, 32, .88); --paper: rgba(4, 17, 28, .92); --paper-solid: #06141f; --bar-bg: rgba(3, 12, 20, .95);
  --sky:
    radial-gradient(60% 50% at 6% 4%, rgba(51, 200, 255, .46), transparent 68%),
    radial-gradient(52% 48% at 95% 16%, rgba(126, 227, 255, .3), transparent 70%),
    radial-gradient(62% 58% at 86% 100%, rgba(10, 163, 238, .32), transparent 72%),
    radial-gradient(55% 52% at 4% 94%, rgba(4, 80, 138, .4), transparent 70%),
    linear-gradient(160deg, #07293f 0%, #04121d 50%, #02070b 100%);
}
/* Personnages sur les côtés : chaque pôle a les siens (aucun sur l'accueil) */
.side-character[class*="pc-"] { display: none; }
:root[data-pole="illegal"] .pc-illegal, :root[data-pole="public"] .pc-public, :root[data-pole="legal"] .pc-legal { display: block; }

/* Cartes des pôles sur l'accueil : chacune à sa couleur */
.pole--illegal .kicker, .pole--illegal .pole-go { color: #ff8a93; }
.pole--public .kicker, .pole--public .pole-go { color: #8cc4ff; }
.pole--legal .kicker, .pole--legal .pole-go { color: #8ae6ff; }
.pole--illegal:hover { border-color: #ff3545; }
.pole--public:hover { border-color: #3d8bff; }
.pole--legal:hover { border-color: #2cc4ff; }
.pole--illegal::after, .pole--public::after, .pole--legal::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.pole--illegal::after { background: linear-gradient(90deg, #ff4250, #a30015); }
.pole--public::after { background: linear-gradient(90deg, #5aa7ff, #1a3fb0); }
.pole--legal::after { background: linear-gradient(90deg, #8ae6ff, #0a8fe0); }

/* ——— Tableaux larges : défilement horizontal ——— */
.ptable-scroll { overflow-x: auto; }

/* ——— Missions F2 ——— */
.missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.mission { position: relative; display: block; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-solid); text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.mission img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.mission::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .85)); }
.mission strong { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; font-family: var(--display); font-size: 1rem; line-height: 1.2; }
.mission:hover { border-color: var(--or1); transform: translateY(-2px); }
.mission:hover img { transform: scale(1.06); }
.mrank { position: absolute; left: 10px; top: 10px; z-index: 1; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .6); color: #fff; font-weight: 800; font-size: .78rem; }
.r-A { background: #b07d0d; border-color: #f2c14e; }
.r-B { background: #6a3fd1; border-color: #a78bfa; }
.r-C { background: #1f5fc9; border-color: #6aa5ff; }
.r-D { background: #13804f; border-color: #4fd394; }

/* Fenêtre de détail d'une mission */
dialog.mdlg { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--paper-solid); color: var(--text); }
dialog.mdlg::backdrop { background: rgba(0, 0, 0, .72); }
.mdlg-in { position: relative; max-height: calc(100dvh - 26px); overflow-y: auto; }
.mdlg-img { position: relative; aspect-ratio: 16 / 9; }
.mdlg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mdlg-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, var(--paper-solid)); }
.mdlg-img .mrank { top: auto; bottom: 52px; left: 20px; }
.mdlg-img h3 { position: absolute; left: 20px; right: 20px; bottom: 14px; z-index: 1; margin: 0; color: #fff; font-size: 1.5rem; }
.mdlg-x { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.1rem; }
.mdlg-b { padding: 18px 20px 22px; }
.mdlg-k { margin: 0 0 10px; font: 700 .72rem/1.4 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mstats div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.mstats dt { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mstats dd { margin: 3px 0 0; font-weight: 800; color: var(--ink); }
.mnote { margin: 14px 0 0; color: var(--text); font-style: italic; }

/* ——— Véhicules ——— */
.veh-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.veh-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.veh-tab span { font-size: 1.1rem; }
.veh-tab b { color: var(--ink); font-size: .95rem; }
.veh-tab small { color: var(--muted); font-size: .78rem; }
.veh-tab:hover { border-color: var(--line-strong); }
.veh-tab[aria-selected="true"] { border-color: var(--or1); background: var(--a-soft); }
.veh .psub { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.vcat { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.vcat-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vcat-h strong { font-family: var(--display); color: var(--ink); }
.vzone { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.vpol { margin: 6px 0 0; font-weight: 700; font-size: .9rem; }
.vcat--ok .vpol { color: #57d68d; }
.vcat--ban .vpol { color: #ff7a85; }
.vcat--info .vpol { color: var(--muted); }
.vlist { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.vlist li { padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--text); font-size: .8rem; }

/* ——— Bande-annonce ——— */
.trailer-box { margin-top: 22px; overflow: hidden; border: 1px solid var(--glass-line); border-radius: 22px; background: #000; box-shadow: var(--shadow); }
.trailer-box img { display: block; width: 100%; height: auto; }

@media (max-width: 720px) {
  .veh-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .missions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mission strong { font-size: .86rem; }
  .mstats { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================
   ACCUEIL : fond en dégradé orange + Discord + Whitelist
   ================================================================ */
:root[data-pole="home"] {
  --mid-rgb: 200, 80, 0;
  --or1: #ff8a1a; --or2: #ff5e01;
  --grad: linear-gradient(120deg, #ffb347 0%, #ff9701 35%, #ff5e01 70%, #c23a00 100%);
  --grad-text: linear-gradient(90deg, #ffd27a 0%, #ffb347 30%, #fff1dc 52%, #ff9701 76%, #ff5e01 100%);
  --glow-rgb: 255, 120, 20; --hl-rgb: 255, 190, 120; --deep-rgb: 40, 14, 0;
  --surface: rgba(40, 18, 6, .78); --text: #f3e4d6; --muted: #c4a68c;
  --line: rgba(255, 200, 140, .16); --line-strong: rgba(255, 200, 140, .32);
  --a-ink: #ffb05c; --a-soft: rgba(255, 140, 30, .16);
  --glass: rgba(34, 15, 5, .86); --paper: rgba(30, 13, 4, .92); --paper-solid: #1f0d04; --bar-bg: rgba(26, 11, 3, .94);
  --sky:
    radial-gradient(60% 50% at 6% 4%, rgba(255, 176, 70, .6), transparent 70%),
    radial-gradient(55% 50% at 96% 14%, rgba(255, 94, 1, .55), transparent 70%),
    radial-gradient(70% 60% at 50% 112%, rgba(255, 120, 20, .4), transparent 70%),
    linear-gradient(165deg, #f26a12 0%, #c2410c 26%, #6b2108 58%, #1c0904 100%);
}

/* Whitelist dans la barre du haut */
.wl-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  min-height: 40px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 13px;
  background: var(--card); color: #fff; white-space: nowrap;
  font-weight: 800; font-size: .82rem; line-height: 1.2; letter-spacing: .02em;
  transition: background .2s, border-color .2s, transform .2s;
}
.wl-link svg.i { font-size: 1.15rem; color: var(--a-ink); }
.wl-link:hover, .wl-link:focus-visible { border-color: var(--or1); background: var(--a-soft); transform: translateY(-1px); }
.wl-link + .discord-link { margin-left: 0; }
.bar .wl-link { margin-left: 4px; }
@media (max-width: 980px) {
  .wl-link { width: 40px; padding: 0; }
  .wl-link span { display: none; }
}

/* Les 4 Discord */
.discords { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.dcard { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.dcard:hover { transform: translateY(-2px); }
.dcard-i { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; }
.dcard-i .discord-mark { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.dcard-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dcard-t strong { font-family: var(--display); font-size: 1.12rem; color: var(--ink); }
.dcard-t small { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard--home .dcard-i { background: linear-gradient(135deg, #5865f2, #3b44c4); }
.dcard--illegal .dcard-i { background: linear-gradient(135deg, #ff4250, #a30015); }
.dcard--public .dcard-i { background: linear-gradient(135deg, #5aa7ff, #1a3fb0); }
.dcard--legal .dcard-i { background: linear-gradient(135deg, #5fd6ff, #0a8fe0); }
.dcard--home:hover { border-color: #5865f2; }
.dcard--illegal:hover { border-color: #ff3545; }
.dcard--public:hover { border-color: #3d8bff; }
.dcard--legal:hover { border-color: #2cc4ff; }
.dcard:hover .fgo { background: var(--ink); color: var(--bg); }

/* Carte Whitelist */
.wl-card { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 20px 22px; border-radius: 22px; border: 1px solid var(--line-strong); background: linear-gradient(120deg, rgba(var(--glow-rgb), .16), rgba(var(--hl-rgb), .08)), var(--glass); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.wl-card:hover { border-color: var(--or1); transform: translateY(-2px); }
.wl-card:hover .fgo { background: var(--grad); border-color: transparent; color: #fff; }

@media (max-width: 720px) {
  .discords { grid-template-columns: minmax(0, 1fr); }
  .dcard { padding: 14px 16px; gap: 12px; }
  .wl-card { padding: 16px; gap: 14px; }
}

/* Accueil orange : textes secondaires plus clairs pour rester lisibles sur le dégradé */
:root[data-pole="home"] .sec-h > p:not(.kicker), :root[data-pole="home"] .accept { color: rgba(255, 244, 232, .82); }

/* ================================================================
   LOGO ET PERSONNAGES PAR PÔLE
   ================================================================ */
/* Filigrane : le logo du pôle (le « 3 » change de couleur) */
:root[data-pole="public"] body::after { background-image: url("../assets/logos/v3-bleu-4k.webp"); }
:root[data-pole="legal"] body::after { background-image: url("../assets/logos/v3-ciel-4k.webp"); }
:root[data-pole="home"] body::after { background-image: url("../assets/logos/v3-orange-4k.webp"); }

/* Personnages des services publics et du légal : même place que ceux de l'illégal, lueur à la couleur du pôle */
.pc-weazel.side-character--right { right: -15vw; }  /* image large (perche micro) : le corps reste près du bord */
:root[data-pole="public"] .side-character { filter: brightness(.92) drop-shadow(0 0 34px rgba(40, 105, 255, .36)); }
:root[data-pole="legal"] .side-character { filter: brightness(.92) drop-shadow(0 0 34px rgba(44, 196, 255, .32)); }
@media (max-width: 980px) {
}

/* Mention sous le logo : propre à chaque pôle */
:root[data-pole="home"] .hx-art::after { content: "VISION  //  V3"; }
:root[data-pole="public"] .hx-art::after { content: "V3  //  911"; }
:root[data-pole="legal"] .hx-art::after { content: "V3  //  LÉGAL"; }

/* Barre du haut : sous 1100 px, le menu passe sous le logo et les boutons (Whitelist, Discord) restent en haut à droite */
@media (max-width: 1100px) {
  .bar-in { row-gap: 6px; }
  .switch { order: 3; flex: 1 0 100%; justify-content: space-between; margin-left: 0; }
  .bar .wl-link { margin-left: auto; }
}

/* Icônes des cartes : couleur du pôle (le rouge alterné reste propre à l'illégal) */
:root:not([data-pole="illegal"]) .fcard .fic, :root:not([data-pole="illegal"]) .fcard:nth-child(even) .fic { background: var(--a-soft); color: var(--a-ink); }
:root:not([data-pole="illegal"]) .fcard:hover .fic { background: var(--grad); color: #fff; }

/* Texte du haut lisible par-dessus les personnages */
.hx-txt { text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.pc-medic.side-character--right { right: -4vw; }  /* silhouette fine (en pied) : plus près du bord visible */

/* Bords fondus : chaque personnage s'efface côté contenu et vers le bas de l'écran */
.side-character--left {
  -webkit-mask-image: linear-gradient(to right, #000 52%, transparent 96%), linear-gradient(to top, transparent 0%, #000 26%);
  mask-image: linear-gradient(to right, #000 52%, transparent 96%), linear-gradient(to top, transparent 0%, #000 26%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.side-character--right {
  -webkit-mask-image: linear-gradient(to left, #000 52%, transparent 96%), linear-gradient(to top, transparent 0%, #000 26%);
  mask-image: linear-gradient(to left, #000 52%, transparent 96%), linear-gradient(to top, transparent 0%, #000 26%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* Weazel : image très large (perche micro), le fondu commence plus loin pour garder le personnage net */
.pc-weazel.side-character--right {
  -webkit-mask-image: linear-gradient(to left, #000 62%, transparent 98%), linear-gradient(to top, transparent 0%, #000 26%);
  mask-image: linear-gradient(to left, #000 62%, transparent 98%), linear-gradient(to top, transparent 0%, #000 26%);
}

/* Encadré d'avertissement : couleur du pôle (au lieu du rose « interdit ») */
.note-i { background: var(--a-soft); color: var(--a-ink); }

/* Page sans contenu (règlement à rédiger) */
.empty-page { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; padding: 48px 24px; border: 1.5px dashed var(--line-strong); border-radius: 22px; text-align: center; background: var(--card); }
.empty-page h2 { margin: 6px 0 0; font-size: 1.4rem; }
.empty-page p { margin: 0; max-width: 30rem; color: var(--muted); }
.empty-i { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--a-soft); color: var(--a-ink); font-size: 1.7rem; }
