/* =============================================================================
   Red Dead Univers — site vitrine
   DA du serveur (charte §10 de CONTEXT.md, écran de chargement jt_loadingscreen) :
   rouge RDU #c5202b sur brun presque noir, texte crème, braise pour la lumière,
   or réservé aux récompenses. Cinzel (titres), EB Garamond (récit),
   Rajdhani (libellés, chiffres), Inter (texte).
   ============================================================================= */

:root {
    --bg:          #080605;
    --bg-2:        #0d0a08;
    --bg-3:        #14100d;
    --veil:        rgba(8, 6, 5, .6);      /* fond des sections : laisse deviner le paysage de .fond */
    --veil-2:      rgba(13, 10, 8, .68);
    --panel:       rgba(18, 14, 11, .78);
    --panel-hi:    rgba(24, 18, 14, .92);
    --panel-soft:  rgba(28, 22, 17, .55);
    --line:        rgba(236, 230, 214, .085);
    --line-2:      rgba(236, 230, 214, .16);
    --stroke:      rgba(197, 32, 43, .30);

    --txt:         #ece6d6;
    --txt-hi:      #f7f2e6;
    --dim:         #a59d8c;
    --mute:        #6f675a;

    --red:         #c5202b;
    --red-2:       #de323d;
    --red-deep:    #6e0d14;
    --red-glow:    rgba(197, 32, 43, .45);
    --ember:       #e8792b;
    --ember-glow:  rgba(232, 121, 43, .5);
    --gold:        #c79a3b;
    --gold-l:      #e8c66a;
    --ok:          #6fa35a;

    --f-title: 'Cinzel', Georgia, serif;
    --f-story: 'EB Garamond', Georgia, serif;
    --f-label: 'Rajdhani', 'Inter', sans-serif;
    --f-body:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ease:    cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);
    --gutter:  clamp(20px, 5vw, 80px);
    --maxw:    1380px;
    --hdr-h:   76px;
    --radius:  14px;
}

/* ---------------------------------------------------------------- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--txt);
    font: 400 16px/1.65 var(--f-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 300;
    background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px;
    transition: top .2s;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sec { position: relative; padding: clamp(96px, 13vw, 180px) 0; }

/* Grain argentique et vignette sur toute la page */
.grain {
    position: fixed; inset: -50%; z-index: 90; pointer-events: none;
    opacity: .07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
/* Fond de page : paysages de Red Dead Redemption 2, fondus selon la section lue (index.js « Fond de page ») */
.fond { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); }
.fond i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.8s var(--ease-io); }
.fond i.is-on { opacity: .55; }
.fond::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 110% 85% at 50% 45%, transparent 35%, rgba(8, 6, 5, .8) 100%),
        linear-gradient(180deg, rgba(8, 6, 5, .5) 0%, rgba(8, 6, 5, .15) 40%, rgba(8, 6, 5, .6) 100%);
}
@keyframes grain {
    0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.read-progress span {
    display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--red-deep), var(--red-2) 70%, var(--ember));
    box-shadow: 0 0 12px var(--red-glow);
}

/* ------------------------------------------------------------ Typographie -- */
.kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font: 700 .78rem/1 var(--f-label); letter-spacing: .32em; text-transform: uppercase;
    color: var(--red-2);
    margin-bottom: 22px;
}
.kicker::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.kicker-n { color: var(--gold); letter-spacing: .1em; }
.kicker-center { justify-content: center; }
.kicker-center::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .6; }

.h2 {
    font: 700 clamp(2.3rem, 5.4vw, 4.6rem)/1.02 var(--f-title);
    letter-spacing: .01em;
    color: var(--txt-hi);
    text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--red-2); }
.sec-head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.sec-head-row > div:first-child { max-width: 760px; }
.sec-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head-center .kicker { justify-content: center; }
.sec-head-center .kicker::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.sec-intro { margin-top: 24px; font-size: clamp(1.02rem, 1.25vw, 1.15rem); color: var(--dim); max-width: 640px; text-wrap: pretty; }
.sec-head-center .sec-intro { margin-left: auto; margin-right: auto; }
.sec-intro-side { margin: 0; max-width: 320px; font-size: .95rem; }

.lozenge { display: inline-block; width: 7px; height: 7px; background: var(--red-2); transform: rotate(45deg); box-shadow: 0 0 10px var(--red-glow); }

/* ---------------------------------------------------------------- Boutons -- */
.btn {
    --h: 50px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    height: var(--h); padding: 0 26px;
    font: 700 .86rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase;
    border-radius: 999px; white-space: nowrap;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, color .3s, background .3s;
}
.btn i { font-size: .95em; transition: transform .35s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn-red {
    color: #fff;
    background: linear-gradient(180deg, var(--red-2), #a3151f);
    border: 1px solid rgba(255, 120, 110, .35);
    box-shadow: 0 10px 30px -8px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-red::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 220, 190, .35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -8px rgba(222, 50, 61, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-red:hover::before { transform: translateX(120%); }
.btn-ghost {
    color: var(--txt-hi);
    background: rgba(236, 230, 214, .04);
    border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: rgba(236, 230, 214, .45); background: rgba(236, 230, 214, .08); transform: translateY(-2px); }
.btn-sm { --h: 40px; padding: 0 20px; font-size: .78rem; }
.btn-lg { --h: 60px; padding: 0 34px; font-size: .92rem; }

.link-btn {
    font: 500 .9rem/1 var(--f-body); color: var(--dim);
    display: inline-flex; align-items: center; gap: 8px;
    border-bottom: 1px solid transparent; padding: 6px 0;
    transition: color .25s, border-color .25s;
}
.link-btn:hover { color: var(--txt-hi); border-color: var(--red-2); }
.text-link {
    display: inline-flex; align-items: center; gap: 8px;
    font: 700 .8rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--red-2);
    transition: gap .3s var(--ease), color .25s;
}
.text-link:hover { gap: 12px; color: var(--txt-hi); }
.round-btn {
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line-2); color: var(--txt);
    transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.round-btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.05); }
.round-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.05rem;
    border: 1px solid var(--line-2); color: var(--txt);
    transition: background .3s, border-color .3s, color .3s;
}
.icon-btn:hover { background: #5865f2; border-color: #5865f2; color: #fff; }

/* ---------------------------------------------------------------- Ouverture */
.intro {
    position: fixed; inset: 0; z-index: 500;
    display: grid; place-content: center; justify-items: center; gap: 28px;
    background: radial-gradient(ellipse at center, #1a0f0b 0%, var(--bg) 70%);
    transition: opacity .9s var(--ease), visibility .9s;
}
.intro-seal { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.intro-seal img { width: 168px; height: 168px; animation: sealIn 1.1s var(--ease) both; filter: drop-shadow(0 0 40px rgba(197, 32, 43, .35)); }
.intro-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.intro-ring circle {
    fill: none; stroke: var(--red-2); stroke-width: 1.5;
    stroke-dasharray: 604; stroke-dashoffset: 604;
    animation: ring 1.3s .15s var(--ease-io) forwards;
    filter: drop-shadow(0 0 6px var(--red-glow));
}
.intro-line {
    font: 600 .78rem/1 var(--f-label); letter-spacing: .4em; text-transform: uppercase; color: var(--dim);
    animation: fadeUp .9s .5s var(--ease) both;
}
.intro.is-done { opacity: 0; visibility: hidden; }
@keyframes ring { to { stroke-dashoffset: 0; } }
@keyframes sealIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- En-tête -- */
.hdr {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--hdr-h);
    transition: background .4s, border-color .4s, transform .5s var(--ease), height .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.hdr.is-solid {
    background: rgba(10, 8, 6, .86);
    border-color: var(--line);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-in {
    height: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter);
    display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-seal { width: 40px; height: 40px; transition: transform .6s var(--ease); }
.brand:hover .brand-seal { transform: rotate(-12deg) scale(1.06); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font: 700 .98rem/1 var(--f-title); letter-spacing: .08em; color: var(--txt-hi); }
.brand-name em { font: 600 .66rem/1 var(--f-label); font-style: normal; letter-spacing: .34em; text-transform: uppercase; color: var(--red-2); margin-top: 6px; }
.hdr-nav { display: flex; gap: 6px; margin: 0 auto; }
.hdr-nav a {
    position: relative; padding: 10px 14px; white-space: nowrap;
    font: 600 .8rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
    transition: color .25s;
}
.hdr-nav a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px;
    background: var(--red-2); transform: scaleX(0); transition: transform .35s var(--ease);
}
.hdr-nav a:hover, .hdr-nav a.is-on { color: var(--txt-hi); }
.hdr-nav a.is-on::after { transform: scaleX(1); }
.hdr-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.hdr-nav + .hdr-cta { margin-left: 0; }

.live-pill {
    display: inline-flex; align-items: center; gap: 8px;
    height: 32px; padding: 0 14px; border-radius: 999px;
    border: 1px solid rgba(111, 163, 90, .3); background: rgba(111, 163, 90, .08);
    font: 700 .82rem/1 var(--f-label); letter-spacing: .06em; color: var(--txt-hi);
}
.live-pill span { color: var(--dim); font-weight: 600; }
.live-dot {
    position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok); box-shadow: 0 0 0 0 rgba(111, 163, 90, .6);
    animation: pulse 2s infinite;
}
.is-red .live-dot, .ter-live .live-dot { background: var(--red-2); animation-name: pulseRed; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 163, 90, .55); } 70% { box-shadow: 0 0 0 9px rgba(111, 163, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 163, 90, 0); } }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(222, 50, 61, .6); } 70% { box-shadow: 0 0 0 9px rgba(222, 50, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(222, 50, 61, 0); } }

.burger {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-content: center; gap: 6px;
    border: 1px solid var(--line-2);
    transition: border-color .3s, background .3s;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--txt-hi); transition: transform .45s var(--ease); }
