/* =========================================================
   NONV — feuille de style
   Parodie humoristique et pédagogique — aucune ressemblance
   avec un vrai incident de sécurité n'est fortuite. Tout est faux.
   ========================================================= */

:root {
  --bg: #0b0d11;
  --bg-alt: #10131a;
  --panel: #151922;
  --border: #262b36;
  --accent: #c9483c;
  --accent-dim: #5c2620;
  --safe: #2f9e6e;
  --safe-dim: #1d5c41;
  --amber: #c9903c;
  --note: #6b7690;
  --note-dim: #333a48;
  --fg: #d6d9e0;
  --fg-dim: #8a90a0;
  --fg-bright: #f3f4f7;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --radius: 8px;
  --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-body);
  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);
  font-weight: 600;
  color: var(--fg-bright);
  letter-spacing: 0.2px;
  margin: 0 0 0.6em;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.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-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: rgba(201, 72, 60, 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(--note);
  padding: 8px 12px;
  background: rgba(107, 118, 144, 0.08);
  border-radius: 0 4px 4px 0;
  margin-top: 28px;
  max-width: 640px;
}
.satire-note strong { color: var(--note); }

/* ---------- Real, sourced stats ---------- */
.real-stats {
  margin-top: 28px;
  max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--safe);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
}
.real-stats h3 {
  font-size: 0.92rem;
  color: var(--fg-bright);
  margin-bottom: 14px;
}
.real-stats ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.real-stats li {
  font-size: 0.86rem;
  color: var(--fg-dim);
}
.real-stats li strong {
  color: var(--safe);
  font-family: var(--font-display);
}
.real-stats-source {
  font-size: 0.74rem;
  color: var(--fg-dim);
  margin: 0;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.real-stats-source a { color: var(--fg-dim); text-decoration: underline; }
.real-stats-source a:hover { color: var(--safe); }

.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-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  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(--accent), #7a2e24);
  color: #fff;
  box-shadow: 0 0 0 rgba(201,72,60,0.4);
}
.btn-danger:hover { box-shadow: 0 6px 20px rgba(201,72,60,0.35); }

.btn-safe {
  background: linear-gradient(135deg, var(--safe), #1d6b4c);
  color: #04150a;
  box-shadow: 0 0 0 rgba(47,158,110,0.35);
}
.btn-safe:hover { box-shadow: 0 6px 20px rgba(47,158,110,0.35); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--fg-dim); 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(11,13,17,0.86);
  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: 600;
  font-size: 1.1rem;
  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(--safe);
  box-shadow: 0 0 8px var(--safe);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.brand .dot.alert { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.brand small { color: var(--accent); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 1.5px; }

.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--fg-bright); }
.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;
  font-family: var(--font-mono);
  color: var(--fg-dim);
  font-size: 0.74rem;
  letter-spacing: 0.3px;
}
.ticker-track span { margin-right: 48px; }
.ticker-track span b { color: var(--accent); }
@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.5;
  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(--accent); }
.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; }

.pun-line {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--fg-bright);
  max-width: 620px;
  margin: 0 auto 28px;
  padding: 10px 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}
.pun-line strong { color: var(--safe); }
.pun-line a { color: var(--safe); }

.destroy-log {
  margin: 32px auto 0;
  max-width: 520px;
  text-align: left;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-mono);
  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(--accent); }
.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(--fg-dim); 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(--accent); border: 1px solid var(--accent-dim); border-radius: 999px;
  padding: 2px 8px;
}

/* ---------- Mistake list (erreurs à ne jamais commettre) ---------- */
.mistake-list {
  counter-reset: mistake;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.mistake-list li {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px 18px 64px;
}
.mistake-list li::before {
  counter-increment: mistake;
  content: counter(mistake);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  background: rgba(201, 72, 60, 0.08);
}
.mistake-list h3 { font-size: 0.98rem; margin-bottom: 6px; }
.mistake-list p { margin: 0; font-size: 0.88rem; }

/* ---------- 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-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--accent);
  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); font-weight: 600; 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(--safe); }
.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(--safe);
}
.quiz-result {
  display: none;
  margin-top: 18px;
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  background: rgba(201,72,60,0.08);
  border-radius: 0 4px 4px 0;
}
.quiz-result.active { display: block; animation: fadein 0.4s ease; }
.quiz-result h4 { color: var(--accent); margin-bottom: 6px; }

/* ---------- Disaster generator ---------- */
.disaster-panel {
  margin-top: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-height: 320px;
  overflow-y: auto;
  font-family: var(--font-mono);
}
.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(--accent); font-weight: bold; }
.disaster-entry .sev-eleve { color: var(--amber); font-weight: bold; }
.disaster-entry .sev-modere { color: var(--safe); 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, #171b23, #10131a);
  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: var(--bg-alt);
}
.rack-unit .led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--safe); box-shadow: 0 0 6px var(--safe);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.rack-unit .led.red { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.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(--note); }
.rack-status {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--fg-dim);
  min-height: 20px;
}
.rack-status b { color: var(--accent); }

