/* =====================================================================
   KNOX OUTBREAK — Direction artistique « Knox County, juillet 1993 »
   Asphalte, kaki militaire, rouge sang, jaune danger, papier jauni,
   radio d'urgence, néon CRT. Polices : Google Fonts (cloud).
   ===================================================================== */

:root {
  /* Fonds */
  --bg:        #0b0d0a;
  --bg-2:      #10130e;
  --panel:     #151913;
  --panel-2:   #1b2018;
  --panel-3:   #222920;
  --line:      #2c3326;
  --line-2:    #3b4532;
  /* Textes */
  --text:      #d9d2bf;
  --white:     #f2ecd9;
  --muted:     #8c8a7c;
  --paper:     #e3d9bd;
  --paper-ink: #2a2418;
  /* Accents */
  --blood:     #b3121b;
  --blood-2:   #e0333d;
  --blood-dk:  #5c0a0e;
  --rust:      #8b3a1a;
  --hazard:    #e8b21a;
  --hazard-dk: #8a6a0e;
  --olive:     #4b5d3a;
  --olive-2:   #7a9457;
  --crt:       #7dff6a;
  --sky:       #3fa7d6;
  /* États */
  --ok:        #5cc27a;
  --warn:      #e8b21a;
  --ko:        #e0333d;
  /* Typo */
  --f-display: 'Black Ops One', Impact, sans-serif;
  --f-head:    'Oswald', 'Arial Narrow', sans-serif;
  --f-type:    'Special Elite', 'Courier New', monospace;
  --f-body:    'Barlow', 'Segoe UI', Arial, sans-serif;
  --f-mono:    Consolas, 'Courier New', monospace;
  /* Divers */
  --radius:    4px;
  --shadow:    0 14px 40px rgba(0, 0, 0, .55);
  --t:         .25s cubic-bezier(.4, 0, .2, 1);
  --hazard-stripes: repeating-linear-gradient(135deg, var(--hazard) 0 14px, #121212 14px 28px);
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--text); min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(75, 93, 58, .18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(179, 18, 27, .08), transparent 70%),
    var(--bg);
}
/* Grain + lignes de balayage VHS */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .18;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px);
}
a { color: var(--hazard); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; letter-spacing: .02em; color: var(--white); line-height: 1.2; }
code, kbd, pre { font-family: var(--f-mono); }
code { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; font-size: .88em; color: var(--crt); }
kbd { background: var(--panel-3); border: 1px solid var(--line-2); border-bottom-width: 3px; padding: 0 6px; border-radius: 3px; font-size: .85em; color: var(--white); }
mark { background: rgba(232, 178, 26, .25); color: var(--white); padding: 0 3px; }
hr { border: none; height: 6px; margin: 28px 0; background: var(--hazard-stripes); opacity: .55; }
::selection { background: var(--blood); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 4px; }
:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10001; background: var(--hazard); color: #000; padding: 8px 14px; }
.skip-link:focus { left: 10px; top: 10px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--f-mono); }
.is-hidden { display: none !important; }

/* ---------------------------------------------------------------- Mise en page */
main { min-height: 70vh; padding-top: 64px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1500px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 24px; }
.align-start { align-items: start; }

/* ---------------------------------------------------------------- Navigation */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 1000; display: flex; align-items: center; gap: 18px; padding: 0 24px;
  background: linear-gradient(180deg, rgba(11, 13, 10, .97), rgba(11, 13, 10, .88)); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--hazard-stripes); opacity: .7; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); white-space: nowrap; }
.brand-mark { font-size: 1.6rem; color: var(--hazard); text-shadow: 0 0 12px rgba(232, 178, 26, .55); animation: spin-slow 18s linear infinite; display: inline-block; }
.brand-name { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.nav { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-family: var(--f-head); font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 8px 12px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 6px; transition: var(--t);
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .04); }
.nav-links a.active { color: var(--hazard); box-shadow: inset 0 -2px 0 var(--hazard); }
.nav-hq { color: var(--hazard) !important; }
.nav-user { display: flex; align-items: center; gap: 4px; }
.nav-logout button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius); width: 30px; height: 30px; cursor: pointer; }
.nav-logout button:hover { color: var(--blood-2); border-color: var(--blood-2); }
.nav-cta { margin-left: 6px; }
.nav-links a.nav-cta { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--hazard); border-radius: var(--radius); width: 40px; height: 36px; font-size: 1.2rem; cursor: pointer; }
.nav-status {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--muted); white-space: nowrap;
}
.site-banner {
  position: relative; z-index: 900; margin-top: 64px; padding: 9px 20px; text-align: center; font-family: var(--f-type); color: #111;
  background: var(--hazard); border-bottom: 3px solid #111;
}
.site-banner + main { padding-top: 0; }
.hazard-chip { display: inline-block; background: #111; color: var(--hazard); padding: 0 6px; border-radius: 2px; margin-right: 6px; }

/* ---------------------------------------------------------------- Statuts */
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; flex-shrink: 0; }
.st-online .status-dot, .status-badge.st-online .status-dot { background: var(--crt); box-shadow: 0 0 10px var(--crt); animation: pulse 2s ease-in-out infinite; }
.st-maintenance .status-dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.st-offline .status-dot { background: var(--ko); box-shadow: 0 0 8px var(--ko); animation: pulse 1.4s ease-in-out infinite; }
.nav-status.st-online { color: var(--crt); border-color: rgba(125, 255, 106, .35); }
.nav-status.st-offline { color: var(--blood-2); border-color: rgba(224, 51, 61, .4); }
.nav-status.st-maintenance { color: var(--warn); border-color: rgba(232, 178, 26, .4); }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 100px; font-family: var(--f-head); font-size: .74rem;
  letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .45); color: var(--text); white-space: nowrap;
}
.status-badge.st-online { color: var(--crt); border-color: rgba(125, 255, 106, .4); }
.status-badge.st-offline { color: var(--blood-2); border-color: rgba(224, 51, 61, .45); }
.status-badge.st-maintenance { color: var(--warn); border-color: rgba(232, 178, 26, .45); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.8); } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crt); box-shadow: 0 0 8px var(--crt); display: inline-block; vertical-align: middle; animation: pulse 2s infinite; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-align: center;
  font-family: var(--f-head); font-weight: 600; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 26px; border-radius: var(--radius); border: 1px solid transparent; transition: var(--t); position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .14) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: linear-gradient(180deg, var(--blood-2), var(--blood)); color: #fff; border-color: var(--blood-2); box-shadow: 0 6px 22px rgba(179, 18, 27, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 30px rgba(224, 51, 61, .55); transform: translateY(-1px); }