.burger:hover { border-color: var(--red-2); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Menu plein écran */
.menu {
    position: fixed; inset: 0; z-index: 95;
    visibility: hidden; pointer-events: none;
}
.menu-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(110, 13, 20, .5), transparent 55%), var(--bg-2);
    clip-path: circle(0% at calc(100% - 60px) 38px);
    transition: clip-path .8s var(--ease-io);
}
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu.is-open .menu-bg { clip-path: circle(150% at calc(100% - 60px) 38px); }
.menu-in {
    position: relative; height: 100%; overflow-y: auto;
    max-width: var(--maxw); margin: 0 auto; padding: calc(var(--hdr-h) + 40px) var(--gutter) 48px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.menu-list { counter-reset: m; columns: 2; column-gap: 60px; }
.menu-list li { counter-increment: m; break-inside: avoid; overflow: hidden; }
.menu-list a {
    display: flex; align-items: baseline; gap: 18px; padding: 10px 0;
    font: 700 clamp(1.7rem, 4vw, 3.1rem)/1.1 var(--f-title); color: var(--txt-hi);
    transform: translateY(105%); transition: transform .7s var(--ease), color .25s;
}
.menu-list a::before { content: counter(m, decimal-leading-zero); font: 700 .8rem/1 var(--f-label); letter-spacing: .1em; color: var(--gold); }
.menu-list a:hover { color: var(--red-2); }
.menu.is-open .menu-list a { transform: none; }
.menu.is-open .menu-list li:nth-child(n) a { transition-delay: calc(.2s + var(--i, 0) * .04s); }
.menu-foot { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; transform: translateY(16px); transition: opacity .5s .5s, transform .6s .5s var(--ease); }
.menu.is-open .menu-foot { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Hero --- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: grid; grid-template-rows: 1fr auto;
    overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.hero-img {
    width: 100%; height: 115%; object-fit: cover; object-position: 50% 40%;
    transform: scale(1.12); transform-origin: 50% 30%;
    animation: kenburns 24s var(--ease) forwards;
    will-change: transform;
}
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero-fog { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.hero-fog i {
    position: absolute; left: -50%; width: 200%; height: 60%; bottom: -5%;
    background:
        radial-gradient(ellipse 30% 40% at 20% 60%, rgba(180, 170, 160, .12), transparent 70%),
        radial-gradient(ellipse 25% 35% at 55% 70%, rgba(180, 170, 160, .1), transparent 70%),
        radial-gradient(ellipse 30% 45% at 85% 55%, rgba(180, 170, 160, .1), transparent 70%);
    animation: fog 60s linear infinite;
}
.hero-fog i:last-child { bottom: 10%; opacity: .7; animation-duration: 90s; animation-direction: reverse; }
@keyframes fog { from { transform: translateX(0); } to { transform: translateX(25%); } }
.embers { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero-shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(8, 6, 5, .55) 0%, rgba(8, 6, 5, 0) 22%, rgba(8, 6, 5, 0) 45%, rgba(8, 6, 5, .85) 82%, var(--bg) 100%),
        linear-gradient(90deg, rgba(8, 6, 5, .8) 0%, rgba(8, 6, 5, .25) 55%, rgba(8, 6, 5, 0) 100%),
        radial-gradient(ellipse at 70% 30%, transparent 30%, rgba(8, 6, 5, .5) 100%);
}
.hero-in {
    align-self: end;
    width: 100%; max-width: 1600px; margin: 0 auto;
    padding: calc(var(--hdr-h) + 60px) var(--gutter) clamp(28px, 4vh, 48px);
}
.hero-kicker {
    display: inline-flex; align-items: center; gap: 14px;
    font: 700 .8rem/1 var(--f-label); letter-spacing: .34em; text-transform: uppercase; color: var(--txt);
    padding: 10px 18px 10px 16px; border: 1px solid var(--line-2); border-radius: 999px;
    background: rgba(8, 6, 5, .35);
}
.hero-title {
    margin: 28px 0 0;
    font: 900 clamp(3rem, 9.2vw, 9.6rem)/.92 var(--f-title);
    letter-spacing: -.005em; color: var(--txt-hi);
    text-shadow: 0 10px 60px rgba(0, 0, 0, .55);
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); }
.hero-title .ln-red > span {
    color: var(--red-2);
    text-shadow: 0 0 40px rgba(222, 50, 61, .45), 0 10px 60px rgba(0, 0, 0, .55);
}
.is-ready .hero-title .ln > span { transform: none; transition: transform 1.25s var(--ease); }
.is-ready .hero-title .ln:nth-child(2) > span { transition-delay: .14s; }
.hero-row {
    margin-top: clamp(28px, 4vh, 44px);
    display: grid; grid-template-columns: minmax(0, 560px) auto; align-items: end; gap: 28px 60px;
}
.hero-desc { font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--txt); text-wrap: pretty; }
.hero-desc b { color: var(--txt-hi); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: flex-end; }
.hero-actions .link-btn { flex-basis: 100%; justify-content: flex-end; }
.hero-in > *:not(.hero-title) { opacity: 0; transform: translateY(18px); }
.is-ready .hero-in > *:not(.hero-title) { opacity: 1; transform: none; transition: opacity 1s .45s var(--ease), transform 1s .45s var(--ease); }
.is-ready .hero-in > .hero-row { transition-delay: .6s; }

.hero-status {
    position: absolute; right: var(--gutter); top: calc(var(--hdr-h) + 40px);
    width: 240px; padding: 20px 22px;
    background: rgba(12, 9, 7, .62); border: 1px solid var(--line-2); border-radius: var(--radius);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: grid; gap: 6px;
    opacity: 0; transform: translateY(-10px);
    transition: opacity 1s 1s var(--ease), transform 1s 1s var(--ease);
}
.is-ready .hero-status { opacity: 1; transform: none; }
.hs-kicker { display: flex; align-items: center; gap: 10px; font: 700 .7rem/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--ok); }
.hero-status.is-off .hs-kicker { color: var(--dim); }
.hero-status.is-off .live-dot { background: var(--mute); animation: none; }
.hs-count { font: 700 2.6rem/1 var(--f-label); color: var(--txt-hi); margin-top: 8px; }
.hs-count small { font-size: 1.1rem; color: var(--dim); margin-left: 6px; }
.hs-label { font-size: .82rem; color: var(--dim); }
.hs-bar { height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; margin-top: 8px; }
.hs-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), #a7d58f); transition: width 1.4s var(--ease); }