.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(--safe); 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(--note-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-body); font-size: 0.9rem;
}
.chat-input-row input:focus { outline: none; }
.chat-input-row button {
  border: none; background: var(--safe); color: #04150a; padding: 0 18px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
}

/* ---------- Final section ---------- */
.finale {
  background: var(--bg-alt);
  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(--accent);
  border-radius: 4px; padding: 12px 14px; font-size: 0.8rem; color: var(--fg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  animation: toast-in 0.3s ease;
}
.toast.safe { border-left-color: var(--safe); }
.toast b { display: block; color: var(--accent); margin-bottom: 3px; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.5px; }
.toast.safe b { color: var(--safe); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px);} to { opacity: 1; transform: translateX(0);} }

/* ---------- 404 flash ---------- */
.overlay-flash {
  position: fixed; inset: 0; z-index: 9500; background: var(--bg); color: var(--fg-bright);
  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; }

/* ---------- Incident cards (BSOD / rançongiciel simulés, inline) ---------- */
.incident-card {
  display: none;
  max-width: 560px;
  margin: 32px auto 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 28px;
  position: relative;
  text-align: left;
}
.incident-card.show { display: block; animation: fadein 0.4s ease; }
.incident-card--alert { border-left-color: var(--amber); }
.incident-card__code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.incident-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.incident-card p { font-size: 0.88rem; margin: 0 0 8px; }
.incident-card__meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--fg-dim); opacity: 0.85; }
.incident-card__countdown {
  font-family: var(--font-mono); font-size: 1.1rem; color: var(--amber);
  margin: 14px 0 4px;
}
.incident-card .btn { margin-top: 14px; }

/* ---------- 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-weight: 600; font-size: 0.78rem; letter-spacing: 0.5px; text-transform: uppercase;
}
.anssi-table td.bad { color: var(--accent); 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(--accent), #7a2e24); position: relative; }
.gauge-big .fill span { position: absolute; right: 8px; top: 0; font-size: 0.7rem; line-height: 22px; color: #fff; }

/* ---------- Risk widget (persistant, mène vers weav.fr) ---------- */
.risk-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 6500;
  width: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  animation: fadein 0.4s ease;
}
.risk-widget__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--fg-dim);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 4px;
}
.risk-widget__close:hover { color: var(--fg-bright); }
.risk-widget__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.7rem;
  color: var(--fg-dim);
  margin-bottom: 8px;
  padding-right: 14px;
}
.risk-widget__label b { color: var(--fg-bright); font-family: var(--font-display); font-size: 0.82rem; }
.risk-widget__bar { height: 8px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.risk-widget__bar i { display: block; height: 100%; background: var(--safe); width: 18%; transition: width 0.6s ease, background 0.6s ease; }
.risk-widget .btn { width: 100%; justify-content: center; padding: 9px 10px; font-size: 0.72rem; }

@media (max-width: 480px) {
  .risk-widget { width: 168px; padding: 12px 12px 10px; left: 10px; bottom: 10px; }
  .risk-widget .btn { font-size: 0.66rem; padding: 8px; gap: 6px; }
}

/* ---------- Certificat de non-conformité ---------- */
.cert-box { margin-top: 32px; max-width: 640px; }
.cert-box input[type="text"] {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px 14px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.cert-box input[type="text"]:focus { outline: none; border-color: var(--safe); }
.cert-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cert-canvas-wrap { margin-top: 24px; display: none; }
.cert-canvas-wrap.active { display: block; animation: fadein 0.4s ease; }
.cert-canvas-wrap canvas { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #0b0d11; }
.cert-share-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Bot qui casse le personnage (4e mur) ---------- */
.msg.bot.serious {
  border-color: var(--safe);
  background: rgba(47,158,110,0.1);
  color: var(--fg-bright);
}
.msg.bot.serious a { color: var(--safe); font-weight: 600; }

/* ---------- 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; align-items: flex-start; 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; }
}