.btn-hazard { background: var(--hazard); color: #111; border-color: #111; box-shadow: 4px 4px 0 #111; }
.btn-hazard:hover { color: #000; transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #111; }
.btn-ghost { background: rgba(0, 0, 0, .3); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--white); border-color: var(--hazard); }
.btn-danger { background: transparent; color: var(--blood-2); border-color: rgba(224, 51, 61, .55); }
.btn-danger:hover { background: rgba(224, 51, 61, .12); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .74rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.btn-row form { display: inline; }
.btn-mini {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-head); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; white-space: nowrap; transition: var(--t);
}
.btn-mini:hover { border-color: var(--hazard); color: var(--hazard); }
.btn-mini-ok { border-color: rgba(92, 194, 122, .5); color: var(--ok); }
.btn-mini-danger { border-color: rgba(224, 51, 61, .5); color: var(--blood-2); }
.btn-mini.copied { color: var(--crt); border-color: var(--crt); }

/* ---------------------------------------------------------------- Alertes */
.alert { max-width: 1200px; margin: 12px auto; padding: 12px 18px; border-radius: var(--radius); border: 1px solid; border-left-width: 4px; font-size: .95rem; }
.alert-success { background: rgba(92, 194, 122, .08); border-color: rgba(92, 194, 122, .45); color: #b6f0c6; }
.alert-error   { background: rgba(224, 51, 61, .08); border-color: rgba(224, 51, 61, .5); color: #ffc0c3; }
.alert-info    { background: rgba(63, 167, 214, .08); border-color: rgba(63, 167, 214, .45); color: #bfe4f5; }
main > .flash { position: relative; z-index: 5; width: calc(100% - 48px); margin-top: 18px; }

/* ---------------------------------------------------------------- En-têtes de page */
.page-head { text-align: center; margin: 10px 0 34px; }
.kicker { display: inline-block; font-family: var(--f-type); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hazard); margin-bottom: 8px; }
.page-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: .04em; text-transform: uppercase; color: var(--white); text-shadow: 3px 3px 0 var(--blood-dk); }
.page-sub { color: var(--muted); max-width: 680px; margin: 10px auto 0; }
.hazard-line { width: 180px; height: 8px; margin: 18px auto 0; background: var(--hazard-stripes); border: 1px solid #111; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(122, 148, 87, .22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(179, 18, 27, .25), transparent 65%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(232, 178, 26, .08), transparent 60%),
    linear-gradient(180deg, #070806 0%, #0e110c 50%, #0b0d0a 100%);
}
.hero.has-image .hero-bg { background: linear-gradient(180deg, rgba(7, 8, 6, .55), rgba(11, 13, 10, .92)), var(--hero-img) center / cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .75) 100%); }
.hero-fog {
  position: absolute; inset: -20% -50%; opacity: .35;
  background: radial-gradient(ellipse 30% 20% at 30% 60%, rgba(200, 210, 180, .25), transparent 70%), radial-gradient(ellipse 25% 18% at 70% 70%, rgba(200, 210, 180, .2), transparent 70%);
  animation: fog 40s linear infinite alternate;
}
@keyframes fog { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
.hero-rain {
  position: absolute; inset: 0; opacity: .12;
  background-image: repeating-linear-gradient(105deg, transparent 0 18px, rgba(220, 230, 210, .5) 18px 19px, transparent 19px 40px);
  animation: rain .6s linear infinite;
}
@keyframes rain { from { background-position: 0 0; } to { background-position: -40px 120px; } }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 70px 24px 60px; max-width: 980px; }
.hero-kicker { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.daycount { font-family: var(--f-type); color: var(--paper); background: rgba(0, 0, 0, .45); border: 1px dashed var(--line-2); padding: 4px 12px; border-radius: 3px; }
.daycount strong { color: var(--blood-2); font-size: 1.1em; }
.hero-title {
  position: relative; display: inline-block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 9vw, 6.4rem); line-height: 1;
  letter-spacing: .04em; text-transform: uppercase; color: var(--white); text-shadow: 4px 4px 0 var(--blood-dk), 0 0 40px rgba(179, 18, 27, .35);
  animation: flicker 6s infinite;
}
.hero-title::before, .hero-title::after { content: attr(data-text); position: absolute; inset: 0; opacity: .6; pointer-events: none; }
.hero-title::before { color: var(--blood-2); transform: translate(2px, 0); clip-path: inset(0 0 60% 0); animation: glitch 4s infinite steps(1); }
.hero-title::after { color: var(--olive-2); transform: translate(-2px, 0); clip-path: inset(55% 0 0 0); animation: glitch 5s infinite steps(1) reverse; }
@keyframes glitch { 0%, 92%, 100% { transform: translate(0, 0); opacity: 0; } 93% { transform: translate(3px, -1px); opacity: .7; } 96% { transform: translate(-3px, 1px); opacity: .7; } }
@keyframes flicker { 0%, 100%, 41%, 43%, 79%, 81% { opacity: 1; } 42%, 80% { opacity: .78; } }
.hero-sub { font-family: var(--f-type); color: var(--hazard); font-size: 1.05rem; letter-spacing: .1em; margin: 14px 0 10px; }
.hero-desc { color: var(--text); max-width: 640px; margin: 0 auto 32px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; justify-content: center; gap: 0; margin-top: 54px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .45); flex-wrap: wrap; }
.stat { padding: 16px 30px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-val { display: block; font-family: var(--f-display); font-size: 1.8rem; color: var(--hazard); line-height: 1.1; }
.stat-lbl { font-family: var(--f-head); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- Radio d'urgence */
.radio-ticker { display: flex; align-items: stretch; background: #050605; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); overflow: hidden; }
.radio-tag { flex-shrink: 0; padding: 10px 16px; background: var(--blood); color: #fff; font-family: var(--f-head); letter-spacing: .1em; font-size: .8rem; text-transform: uppercase; }
.ticker-track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-move { display: inline-flex; gap: 60px; white-space: nowrap; padding: 10px 0; font-family: var(--f-type); color: var(--crt); text-shadow: 0 0 6px rgba(125, 255, 106, .5); animation: ticker 45s linear infinite; padding-left: 100%; }
.ticker-move em { color: var(--muted); font-style: normal; margin-left: 8px; font-size: .85em; }
.radio-ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- Cartes */
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 20px; position: relative; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.card-flush { padding: 0; overflow: hidden; }
.card-flush > .empty-mini, .card-flush > .hq-filters { margin: 16px; }
.card-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.card-danger { border-color: rgba(224, 51, 61, .45); }
a.card { display: block; color: inherit; transition: var(--t); }
a.card:hover { border-color: var(--hazard); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
/* Note scotchée (papier) */
.card-note { background: var(--paper); color: var(--paper-ink); border: none; transform: rotate(-.4deg); box-shadow: 6px 8px 0 rgba(0, 0, 0, .45); }
.card-note::before { content: ''; position: absolute; top: -12px; left: 50%; width: 120px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(232, 220, 170, .7); border: 1px solid rgba(0, 0, 0, .1); }
.card-note h2, .card-note h3 { color: var(--paper-ink); font-family: var(--f-type); text-transform: none; letter-spacing: 0; }
.card-note a { color: var(--blood); text-decoration: underline; }
.card-note .prose, .card-note .prose p { color: var(--paper-ink); }
.card-note .muted { color: #5d5440; }
.server-card { border-top: 3px solid var(--line-2); }
.server-card.st-online { border-top-color: var(--crt); }
.server-card.st-offline { border-top-color: var(--blood); }
.server-card.st-maintenance { border-top-color: var(--hazard); }
.server-card h3 { font-size: 1.2rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.tags li { font-family: var(--f-head); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text); }

/* KPI */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { display: block; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--olive-2); padding: 16px 18px; border-radius: var(--radius); color: inherit; }
a.kpi:hover { border-color: var(--hazard); color: inherit; }
.kpi-val { display: block; font-family: var(--f-display); font-size: 1.7rem; color: var(--white); line-height: 1.15; }
.kpi-lbl { font-family: var(--f-head); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.kpi-blood { border-left-color: var(--blood); }
.kpi-blood .kpi-val { color: var(--blood-2); }
.kpi-alert { border-left-color: var(--hazard); }
.kpi-alert .kpi-val { color: var(--hazard); }

/* Actualités */
.news-card { padding: 0; overflow: hidden; }
.news-thumb { height: 160px; background: linear-gradient(135deg, var(--olive), var(--bg-2)) center / cover; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; border-bottom: 3px solid var(--blood); }
.news-body { padding: 16px 18px 20px; }
.news-body h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.news-body p { color: var(--muted); font-size: .93rem; }
.news-meta { font-family: var(--f-type); font-size: .78rem; color: var(--hazard); }

/* États vides */
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(0, 0, 0, .25); margin-bottom: 24px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); }
.empty-icon { display: block; font-size: 2.6rem; margin-bottom: 10px; filter: grayscale(.3); }
.empty-mini { padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); margin-bottom: 12px; font-size: .92rem; }
.empty-mini small { display: block; margin-top: 4px; }

/* Listes classement / nécrologie */
.rank-list { list-style: none; margin-bottom: 16px; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.rank-pos { font-family: var(--f-display); color: var(--muted); min-width: 46px; }
.rank-pos.gold { color: #ffd34d; } .rank-pos.silver { color: #cfd3d6; } .rank-pos.bronze { color: #d08a4a; }
.rank-name { flex: 1; display: flex; flex-direction: column; color: var(--white); font-weight: 600; }
.rank-name small { color: var(--muted); font-weight: 400; }
.rank-val { font-family: var(--f-head); color: var(--hazard); }
.obit-list { list-style: none; margin-bottom: 16px; }
.obit-list li { padding: 9px 4px 9px 26px; border-bottom: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.obit-list li::before { content: '✝'; position: absolute; left: 4px; top: 9px; color: var(--blood-2); }
.obit-list strong { color: var(--white); }
.obit-list small { color: var(--muted); }
.card-memorial { border-top: 3px solid var(--blood); }

/* Bandeau fonctionnalités */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 30px auto 60px; }
.feature { background: var(--panel); padding: 28px 22px; text-align: center; color: var(--text); transition: var(--t); }
.feature:hover { background: var(--panel-3); color: var(--text); }
.feature span { font-size: 2rem; display: block; margin-bottom: 8px; }
.feature h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--hazard); margin-bottom: 6px; }
.feature p { font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------- Formulaires */
.field { margin-bottom: 16px; display: flex; flex-direction: column; min-width: 0; }
.field label, .field > span { font-family: var(--f-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; margin: 0; }
.field.inline input { width: 90px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-full { grid-column: 1 / -1; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 14px;
  font-family: var(--f-body); font-size: 1rem; color: var(--white); outline: none; transition: var(--t);
}
input[type=color] { width: 100%; height: 44px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 4px; }
input[type=file] { color: var(--muted); font-size: .9rem; max-width: 100%; }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
select option { background: var(--panel); }
input:focus, select:focus, textarea:focus { border-color: var(--hazard); box-shadow: 0 0 0 3px rgba(232, 178, 26, .15); }
input::placeholder, textarea::placeholder { color: #5f5e54; }
input[readonly] { color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; color: var(--text); margin: 6px 0 14px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--blood-2); width: 16px; height: 16px; flex-shrink: 0; }
.check.is-locked { opacity: .45; cursor: not-allowed; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; margin-bottom: 8px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { text-align: center; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 140px; }
.inline-form input[type=number] { flex: 0 0 90px; min-width: 0; }
fieldset { border: none; }
.char-counter { font-size: .75rem; color: var(--muted); text-align: right; margin-top: 4px; }

/* Authentification */
.auth-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: start; }
.auth-grid-narrow { grid-template-columns: minmax(0, 520px); justify-content: center; }
.form-card { border-top: 3px solid var(--blood); }
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; }
.auth-tabs a { flex: 1; text-align: center; font-family: var(--f-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 9px; color: var(--muted); border-radius: 3px; }
.auth-tabs a.active { background: var(--blood); color: #fff; }
.perks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks li span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(0, 0, 0, .12); border: 1px solid rgba(0, 0, 0, .2); border-radius: 3px; }

/* ---------------------------------------------------------------- Onglets / pastilles */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; }
.tabs.center { justify-content: center; width: fit-content; margin-left: auto; margin-right: auto; }
.tabs a { font-family: var(--f-head); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; color: var(--muted); border-radius: 3px; }
.tabs a:hover { color: var(--white); background: rgba(255, 255, 255, .04); }
.tabs a.active { background: var(--hazard); color: #111; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar .tabs { margin-bottom: 0; }
.pill { display: inline-block; font-family: var(--f-head); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 2px 9px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--text); white-space: nowrap; }
.pill-acceptee, .pill-traite { color: var(--ok); border-color: rgba(92, 194, 122, .5); }
.pill-refusee, .pill-annulee { color: var(--blood-2); border-color: rgba(224, 51, 61, .5); }
.pill-en_attente, .pill-en_cours, .pill-attente_joueur { color: var(--hazard); border-color: rgba(232, 178, 26, .5); }
.pill-nouveau { color: var(--sky); border-color: rgba(63, 167, 214, .5); }
.pill-archive { color: var(--muted); }
.prio { font-family: var(--f-head); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; }
.prio-haute { background: var(--blood); color: #fff; }
.prio-normale { background: var(--panel-3); color: var(--text); }
.prio-basse { color: var(--muted); border: 1px solid var(--line-2); }
.role-badge { --rc: #9aa38a; display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-head); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 10px; border-radius: 100px; color: var(--rc); border: 1px solid var(--rc); background: rgba(0, 0, 0, .35); white-space: nowrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { font-size: .82rem; padding: 3px 10px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--text); background: rgba(0, 0, 0, .3); }
.tag-ban { border-color: var(--blood); color: var(--blood-2); text-decoration: line-through; }
.faction-chip { --fc: #b3121b; display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-head); font-size: .78rem; letter-spacing: .05em; padding: 2px 10px; border-radius: 3px;
  color: var(--white); border-left: 4px solid var(--fc); background: rgba(0, 0, 0, .35); }
.swatch { display: inline-block; width: 16px; height: 12px; border-radius: 2px; vertical-align: middle; border: 1px solid rgba(255, 255, 255, .2); }

/* ---------------------------------------------------------------- Listes génériques */
.kv-list { list-style: none; margin-bottom: 14px; }
.kv-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.kv-list li:last-child { border-bottom: none; }
.kv-list span { color: var(--text); min-width: 0; }
.kv-list small { color: var(--muted); margin-left: 6px; font-size: .8rem; }
.kv-list strong { color: var(--white); font-weight: 600; text-align: right; }
.hq-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--text); }
.hq-row:last-child { border-bottom: none; }
a.hq-row-link:hover, .hq-row-link.is-active { background: rgba(232, 178, 26, .05); color: var(--text); }
.hq-row-main { display: flex; flex-direction: column; min-width: 0; }
.hq-row-main strong { color: var(--white); font-weight: 600; }
.hq-row-main small { color: var(--muted); font-size: .8rem; }
.hq-row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.hq-row-actions form { display: inline; }
.hq-row.is-dead { opacity: .6; }
.settings-block { margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; background: rgba(0, 0, 0, .2); }
.settings-block > summary { cursor: pointer; padding: 12px 0; font-family: var(--f-head); letter-spacing: .06em; color: var(--white); list-style-position: inside; }
.settings-block[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.settings-block[open] { padding-bottom: 14px; }
.card.settings-block { padding: 0 22px; }
.card.settings-block[open] { padding-bottom: 22px; }
.danger-zone { border-color: rgba(224, 51, 61, .4) !important; }
.danger-zone > summary { color: var(--blood-2); }
.copy-row { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.copy-row input { flex: 1; font-size: .85rem; }
.ref-code { flex: 1; text-align: center; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .3em; color: var(--hazard); border: 1px dashed var(--hazard); padding: 8px; background: rgba(232, 178, 26, .05); }
.login-list { list-style: none; margin-bottom: 14px; }
.login-list li { display: flex; gap: 12px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.login-list li > span:last-child { display: flex; flex-direction: column; }
.login-list strong { font-size: .88rem; color: var(--white); font-weight: 600; }
.login-list small { font-size: .78rem; color: var(--muted); }
.login-state { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .8rem; }
.login-list .ok .login-state { color: var(--ok); border: 1px solid rgba(92, 194, 122, .45); }
.login-list .ko .login-state { color: var(--blood-2); border: 1px solid rgba(224, 51, 61, .45); }
.sub-title { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hazard); margin: 18px 0 10px; }
.back-link { display: inline-block; margin-bottom: 16px; font-family: var(--f-head); letter-spacing: .06em; font-size: .85rem; }

/* ---------------------------------------------------------------- Avatars */
.avatar { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line-2); }
.avatar-xs { width: 24px; height: 24px; border-radius: 3px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-lg { width: 84px; height: 84px; }
.avatar-xl { width: 130px; height: 130px; border: 3px solid var(--paper); box-shadow: 4px 4px 0 rgba(0, 0, 0, .5); }
.avatar-initial { --h: 90; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); color: #fff;
  background: linear-gradient(135deg, hsl(var(--h), 25%, 30%), hsl(var(--h), 30%, 16%)); }
.avatar-xs.avatar-initial { font-size: .7rem; } .avatar-sm.avatar-initial { font-size: .95rem; }
.avatar-lg.avatar-initial { font-size: 2rem; } .avatar-xl.avatar-initial { font-size: 3.4rem; }
.nav-profile .avatar { display: inline-flex; }

/* ---------------------------------------------------------------- Dossier de survivant (profil) */
.dossier {
  position: relative; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; padding: 30px; margin-bottom: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(139, 58, 26, .18), transparent 60%), var(--panel-2); border: 1px solid var(--line-2); overflow: hidden;
}
.dossier::before { content: 'DOSSIER CONFIDENTIEL · KNOX COUNTY EMERGENCY'; position: absolute; top: 8px; right: 14px; font-family: var(--f-type); font-size: .7rem; color: var(--muted); letter-spacing: .1em; }
.dossier-photo { position: relative; }
.avatar-edit { position: absolute; bottom: -8px; right: -8px; width: 36px; height: 36px; border-radius: 50%; background: var(--hazard); color: #111; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid #111; }
.avatar-del { position: absolute; top: -8px; right: -8px; }
.avatar-del button { width: 26px; height: 26px; border-radius: 50%; background: var(--blood); color: #fff; border: 2px solid #111; cursor: pointer; font-size: .7rem; }
.dossier-id { flex: 1; min-width: 240px; }
.dossier-name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 10px; }
.dossier-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--muted); font-size: .9rem; }
.dossier-bio { margin-top: 12px; font-family: var(--f-type); color: var(--paper); }
.dossier-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stamp {
  position: absolute; right: 30px; bottom: 18px; transform: rotate(-12deg); font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .12em;
  color: var(--ok); border: 3px solid var(--ok); padding: 2px 14px; opacity: .55; pointer-events: none; border-radius: 4px;
}
.stamp-dead { color: var(--blood-2); border-color: var(--blood-2); }
.char-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; background: rgba(0, 0, 0, .25); }
.char-row.is-dead { opacity: .55; filter: grayscale(.6); }
.char-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 4px; flex-shrink: 0; }
.char-icon.big { width: 54px; height: 54px; font-size: 1.8rem; }
.char-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.char-main strong { color: var(--white); }
.char-main small { color: var(--muted); font-size: .8rem; }
.char-stats { text-align: right; display: flex; flex-direction: column; }
.char-stats b { font-family: var(--f-head); color: var(--hazard); }
.char-stats small { color: var(--muted); font-size: .78rem; }
.char-sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.char-sheet-head div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.char-sheet-head strong { font-size: 1.2rem; color: var(--white); }
.char-sheet-head small { color: var(--muted); }
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.skill-group h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.skill { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; padding: 3px 0; }
.skill-bar { display: inline-flex; gap: 2px; }
.skill-bar i { width: 9px; height: 10px; background: var(--panel-3); border: 1px solid var(--line-2); }
.skill-bar i.on { background: var(--hazard); border-color: var(--hazard-dk); }

/* ---------------------------------------------------------------- Tableaux */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { font-family: var(--f-head); font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
  padding: 12px 14px; text-align: left; background: rgba(0, 0, 0, .35); border-bottom: 2px solid var(--line-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover td { background: rgba(232, 178, 26, .03); }
.table tbody tr.is-dead td { opacity: .55; }
.table-compact td { padding: 7px 12px; font-size: .86rem; }
.table .score { font-family: var(--f-head); font-size: 1rem; color: var(--hazard); }
.empty-cell { text-align: center; color: var(--muted); padding: 30px !important; font-style: italic; }
.who { display: flex; align-items: center; gap: 10px; }
.who div { display: flex; flex-direction: column; }
.who strong { color: var(--white); font-weight: 600; }
.who strong a { color: var(--white); }
.who small { color: var(--muted); font-size: .78rem; }
.dead-tag { color: var(--blood-2); }

/* ---------------------------------------------------------------- Factions */
.faction-hero { --fc: #b3121b; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 26px; margin-bottom: 24px; border: 1px solid var(--line-2); border-left: 8px solid var(--fc);
  background: linear-gradient(90deg, color-mix(in srgb, var(--fc) 18%, transparent), transparent 60%), var(--panel-2); border-radius: var(--radius); }
.faction-hero > div:nth-child(2) { flex: 1; }
.faction-hero .page-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.faction-flag { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: rgba(0, 0, 0, .4); border: 2px solid var(--fc, var(--line-2)); border-radius: 4px; overflow: hidden; }
.faction-flag img { width: 100%; height: 100%; object-fit: cover; }
.faction-flag.small { width: 56px; height: 56px; font-size: 1.8rem; margin-bottom: 10px; }
.faction-score { text-align: center; }
.faction-score span { display: block; font-family: var(--f-display); font-size: 2rem; color: var(--hazard); }
.faction-score small { font-family: var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.faction-card { --fc: #b3121b; border-left: 5px solid var(--fc); }
.faction-card h3 { font-size: 1.1rem; margin-bottom: 4px; }

/* ---------------------------------------------------------------- Mémorial */
.memorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; margin-bottom: 26px; }
.tombstone {
  text-align: center; padding: 34px 16px 20px; border-radius: 90px 90px 6px 6px; position: relative;
  background: linear-gradient(180deg, #4a4d46, #2d302a 60%, #222520); border: 1px solid #5d6157; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 10px 0 #151712, var(--shadow);
}
.tombstone::after { content: ''; position: absolute; left: -8px; right: -8px; bottom: -14px; height: 12px; background: linear-gradient(180deg, #2a3a1e, #1a2512); border-radius: 50%; }
.rip { font-size: 1.6rem; color: #b8bcb0; display: block; }
.tombstone h3 { font-family: var(--f-type); font-weight: 400; font-size: 1.15rem; margin: 6px 0; color: #e8e6dc; }
.epitaph { color: #b8bcb0; font-size: .85rem; font-style: italic; }
.lived { margin: 10px 0 4px; color: #d6d2c4; }
.lived strong { color: var(--hazard); }
.tombstone .muted { color: #9a9d93; }

/* ---------------------------------------------------------------- Pagination */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 18px 0; padding: 0 12px 12px; }
.pager a { min-width: 34px; text-align: center; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text); font-family: var(--f-head); }
.pager a.active, .pager a:hover { background: var(--hazard); color: #111; border-color: var(--hazard); }
.pager span { margin-left: 8px; font-size: .85rem; }

/* ---------------------------------------------------------------- Articles / pages / wiki */
.article { max-width: 920px; margin: 0 auto; }
.article-head { margin-bottom: 20px; }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-2); margin-bottom: 20px; }
.updated { margin-top: 24px; font-size: .8rem; color: var(--muted) !important; text-align: right; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.doc-layout.no-toc { grid-template-columns: minmax(0, 1fr); max-width: 920px; margin: 0 auto; }
.doc-toc { position: sticky; top: 90px; }
.doc-toc h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.doc-toc ol { padding-left: 18px; }
.doc-toc li { margin-bottom: 6px; font-size: .9rem; }
.wiki-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; align-items: start; }
.wiki-side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.wiki-search { margin-bottom: 16px; }
.wiki-cats { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.wiki-cats > a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 3px; color: var(--text); font-size: .93rem; }
.wiki-cats > a small { margin-left: auto; color: var(--muted); font-size: .75rem; }
.wiki-cats > a:hover, .wiki-cats > a.active { background: rgba(232, 178, 26, .08); color: var(--hazard); }
.wiki-sub { display: flex; flex-direction: column; margin: 2px 0 6px 18px; border-left: 2px solid var(--line-2); }
.wiki-sub a { padding: 5px 10px; font-size: .86rem; color: var(--muted); }
.wiki-sub a.active, .wiki-sub a:hover { color: var(--white); }
.wiki-main .page-head { text-align: left; }
.wiki-main .hazard-line { margin-left: 0; }
.wiki-cat-card .big-icon { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.wiki-cat-card h3, .wiki-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.search-hit h3 { font-size: 1.05rem; margin: 4px 0; }
.search-hit small { color: var(--hazard); font-family: var(--f-type); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.toc-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.toc-inline a { font-size: .78rem; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--text); }
.toc-inline a:hover { border-color: var(--hazard); color: var(--hazard); }

/* Prose (Markdown rendu) */
.prose { font-size: 1.02rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose h2 { font-size: 1.45rem; margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); text-transform: uppercase; letter-spacing: .05em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.15rem; margin: 22px 0 10px; color: var(--hazard); scroll-margin-top: 90px; }
.prose h4 { font-size: 1rem; margin: 18px 0 8px; scroll-margin-top: 90px; }
.md-anchor { margin-left: 8px; opacity: 0; color: var(--muted); font-size: .8em; }
.prose h2:hover .md-anchor, .prose h3:hover .md-anchor { opacity: 1; }
.prose a { color: var(--hazard); text-decoration: underline; text-decoration-color: rgba(232, 178, 26, .4); }
.prose .wikilink { text-decoration-style: dotted; }
.md-list { padding-left: 24px; margin-bottom: 14px; }
.md-list li { margin-bottom: 4px; }
.md-list li::marker { color: var(--blood-2); }
.md-task { list-style: none; margin-left: -20px; }
.md-task::before { content: '☐ '; color: var(--muted); }
.md-task.done::before { content: '☑ '; color: var(--ok); }
.md-task.done { color: var(--muted); text-decoration: line-through; }
.prose blockquote { border-left: 4px solid var(--olive-2); padding: 8px 16px; margin: 0 0 16px; background: rgba(0, 0, 0, .25); font-style: italic; color: var(--paper); }
.md-code { background: #050605; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; overflow-x: auto; margin-bottom: 16px; color: var(--crt); font-size: .88rem; }
.md-code code { background: none; border: none; padding: 0; }
.md-table { margin-bottom: 16px; border: 1px solid var(--line-2); }
.md-figure { margin: 16px auto; text-align: center; }
.md-figure img { border-radius: var(--radius); border: 1px solid var(--line-2); margin: 0 auto; }
.md-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; font-family: var(--f-type); }
.md-figure.is-small { max-width: 280px; } .md-figure.is-medium { max-width: 560px; } .md-figure.is-wide { max-width: 100%; }
.md-figure.is-left { float: left; margin: 4px 20px 12px 0; max-width: 45%; } .md-figure.is-right { float: right; margin: 4px 0 12px 20px; max-width: 45%; }
.md-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; }
.md-gallery .md-figure { margin: 0; }
.md-inline-img { display: inline-block; height: 1.4em; vertical-align: middle; }
.danger-meter { color: var(--blood-2); letter-spacing: 1px; }
.danger-meter .off { color: var(--line-2); }
.callout { border: 1px solid var(--line-2); border-left: 5px solid var(--sky); border-radius: var(--radius); margin: 0 0 18px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.callout-title { font-family: var(--f-head); letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; padding: 8px 14px; background: rgba(0, 0, 0, .3); color: var(--white); }
.callout-body { padding: 12px 16px 2px; }
.callout-warning { border-left-color: var(--hazard); } .callout-warning .callout-title { color: var(--hazard); }
.callout-danger { border-left-color: var(--blood-2); } .callout-danger .callout-title { color: var(--blood-2); background: rgba(179, 18, 27, .15); }
.callout-success { border-left-color: var(--ok); } .callout-success .callout-title { color: var(--ok); }
.callout-info .callout-title { color: var(--sky); }
.callout-note { background: var(--paper); color: var(--paper-ink); border: none; transform: rotate(-.3deg); box-shadow: 4px 5px 0 rgba(0, 0, 0, .4); }
.callout-note .callout-title { background: transparent; color: var(--paper-ink); font-family: var(--f-type); text-transform: none; font-size: 1rem; letter-spacing: 0; }
.callout-note .callout-body, .callout-note .callout-body p { color: var(--paper-ink); }
.callout-radio { background: #050605; border-color: #1f3a1b; border-left-color: var(--crt); }
.callout-radio .callout-title { color: var(--crt); background: rgba(125, 255, 106, .06); text-shadow: 0 0 6px rgba(125, 255, 106, .5); }
.callout-radio .callout-body { font-family: var(--f-type); color: #b9f5ae; }
.callout-spoiler > summary { cursor: pointer; padding: 10px 14px; font-family: var(--f-head); letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--muted); }
.callout-spoiler[open] > summary { color: var(--white); border-bottom: 1px solid var(--line); }
.md-fiche { float: right; width: 300px; margin: 0 0 16px 22px; background: var(--panel-3); border: 1px solid var(--line-2); border-top: 4px solid var(--hazard); border-radius: var(--radius); overflow: hidden; }
.md-fiche .fiche-head { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; padding: 10px 14px; background: rgba(0, 0, 0, .35); color: var(--white); }
.md-fiche img { width: 100%; border-bottom: 1px solid var(--line-2); }
.md-fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 12px 14px; font-size: .88rem; }
.md-fiche dt { color: var(--muted); }
.md-fiche dd { color: var(--white); }
.prose::after { content: ''; display: block; clear: both; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.lightbox img { max-height: 85vh; border: 2px solid var(--line-2); }
.lightbox p { color: var(--muted); margin-top: 10px; font-family: var(--f-type); }

/* ---------------------------------------------------------------- Carte live */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.map-frame { border-top: 3px solid var(--hazard); }
.map-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: rgba(0, 0, 0, .5); border-bottom: 1px solid var(--line); }
.map-coord { font-family: var(--f-mono); font-size: .8rem; color: var(--crt); padding: 3px 10px; border: 1px solid #1f3a1b; background: #050605; border-radius: 3px; }
.map-online { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.map-online.st-online { color: var(--crt); } .map-online.st-offline { color: var(--blood-2); } .map-online.st-maintenance { color: var(--hazard); }
.map-viewport { overflow: auto; max-height: 78vh; background: #070806; }
.world-map {
  position: relative; width: 100%; aspect-ratio: 10 / 9; transform-origin: 0 0; transition: transform .25s;
  background:
    repeating-linear-gradient(0deg, rgba(122, 148, 87, .07) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(122, 148, 87, .07) 0 1px, transparent 1px 48px),
    radial-gradient(ellipse at 40% 50%, #1a2214, #0b0e09);
}
.world-map.has-bg { aspect-ratio: auto; background: #070806; }
.world-bg { width: 100%; height: auto; user-select: none; }
.world-map.is-offline .wzone, .world-map.is-offline .world-bg { filter: grayscale(.8) brightness(.55); }
.wzone {
  position: absolute; border: 1px solid; border-radius: 3px; display: flex; align-items: flex-start; justify-content: flex-start; padding: 4px 6px;
  color: #fff; transition: var(--t); cursor: pointer; overflow: hidden;
}
.wzone:hover { z-index: 5; box-shadow: 0 0 22px currentColor; color: #fff; }
.wzone-label { font-family: var(--f-head); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 3px #000; line-height: 1.2; }
.wzone-count { position: absolute; right: 4px; bottom: 4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--crt); color: #062; font-weight: 700; font-size: .75rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px var(--crt); }
.theme-ville      { background: rgba(122, 148, 87, .22); border-color: rgba(122, 148, 87, .7); }
.theme-rural      { background: rgba(75, 93, 58, .18); border-color: rgba(75, 93, 58, .6); }
.theme-militaire  { background: rgba(232, 178, 26, .15); border-color: rgba(232, 178, 26, .7); }
.theme-industriel { background: rgba(139, 58, 26, .22); border-color: rgba(139, 58, 26, .75); }
.theme-safezone   { background: rgba(63, 167, 214, .18); border-color: rgba(63, 167, 214, .7); }
.theme-danger     { background: rgba(179, 18, 27, .25); border-color: rgba(224, 51, 61, .8); animation: danger-pulse 3s infinite; }
@keyframes danger-pulse { 50% { background: rgba(179, 18, 27, .38); } }
.pdots { position: absolute; inset: 0; pointer-events: none; }
.pdot { --pc: var(--crt); position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 10px var(--pc); border: 1px solid #000; pointer-events: auto; animation: pulse 2s infinite; }
.pdot.static { position: relative; display: inline-block; margin: 0 6px 0 0; vertical-align: middle; }
.map-offline { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 10; }
.map-offline span { font-family: var(--f-type); background: rgba(0, 0, 0, .8); color: var(--blood-2); border: 1px solid var(--blood); padding: 10px 18px; }
.map-side .card { padding: 16px; }
.online-list { max-height: 340px; overflow-y: auto; }
.online-item { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.online-item strong { color: var(--white); flex: 1; font-weight: 600; }
.online-item small { color: var(--muted); font-size: .76rem; }
.event-item { display: flex; gap: 10px; padding: 8px; border-left: 3px solid var(--olive-2); margin-bottom: 8px; background: rgba(0, 0, 0, .25); font-size: .86rem; }
.event-item.ev-mort { border-left-color: var(--blood-2); }
.event-item.ev-helico, .event-item.ev-horde { border-left-color: var(--hazard); }
.event-time { font-family: var(--f-mono); color: var(--muted); font-size: .76rem; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: .86rem; }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend .swatch { width: 20px; height: 14px; }
.map-tip { position: fixed; z-index: 2000; pointer-events: none; background: rgba(5, 6, 5, .95); border: 1px solid var(--hazard); color: var(--white); padding: 7px 11px; font-size: .82rem; max-width: 320px; border-radius: 3px; }

/* ---------------------------------------------------------------- Serveurs */
.server-detail { border-top: 4px solid var(--line-2); }
.server-detail.st-online { border-top-color: var(--crt); }
.server-detail.st-offline { border-top-color: var(--blood); }
.server-detail h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; }
.mod-list { list-style: none; max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.mod-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.mod-list li span { display: flex; flex-direction: column; }
.mod-list small { color: var(--muted); font-family: var(--f-mono); font-size: .75rem; }
.steps { margin-top: 18px; }
.steps ol { padding-left: 22px; }
.steps li { margin-bottom: 6px; }
.steps-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.steps-strip div { background: var(--panel); border: 1px solid var(--line); padding: 12px; border-radius: var(--radius); font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.steps-strip span { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--hazard); color: #111; font-family: var(--f-display); border-radius: 50%; }
.quote-box { background: rgba(0, 0, 0, .3); border-left: 3px solid var(--olive-2); padding: 12px 16px; font-size: .95rem; margin-bottom: 12px; white-space: normal; }

/* Fils de discussion */
.thread { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: rgba(0, 0, 0, .25); }
.msg-head { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; margin-bottom: 6px; color: var(--muted); }
.msg-head strong { color: var(--white); }
.msg-body { font-size: .94rem; }
.msg-staff { border-left: 3px solid var(--hazard); }
.msg-joueur { border-left: 3px solid var(--sky); }
.msg-systeme { border-style: dashed; opacity: .7; font-size: .85rem; }
.msg-internal { background: rgba(232, 178, 26, .05); }

/* ---------------------------------------------------------------- Pages d'erreur */
.error-page { text-align: center; padding-top: 100px; padding-bottom: 100px; }
.error-code { position: relative; display: inline-block; font-family: var(--f-display); font-size: clamp(5rem, 18vw, 11rem); line-height: 1; color: var(--blood-2); text-shadow: 6px 6px 0 #000; animation: flicker 3s infinite; }
.error-page p { margin: 14px auto; max-width: 560px; }

/* ---------------------------------------------------------------- Pied de page */
.site-footer { margin-top: 40px; background: var(--bg-2); border-top: 1px solid var(--line); }
.hazard-strip { height: 10px; background: var(--hazard-stripes); border-bottom: 1px solid #111; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 40px 24px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; text-transform: uppercase; margin-bottom: 10px; color: var(--hazard); }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 320px; margin-bottom: 6px; }
.footer-col h4 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col a { color: var(--text); font-size: .9rem; }
.footer-col a:hover { color: var(--hazard); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 16px 24px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: .8rem; color: var(--muted); }
.footer-disclaimer { max-width: 560px; text-align: right; }

/* ---------------------------------------------------------------- Accessibilité */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 8px; font-size: .74rem; }
  .map-layout { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; }
  .nav-links { display: none; flex-direction: column; align-items: stretch; background: rgba(11, 13, 10, .98); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; width: 100%; }
  .nav-links.open { display: flex; }
  .nav-status { display: none; }
  .grid-2, .grid-3, .auth-grid, .wiki-layout, .doc-layout { grid-template-columns: 1fr; }
  .wiki-side, .doc-toc { position: static; max-height: none; }
  .field-row-3, .field-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
  .steps-strip { grid-template-columns: 1fr; }
  .md-fiche, .md-figure.is-left, .md-figure.is-right { float: none; width: 100%; max-width: 100%; margin: 0 0 16px; }
  .stamp { display: none; }
}
@media (max-width: 560px) {
  .container, .container-wide { padding: 0 14px; }
  .field-row, .field-row-3, .field-row-4 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat { padding: 12px 18px; }
  .dossier { padding: 22px; }
  .hero-title { font-size: 2.6rem; }
}