.hero-foot {
    width: 100%; max-width: 1600px; margin: 0 auto; padding: 22px var(--gutter) 30px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    border-top: 1px solid var(--line);
}
.hero-perks { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-perks li {
    display: inline-flex; align-items: center; gap: 12px;
    font: 600 .78rem/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
}
.hero-perks li::before { content: ''; width: 5px; height: 5px; background: var(--red-2); transform: rotate(45deg); }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; font: 700 .72rem/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); flex-shrink: 0; }
.scroll-cue i { position: relative; width: 1px; height: 42px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--red-2); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------------------------------------------------------------- Ticker --- */
.ticker {
    position: relative; overflow: hidden; padding: 26px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--veil-2);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
    display: inline-flex; align-items: center; gap: 44px; padding-right: 44px;
    font: 800 clamp(1.4rem, 2.6vw, 2.3rem)/1 var(--f-title); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px rgba(236, 230, 214, .32);
}
.ticker-track span:nth-child(3n+2) { color: var(--txt-hi); -webkit-text-stroke: 0; }
.ticker-track span::after { content: ''; width: 9px; height: 9px; background: var(--red-2); transform: rotate(45deg); box-shadow: 0 0 14px var(--red-glow); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ Lore --- */
.lore { overflow: hidden; background: linear-gradient(180deg, var(--veil-2), var(--veil) 40%); }
.lore-year {
    position: absolute; right: -2vw; top: 6%;
    font: 900 clamp(10rem, 30vw, 30rem)/1 var(--f-title);
    color: transparent; -webkit-text-stroke: 1px rgba(197, 32, 43, .14);
    pointer-events: none; user-select: none;
}
.lore-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.lore-head { position: sticky; top: calc(var(--hdr-h) + 40px); }
.lore-text { margin-top: 36px; display: grid; gap: 18px; }
.lore-text p { font: 400 clamp(1.15rem, 1.5vw, 1.36rem)/1.6 var(--f-story); color: var(--txt); text-wrap: pretty; }
.lore-text p:first-child::first-letter {
    float: left; font: 700 4.6em/.8 var(--f-title); color: var(--red-2);
    padding: .08em .12em 0 0; text-shadow: 0 0 30px var(--red-glow);
}
.lore-text p.lore-sign { font-style: italic; color: var(--gold-l); font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.chrono { position: relative; display: grid; gap: 0; padding-left: 44px; }
.chrono-rail { position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.chrono-rail i { position: absolute; inset: 0 0 auto 0; height: 0; background: linear-gradient(180deg, var(--red-2), var(--ember)); box-shadow: 0 0 10px var(--red-glow); }
.chrono-item { position: relative; padding: 0 0 54px; }
.chrono-item:last-child { padding-bottom: 0; }
.chrono-item::before {
    content: ''; position: absolute; left: -41px; top: 8px; width: 9px; height: 9px;
    background: var(--bg); border: 1px solid var(--line-2); transform: rotate(45deg);
    transition: background .5s, border-color .5s, box-shadow .5s;
}
.chrono-item.is-lit::before { background: var(--red-2); border-color: var(--red-2); box-shadow: 0 0 14px var(--red-glow); }
.chrono-date { font: 700 .78rem/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.chrono-item h3 { margin-top: 12px; font: 700 clamp(1.3rem, 2vw, 1.75rem)/1.2 var(--f-title); color: var(--txt-hi); }
.chrono-item p { margin-top: 10px; color: var(--dim); font-size: 1rem; text-wrap: pretty; }

/* ----------------------------------------------------------------- Stats --- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--veil-2); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { position: relative; padding: clamp(36px, 5vw, 60px) 24px; text-align: center; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line-2); }
.stat-n { display: block; font: 700 clamp(2.6rem, 5vw, 4.2rem)/1 var(--f-title); color: var(--txt-hi); font-variant-numeric: tabular-nums; }
.stat-n em { font-style: normal; color: var(--red-2); }
.stat-l { display: block; margin-top: 14px; font: 600 .76rem/1.4 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }

/* ---------------------------------------------------- Dépêches (monde vivant) */
.ter { background: radial-gradient(ellipse at 50% 0%, rgba(110, 13, 20, .18), transparent 60%), var(--veil); }
.ter-paper {
    position: relative; padding: clamp(24px, 4vw, 52px);
    background: linear-gradient(180deg, rgba(28, 22, 17, .7), rgba(16, 12, 9, .8));
    border: 1px solid var(--line-2); border-radius: 20px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 235, 190, .05);
}
.ter-paper::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, transparent, var(--red-2), transparent); }
.ter-mast {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line-2);
    font: 700 .76rem/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--dim);
}
.ter-live { display: inline-flex; align-items: center; gap: 10px; color: var(--red-2); }
.ter-figures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ter-fig { background: var(--bg-2); padding: 20px 16px; text-align: center; }
.ter-fig strong { display: block; font: 700 2.2rem/1 var(--f-label); color: var(--mute); }
.ter-fig span { display: block; margin-top: 8px; font-size: .78rem; color: var(--dim); }
.ter-fig.good strong { color: var(--ok); }
.ter-fig.bad strong { color: var(--red-2); }
.ter-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; margin-top: 40px; }
.ter-h { font: 700 .78rem/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.ter-facts { counter-reset: f; }
.ter-facts li { counter-increment: f; display: grid; grid-template-columns: 44px 1fr; gap: 4px 0; padding: 18px 0; border-top: 1px solid var(--line); }
.ter-facts li::before { content: counter(f, decimal-leading-zero); grid-row: span 2; font: 700 .9rem/1.5 var(--f-label); color: var(--red-2); }
.ter-facts li p { font: 400 1.18rem/1.5 var(--f-story); color: var(--txt); }
.ter-facts li span { font-size: .78rem; color: var(--mute); }
.ter-facts li.ter-empty { grid-template-columns: 1fr; }
.ter-facts li.ter-empty::before { display: none; }
.ter-side { display: grid; gap: 30px; align-content: start; }
.ter-block + .ter-block { margin-top: 26px; }
.ter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ter-chip { padding: 7px 14px; border-radius: 999px; font: 600 .82rem/1 var(--f-label); letter-spacing: .06em; border: 1px solid var(--line-2); }
.ter-chip.bad { border-color: rgba(222, 50, 61, .4); color: #f2a3a3; background: rgba(197, 32, 43, .1); }
.ter-chip.good { border-color: rgba(111, 163, 90, .4); color: #b9dba9; background: rgba(111, 163, 90, .1); }
.ter-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.ter-list li strong { color: var(--txt-hi); font-weight: 600; }
.ter-list li span { color: var(--dim); text-align: right; }
.ter-foot { margin-top: 30px; font: 600 .74rem/1.6 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }

/* ------------------------------------------------- La Gazette de l'Ouest -- */
.gaz { background: radial-gradient(ellipse at 80% 10%, rgba(199, 154, 59, .07), transparent 55%), var(--veil-2); border-top: 1px solid var(--line); }
.gaz-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.gaz-une { margin: 0; cursor: zoom-in; outline: none; }
.gaz-sheet {
    position: relative; padding: 10px; background: #e7dabc; border-radius: 4px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
    transform: rotate(-1.2deg); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.gaz-sheet::after { content: ''; position: absolute; inset: 0; border-radius: 4px; box-shadow: inset 0 0 60px rgba(80, 52, 20, .35); pointer-events: none; }
.gaz-sheet img { display: block; width: 100%; height: auto; aspect-ratio: 1500 / 1480; object-fit: cover; object-position: top; border-radius: 2px; }
.gaz-une:hover .gaz-sheet, .gaz-une:focus-visible .gaz-sheet { transform: rotate(0) translateY(-4px); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 0 2px var(--gold); }
.gaz-une figcaption { display: grid; gap: 8px; margin-top: 26px; }
.gaz-une figcaption span { font: 700 .72rem/1.4 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--red-2); }
.gaz-une figcaption strong { font: 700 clamp(1.3rem, 2.2vw, 1.7rem)/1.2 var(--f-title); color: var(--txt-hi); }
.gaz-une figcaption em { font: italic 400 1.1rem/1.4 var(--f-story); color: var(--dim); }
.gaz-side { position: sticky; top: calc(var(--hdr-h, 76px) + 24px); }
.gaz-list { display: grid; gap: 4px; max-height: 620px; overflow-y: auto; padding-right: 6px; }
.gaz-item {
    display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; width: 100%;
    padding: 12px; border: 1px solid transparent; border-radius: 12px; background: none; text-align: left; color: inherit; cursor: zoom-in;
    transition: background .3s, border-color .3s;
}
.gaz-item:hover, .gaz-item:focus-visible { background: rgba(255, 255, 255, .03); border-color: var(--line-2); outline: none; }
.gaz-item img { width: 104px; height: 102px; object-fit: cover; object-position: top; border-radius: 3px; background: #e7dabc; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .8); }
.gaz-item span { display: grid; gap: 6px; }
.gaz-item em { font: 600 .74rem/1.3 var(--f-label); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gaz-item strong { font: 600 1rem/1.35 var(--f-title); color: var(--txt-hi); }
.gaz-empty { font: italic 400 1.12rem/1.55 var(--f-story); color: var(--dim); padding: 18px 0; border-top: 1px solid var(--line); }
.gaz-side .ter-foot { margin-top: 22px; }

/* ------------------------------------------------------ En ce moment ---- */
.dir { background: radial-gradient(ellipse at 15% 0%, rgba(199, 154, 59, .08), transparent 55%), radial-gradient(ellipse at 90% 30%, rgba(110, 13, 20, .16), transparent 60%), var(--veil-2); border-top: 1px solid var(--line); }
.dir-stamp {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
    border: 1px solid rgba(111, 163, 90, .35); background: rgba(111, 163, 90, .08);
    font: 700 .74rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: #b9dba9;
}
.dir-stamp.is-off { border-color: var(--line-2); background: transparent; color: var(--dim); }
.dir-stamp.is-off .live-dot { background: var(--mute); animation: none; }
.dir-h {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 20px;
    font: 700 .78rem/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.dir-h > i { color: var(--red-2); }
.dir-h-aside { margin-left: auto; font: 600 .74rem/1.4 var(--f-label); letter-spacing: .12em; text-transform: none; color: var(--dim); }
.dir-h-aside b { color: var(--txt-hi); font-weight: 700; }
.dir-block { margin-top: clamp(44px, 5vw, 64px); }
.dir-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.dir-split-wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.dir-split > .dir-block[hidden] + .dir-block, .dir-split > .dir-block:has(+ .dir-block[hidden]) { grid-column: 1 / -1; }
.dir-foot { margin-top: 44px; font: 600 .74rem/1.6 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }

.dir-top { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; }
.dir-card {
    position: relative; overflow: hidden; padding: 28px; border-radius: 18px; border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(28, 22, 17, .75), rgba(14, 11, 9, .85));
    box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 235, 190, .05);
}
.dc-k { display: flex; align-items: center; gap: 10px; font: 700 .72rem/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.dc-k i { color: var(--gold); }
.dc-note { margin-top: 12px; font-size: .86rem; color: var(--dim); }
.dc-sub { margin-top: 6px; font: 400 1.05rem/1.4 var(--f-story); color: var(--txt); }

.dir-sky { background: radial-gradient(circle at 85% 15%, rgba(232, 198, 106, .2), transparent 45%), linear-gradient(160deg, #2a2016, #120d09 70%); transition: background .8s; }
.dir-sky.is-night { background: radial-gradient(circle at 85% 15%, rgba(214, 222, 255, .16), transparent 40%), linear-gradient(160deg, #10131f, #08090f 70%); }
.dir-sky::after {
    content: ''; position: absolute; right: 26px; top: 24px; width: 54px; height: 54px; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #ffe7a3, #e8a43c 70%); box-shadow: 0 0 60px rgba(232, 164, 60, .5);
}
.dir-sky.is-night::after { background: radial-gradient(circle at 40% 40%, #f4f1e6, #b9b4a4 70%); box-shadow: 0 0 50px rgba(220, 225, 255, .35), inset -12px -6px 0 rgba(0, 0, 0, .25); }
.dc-clock { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.dc-clock strong { font: 700 clamp(3.2rem, 6vw, 4.6rem)/1 var(--f-label); color: var(--txt-hi); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.dc-clock span { font: 600 .82rem/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); }
.dc-weather { display: flex; align-items: center; gap: 12px; margin-top: 16px; font: 500 1.35rem/1.2 var(--f-story); color: var(--txt-hi); }
.dc-weather i { color: var(--gold-l); width: 26px; text-align: center; }
.dc-prev { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.dc-prev li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); font: 600 .78rem/1 var(--f-label); letter-spacing: .06em; color: var(--dim); }
.dc-prev li span { color: var(--txt-hi); }
.dc-prev li em { font-style: normal; }

.dc-ring {
    --p: 0; position: relative; width: 150px; aspect-ratio: 1; margin: 18px auto 4px; border-radius: 50%;
    display: grid; place-content: center; text-align: center;
    background: conic-gradient(var(--ok) calc(var(--p) * 1%), rgba(236, 230, 214, .08) 0);
}
.dc-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #120e0b; }
.dc-ring strong, .dc-ring span { position: relative; }
.dc-ring strong { font: 700 3rem/1 var(--f-label); color: var(--txt-hi); }
.dc-ring span { font: 600 .9rem/1 var(--f-label); color: var(--dim); margin-top: 4px; }
.dir-pop .dc-note { text-align: center; }

.dir-train { background: radial-gradient(circle at 100% 100%, rgba(197, 32, 43, .18), transparent 55%), linear-gradient(180deg, rgba(28, 22, 17, .75), rgba(14, 11, 9, .85)); }
.dc-count { margin-top: 18px; font: 700 clamp(2.2rem, 4vw, 2.9rem)/1 var(--f-label); color: var(--txt-hi); font-variant-numeric: tabular-nums; }
.dc-count small { font-size: 1rem; color: var(--dim); }
.dir-train .dc-note::first-letter { text-transform: uppercase; }

.dir-towns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.town { padding: 20px 20px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(18, 14, 11, .7); transition: border-color .3s, transform .3s var(--ease); }
.town:hover { transform: translateY(-3px); border-color: rgba(199, 154, 59, .4); }
.town header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.town h4 { font: 700 1.05rem/1.2 var(--f-title); color: var(--txt-hi); }
.town-state { padding: 5px 10px; border-radius: 999px; font: 700 .66rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--dim); }
.town.good .town-state { color: var(--gold-l); border-color: rgba(199, 154, 59, .45); background: rgba(199, 154, 59, .1); }
.town.warn .town-state { color: #f3b27a; border-color: rgba(232, 121, 43, .45); background: rgba(232, 121, 43, .1); animation: flick 2.4s infinite; }
.town.bad .town-state { color: #f2a3a3; border-color: rgba(222, 50, 61, .45); background: rgba(197, 32, 43, .12); }
.town.bad { border-color: rgba(197, 32, 43, .35); background: linear-gradient(180deg, rgba(60, 10, 14, .35), rgba(18, 14, 11, .7)); }
@keyframes flick { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 50% { opacity: .45; } 54% { opacity: 1; } 70% { opacity: .7; } 72% { opacity: 1; } }
.town-oil { height: 6px; border-radius: 3px; background: rgba(236, 230, 214, .08); overflow: hidden; margin-bottom: 12px; }
.town-oil i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ember), var(--gold-l)); box-shadow: 0 0 12px var(--ember-glow); }
.town.bad .town-oil i { background: var(--red); box-shadow: none; }
.town-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .86rem; color: var(--dim); }
.town-line + .town-line { border-top: 1px solid var(--line); }
.town-line strong { color: var(--txt); font-weight: 600; text-align: right; }
.town-alert { display: flex; gap: 8px; align-items: baseline; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(232, 121, 43, .1); color: #f3b27a; font-size: .8rem; line-height: 1.4; }
.town-alert.bad { background: rgba(197, 32, 43, .14); color: #f2a3a3; }

.dir-world { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.wfig { background: var(--bg-2); padding: 20px 14px; text-align: center; }
.wfig i { display: block; font-size: 1rem; color: var(--mute); margin-bottom: 10px; }
.wfig strong { display: block; font: 700 2.1rem/1 var(--f-label); color: var(--mute); }
.wfig span { display: block; margin-top: 8px; font-size: .76rem; color: var(--dim); line-height: 1.3; }
.wfig.bad i, .wfig.bad strong { color: var(--red-2); }
.wfig.good i, .wfig.good strong { color: var(--ok); }
.wfig:not(.bad):not(.good) strong { color: var(--txt); }

.dir-roads li { padding: 13px 0; border-top: 1px solid var(--line); }
.dir-roads li:first-child { border-top: 0; padding-top: 0; }
.dir-roads p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; color: var(--txt); }
.dir-roads p i { color: var(--mute); font-size: .8rem; }
.dir-roads p span { margin-left: auto; font: 700 .7rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.dir-roads li.bad p span { color: var(--red-2); }
.dir-roads li.warn p span { color: var(--ember); }
.road-bar { height: 4px; margin-top: 10px; border-radius: 2px; background: rgba(236, 230, 214, .07); overflow: hidden; }
.road-bar i { display: block; height: 100%; border-radius: 2px; background: var(--gold); }
.dir-roads li.warn .road-bar i { background: linear-gradient(90deg, var(--gold), var(--ember)); }
.dir-roads li.bad .road-bar i { background: linear-gradient(90deg, var(--ember), var(--red-2)); box-shadow: 0 0 10px var(--red-glow); }

.dir-wanted { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.dir-wanted:has(> .posters:empty) { grid-template-columns: 1fr; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.posters:empty { display: none; }
.poster {
    position: relative; padding: 22px 20px 20px; text-align: center; color: #2b1f14; border-radius: 4px;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .35), transparent 60%), linear-gradient(180deg, #e9dcc0, #d5c29b);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9), inset 0 0 40px rgba(110, 70, 30, .35);
    transform: rotate(-.6deg); transition: transform .4s var(--ease);
}
.poster:nth-child(even) { transform: rotate(.8deg); }
.poster:hover { transform: rotate(0) translateY(-4px); }
.poster-k { font: 700 1.25rem/1 var(--f-title); letter-spacing: .18em; text-transform: uppercase; color: #6e0d14; padding-bottom: 10px; border-bottom: 2px solid rgba(43, 31, 20, .5); }
.poster h4 { margin-top: 12px; font: 700 1.08rem/1.25 var(--f-title); color: #1d140c; }
.poster-band { margin-top: 6px; font: italic 500 .98rem/1.3 var(--f-story); color: #4a3726; }
.poster-state { margin-top: 10px; font: 700 .68rem/1.4 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: #6e0d14; }
.poster-where, .poster-coups { margin-top: 6px; font: 500 .9rem/1.3 var(--f-story); color: #4a3726; }
.poster.is-dead { filter: grayscale(.6) brightness(.85); }
.poster.is-dead::after {
    content: 'Abattu'; position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg);
    padding: 6px 16px; border: 3px solid rgba(110, 13, 20, .8); border-radius: 4px;
    font: 700 1.3rem/1 var(--f-title); letter-spacing: .2em; text-transform: uppercase; color: rgba(110, 13, 20, .85);
}
.bounty { padding: 24px; border-radius: 16px; border: 1px solid rgba(197, 32, 43, .3); background: linear-gradient(180deg, rgba(60, 10, 14, .3), rgba(18, 14, 11, .8)); }
.bounty ol { margin-top: 14px; }
.bounty li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.bounty li strong { color: var(--txt-hi); font-weight: 600; }
.bounty li span { font: 700 .95rem/1.2 var(--f-label); color: var(--red-2); text-align: right; white-space: nowrap; }

.dir-feed li { display: grid; grid-template-columns: 14px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.dir-feed li:first-child { border-top: 0; padding-top: 0; }
.dir-feed li::before { content: ''; grid-row: span 2; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 10px var(--red-glow); }
.dir-feed li p { font: 400 1.14rem/1.45 var(--f-story); color: var(--txt); }
.dir-feed li span { font-size: .76rem; color: var(--mute); }

.dir-records { display: grid; gap: 12px; }
.rec { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(199, 154, 59, .28); background: linear-gradient(120deg, rgba(199, 154, 59, .1), rgba(18, 14, 11, .6) 60%); }
.rec > i { width: 44px; height: 44px; flex: none; display: grid; place-content: center; border-radius: 50%; background: rgba(199, 154, 59, .14); color: var(--gold-l); }
.rec p { font: 700 .68rem/1.2 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.rec strong { display: block; margin-top: 4px; font: 700 1.4rem/1.1 var(--f-label); color: var(--txt-hi); }
.rec span { font-size: .84rem; color: var(--gold-l); }

.dir-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font: 700 .76rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); transition: gap .25s; }
.dir-more:hover, .dir-more:focus-visible { gap: 14px; }
.dir-ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.board { padding: 22px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(18, 14, 11, .7); }
.board h4 { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); font: 700 .95rem/1.2 var(--f-title); color: var(--txt-hi); }
.board h4 i { color: var(--red-2); font-size: .85rem; }
.board li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.board li:first-child { border-top: 0; }
.board li strong { color: var(--txt); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li strong em { font-style: normal; font: 600 .7rem/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-left: 4px; }
.b-rank { font: 700 .9rem/1 var(--f-label); color: var(--mute); text-align: center; }
.b-n { font: 700 .92rem/1 var(--f-label); color: var(--dim); white-space: nowrap; }
.board li.is-first .b-rank { width: 24px; height: 24px; display: grid; place-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #1d140c; }
.board li.is-first strong { color: var(--txt-hi); font-weight: 600; }
.board li.is-first .b-n { color: var(--gold-l); }

.nav-live { display: inline-flex; align-items: center; gap: 8px; color: #b9dba9 !important; }
.nav-live[hidden] { display: none; }
.hs-sky { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font: 600 .78rem/1.2 var(--f-label); letter-spacing: .08em; color: var(--txt); }
.hs-sky[hidden] { display: none; }
.hs-sky i { color: var(--gold-l); }
.hs-sky:hover { color: var(--txt-hi); }

/* --------------------------------------------------------------- Piliers --- */
.pillar { position: relative; padding: clamp(80px, 11vw, 160px) 0; overflow: hidden; --tone: var(--red-2); --tone-glow: var(--red-glow); }
.pillar--ember { --tone: var(--ember); --tone-glow: var(--ember-glow); }
.pillar--gold { --tone: var(--gold-l); --tone-glow: rgba(232, 198, 106, .4); }
.pillar::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 20% 50%, color-mix(in srgb, var(--tone) 9%, transparent), transparent 70%);
}
.pillar--reverse::before { background: radial-gradient(ellipse 60% 50% at 80% 50%, color-mix(in srgb, var(--tone) 9%, transparent), transparent 70%); }
.pillar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.pillar--reverse .pillar-media { order: 2; }
.pillar-media { position: relative; }
.pillar-frame {
    position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9);
    clip-path: inset(12% 12% 12% 12% round 18px);
    transition: clip-path 1.4s var(--ease);
}
.pillar-media.is-in .pillar-frame { clip-path: inset(0 0 0 0 round 18px); }
.pillar-frame img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: scale(1.15); transition: transform 1.8s var(--ease); }
.pillar-media.is-in .pillar-frame img { transform: scale(1); }
.pillar-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8, 6, 5, .75)); }
.pillar-numeral {
    position: absolute; z-index: 2; bottom: -.18em; left: -.08em;
    font: 900 clamp(7rem, 15vw, 13rem)/1 var(--f-title);
    color: transparent; -webkit-text-stroke: 1.5px var(--tone);
    text-shadow: 0 0 60px var(--tone-glow);
    pointer-events: none;
}
.pillar--reverse .pillar-numeral { left: auto; right: -.06em; }
.pillar-caption {
    position: absolute; z-index: 2; right: 22px; bottom: 22px;
    display: inline-flex; align-items: center; gap: 10px;
    font: 700 .72rem/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--txt);
    padding: 10px 14px; border-radius: 999px; background: rgba(8, 6, 5, .6); border: 1px solid var(--line-2);
}
.pillar--reverse .pillar-caption { right: auto; left: 22px; }
.pillar-caption i { color: var(--tone); }
.pillar .kicker { color: var(--tone); }
.pillar-desc { margin-top: 24px; font: 400 clamp(1.15rem, 1.5vw, 1.35rem)/1.55 var(--f-story); color: var(--txt); text-wrap: pretty; }
.pillar-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 40px 0 34px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pillar-fig { padding: 22px 18px 22px 0; }
.pillar-fig + .pillar-fig { padding-left: 18px; border-left: 1px solid var(--line); }
.pillar-fig strong { display: block; font: 700 clamp(1.9rem, 3vw, 2.6rem)/1 var(--f-title); color: var(--txt-hi); white-space: nowrap; }
.pillar-fig span { display: block; margin-top: 10px; font-size: .82rem; line-height: 1.45; color: var(--dim); }
.pillar-points { display: grid; gap: 0; }
.pp { border-bottom: 1px solid var(--line); }
.pp-q {
    width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
    padding: 18px 0; font: 600 1.06rem/1.35 var(--f-body); color: var(--txt-hi);
    transition: color .25s;
}
.pp-q b { font: 700 .74rem/1 var(--f-label); letter-spacing: .1em; color: var(--tone); width: 22px; flex-shrink: 0; }
.pp-q i { margin-left: auto; font-size: .8rem; color: var(--dim); transition: transform .4s var(--ease), color .25s; }
.pp-q:hover { color: var(--tone); }
.pp.is-open .pp-q i { transform: rotate(45deg); color: var(--tone); }
.pp-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.pp-a > div { overflow: hidden; }
.pp-a p { padding: 0 0 20px 38px; color: var(--dim); text-wrap: pretty; }
.pp.is-open .pp-a { grid-template-rows: 1fr; }
.pillar-more { margin-top: 34px; }

/* ------------------------------------------------------- Activités (rail) --- */
.acts { overflow: hidden; }
.rail-ctrl { display: flex; gap: 12px; }
.rail {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 30px;
    scroll-padding: 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .act { pointer-events: none; }
.act {
    position: relative; flex: 0 0 clamp(270px, 27vw, 390px); aspect-ratio: 3 / 4.2;
    scroll-snap-align: start; border-radius: 18px; overflow: hidden; isolation: isolate;
    border: 1px solid var(--line); text-align: left;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
    transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
}
.act img, .act .ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85) brightness(.82); }
.act::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 6, 5, .1) 0%, rgba(8, 6, 5, .2) 40%, rgba(8, 6, 5, .94) 100%); }
.act:hover { transform: translateY(-8px); border-color: rgba(222, 50, 61, .55); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(222, 50, 61, .25); }
.act:hover img { transform: scale(1.07); filter: saturate(1) brightness(.92); }
.act-n { position: absolute; top: 24px; left: 28px; font: 700 .8rem/1 var(--f-label); letter-spacing: .12em; color: var(--gold); }
.act-ico { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 6, 5, .55); border: 1px solid var(--line-2); color: var(--txt-hi); }
.act-badge { font: 700 .7rem/1.3 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--red-2); }
.act h3 { margin-top: 10px; font: 700 clamp(1.5rem, 2.1vw, 1.9rem)/1.12 var(--f-title); color: var(--txt-hi); }
.act p { margin-top: 12px; font-size: .92rem; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.act-go { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font: 700 .74rem/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--txt-hi); }
.act-go i { transition: transform .35s var(--ease); }
.act:hover .act-go i { transform: translateX(5px); }
.rail-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-progress i { display: block; height: 100%; width: 20%; background: var(--red-2); transform-origin: 0 50%; transition: width .2s; }

/* Image manquante : repli dessiné, jamais d'image cassée */
.ph {
    display: grid; place-items: center;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(197, 32, 43, .22), transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(232, 121, 43, .14), transparent 55%),
        linear-gradient(160deg, #1d1612, #0b0907);
}
.ph i { font-size: 3.4rem; color: rgba(236, 230, 214, .14); }

/* --------------------------------------------------- Survie / hors-la-loi --- */
.wild { background: linear-gradient(180deg, var(--veil), var(--veil-2)); }
.seg { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-soft); }
.seg-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 999px; font: 700 .8rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.seg-btn.is-on { color: #fff; }
.seg-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: linear-gradient(180deg, var(--red-2), #a3151f); box-shadow: 0 6px 20px -6px var(--red-glow); transition: transform .5s var(--ease), width .5s var(--ease); }
.wild-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wcard {
    position: relative; padding: 30px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(28, 22, 17, .6), rgba(16, 12, 9, .6));
    border: 1px solid var(--line); overflow: hidden;
    transition: border-color .4s, transform .5s var(--ease), background .4s;
}
.wcard::after { content: ''; position: absolute; left: 30px; right: 30px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red-2), transparent); opacity: 0; transition: opacity .4s; }
.wcard:hover { border-color: var(--line-2); transform: translateY(-4px); background: linear-gradient(180deg, rgba(36, 27, 21, .7), rgba(18, 14, 11, .7)); }
.wcard:hover::after { opacity: 1; }
.wcard.is-danger { border-color: rgba(197, 32, 43, .22); }
.wcard-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; color: var(--red-2); background: rgba(197, 32, 43, .1); border: 1px solid rgba(197, 32, 43, .25); }
.wcard h3 { margin-top: 22px; font: 700 1.28rem/1.25 var(--f-title); color: var(--txt-hi); }
.wcard p { margin-top: 12px; font-size: .94rem; color: var(--dim); text-wrap: pretty; }
.wcard-badge { display: inline-block; margin-top: 18px; font: 700 .7rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.wild-grid.is-swap .wcard { animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- Systèmes ---- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 20px; }
.bcard {
    position: relative; isolation: isolate; overflow: hidden; border-radius: 18px;
    border: 1px solid var(--line); text-align: left;
    display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 2.6vw, 36px);
    grid-column: span 2; min-height: 300px;
    transition: border-color .4s, transform .6s var(--ease);
}
.bcard:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.bcard:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.bcard:nth-child(4), .bcard:nth-child(5) { grid-column: span 2; }
.bcard img, .bcard .ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(.85); transition: transform 1.2s var(--ease), filter .6s; }
.bcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 6, 5, .05) 20%, rgba(8, 6, 5, .92) 100%); }
.bcard:hover { border-color: rgba(222, 50, 61, .5); transform: translateY(-4px); }
.bcard:hover img { transform: scale(1.05); filter: brightness(.82) saturate(1); }
.bcard-badge { font: 700 .7rem/1.3 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--red-2); }
.bcard h3 { margin-top: 10px; font: 700 clamp(1.35rem, 2vw, 1.9rem)/1.15 var(--f-title); color: var(--txt-hi); max-width: 22ch; }
.bcard:nth-child(1) h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.bcard p { margin-top: 12px; color: var(--dim); font-size: .94rem; max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-go { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(8, 6, 5, .5); color: var(--txt-hi); transition: background .3s, border-color .3s, transform .5s var(--ease); }
.bcard:hover .bcard-go { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }

.mods { margin-top: clamp(60px, 7vw, 100px); display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--line); }
.mod { display: flex; gap: 18px; padding: 24px 22px 24px 0; border-bottom: 1px solid var(--line); }
.mod i { flex-shrink: 0; width: 22px; margin-top: 3px; color: var(--red-2); text-align: center; }
.mod strong { display: block; font: 700 1rem/1.3 var(--f-title); color: var(--txt-hi); letter-spacing: .02em; }
.mod span { display: block; margin-top: 6px; font-size: .88rem; color: var(--dim); }

