/* =========================================================
   WEAV DYSTOPIA™ — feuille de style
   Parodie humoristique — aucune ressemblance avec un vrai
   incident de sécurité n'est fortuite. Tout est faux.
   ========================================================= */

:root {
  --bg: #06060a;
  --bg-alt: #0b0b12;
  --panel: #0e0e17;
  --border: #232336;
  --red: #ff1744;
  --red-dim: #7a0e22;
  --green: #00ff6a;
  --green-dim: #0a5c2c;
  --purple: #b026ff;
  --purple-dim: #4a1173;
  --amber: #ffb000;
  --fg: #d9dbe6;
  --fg-dim: #8a8ea3;
  --fg-bright: #f4f5fb;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
  --font-display: 'Orbitron', 'Share Tech Mono', sans-serif;
  --radius: 6px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img, canvas { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg-bright);
  letter-spacing: 0.5px;
  margin: 0 0 0.6em;
}

a { color: var(--green); }
p { color: var(--fg-dim); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.section-tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-dim);
  background: rgba(255, 23, 68, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.section-lede {
  max-width: 640px;
  color: var(--fg-dim);
  font-size: 1.02rem;
}

/* ---------- Satire disclaimer chip ---------- */
.satire-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--fg-dim);
  border-left: 2px solid var(--purple);
  padding: 8px 12px;
  background: rgba(176, 38, 255, 0.06);
  border-radius: 0 4px 4px 0;
  margin-top: 28px;
  max-width: 640px;
}
.satire-note strong { color: var(--purple); }

/* ---------- Scanlines / CRT overlay ---------- */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.035) 0px,
    rgba(255,255,255,0.035) 1px,
    transparent 2px,
    transparent 3px
  );
}
.crt-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8999;
  box-shadow: inset 0 0 180px rgba(0,0,0,0.75);
}
.crt-flicker {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8998;
  background: var(--fg-bright);
  opacity: 0;
  animation: flicker 7s infinite;
}
@keyframes flicker {
  0%, 96%, 100% { opacity: 0; }
  97% { opacity: 0.02; }
  98% { opacity: 0; }
  98.5% { opacity: 0.015; }
}

#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}

/* ---------- Glitch text ---------- */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}
.glitch::before {
  color: var(--red);
  transform: translate(-2px, -1px);
  animation: glitch-a 3.4s infinite linear alternate-reverse;
  opacity: 0.7;
}
.glitch::after {
  color: var(--purple);
  transform: translate(2px, 1px);
  animation: glitch-b 2.6s infinite linear alternate-reverse;
  opacity: 0.6;
}
@keyframes glitch-a {
  0%   { clip-path: inset(2% 0 85% 0); }
  20%  { clip-path: inset(60% 0 5% 0); }
  40%  { clip-path: inset(30% 0 55% 0); }
  60%  { clip-path: inset(80% 0 2% 0); }
  80%  { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(45% 0 40% 0); }
}
@keyframes glitch-b {
  0%   { clip-path: inset(70% 0 10% 0); }
  25%  { clip-path: inset(15% 0 65% 0); }
  50%  { clip-path: inset(50% 0 25% 0); }
  75%  { clip-path: inset(5% 0 85% 0); }
  100% { clip-path: inset(35% 0 45% 0); }
}

.shake { animation: shake 0.5s infinite; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -3px); }
  80% { transform: translate(2px, 3px); }
}

.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-danger {
  background: linear-gradient(135deg, var(--red), #8f0022);
  color: #fff;
  box-shadow: 0 0 0 rgba(255,23,68,0.5);
}
.btn-danger:hover { box-shadow: 0 0 24px rgba(255,23,68,0.55); }

.btn-safe {
  background: linear-gradient(135deg, var(--green), #0a7a3d);
  color: #04150a;
  box-shadow: 0 0 0 rgba(0,255,106,0.4);
}
.btn-safe:hover { box-shadow: 0 0 24px rgba(0,255,106,0.5); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--fg-bright); }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  backdrop-filter: blur(8px);
  background: rgba(6,6,10,0.82);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg-bright);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.brand .dot.alert { background: var(--red); box-shadow: 0 0 10px var(--red); }
