
/* Concept : un terminal de survivants. Noir anthracite, gris acier, blanc cassé,
   rouge sombre réservé à l'important (actions, alertes, actif, survol), touches kaki.
   Design volontairement sombre uniquement : ambiance cinéma, grain léger, brouillard lent. */
:root {
  --bg: #0c0d0f; --surface: #141619; --surface-2: #1c1f23; --surface-3: #262a2f;
  --line: #2b3035; --line-2: #3b4148;
  --fg: #ebe8e0; --muted: #9aa1a9; --steel: #7f8891;
  --red: #a8231b; --red-hi: #c8352a; --red-text: #ea6357; --red-ink: #fff4ee;
  --khaki: #939968; --khaki-dim: #3d4130; --amber: #d4a940; --ok: #7fae6a;
  --f-brand: "Big Shoulders Stencil Display", Impact, "Arial Narrow", sans-serif;
  --f-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; mix-blend-mode: overlay; opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body::after { content: ""; position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, transparent 55%, rgba(0, 0, 0, .5) 100%); }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 .8rem; }
a { color: var(--fg); }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); }
.eyebrow { font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); margin: 0 0 .6rem; }
.eyebrow::before { content: "> "; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { display: grid; gap: 12px; }
.grow { flex: 1 1 200px; min-width: 0; }
.mt { margin-top: 20px; }
.hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---------- Boutons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1.02rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; padding: .62rem 1.15rem; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg); cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.btn:hover { border-color: var(--red-hi); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--red-ink); }
.btn.primary:hover { background: var(--red-hi); }
.btn.primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-20deg); transition: left .5s; }
.btn.primary:hover::after { left: 130%; }
.btn.ghost { background: transparent; }
.btn.sm { padding: .3rem .75rem; font-size: .9rem; }
.btn.danger { border-color: var(--red); color: var(--red-text); }
.ibtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; background: none; color: var(--fg); cursor: pointer; }
.ibtn:hover { border-color: var(--line-2); color: var(--red-text); }
.ibtn svg { width: 22px; height: 22px; }
.dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red-hi); color: var(--red-ink); font: 500 .68rem/16px var(--f-mono); text-align: center; }
.tag { display: inline-block; font: 500 .68rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: .12rem .45rem; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.tag.red { color: var(--red-text); border-color: var(--red); }
.tag.kh { color: var(--khaki); border-color: var(--khaki-dim); }
.tag.ex { color: var(--amber); border-color: var(--amber); }
.tag.ok { color: var(--ok); border-color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .95rem var(--f-head); letter-spacing: .06em; text-transform: uppercase; padding: .3rem .8rem; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); cursor: pointer; }
.chip[aria-pressed="true"], .chip.on { background: var(--red); border-color: var(--red); color: var(--red-ink); }