/* -------------------------------------------------------------- Régions ---- */
.regions { background: var(--veil-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.atlas { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(30px, 4vw, 64px); align-items: stretch; }
.atlas-list { counter-reset: r; border-top: 1px solid var(--line); }
.atlas-item { counter-increment: r; border-bottom: 1px solid var(--line); }
.atlas-btn {
    position: relative; width: 100%; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 4px 12px;
    padding: 22px 6px; text-align: left; transition: padding .45s var(--ease);
}
.atlas-btn::before { content: counter(r, decimal-leading-zero); font: 700 .78rem/1 var(--f-label); color: var(--mute); transition: color .3s; }
.atlas-btn strong { font: 700 clamp(1.25rem, 2vw, 1.7rem)/1.1 var(--f-title); color: var(--dim); transition: color .3s; }
.atlas-btn span { grid-column: 2; font: 600 .74rem/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.atlas-btn i { grid-row: 1 / span 2; grid-column: 3; color: var(--mute); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .45s var(--ease), color .3s; }
.atlas-btn:hover strong { color: var(--txt); }
.atlas-btn.is-on { padding-left: 18px; }
.atlas-btn.is-on::before { color: var(--red-2); }
.atlas-btn.is-on strong { color: var(--txt-hi); }
.atlas-btn.is-on span { color: var(--gold); }
.atlas-btn.is-on i { opacity: 1; transform: none; color: var(--red-2); }
.atlas-btn.is-on::after { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--red-2); box-shadow: 0 0 12px var(--red-glow); }
.atlas-view { position: relative; min-height: 560px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; }
.atlas-pane { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(26px, 3vw, 44px); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.atlas-pane.is-on { opacity: 1; visibility: visible; }
.atlas-pane img, .atlas-pane .ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s var(--ease); }
.atlas-pane.is-on img { transform: scale(1); }
.atlas-pane::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 6, 5, .15) 0%, rgba(8, 6, 5, .35) 40%, rgba(8, 6, 5, .95) 100%); }
.atlas-hub { display: inline-flex; align-items: center; gap: 10px; font: 700 .76rem/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-l); }
.atlas-pane h3 { margin-top: 12px; font: 800 clamp(2rem, 4vw, 3.4rem)/1 var(--f-title); color: var(--txt-hi); }
.atlas-pane p { margin-top: 16px; max-width: 60ch; color: var(--txt); text-wrap: pretty; }
.atlas-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.atlas-tags span { padding: 8px 14px; border-radius: 999px; font: 600 .76rem/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); background: rgba(8, 6, 5, .5); color: var(--txt); }