.brand small { color: var(--red); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--green); }
.nav-toggle { display: none; }

.ticker {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
}
.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 32s linear infinite;
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.ticker-track span { margin-right: 48px; color: var(--fg-dim); }
.ticker-track span b { color: var(--red); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-title .tm { font-size: 0.45em; vertical-align: super; color: var(--red); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--fg-dim);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.destroy-log {
  margin: 32px auto 0;
  max-width: 520px;
  text-align: left;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.82rem;
  min-height: 40px;
  display: none;
}
.destroy-log.active { display: block; }
.destroy-log .line { color: var(--fg-dim); margin-bottom: 4px; }
.destroy-log .line.ok { color: var(--red); }
.destroy-log .btc { color: var(--amber); margin-top: 8px; font-weight: bold; }

.hero-reveal {
  margin-top: 28px;
  display: none;
}
.hero-reveal.active { display: block; animation: fadein 0.6s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 40px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--purple); transform: translateY(-3px); }
.card .icon { font-size: 1.6rem; margin-bottom: 12px; display: inline-block; }
.card h3 { font-size: 1rem; margin-bottom: 10px; }
.card p { font-size: 0.9rem; margin: 0; }
.card .tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.62rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--red); border: 1px solid var(--red-dim); border-radius: 999px;
  padding: 2px 8px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial p { color: var(--fg); font-style: italic; }
.testimonial .who { margin-top: 14px; color: var(--fg-dim); font-size: 0.8rem; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  background: var(--panel);
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--red);
  display: block;
}
.stat .label { color: var(--fg-dim); font-size: 0.82rem; margin-top: 6px; }

/* ---------- Quiz ---------- */
.quiz-box {
  max-width: 560px;
  margin-top: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.quiz-q { font-family: var(--font-display); color: var(--fg-bright); margin-bottom: 18px; }
.quiz-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px;
  margin-bottom: 10px; cursor: pointer; background: var(--bg-alt);
  transition: border-color 0.15s ease;
}
.quiz-opt:hover { border-color: var(--green); }
.quiz-opt .letter {
  width: 24px; height: 24px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: var(--green);
}
.quiz-result {
  display: none;
  margin-top: 18px;
  border-left: 3px solid var(--red);
  padding: 14px 16px;
  background: rgba(255,23,68,0.08);
  border-radius: 0 4px 4px 0;
}
.quiz-result.active { display: block; animation: fadein 0.4s ease; }
.quiz-result h4 { color: var(--red); margin-bottom: 6px; }

/* ---------- Disaster generator ---------- */
.disaster-panel {
  margin-top: 32px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-height: 320px;
  overflow-y: auto;
}
.disaster-panel .empty { color: var(--fg-dim); font-size: 0.85rem; }
.disaster-entry {
  font-size: 0.83rem;
  border-bottom: 1px dashed var(--border);
  padding: 8px 0;
  color: var(--fg);
}
.disaster-entry:last-child { border-bottom: none; }
.disaster-entry .ts { color: var(--fg-dim); margin-right: 10px; }
.disaster-entry .sev-critique { color: var(--red); font-weight: bold; }
.disaster-entry .sev-eleve { color: var(--amber); font-weight: bold; }
.disaster-entry .sev-modere { color: var(--green); font-weight: bold; }

/* ---------- Server room ---------- */
.rack-wrap {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0,260px) 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 720px) { .rack-wrap { grid-template-columns: 1fr; } }