/* ---------- En-tête ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(12, 13, 15, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.hdr-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 900 1.55rem var(--f-brand); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--fg); }
.brand i { display: inline-block; width: 10px; height: 26px; background: var(--red-hi); transform: skewX(-18deg); }
.dnav { display: none; gap: 2px; margin-left: 12px; }
.dnav a { position: relative; white-space: nowrap; padding: .5rem .55rem; font: 600 1rem var(--f-head); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.dnav a:hover { color: var(--fg); }
.dnav a[aria-current="page"] { color: var(--fg); }
.dnav a[aria-current="page"]::after { content: ""; position: absolute; left: .55rem; right: .55rem; bottom: 2px; height: 3px; background: var(--red-hi); }
.hact { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.userbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); cursor: pointer; font: 600 .95rem var(--f-head); letter-spacing: .06em; text-transform: uppercase; }
.userbtn:hover { border-color: var(--red-hi); }
.userbtn svg { width: 20px; height: 20px; }
.userbtn .who { display: none; }
.burger { display: inline-grid; }
@media (min-width: 1360px) { .dnav { display: flex; } .burger { display: none; } .userbtn .who { display: inline; } }

.pop { position: absolute; right: 0; top: 46px; width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); z-index: 70; }
.pop h4 { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pop-item { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; font-size: .92rem; cursor: pointer; }
.pop-item:hover { background: var(--surface-2); }
.pop-item.unread { border-left: 3px solid var(--red-hi); }
.pop-item small { display: block; color: var(--muted); font-family: var(--f-mono); }
.relwrap { position: relative; }

.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(6, 7, 8, .97); overflow-y: auto; padding: 16px var(--gutter) 40px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer nav { display: grid; gap: 4px; }
.drawer nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); font: 700 1.7rem var(--f-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.drawer nav a[aria-current="page"] { color: var(--red-text); }

.discord { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 55; display: inline-flex; align-items: center; gap: 8px; padding: .55rem .9rem; background: #3d4b8a; color: #fff; border: 1px solid #5865c9; font: 700 .95rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.discord:hover { background: #4b5bb0; }
.discord svg { width: 20px; height: 20px; }
.discord span { display: none; }
@media (min-width: 700px) { .discord span { display: inline; } }

/* ---------- Accueil plein écran ---------- */
.view { animation: viewin .35s ease both; }
@keyframes viewin { from { opacity: .0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero { position: relative; min-height: clamp(560px, 90svh, 880px); overflow: hidden; border-bottom: 1px solid var(--line); display: flex; align-items: center; background: #101215; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .s1 { stop-color: #06070a; } .scene .s2 { stop-color: #2c333a; }
.scene .g1 { stop-color: #cfd6d8; stop-opacity: .5; } .scene .g2 { stop-color: #cfd6d8; stop-opacity: 0; }
.scene .far { fill: #1c2226; } .scene .mid { fill: #12161a; } .scene .near { fill: #08090b; }
.scene .ns { fill: none; stroke: #08090b; stroke-linecap: round; stroke-linejoin: round; }
.scene .beacon { fill: var(--red-hi); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 60%, 100% { opacity: .15; } 30% { opacity: 1; } }
.fog { position: absolute; left: -20%; width: 240%; height: 46%; pointer-events: none; will-change: transform; }
.fog.f1 { bottom: 8%; background: radial-gradient(ellipse at 30% 60%, rgba(190, 200, 205, .16), transparent 60%), radial-gradient(ellipse at 75% 40%, rgba(190, 200, 205, .12), transparent 55%); animation: drift 70s linear infinite alternate; }
.fog.f2 { bottom: 0; height: 36%; background: radial-gradient(ellipse at 50% 70%, rgba(160, 170, 175, .2), transparent 60%); animation: drift 95s linear infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-22%); } }
.parts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.parts i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: rgba(220, 224, 226, .55); animation: rise linear infinite; }
@keyframes rise { from { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: .8; } to { transform: translate3d(40px, -90vh, 0); opacity: 0; } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8, 9, 11, .88) 0%, rgba(8, 9, 11, .5) 55%, transparent 100%), linear-gradient(0deg, rgba(8, 9, 11, .8), transparent 30%); }
.hero-in { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 56px; }
@media (max-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font: 900 clamp(3.4rem, 13vw, 8rem)/.9 var(--f-brand); letter-spacing: .03em; margin-bottom: .5rem; text-shadow: 0 4px 0 rgba(0, 0, 0, .55); }
.hero h1 b { color: var(--red-hi); }
.slogan { font: 600 clamp(1.2rem, 3.4vw, 1.9rem) var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); margin-bottom: 1rem; }
.hero .lead { max-width: 56ch; font-size: 1.1rem; color: #d7d5cd; text-shadow: 0 1px 8px #000; }
.rot { min-height: 1.6em; font: 500 .95rem var(--f-mono); color: var(--khaki); margin-bottom: 22px; }
.rot span { animation: viewin .6s ease both; display: inline-block; }
.term { background: rgba(8, 9, 11, .82); border: 1px solid var(--line-2); padding: 16px; font: 400 .9rem/1.7 var(--f-mono); }
.term .pr { color: var(--red-text); }
.term .ok { color: var(--ok); }
.term .bar { display: flex; gap: 6px; margin-bottom: 10px; }
.term .bar i { width: 9px; height: 9px; background: var(--line-2); border-radius: 50%; }
.cdn { font: 900 3.4rem/1 var(--f-brand); color: var(--red-text); }

/* ---------- Sections communes ---------- */
.sec { padding-block: clamp(32px, 5vw, 64px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 22px; }
.pagehead { padding-block: clamp(28px, 5vw, 56px) 8px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); }
.crumbs { font: 500 .78rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red-text); }
.pagehead .lead { color: #cfcdc5; max-width: 62ch; }
.lead { font-size: 1.1rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 16px; min-width: 0; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px); transition: border-color .2s, transform .2s; }
a.card, button.card, .card.link { display: block; color: inherit; text-decoration: none; text-align: left; font: inherit; cursor: pointer; width: 100%; }
a.card:hover, button.card:hover, .card.link:hover { border-color: var(--red-hi); transform: translateY(-2px); }
.card.flat:hover { transform: none; border-color: var(--line); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.empty { border: 1px dashed var(--line-2); padding: 24px; color: var(--muted); }

/* stats et parcours */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 1px solid var(--line); background: var(--surface); }
.stat { padding: 22px var(--gutter); border-right: 1px solid var(--line); }
.stat b { display: block; font: 900 2.8rem/1 var(--f-brand); color: var(--red-text); }
.stat span { font: 600 .9rem var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); }
.step { position: relative; padding: 18px; border-right: 1px solid var(--line); background: var(--surface); text-align: left; color: inherit; font: inherit; cursor: pointer; border-top: 0; border-left: 0; border-bottom: 0; }
.step:hover { background: var(--surface-2); }
.step small { font: 500 .72rem var(--f-mono); letter-spacing: .12em; color: var(--red-text); }
.step h3 { margin: 4px 0; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* couvertures (illustrations générées) */
.cover { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 10px 12px; background: linear-gradient(160deg, #22272c, #0e1012); }
.cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 14px); }
.cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); }
.cover span { position: relative; z-index: 2; font: 900 1.9rem var(--f-brand); letter-spacing: .05em; text-transform: uppercase; color: rgba(235, 232, 224, .9); }
.cover svg { position: absolute; right: 8%; top: 12%; width: 46%; height: 76%; opacity: .16; color: var(--fg); }
.cover.c-Mise { background: linear-gradient(160deg, #3a1613, #0e1012); }
.cover.c-Officiel { background: linear-gradient(160deg, #1f2a1d, #0e1012); }
.cover.c-Communauté { background: linear-gradient(160deg, #2b2c22, #0e1012); }
.cover.c-Événement { background: linear-gradient(160deg, #38240f, #0e1012); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font: 500 .78rem var(--f-mono); color: var(--muted); }

/* formulaires */
input, select, textarea { font: inherit; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line-2); padding: .55rem .7rem; min-width: 0; max-width: 100%; border-radius: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--red-hi); outline: none; }
textarea { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
label, .lab { font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: end; }
.form .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font: 400 .95rem var(--f-body); letter-spacing: 0; text-transform: none; color: var(--fg); }
input[type="checkbox"], input[type="radio"] { width: 1.05rem; height: 1.05rem; accent-color: var(--red-hi); padding: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.filters .field { flex: 1 1 150px; }
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line-2); padding: 0 12px; }
.searchbar:focus-within { border-color: var(--red-hi); }
.searchbar svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.searchbar input { flex: 1; border: 0; background: none; padding: .7rem 0; }

/* tableaux, onglets, accordéons */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 20px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: .6rem .95rem; font: 700 1.05rem var(--f-head); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--red-hi); }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
details.acc { border: 1px solid var(--line); background: var(--surface); }
details.acc summary { cursor: pointer; font: 700 1.1rem var(--f-head); letter-spacing: .05em; text-transform: uppercase; padding: 13px 16px; list-style: none; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; float: right; font-family: var(--f-mono); color: var(--red-text); }
details.acc[open] summary::after { content: "–"; }
.acc-body { padding: 0 16px 16px; max-width: 72ch; }
.prose { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .35rem; }
.prose h3 { margin: 1.4rem 0 .5rem; }
.prose p { line-height: 1.7; }
pre.out, pre.code { font: 400 .9rem/1.6 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; background: #090a0b; border: 1px solid var(--line-2); padding: 12px; margin: 0; color: #d9d6cd; }

/* actus et articles */
.news-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 800px) { .news-feature { grid-template-columns: minmax(0, 1fr); } }
.artbody { max-width: 70ch; }
.artbody p { font-size: 1.05rem; line-height: 1.75; }
.cmt { border-left: 3px solid var(--line-2); padding: 8px 12px; background: var(--surface); }
.cmt b { font: 500 .85rem var(--f-mono); color: var(--khaki); }

/* guides, items */
.gcat { border: 1px solid var(--line); background: var(--surface); }
.gcat > h3 { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gcat ul { list-style: none; margin: 0; padding: 0; }
.gcat li { border-bottom: 1px solid var(--line); }
.gcat li:last-child { border-bottom: 0; }
.gcat li button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.gcat li button:hover { background: var(--surface-2); color: var(--red-text); }
.ic { width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--steel); }
.ic svg { width: 34px; height: 34px; }
.ic.lg { width: 96px; height: 96px; }
.ic.lg svg { width: 60px; height: 60px; }
.thumb { display: grid; place-items: center; aspect-ratio: 5 / 3; margin-bottom: 12px; background: radial-gradient(ellipse at 50% 40%, var(--surface-3), var(--surface) 75%); border: 1px solid var(--line); color: #a9b0a4; overflow: hidden; }
.thumb svg { width: 72%; height: auto; max-height: 86%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); }
a.card .item-top .ic { display: none; }
a.card:hover .thumb { color: var(--red-text); }
.thumb.big { width: min(280px, 100%); margin: 0; flex: none; }
.thumb .fb { display: none; }
.thumb img.pic { max-width: 80%; max-height: 88%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); }
.item-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); border: 1px solid var(--line); background: var(--surface); }
.kv > div { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.kv > div:nth-child(odd) { font: 500 .75rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.fav { border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; width: 36px; height: 36px; display: inline-grid; place-items: center; }
.fav svg { width: 18px; height: 18px; }
.fav.on { color: var(--red-text); border-color: var(--red); }
.fav:hover { color: var(--red-text); }

/* serveurs */
.srv { display: grid; gap: 10px; }
.logo { width: 52px; height: 52px; flex: none; display: grid; place-items: center; font: 900 1.4rem var(--f-brand); letter-spacing: .04em; background: var(--surface-3); border: 2px solid var(--line-2); color: var(--fg); }
.logo.t-PVP { border-color: var(--red); } .logo.t-PVE { border-color: var(--khaki); } .logo.t-RP { border-color: var(--amber); }
.st { display: inline-flex; align-items: center; gap: 6px; font: 500 .78rem var(--f-mono); color: var(--muted); }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.st.on::before { background: var(--ok); } .st.off::before { background: var(--red-hi); }

/* cartes */
.map-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .map-layout { grid-template-columns: minmax(0, 1fr); } }
.mapbox { border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.mapbox .dn1 { fill: #7d9a6a; fill-opacity: .22; }
.mapbox .dn2 { fill: #8fb06f; fill-opacity: .42; }
.mapbox .dn3 { fill: #b5c97e; fill-opacity: .70; }
.mapscroll { overflow-x: auto; position: relative; }
.mapscroll.zoomed { overflow: hidden; } .mapscroll.zoomed svg { touch-action: none; cursor: grab; } .mapscroll.zl .mk text { display: block; }
.zbtns { position: absolute; right: 8px; top: 8px; display: grid; gap: 4px; } .zbtns button { width: 36px; height: 36px; background: rgba(12,13,15,.86); color: var(--fg); border: 1px solid var(--line-2); font: 600 18px var(--f-mono); cursor: pointer; }
.mapscroll svg { display: block; width: 100%; min-width: 640px; height: auto; }
.land { fill: #15181a; } .sea { fill: #101a20; } .gridl { stroke: #23282c; stroke-width: 1; }
.axis { font: 500 16px var(--f-mono); fill: var(--steel); }
.mk { cursor: pointer; }
.mk .shp { stroke: #0c0d0f; stroke-width: 3; }
.mk.ville .shp { fill: var(--fg); } .mk.mil .shp { fill: var(--red-hi); } .mk.aero .shp { fill: var(--amber); } .mk.site .shp { fill: #78a6bd; }
.mk.sel .shp { stroke: var(--red-hi); stroke-width: 5; }
.mk.dim { opacity: .15; }
.mk text { font: 500 17px var(--f-mono); fill: var(--fg); paint-order: stroke; stroke: #0c0d0f; stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(84px, 120px) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.track { height: 14px; background: var(--surface-3); overflow: hidden; }
.fill { height: 100%; background: var(--khaki); }
.fill.new { background: var(--red-hi); }
.diff { display: inline-flex; gap: 3px; vertical-align: middle; }
.diff i { width: 14px; height: 8px; background: var(--surface-3); }
.diff i.on { background: var(--red-hi); }

/* communauté */
.thread { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.reacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; font: 900 1.3rem var(--f-brand); color: #fff; background: var(--khaki-dim); border: 2px solid var(--line-2); text-transform: uppercase; }
.avatar.lg { width: 96px; height: 96px; font-size: 2.6rem; }
.bdg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); }
.bdg.lock { opacity: .45; }
.bdg b { font: 700 1rem var(--f-head); letter-spacing: .06em; text-transform: uppercase; }

/* outils */
.tool-out { margin-top: 14px; }
.opt { display: block; width: 100%; text-align: left; padding: .7rem .9rem; margin-bottom: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg); font: 500 1rem var(--f-body); cursor: pointer; }
.opt:hover:not(:disabled) { border-color: var(--red-hi); }
.opt.ok { border-color: var(--ok); }
.opt.bad { border-color: var(--red-hi); }
.progress { height: 8px; background: var(--surface-3); overflow: hidden; }
.progress > div { height: 100%; background: var(--red-hi); }

/* modales, recherche, toast */
.ov { position: fixed; inset: 0; z-index: 85; background: rgba(4, 5, 6, .8); display: grid; place-items: start center; padding: 6vh 16px 16px; overflow-y: auto; }
.dialog { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); padding: 20px; }
.dialog.wide { width: min(760px, 100%); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.sres { display: grid; gap: 4px; margin-top: 14px; max-height: 58vh; overflow-y: auto; }
.sres h4 { margin: 10px 0 4px; font: 500 .72rem var(--f-mono); letter-spacing: .14em; color: var(--red-text); }
.sres button { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 9px 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; cursor: pointer; }
.sres button:hover { border-color: var(--red-hi); }
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 95; background: var(--surface-3); border: 1px solid var(--red); padding: .6rem 1rem; font: 500 .9rem var(--f-mono); max-width: calc(100vw - 32px); }
.pwa { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 94; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--red); padding: 12px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.pwa-t { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.pwa-t b { font: 700 1rem var(--f-head); text-transform: uppercase; letter-spacing: .04em; }
.pwa-t span { font-size: .85rem; color: var(--muted); }
.pwa-b { display: flex; gap: 8px; }
.sk { position: relative; overflow: hidden; background: var(--surface-2); min-height: 120px; border: 1px solid var(--line); }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .06) 50%, transparent 80%); transform: translateX(-100%); animation: shim 1.2s infinite; }
@keyframes shim { to { transform: translateX(100%); } }

/* 404, Discord, pied de page */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 60px; background: radial-gradient(ellipse at 50% 60%, rgba(168, 35, 27, .16), transparent 60%); }
.lost h1 { font: 900 clamp(2.6rem, 10vw, 6rem)/.95 var(--f-brand); letter-spacing: .03em; }
.dband { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: center; background: linear-gradient(120deg, #1d2140, var(--surface)); border: 1px solid #38408a; padding: 24px; }
@media (max-width: 800px) { .dband { grid-template-columns: minmax(0, 1fr); } }
.foot { border-top: 1px solid var(--line); padding-block: 36px 90px; background: #08090a; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr); gap: 24px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { font: 600 .95rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--red-text); }
.disc { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); max-width: 90ch; }

.fav.on svg { fill: currentColor; }
a.pop-item { text-decoration: none; }
.mk text { display: none; }
.mk.lab text, .mk.sel text, .mk:hover text { display: block; }
.mk:focus-visible { outline: none; }
.mk:focus-visible .shp { stroke: var(--red-hi); stroke-width: 5; }
.btn[disabled], .opt:disabled { cursor: default; }
select { max-width: 100%; }
@media (max-width: 480px) { .hdr-in { gap: 6px; } .brand { font-size: 1.2rem; gap: 6px; } .brand i { width: 8px; height: 20px; } .hact .ibtn { width: 36px; } .userbtn { padding: 0 8px; } }
.blogo { width: 34px; height: 34px; flex: none; }
.foot .blogo { width: 56px; height: 56px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 62% 60%; background-repeat: no-repeat; filter: saturate(.9) contrast(1.05); transform: scale(1.04); }
.hero-side { display: grid; gap: 16px; justify-items: center; }
.hero-side .term { width: 100%; }
.hero-logo { width: min(560px, 100%); height: auto; border-radius: 4px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .75)); }
@media (max-width: 900px) { .hero-logo { width: min(420px, 100%); } }
/* apparition progressive discrète (contenu toujours visible au repos) */
@supports (animation-timeline: view()) {
  .rv { animation: rvin linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  @keyframes rvin { from { opacity: .55; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fog, .parts { display: none; }
}