/* ------------------------------------------------------------ Nouveautés --- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ncard {
    position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius);
    background: var(--panel-soft); border: 1px solid var(--line);
    transition: border-color .4s, transform .5s var(--ease);
}
.ncard:hover { border-color: var(--line-2); transform: translateY(-4px); }
.ncard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ncard-date { font: 700 .74rem/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.ncard-tag { padding: 6px 12px; border-radius: 999px; font: 700 .66rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--red-2); border: 1px solid rgba(222, 50, 61, .35); }
.ncard-ico { margin-top: 26px; font-size: 1.4rem; color: var(--txt-hi); }
.ncard h3 { margin-top: 16px; font: 700 1.3rem/1.25 var(--f-title); color: var(--txt-hi); }
.ncard p { margin-top: 12px; font-size: .93rem; color: var(--dim); text-wrap: pretty; }
.ncard.is-lead {
    grid-column: span 2; grid-row: span 2; padding: clamp(30px, 4vw, 54px); overflow: hidden; isolation: isolate;
    justify-content: flex-end; min-height: 460px; border-color: rgba(197, 32, 43, .35);
}
.ncard.is-lead img, .ncard.is-lead .ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.ncard.is-lead::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 6, 5, .2), rgba(8, 6, 5, .95) 85%); }
.ncard.is-lead .ncard-top { position: absolute; top: clamp(30px, 4vw, 54px); left: clamp(30px, 4vw, 54px); right: clamp(30px, 4vw, 54px); }
.ncard.is-lead h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.ncard.is-lead p { font-size: 1.04rem; color: var(--txt); max-width: 62ch; }
.ncard.is-lead .ncard-tag { background: var(--red); color: #fff; border-color: var(--red); }

/* --------------------------------------------------------------- Galerie --- */
.gal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 230px); gap: 14px; }
.gitem { position: relative; overflow: hidden; border-radius: 14px; grid-column: span 4; cursor: zoom-in; border: 1px solid var(--line); }
.gitem:nth-child(6n+1) { grid-column: span 7; grid-row: span 2; }
.gitem:nth-child(6n+2) { grid-column: span 5; }
.gitem:nth-child(6n+3) { grid-column: span 5; }
.gitem:nth-child(6n+4) { grid-column: span 4; }
.gitem:nth-child(6n+5) { grid-column: span 4; }
.gitem:nth-child(6n) { grid-column: span 4; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.gitem::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 6, 5, .85)); opacity: .7; transition: opacity .4s; }
.gitem figcaption { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; transform: translateY(8px); opacity: .85; transition: transform .5s var(--ease), opacity .4s; }
.gitem figcaption span { display: block; font: 700 .68rem/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--red-2); }
.gitem figcaption strong { display: block; margin-top: 6px; font: 700 1.05rem/1.25 var(--f-title); color: var(--txt-hi); }
.gitem:hover img { transform: scale(1.06); filter: saturate(1); }
.gitem:hover figcaption { transform: none; opacity: 1; }

.clips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.clip { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.clip video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.clip div { padding: 18px 20px; }
.clip span { font: 700 .7rem/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--red-2); }
.clip strong { display: block; margin-top: 6px; font: 700 1.05rem/1.3 var(--f-title); }

/* ---------------------------------------------------------------- Débuter -- */
.start { background: linear-gradient(180deg, var(--veil), var(--veil-2)); }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.steps { counter-reset: s; display: grid; }
.step { counter-increment: s; position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 0 22px; padding: 28px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { content: counter(s, decimal-leading-zero); font: 700 2.6rem/1 var(--f-title); color: transparent; -webkit-text-stroke: 1px rgba(222, 50, 61, .7); grid-row: span 2; transition: color .4s; }
.step:hover::before { color: var(--red-2); }
.step h3 { display: flex; align-items: center; gap: 12px; font: 700 1.28rem/1.25 var(--f-title); color: var(--txt-hi); }
.step h3 i { font-size: .95rem; color: var(--gold); }
.step p { margin-top: 10px; color: var(--dim); text-wrap: pretty; }
.keys {
    position: sticky; top: calc(var(--hdr-h) + 30px);
    padding: 32px; border-radius: 20px;
    background: linear-gradient(180deg, rgba(28, 22, 17, .75), rgba(14, 10, 8, .8));
    border: 1px solid var(--stroke);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 235, 190, .05);
}
.keys-head { display: flex; align-items: center; gap: 12px; font: 700 .8rem/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--red-2); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.keys-list li { display: flex; align-items: center; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; color: var(--txt); }
.keys-list li:last-child { border-bottom: 0; }
kbd {
    flex-shrink: 0; min-width: 48px; height: 40px; padding: 0 10px; border-radius: 9px;
    display: inline-grid; place-items: center;
    font: 700 .86rem/1 var(--f-label); letter-spacing: .06em; color: var(--txt-hi);
    background: linear-gradient(180deg, #2a221c, #17120e);
    border: 1px solid rgba(236, 230, 214, .16); border-bottom-width: 3px; border-bottom-color: #070504;
    box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.keys-tip { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--dim); }
.keys-tip b { color: var(--txt-hi); }

/* -------------------------------------------------------------- Pack offert */
.kits { overflow: hidden; }
.kits::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 40% at 50% 60%, rgba(197, 32, 43, .12), transparent 70%); }
.kits-pickup { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 .8rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--txt); }
.kits-pickup i { color: var(--red-2); }
.kits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; perspective: 1400px; }
.kit {
    position: relative; padding: 42px 34px 36px; border-radius: 22px; text-align: center; overflow: hidden;
    background: linear-gradient(180deg, rgba(30, 23, 18, .85), rgba(12, 9, 7, .9));
    border: 1px solid var(--line-2);
    transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
    transform-style: preserve-3d;
}
.kit::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(222, 50, 61, .18), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.kit:hover { border-color: rgba(222, 50, 61, .55); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .9), 0 0 50px -20px var(--red-glow); }
.kit:hover::before { opacity: 1; }
.kit-ribbon { position: absolute; top: 20px; right: -36px; transform: rotate(45deg); padding: 6px 44px; background: var(--red); color: #fff; font: 700 .66rem/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; box-shadow: 0 6px 16px -6px var(--red-glow); }
.kit-emblem { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: var(--txt-hi); background: radial-gradient(circle at 50% 35%, rgba(222, 50, 61, .4), rgba(110, 13, 20, .35) 60%, transparent 70%); border: 1px solid rgba(222, 50, 61, .5); box-shadow: 0 0 0 8px rgba(197, 32, 43, .06), 0 0 40px -10px var(--red-glow); }
.kit h3 { margin-top: 26px; font: 700 1.6rem/1.2 var(--f-title); color: var(--txt-hi); }
.kit-tag { margin-top: 12px; font: italic 400 1.12rem/1.5 var(--f-story); color: var(--dim); min-height: 3em; }
.kit ul { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; text-align: left; }
.kit li { position: relative; padding-left: 22px; font-size: .92rem; color: var(--txt); }
.kit li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--red-2); transform: rotate(45deg); }
.kits-note { margin-top: 36px; text-align: center; color: var(--dim); font-size: .92rem; }