.rack {
  position: relative;
  background: linear-gradient(180deg, #111119, #0a0a12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}
.rack-unit {
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px;
  background: #0d0d16;
}
.rack-unit .led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.rack-unit .led.red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.rack-unit .bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.rack-unit .bar i { display: block; height: 100%; width: 60%; background: var(--purple); }
.rack-mouse { position: absolute; bottom: 6px; left: -30px; font-size: 1.1rem; transition: none; }
.rack-mouse.run { animation: mouse-run 1.8s linear; }
@keyframes mouse-run { from { left: -30px; } to { left: 100%; } }
.rack-status {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--fg-dim);
  min-height: 20px;
}
.rack-status b { color: var(--red); }

.rack-side { font-size: 0.9rem; }
.rack-side .gauge { margin-bottom: 18px; }
.rack-side .gauge label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--fg-dim); margin-bottom: 6px; }
.rack-side .gauge-bar { height: 8px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.rack-side .gauge-bar i { display: block; height: 100%; background: var(--green); width: 24%; transition: width 0.5s ease, background 0.5s ease; }

/* ---------- Fake AI chat ---------- */
.chat-box {
  margin-top: 32px;
  max-width: 620px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.chat-head {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--fg-dim);
}
.chat-log { padding: 16px; height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80%; padding: 10px 12px; border-radius: 8px; font-size: 0.86rem; }
.msg.user { align-self: flex-end; background: var(--purple-dim); color: #fff; }
.msg.bot { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--border); color: var(--fg); }
.chat-input-row { display: flex; border-top: 1px solid var(--border); }
.chat-input-row input {
  flex: 1; background: var(--bg-alt); border: none; color: var(--fg);
  padding: 12px 14px; font-family: var(--font-mono); font-size: 0.88rem;
}
.chat-input-row input:focus { outline: none; }
.chat-input-row button {
  border: none; background: var(--green); color: #04150a; padding: 0 18px; cursor: pointer;
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 1px;
}

/* ---------- Final section ---------- */
.finale {
  background: #000;
  text-align: center;
  padding: 120px 0;
}
.finale p { color: var(--fg-dim); max-width: 620px; margin: 0 auto 14px; font-size: 1.02rem; }
.finale .real { color: var(--fg-bright); }
.finale .cta { margin-top: 40px; }

/* ---------- Footer ---------- */
footer { padding: 40px 0 60px; text-align: center; }
footer .satire-note { margin: 0 auto 20px; text-align: left; }
footer small { color: var(--fg-dim); display: block; margin-top: 8px; }

/* ---------- Toasts ---------- */
#toast-stack {
  position: fixed; bottom: 20px; right: 20px; z-index: 7000;
  display: flex; flex-direction: column; gap: 10px; max-width: 320px;
}
.toast {
  background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--red);
  border-radius: 4px; padding: 12px 14px; font-size: 0.8rem; color: var(--fg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: toast-in 0.3s ease;
}
.toast.safe { border-left-color: var(--green); }
.toast b { display: block; color: var(--red); margin-bottom: 3px; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 1px; }
.toast.safe b { color: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px);} to { opacity: 1; transform: translateX(0);} }

/* ---------- Attack counter widget ---------- */
#attack-counter {
  position: fixed; top: 90px; right: 16px; z-index: 400;
  background: rgba(10,10,16,0.85); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; font-size: 0.72rem; color: var(--fg-dim); backdrop-filter: blur(6px);
  display: none;
}
#attack-counter.show { display: block; }
#attack-counter .n { color: var(--red); font-family: var(--font-display); font-size: 1rem; }

/* ---------- Full-screen overlays: 404 flash / BSOD / ransomware / terminal ---------- */
.overlay-flash {
  position: fixed; inset: 0; z-index: 9500; background: #000; color: var(--green);
  display: none; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-mono); flex-direction: column; padding: 20px;
}
.overlay-flash.show { display: flex; }