/* ------------------------------------------------------------ Pourquoi ---- */
.why { background: var(--veil-2); border-top: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.why-head { position: sticky; top: calc(var(--hdr-h) + 40px); }
.why-head .btn { margin-top: 36px; }
.why-list { counter-reset: w; }
.why-item { counter-increment: w; display: grid; grid-template-columns: 70px 1fr; gap: 6px 20px; padding: 30px 0; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item::before { content: counter(w, upper-roman); grid-row: span 2; font: 700 1.5rem/1.1 var(--f-title); color: var(--red-2); }
.why-item h3 { font: 700 1.35rem/1.25 var(--f-title); color: var(--txt-hi); }
.why-item p { color: var(--dim); text-wrap: pretty; }

/* -------------------------------------------------------------- Rejoindre -- */
.join-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.join-steps li { position: relative; padding: 38px 32px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel-soft); display: flex; flex-direction: column; gap: 14px; }
.join-n { font: 700 3rem/1 var(--f-title); color: transparent; -webkit-text-stroke: 1px var(--red-2); }
.join-steps h3 { font: 700 1.4rem/1.2 var(--f-title); color: var(--txt-hi); }
.join-steps p { color: var(--dim); flex: 1; }
.ip-box { display: flex; align-items: center; gap: 0; border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden; background: rgba(8, 6, 5, .6); }
.ip-box code { flex: 1; padding: 14px 16px; font: 600 .92rem/1 ui-monospace, 'Cascadia Code', Consolas, monospace; color: var(--txt-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-box button { width: 50px; align-self: stretch; color: var(--txt); border-left: 1px solid var(--stroke); transition: background .25s, color .25s; }
.ip-box button:hover { background: var(--red); color: #fff; }

/* ------------------------------------------------------------------- FAQ --- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--hdr-h) + 40px); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; text-align: left; font: 700 clamp(1.05rem, 1.4vw, 1.22rem)/1.35 var(--f-title); color: var(--txt-hi); transition: color .25s; }
.faq-q:hover { color: var(--red-2); }
.faq-q span:last-child { position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s, transform .5s var(--ease); }
.faq-q span:last-child::before, .faq-q span:last-child::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.faq-q span:last-child::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-q span:last-child { background: var(--red); border-color: var(--red); color: #fff; }
.faq-item.is-open .faq-q span:last-child::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 60px 28px 0; color: var(--dim); text-wrap: pretty; }
.faq-a strong { color: var(--txt-hi); font-weight: 600; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------------------------------------------------------- Appel final ---- */
.final { position: relative; min-height: 92vh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: 140px var(--gutter); }
.final-media { position: absolute; inset: 0; z-index: -3; }
.final-media img { width: 100%; height: 120%; object-fit: cover; object-position: 50% 60%; }
.final-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(8, 6, 5, .35), rgba(8, 6, 5, .9) 100%), linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); }
.final .embers { z-index: -2; }
.final-title { font: 900 clamp(2.6rem, 7vw, 6.4rem)/1.02 var(--f-title); color: var(--txt-hi); text-shadow: 0 10px 50px rgba(0, 0, 0, .6); text-wrap: balance; }
.final-title em { font-style: normal; color: var(--ember); text-shadow: 0 0 50px var(--ember-glow); }
.final-actions { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------------------------------- Pied de page ---- */
.foot { border-top: 1px solid var(--line); background: var(--veil); padding-top: 80px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 48px; padding-bottom: 60px; }
.foot-brand img { width: 96px; height: 96px; }
.foot-brand p { margin-top: 22px; max-width: 420px; color: var(--dim); }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col h4 { font: 700 .76rem/1 var(--f-label); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.foot-col a { color: var(--dim); transition: color .25s, transform .3s var(--ease); width: fit-content; }
.foot-col a:hover { color: var(--txt-hi); transform: translateX(4px); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 34px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--mute); }

/* -------------------------------------------------------------- Lecteur ---- */
.player {
    position: fixed; left: 20px; bottom: 20px; z-index: 80;
    display: flex; align-items: center; gap: 12px;
    padding: 8px 16px 8px 8px; border-radius: 999px;
    background: rgba(12, 9, 7, .82); border: 1px solid var(--line-2);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
    transform: translateY(140%); transition: transform .8s var(--ease);
}
.player.is-shown { transform: none; }
.player-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: .9rem; flex-shrink: 0; transition: transform .3s var(--ease); }
.player-btn:hover { transform: scale(1.06); }
.player-sm { width: 32px; height: 32px; background: transparent; color: var(--dim); border: 1px solid var(--line-2); font-size: .74rem; }
.player-sm:hover { color: var(--txt-hi); }
.player-eq { display: none; }
.player.is-playing .player-btn:first-of-type i { display: none; }
.player.is-playing .player-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.player-eq i { width: 3px; background: #fff; border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.player-eq i:nth-child(2) { animation-delay: -.3s; } .player-eq i:nth-child(3) { animation-delay: -.6s; } .player-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.player-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; max-width: 170px; }
.player-title { font: 700 .82rem/1.2 var(--f-label); letter-spacing: .06em; color: var(--txt-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: .72rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player input[type=range] { width: 74px; accent-color: var(--red-2); }

/* ----------------------------------------------------- Fenêtre de détail --- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-bg { position: absolute; inset: 0; background: rgba(5, 3, 2, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.drawer.is-open .drawer-bg { opacity: 1; }
.drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100vw);
    display: flex; flex-direction: column;
    background: var(--bg-2); border-left: 1px solid var(--stroke);
    box-shadow: -40px 0 80px -20px rgba(0, 0, 0, .8);
    transform: translateX(104%); transition: transform .7s var(--ease);
    outline: none;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-close { position: absolute; top: 18px; right: 18px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 6, 5, .7); border: 1px solid var(--line-2); color: var(--txt-hi); transition: background .3s, transform .4s var(--ease); }
.drawer-close:hover { background: var(--red); transform: rotate(90deg); }
.drawer-hero { position: relative; flex-shrink: 0; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px 40px 28px; isolation: isolate; overflow: hidden; }
.drawer-hero img, .drawer-hero .ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.75) saturate(.9); }
.drawer-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 10, 8, .1) 0%, rgba(13, 10, 8, .45) 55%, var(--bg-2) 100%); }
.drawer-hero .kicker { margin-bottom: 12px; }
.drawer-hero h2 { font: 800 clamp(1.8rem, 3.6vw, 2.7rem)/1.08 var(--f-title); color: var(--txt-hi); }
.drawer-badge { display: inline-block; margin-top: 14px; padding: 7px 14px; border-radius: 999px; font: 700 .7rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); border: 1px solid rgba(199, 154, 59, .4); background: rgba(199, 154, 59, .08); width: fit-content; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 40px 40px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(197, 32, 43, .5) transparent; }
.drawer-body::-webkit-scrollbar { width: 6px; }
.drawer-body::-webkit-scrollbar-thumb { background: rgba(197, 32, 43, .5); border-radius: 3px; }
.d-intro { font: 400 1.22rem/1.55 var(--f-story); color: var(--txt); }
.d-sec { margin-top: 36px; }
.d-sec h3 { display: flex; align-items: center; gap: 12px; font: 700 1.18rem/1.3 var(--f-title); color: var(--txt-hi); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.d-sec h3 i { color: var(--red-2); width: 20px; text-align: center; }
.d-sec h3 em { margin-left: auto; font: 700 .64rem/1 var(--f-label); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.d-sec > p { margin-top: 14px; color: var(--dim); }
.d-sec ul { margin-top: 14px; display: grid; gap: 10px; }
.d-sec li { position: relative; padding-left: 22px; color: var(--txt); font-size: .95rem; }
.d-sec li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; background: var(--red-2); transform: rotate(45deg); }
.d-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .9rem; }
.d-table th { text-align: left; font: 700 .7rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.d-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--txt); vertical-align: top; }
.d-table tr:nth-child(even) td { background: rgba(236, 230, 214, .02); }
.d-table td:first-child { color: var(--txt-hi); font-weight: 600; }
.d-wrap { overflow-x: auto; }
.d-steps { margin-top: 30px; counter-reset: ds; display: grid; gap: 0; position: relative; }
.d-steps li { counter-increment: ds; position: relative; padding: 0 0 26px 58px; }
.d-steps li::before { content: counter(ds); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--f-title); color: #fff; background: var(--red); box-shadow: 0 0 0 5px rgba(197, 32, 43, .14); }
.d-steps li::after { content: ''; position: absolute; left: 18.5px; top: 44px; bottom: 6px; width: 1px; background: var(--line-2); }
.d-steps li:last-child::after { display: none; }
.d-steps h4 { font: 700 1.08rem/1.3 var(--f-title); color: var(--txt-hi); padding-top: 8px; }
.d-steps p { margin-top: 6px; color: var(--dim); font-size: .94rem; }
.d-cmds { margin-top: 32px; display: grid; gap: 8px; }
.d-cmds p { font: 700 .72rem/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.d-cmd { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(236, 230, 214, .03); border: 1px solid var(--line); font-size: .9rem; color: var(--txt); }
.d-cmd i { color: var(--red-2); margin-top: 4px; }
.d-tip { margin-top: 32px; padding: 22px 24px; border-radius: 14px; border: 1px solid rgba(199, 154, 59, .3); background: linear-gradient(135deg, rgba(199, 154, 59, .1), rgba(199, 154, 59, .02)); }
.d-tip strong { display: flex; align-items: center; gap: 10px; font: 700 .74rem/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); }
.d-tip p { margin-top: 10px; font: italic 400 1.1rem/1.5 var(--f-story); color: var(--txt); }
.drawer-foot { flex-shrink: 0; display: flex; justify-content: flex-end; gap: 12px; padding: 18px 40px; border-top: 1px solid var(--line); background: var(--bg); }

/* ------------------------------------------------------------ Visionneuse -- */
.lightbox { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; background: rgba(5, 3, 2, .95); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; padding: 60px 90px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-fig { margin: 0; max-width: 1400px; width: 100%; }
.lb-fig img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; transform: scale(.96); transition: transform .6s var(--ease), opacity .3s; }
.lightbox.is-open .lb-fig img { transform: none; }
/* Unes de la Gazette : feuilles presque carrées, on donne toute la hauteur */
.lightbox.is-tall .lb-fig { max-width: min(1000px, 90vh); }
.lightbox.is-tall .lb-fig img { max-height: 84vh; border-radius: 3px; }
.lb-fig figcaption { display: flex; align-items: baseline; gap: 16px; margin-top: 18px; }
.lb-fig figcaption span { font: 700 .7rem/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--red-2); }
.lb-fig figcaption strong { font: 700 1.1rem/1.3 var(--f-title); color: var(--txt-hi); }
.lb-fig figcaption em { margin-left: auto; font: 600 .8rem/1 var(--f-label); font-style: normal; letter-spacing: .14em; color: var(--mute); }
.lb-btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--txt-hi); background: rgba(8, 6, 5, .6); transition: background .3s, border-color .3s; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ Toasts - */
.toasts { position: fixed; left: 50%; bottom: 30px; z-index: 260; transform: translateX(-50%); display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; background: var(--panel-hi); border: 1px solid var(--stroke); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); font-size: .92rem; color: var(--txt-hi); animation: toastIn .5s var(--ease) both; }
.toast i { color: var(--ok); }
.toast.is-out { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------- Carte des Territoires --- */
.map { background: radial-gradient(ellipse at 20% 0%, rgba(199, 154, 59, .06), transparent 55%), var(--veil-2); border-top: 1px solid var(--line); }
.map-shell {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; height: clamp(540px, 76vh, 860px);
    border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: var(--bg-3);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.map-view {
    position: relative; overflow: hidden; overflow: clip; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
    background: #1c160f; outline: none;
}
.map-view:focus-visible { box-shadow: inset 0 0 0 2px var(--red-2); }
.map-view.is-drag { cursor: grabbing; }
.map-tiles { position: absolute; inset: 0; pointer-events: none; }
.map-tiles img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; image-rendering: auto; }
#map-bg img { filter: saturate(.8) brightness(.86); }
#map-tiles img { filter: saturate(.8) brightness(.86); }
.map-view::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(8, 6, 5, .75); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.map-road { pointer-events: auto; cursor: pointer; }
.map-hit { stroke: transparent; stroke-width: 18px; pointer-events: stroke; }
.map-marks { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.mk {
    position: absolute; left: 0; top: 0; pointer-events: auto; display: grid; place-items: center;
    width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
    background: rgba(12, 9, 7, .88); border: 1.5px solid var(--c); color: var(--c); font-size: .8rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .6); transition: box-shadow .2s, background .2s;
}
.mk:hover, .mk:focus-visible, .mk.is-sel { background: #2a1f15; box-shadow: 0 0 0 4px rgba(232, 198, 106, .22), 0 6px 18px rgba(0, 0, 0, .7); z-index: 3; }
.mk.is-sel { border-width: 2.5px; }
.mk b {
    position: absolute; right: -7px; top: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: var(--c); color: #120d09; font: 700 .68rem/17px var(--f-label);
}
.mk-small { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: .66rem; border-width: 1px; }
.mk-alert::before {
    content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--c); opacity: 0;
    animation: mk-ping 2.4s var(--ease) infinite;
}
@keyframes mk-ping { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.mk-town {
    width: auto; height: auto; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    display: flex; align-items: center; gap: 7px; transform-origin: 0 0; translate: -7px -8px;
}
.mk-town:hover, .mk-town:focus-visible, .mk-town.is-sel { background: none; box-shadow: none; }
.mk-dia { width: 12px; height: 12px; flex: none; rotate: 45deg; background: var(--c); border: 2px solid #120d09; box-shadow: 0 0 0 1px var(--c), 0 0 16px var(--c); }
.mk-name {
    font: 700 .82rem/1 var(--f-title); letter-spacing: .08em; color: var(--txt-hi); white-space: nowrap;
    text-shadow: 0 1px 2px #000, 0 0 10px #000, 0 0 18px rgba(0, 0, 0, .9);
}
.mk-town.is-sel .mk-name, .mk-town:hover .mk-name { color: var(--gold-l); }

.map-tools { position: absolute; z-index: 4; left: 14px; top: 14px; display: grid; gap: 6px; }
.map-tools button {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--txt);
    background: rgba(12, 9, 7, .86); border: 1px solid var(--line-2); backdrop-filter: blur(6px); transition: color .2s, border-color .2s;
}
.map-tools button:hover { color: var(--gold-l); border-color: var(--gold); }
.map-hint {
    position: absolute; z-index: 4; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none;
    padding: 12px 20px; border-radius: 999px; background: rgba(8, 6, 5, .88); border: 1px solid var(--line-2);
    font: 600 .82rem/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--txt);
}
.map-legend {
    position: absolute; z-index: 4; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    padding: 8px 14px; border-radius: 10px; background: rgba(12, 9, 7, .82); border: 1px solid var(--line);
    font: 600 .7rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.map-legend span { color: var(--gold); margin-right: 2px; }
.map-legend i { width: 16px; height: 4px; border-radius: 2px; background: var(--c); margin-left: 4px; }

.map-card {
    position: absolute; z-index: 5; right: 14px; top: 14px; width: min(320px, calc(100% - 84px)); max-height: calc(100% - 28px); overflow: auto;
    padding: 20px 20px 18px; border-radius: 14px; background: rgba(14, 11, 8, .95); border: 1px solid var(--line-2);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); backdrop-filter: blur(8px); cursor: auto; user-select: text;
}
.map-card h3 { font: 700 1.25rem/1.2 var(--f-title); color: var(--txt-hi); margin: 4px 30px 14px 0; }
.mc-x { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 8px; color: var(--dim); }
.mc-x:hover { color: var(--txt-hi); background: var(--panel-soft); }
.mc-kick { font: 700 .7rem/1.2 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.mc-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.mc-row span { color: var(--dim); }
.mc-row b { font-weight: 600; color: var(--txt-hi); text-align: right; }
.mc-row em { color: var(--mute); font-style: normal; }
.mc-bar { height: 6px; border-radius: 3px; background: rgba(236, 230, 214, .08); margin: 0 0 12px; overflow: hidden; }
.mc-bar i { display: block; height: 100%; width: var(--p); background: var(--c); border-radius: 3px; box-shadow: 0 0 12px var(--c); }
.mc-note { margin-top: 10px; font: 400 .95rem/1.5 var(--f-story); color: var(--dim); }
.mc-alert { margin: 4px 0 8px; color: var(--red-2); font-weight: 600; font-size: .88rem; }
.mc-red { color: var(--red-2); }
.mc-here { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.mc-here span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: var(--panel-soft); border: 1px solid var(--line); font-size: .76rem; color: var(--txt); }
.mc-sub { margin: 14px 0 6px; font: 700 .68rem/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.mc-roads { display: grid; gap: 5px; }
.mc-roads li { display: flex; align-items: center; gap: 9px; font-size: .88rem; }
.mc-roads li i { width: 14px; height: 4px; border-radius: 2px; background: var(--c); flex: none; }
.mc-roads li em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--dim); }

.map-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 18px; border-left: 1px solid var(--line); background: var(--bg-2); overflow: auto; }
.map-search { position: relative; display: block; }
.map-search i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--mute); font-size: .85rem; }
.map-search input {
    width: 100%; height: 44px; padding: 0 14px 0 38px; border-radius: 10px; border: 1px solid var(--line-2);
    background: var(--bg-3); color: var(--txt); font: inherit; font-size: .92rem;
}
.map-search input:focus { outline: none; border-color: var(--gold); }
.map-hits { display: grid; gap: 2px; margin-top: -8px; padding: 6px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line-2); }
.map-hits button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; text-align: left; font-size: .88rem; color: var(--txt); }
.map-hits button:hover, .map-hits button:focus-visible { background: var(--panel-soft); }
.map-hits i { width: 16px; text-align: center; }
.map-layers { display: grid; gap: 16px; }
.ml-rub header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ml-rub .ter-h { margin-bottom: 8px; font-size: .7rem; }
.ml-all { font: 600 .66rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ml-all:hover { color: var(--txt); }
.ml-rub ul { display: grid; gap: 2px; }
.ml {
    display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border-radius: 8px;
    text-align: left; font-size: .86rem; color: var(--mute); transition: background .2s, color .2s;
}
.ml i { text-align: center; opacity: .4; transition: opacity .2s; }
.ml em { font: 600 .74rem/1 var(--f-label); font-style: normal; color: var(--mute); }
.ml.is-on { color: var(--txt); }
.ml.is-on i { opacity: 1; }
.ml:hover { background: var(--panel-soft); }
.map-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font: 600 .7rem/1.7 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.map-foot .live-dot { margin-right: 4px; }

.map-shell.is-full { position: fixed; inset: 0; z-index: 400; height: auto; margin: 0; border-radius: 0; border: 0; }
html.map-lock, html.map-lock body { overflow: hidden; }

@media (max-width: 1020px) {
    .map-shell { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; height: auto; }
    .map-view { height: clamp(420px, 66vh, 640px); }
    .map-side { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
    .map-layers { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .map-shell.is-full { grid-template-rows: 1fr; }
    .map-shell.is-full .map-view { height: 100%; }
    .map-shell.is-full .map-side { display: none; }
}
@media (max-width: 680px) {
    .map-shell { border-radius: 14px; margin: 0 calc(var(--gutter) * -0.5); }
    .map-view { height: 64vh; }
    .map-tools { left: 10px; top: 10px; }
    .map-tools button { width: 38px; height: 38px; }
    .map-legend { left: 10px; right: 10px; bottom: 10px; justify-content: center; font-size: .62rem; }
    .map-card { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 62%; }
    .mk-name { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) { .mk-alert::before { animation: none; } }

/* ------------------------------------------------------- Classements ---- */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rk { background: radial-gradient(ellipse at 85% 0%, rgba(199, 154, 59, .1), transparent 55%), radial-gradient(ellipse at 0% 60%, rgba(110, 13, 20, .14), transparent 60%), var(--veil); border-top: 1px solid var(--line); }
.rk-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 26px; }
.rk-clocks { display: flex; flex-wrap: wrap; gap: 10px; }
.rk-clocks span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-soft); font: 600 .8rem/1.2 var(--f-label); letter-spacing: .06em; color: var(--dim); }
.rk-clocks i { color: var(--gold); font-size: .78rem; }
.rk-clocks b { color: var(--txt-hi); font-weight: 700; }
.rk-find { position: relative; width: min(340px, 100%); }
.rk-find .map-search input { margin: 0; }
.rk-hits { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; z-index: 20; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8); }
.rk-hits span { display: grid; gap: 1px; min-width: 0; }
.rk-hits small { font-size: .74rem; color: var(--mute); }
.rk-hits i { color: var(--gold); }
.rk-hits .is-none { padding: 8px 10px; font-size: .86rem; color: var(--mute); }