.bsod {
  position: fixed; inset: 0; z-index: 9600; background: #0000aa; color: #fff;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.bsod.show { display: flex; }
.bsod-inner { max-width: 640px; font-family: var(--font-mono); line-height: 1.7; }
.bsod-inner h2 { color: #fff; font-family: var(--font-mono); font-size: 1.4rem; }

.bsod-card {
  position: fixed; width: 160px; padding: 10px; background: #0000aa; color: #fff;
  border: 2px solid #fff; font-size: 0.6rem; font-family: var(--font-mono); z-index: 9990;
  top: -200px;
}
.bsod-card.fall { animation: bsod-fall linear forwards; }
@keyframes bsod-fall {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(110vh) rotate(25deg); }
}

.ransom-overlay {
  position: fixed; inset: 0; z-index: 9700; background: rgba(0,0,0,0.96);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.ransom-overlay.show { display: flex; }
.ransom-box {
  max-width: 560px; width: 100%; border: 2px solid var(--red); border-radius: 6px;
  background: #050505; padding: 32px; text-align: center;
  box-shadow: 0 0 60px rgba(255,23,68,0.35);
}
.ransom-box pre.skull { color: var(--red); font-size: 0.6rem; line-height: 1.1; margin-bottom: 10px; }
.ransom-box h2 { color: var(--red); font-family: var(--font-mono); letter-spacing: 1px; }
.ransom-box .btc-addr { color: var(--amber); font-size: 0.78rem; word-break: break-all; margin: 14px 0; }
.ransom-box .countdown { font-size: 1.6rem; color: var(--red); font-family: var(--font-display); margin: 10px 0 20px; }
.ransom-note { margin-top: 20px; font-size: 0.75rem; color: var(--fg-dim); border-top: 1px dashed var(--border); padding-top: 14px; }

.terminal-modal {
  position: fixed; inset: 0; z-index: 9800; background: rgba(0,0,0,0.85);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.terminal-modal.show { display: flex; }
.terminal-win {
  width: 100%; max-width: 640px; background: #000; border: 1px solid var(--green);
  border-radius: 6px; box-shadow: 0 0 40px rgba(0,255,106,0.25);
  font-family: var(--font-mono); font-size: 0.85rem;
}
.terminal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--fg-dim); font-size: 0.75rem;
}
.terminal-bar button { background: none; border: none; color: var(--fg-dim); cursor: pointer; font-size: 0.9rem; }
.terminal-body { padding: 16px; height: 320px; overflow-y: auto; color: var(--green); }
.terminal-body .line { margin-bottom: 4px; white-space: pre-wrap; word-break: break-word; }
.terminal-input-row { display: flex; align-items: center; padding: 0 16px 16px; color: var(--green); }
.terminal-input-row span { margin-right: 6px; }
.terminal-input-row input {
  flex: 1; background: transparent; border: none; color: var(--green);
  font-family: var(--font-mono); font-size: 0.85rem;
}
.terminal-input-row input:focus { outline: none; }

/* ---------- Apocalypse mode ---------- */
body.apocalypse .crt-vignette { box-shadow: inset 0 0 220px rgba(255,0,60,0.55); }
body.apocalypse #matrix-canvas { opacity: 0.4; }
.apoc-banner {
  position: fixed; inset: 0; z-index: 9400; pointer-events: none;
  display: none; align-items: center; justify-content: center;
  background: rgba(255,0,60,0.08);
}
.apoc-banner.show { display: flex; }
.apoc-banner pre {
  color: var(--red); font-size: clamp(0.5rem, 2.2vw, 1rem); text-align: center;
  text-shadow: 0 0 12px var(--red);
}

/* ---------- ANSSI-style table (cybersecurite.html) ---------- */
.anssi-table {
  width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 0.9rem;
}
.anssi-table th, .anssi-table td {
  border: 1px solid var(--border); padding: 14px 16px; text-align: left;
}
.anssi-table th {
  background: var(--panel); color: var(--fg-bright); font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase;
}
.anssi-table td.bad { color: var(--red); font-weight: bold; }
.anssi-table td.warn { color: var(--amber); font-weight: bold; }
.anssi-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.gauge-big { margin-top: 40px; }
.gauge-big label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--fg-dim); margin-bottom: 8px; }
.gauge-big .track { height: 22px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--bg-alt); }
.gauge-big .fill { height: 100%; width: 3%; background: linear-gradient(90deg, var(--red), #8f0022); position: relative; }
.gauge-big .fill span { position: absolute; right: 8px; top: 0; font-size: 0.7rem; line-height: 22px; color: #fff; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.hidden { display: none !important; }
.trigger-marker { position: relative; height: 1px; }

@media (max-width: 760px) {
  .nav-links { position: fixed; top: 60px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--border); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; background: none; border: 1px solid var(--border); color: var(--fg); border-radius: 4px; padding: 8px 10px; cursor: pointer; }
  #attack-counter { top: unset; bottom: 16px; right: 16px; }
}