.rk-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.rk-tabs::-webkit-scrollbar { display: none; }
.rk-tabs button {
    flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px 14px; margin-bottom: -3px;
    border-bottom: 2px solid transparent; font: 700 .82rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
    transition: color .25s, border-color .25s;
}
.rk-tabs button i { font-size: .8rem; color: var(--mute); transition: color .25s; }
.rk-tabs button:hover { color: var(--txt); }
.rk-tabs button[aria-selected="true"] { color: var(--txt-hi); border-color: var(--gold); }
.rk-tabs button[aria-selected="true"] i { color: var(--gold-l); }

.rk-empty { padding: 14px 0; font: italic 400 1.02rem/1.5 var(--f-story); color: var(--dim); }
.rk-empty i { margin-right: 6px; font-style: normal; }
.rk-note { margin-top: 14px; font-size: .84rem; color: var(--mute); }
.rk-sub { margin: -6px 0 14px; font-size: .84rem; color: var(--mute); }
.rk-h { display: flex; align-items: center; gap: 10px; margin: 34px 0 16px; font: 700 .78rem/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.rk-h:first-child { margin-top: 0; }
.rk-h i { color: var(--red-2); }

/* Noms cliquables : la fiche du survivant ou du camp */
.rk-name { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; color: var(--txt); font-weight: 500; border-bottom: 1px dotted transparent; transition: color .2s, border-color .2s; }
.rk-name:hover, .rk-name:focus-visible { color: var(--txt-hi); border-bottom-color: var(--gold); }
.rk-name.is-gold { color: var(--gold-l); }

/* Mouvements depuis la veille */
.rk-mv { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 30px; font: 700 .78rem/1 var(--f-label); color: var(--mute); }
.rk-mv i { font-size: .8rem; }
.rk-mv.is-up { color: #8fc47a; }
.rk-mv.is-down { color: #e66767; }
.rk-mv.is-new { padding: 3px 6px; border-radius: 4px; background: rgba(199, 154, 59, .16); color: var(--gold-l); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.rk-d { font: 600 .74rem/1 var(--f-label); font-style: normal; color: var(--dim); white-space: nowrap; }

/* Un classement */
.rk-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.rk-board { padding: 20px 20px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(24, 18, 14, .85), rgba(14, 11, 9, .85)); transition: border-color .4s, box-shadow .4s; }
.rk-board.is-flash { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199, 154, 59, .15); }
.rk-board header, .rk-dlg-head { display: flex; align-items: center; gap: 12px; }
.rk-ico { width: 38px; height: 38px; flex: none; display: grid; place-content: center; border-radius: 10px; background: rgba(197, 32, 43, .14); color: var(--red-2); font-size: .9rem; }
.rk-ico.is-gold { background: rgba(199, 154, 59, .16); color: var(--gold-l); }
.rk-board header div, .rk-dlg-head div { flex: 1; min-width: 0; }
.rk-board h4 { font: 700 .98rem/1.25 var(--f-title); color: var(--txt-hi); }
.rk-board header p, .rk-dlg-head p { margin-top: 3px; font: 600 .7rem/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.rk-curve { width: 36px; height: 36px; flex: none; display: grid; place-content: center; border-radius: 10px; border: 1px solid var(--line-2); color: var(--dim); transition: color .2s, border-color .2s, background .2s; }
.rk-curve:hover, .rk-curve:focus-visible { color: var(--gold-l); border-color: var(--gold); background: rgba(199, 154, 59, .08); }

.rk-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 8px; margin: 18px 0 6px; }
.rk-pod { position: relative; display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 30px 8px 12px; border-radius: 12px 12px 6px 6px; text-align: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.rk-pod-1 { padding-top: 38px; padding-bottom: 18px; border-color: rgba(199, 154, 59, .4); background: linear-gradient(180deg, rgba(199, 154, 59, .16), rgba(199, 154, 59, .03)); }
.rk-pod .rk-name { max-width: 100%; font-size: .9rem; text-align: center; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.rk-pod-1 .rk-name { font: 700 1rem/1.3 var(--f-title); color: var(--txt-hi); }
.rk-pod .rk-v { justify-items: center; }
.rk-pod-mv { display: inline-flex; align-items: center; gap: 6px; min-height: 16px; }
.rk-pod-mv .rk-mv:empty { display: none; }
.rk-medal { display: grid; place-content: center; width: 28px; height: 28px; border-radius: 50%; font: 700 .85rem/1 var(--f-label); color: #1d140c; background: linear-gradient(135deg, #e3e0d8, #9d9a92); }
.rk-pod .rk-medal { position: absolute; top: -14px; left: 50%; translate: -50% 0; box-shadow: 0 0 0 3px #14100d; }
.rk-pod-1 .rk-medal { width: 32px; height: 32px; }
.rk-pod-1 .rk-medal, .rk-mini li:first-child .rk-medal { background: linear-gradient(135deg, var(--gold-l), var(--gold)); }
.rk-pod-1 .rk-medal { top: -16px; }
.rk-pod-3 .rk-medal, .rk-mini li:nth-child(3) .rk-medal { background: linear-gradient(135deg, #d9a27a, #9a6440); }
.rk-medal.is-sm { width: 22px; height: 22px; font-size: .7rem; }
.rk-titre { font: 600 .62rem/1.2 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

.rk-v { display: grid; gap: 2px; text-align: right; }
.rk-v b { font: 700 .92rem/1.15 var(--f-label); color: var(--txt-hi); white-space: nowrap; }
.rk-pod-1 .rk-v b { font-size: 1.05rem; color: var(--gold-l); }
.rk-v small { font-size: .72rem; line-height: 1.3; color: var(--mute); }

.rk-list li { display: grid; grid-template-columns: 24px 34px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 9px 2px; border-top: 1px solid var(--line); font-size: .9rem; }
.rk-list li > .rk-d:empty { display: none; }
.rk-rank { font: 700 .82rem/1 var(--f-label); color: var(--mute); text-align: center; }
.rk-who { display: grid; min-width: 0; }
.rk-who small { font-size: .72rem; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-more { display: block; width: 100%; margin-top: 8px; padding: 10px; border-radius: 10px; border: 1px dashed var(--line-2); font: 700 .74rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); transition: color .2s, border-color .2s; }
.rk-more:hover, .rk-more:focus-visible { color: var(--gold-l); border-color: var(--gold); }

/* À la une */
.rk-une { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rk-une-side { display: grid; gap: 18px; }
.rk-heads-wrap { grid-column: 1 / -1; }
.rk-panel { padding: 22px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(18, 14, 11, .72); }
.rk-panel + .rk-panel { margin-top: 18px; }
.rk-une .rk-panel + .rk-panel, .rk-une-side .rk-panel + .rk-panel { margin-top: 0; }
.rk-panel h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 700 1rem/1.25 var(--f-title); color: var(--txt-hi); }
.rk-panel h4 i { color: var(--gold-l); font-size: .9rem; }
.rk-list-flat li { grid-template-columns: 24px 34px minmax(0, 1fr) auto; }
.rk-medals table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rk-medals th { padding: 0 6px 10px; font: 700 .68rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); text-align: center; }
.rk-medals th:nth-child(2) { text-align: left; }
.rk-medals td { padding: 10px 6px; border-top: 1px solid var(--line); text-align: center; font: 700 .95rem/1 var(--f-label); color: var(--dim); }
.rk-medals td:first-child { color: var(--mute); width: 30px; }
.rk-medals td:nth-child(2) { text-align: left; font: 400 .92rem/1.3 var(--f-body); max-width: 0; width: 100%; }
.rk-medals td:nth-child(2) .rk-name { display: block; }
.rk-medals td:nth-child(2) small { display: block; font-size: .7rem; color: var(--mute); }
.rk-medals td.c-o { color: var(--gold-l); }
.rk-medals tr.is-first .rk-name { color: var(--gold-l); font-weight: 600; }
.rk-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #e3e0d8, #9d9a92); vertical-align: middle; }
.rk-dot.is-o { background: linear-gradient(135deg, var(--gold-l), var(--gold)); }
.rk-dot.is-b { background: linear-gradient(135deg, #d9a27a, #9a6440); }
.rk-heads { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.rk-head { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); text-align: left; transition: border-color .2s, background .2s; }
.rk-head:hover, .rk-head:focus-visible { border-color: rgba(199, 154, 59, .45); background: rgba(199, 154, 59, .06); }
.rk-head > i { grid-row: 1 / 4; align-self: center; color: var(--red-2); font-size: .9rem; text-align: center; }
.rk-head-t { font: 700 .66rem/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.rk-head strong { font-weight: 600; font-size: .92rem; color: var(--txt-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-head-v { font: 600 .8rem/1.2 var(--f-label); color: var(--gold-l); }
.rk-head-v.is-none { color: var(--mute); font-style: italic; }

/* Records */
.rk-records { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.rk-records .rec span { display: block; }
.rk-firsts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rk-firsts li { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(199, 154, 59, .22); background: rgba(199, 154, 59, .05); }
.rk-firsts strong { font: 700 .9rem/1.3 var(--f-title); color: var(--txt-hi); }
.rk-firsts span { font-size: .76rem; color: var(--mute); }
.rk-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.rk-towns li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); }
.rk-towns li.is-held { border-color: rgba(197, 32, 43, .35); background: rgba(197, 32, 43, .06); }
.rk-towns strong { font: 700 .9rem/1.3 var(--f-title); color: var(--txt-hi); }
.rk-towns span { font-size: .82rem; color: var(--dim); }

/* Palmarès */
.rk-palms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.rk-palm { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(18, 14, 11, .72); }
.rk-palm h5 { margin: 0 0 12px; font: 700 .95rem/1.3 var(--f-title); color: var(--txt-hi); }
.rk-palm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.rk-mini p { margin-bottom: 8px; font: 700 .66rem/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.rk-mini p i { color: var(--red-2); margin-right: 4px; }
.rk-mini li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 4px 0; font-size: .86rem; }
.rk-mini li b { grid-column: 2; font: 600 .74rem/1.2 var(--f-label); color: var(--dim); }

/* Fenêtre : courbes et fiche */
.rk-dlg { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px; background: rgba(4, 3, 2, .78); backdrop-filter: blur(6px); }
.rk-dlg-box { position: relative; width: min(920px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 26px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #17120e, #0e0b09); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9); overscroll-behavior: contain; }
.rk-dlg-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-content: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--dim); transition: color .2s, border-color .2s; }
.rk-dlg-x:hover, .rk-dlg-x:focus-visible { color: var(--txt-hi); border-color: var(--gold); }
.rk-dlg-head { padding-right: 46px; margin-bottom: 18px; }
.rk-dlg-head h3 { font: 700 1.3rem/1.2 var(--f-title); color: var(--txt-hi); overflow-wrap: anywhere; }
.rk-ctrl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 14px; }
.rk-seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.rk-seg button { padding: 8px 14px; border-radius: 7px; font: 700 .74rem/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.rk-seg button[aria-pressed="true"] { background: rgba(199, 154, 59, .18); color: var(--gold-l); }
.rk-chart { position: relative; min-height: 120px; }
.rk-chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.rk-grid line { stroke: rgba(236, 230, 214, .07); stroke-width: 1; }
.rk-grid text, .rk-lab { font: 600 11px var(--f-label); fill: var(--mute); }
.rk-lab { fill: var(--txt); font-size: 12px; }
.rk-line path { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rk-line circle { fill: var(--c); stroke: #120e0b; stroke-width: 2; }
.rk-line, .rk-lab { transition: opacity .25s; }
.rk-line.is-dim, .rk-lab.is-dim { opacity: .15; }
.rk-cross { stroke: rgba(236, 230, 214, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.rk-hit { fill: transparent; cursor: crosshair; }
.rk-tip { position: absolute; top: 6px; z-index: 2; min-width: 200px; max-width: 280px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(14, 11, 9, .96); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .9); pointer-events: none; font-size: .8rem; }
.rk-tip p { margin-bottom: 6px; font: 700 .68rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.rk-tip div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 2px 0; }
.rk-tip div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt); }
.rk-tip div b { font: 700 .78rem/1 var(--f-label); color: var(--txt-hi); }
.rk-tip i, .rk-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.rk-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.rk-legend button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; color: var(--txt); transition: opacity .25s, border-color .2s; }
.rk-legend button[aria-pressed="true"] { border-color: var(--gold); }
.rk-legend button.is-dim { opacity: .45; }
.rk-table { margin-top: 16px; }
.rk-table summary { cursor: pointer; font: 700 .74rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.rk-table summary:hover { color: var(--gold-l); }
.rk-table-scroll { margin-top: 12px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.rk-table table { border-collapse: collapse; font-size: .8rem; white-space: nowrap; }
.rk-table th, .rk-table td { padding: 7px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.rk-table thead th { position: sticky; top: 0; background: #17120e; font: 700 .7rem/1.2 var(--f-label); letter-spacing: .08em; color: var(--dim); }
.rk-table tbody th { font: 600 .76rem/1 var(--f-label); color: var(--mute); }
.rk-table td { color: var(--txt); }

.rk-fiche li { display: grid; grid-template-columns: 46px minmax(0, 1fr) 132px 34px auto; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.rk-fiche li:first-child { border-top: 0; }
.rk-fiche-r { font: 700 1.15rem/1 var(--f-label); color: var(--dim); text-align: center; }
.rk-fiche-r sup { font-size: .6em; }
.rk-fiche-r.is-p1 { color: var(--gold-l); }
.rk-fiche-r.is-p2 { color: #e3e0d8; }
.rk-fiche-r.is-p3 { color: #d9a27a; }
.rk-fiche-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rk-fiche-t > i { color: var(--red-2); font-size: .85rem; width: 18px; text-align: center; }
.rk-fiche-t span { display: grid; min-width: 0; font-weight: 500; color: var(--txt-hi); }
.rk-fiche-t small { font: 600 .66rem/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.rk-spark line { stroke: rgba(236, 230, 214, .08); }
.rk-spark path { fill: none; stroke: var(--gold-l); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rk-spark circle { fill: var(--gold-l); }

@media (max-width: 900px) {
    .rk-une { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .rk-bar { align-items: stretch; }
    .rk-find { width: 100%; }
    .rk-board { padding: 16px 14px 12px; }
    .rk-podium { gap: 6px; }
    .rk-pod { padding: 26px 4px 10px; }
    .rk-pod-1 { padding-top: 32px; }
    .rk-pod .rk-name { font-size: .82rem; }
    .rk-pod-1 .rk-name { font-size: .9rem; }
    .rk-list li { grid-template-columns: 22px 30px minmax(0, 1fr) auto; }
    .rk-list li > .rk-d { display: none; }
    .rk-dlg { padding: 0; align-items: end; }
    .rk-dlg-box { max-height: 92dvh; padding: 20px 16px; border-radius: 18px 18px 0 0; }
    .rk-fiche li { grid-template-columns: 38px minmax(0, 1fr) auto; row-gap: 4px; }
    .rk-fiche-s { grid-column: 2 / -1; grid-row: 2; }
    .rk-fiche li > .rk-mv { display: none; }
    .rk-panel { padding: 18px 14px; }
}

/* ---------------------------------------------------- Apparitions au défilé */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- Adaptatif --- */
@media (max-width: 1240px) {
    .hdr-nav { display: none; }
    .hdr-nav + .hdr-cta { margin-left: auto; }
    .hero-status { display: none; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bcard, .bcard:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .bcard:nth-child(1) { grid-column: span 2; min-height: 420px; }
    .ter-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dir-top { grid-template-columns: 1fr 1fr; }
    .dir-sky { grid-column: span 2; }
    .dir-wanted { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
    .hero-row { grid-template-columns: 1fr; }
    .hero-actions { justify-content: flex-start; }
    .hero-actions .link-btn { justify-content: flex-start; }
    .lore-grid, .pillar-grid, .atlas, .start-grid, .why-grid, .faq-grid, .ter-grid, .dir-split, .gaz-grid { grid-template-columns: 1fr; }
    .gaz-side { position: static; }
    .gaz-list { max-height: none; overflow: visible; padding-right: 0; }
    .dir-towns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lore-head, .why-head, .faq-head, .keys { position: static; }
    .pillar--reverse .pillar-media { order: 0; }
    .pillar-frame { aspect-ratio: 16 / 11; }
    .wild-grid, .news-grid, .kits-grid, .join-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ncard.is-lead { grid-column: span 2; grid-row: auto; min-height: 400px; }
    .atlas-view { min-height: 460px; }
    .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
    .gitem, .gitem:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .gitem:nth-child(3n+1) { grid-column: span 2; grid-row: span 1; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: span 2; }
}
@media (max-width: 680px) {
    :root { --hdr-h: 64px; }
    .gaz-item { grid-template-columns: 80px 1fr; gap: 14px; padding: 10px 4px; }
    .gaz-item img { width: 80px; height: 79px; }
    .gaz-sheet { padding: 6px; transform: none; }
    body { font-size: 15px; }
    .brand-name em, .hdr-cta .icon-btn, .hdr-cta .btn { display: none; }
    .live-pill { height: 30px; padding: 0 10px; white-space: nowrap; }
    .hdr-in { gap: 12px; }
    .brand-name strong { font-size: .86rem; }
    .hero-kicker { font-size: .66rem; letter-spacing: .22em; padding: 8px 14px; }
    .hero-title { font-size: clamp(2.6rem, 13vw, 4rem); }
    .hero-actions .btn { width: 100%; }
    .hero-foot { flex-direction: column; align-items: flex-start; }
    .scroll-cue { display: none; }
    .hero-perks { gap: 8px 18px; }
    .hero-perks li { font-size: .66rem; letter-spacing: .16em; }
    .menu-list { columns: 1; }
    .menu-list a { font-size: 1.7rem; padding: 7px 0; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(odd)::before { display: none; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .pillar-figs { grid-template-columns: 1fr; }
    .pillar-fig, .pillar-fig + .pillar-fig { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-left: 0; }
    .pillar-fig strong { min-width: 92px; font-size: 1.7rem; }
    .pillar-fig span { margin-top: 0; }
    .pillar-fig + .pillar-fig { border-top: 1px solid var(--line); }
    .pillar-numeral { font-size: 6rem; }
    .wild-grid, .news-grid, .kits-grid, .join-steps, .bento { grid-template-columns: 1fr; }
    .bcard:nth-child(1), .ncard.is-lead { grid-column: auto; }
    .bcard { min-height: 280px; }
    .ter-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dir-top { grid-template-columns: 1fr; }
    .dir-sky { grid-column: auto; }
    .dir-card { padding: 22px; }
    .dir-world { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dir-towns { grid-template-columns: 1fr; }
    .dir-h-aside { margin-left: 0; flex-basis: 100%; }
    .atlas-view { min-height: 420px; }
    .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
    .gitem:nth-child(n) { grid-column: auto; }
    .seg { width: 100%; }
    .seg-btn { flex: 1; justify-content: center; padding: 0 12px; }
    .drawer-hero { padding: 28px 22px 22px; min-height: 210px; }
    .drawer-body { padding: 6px 22px 30px; }
    .drawer-foot { padding: 14px 22px; }
    .drawer-foot .btn { flex: 1; padding: 0 14px; }
    .faq-a p { padding-right: 0; }
    .foot-grid { grid-template-columns: 1fr; }
    .foot-brand { grid-column: auto; }
    .lightbox { padding: 70px 14px; }
    .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
    .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
    .player { left: 12px; bottom: 12px; }
    .player input[type=range], .player-meta { display: none; }
    .player { padding: 6px; }
    .step { grid-template-columns: 54px 1fr; }
    .step::before { font-size: 2rem; }
}

@media (max-width: 400px) {
    .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    [data-reveal], .hero-in > * { opacity: 1 !important; transform: none !important; }
    .hero-title .ln > span { transform: none !important; }
    .pillar-frame { clip-path: none !important; }
    .grain { display: none; }
}
