/* ==========================================================================
   SSIAPEUTLEFAIRE — Feuille de style principale
   Thème : sécurité incendie (rouge alerte / anthracite / ambre)
   ========================================================================== */

:root {
  --red: #c81e1e;
  --red-dark: #9c1414;
  --red-light: #ff4d4d;
  --amber: #f5a524;
  --amber-dark: #c47f0f;
  --green: #1e9c5a;
  --blue: #2f6fed;
  --blue-dark: #1f4fb0;
  --ink: #14181f;
  --ink-soft: #232935;
  --panel: #1b212b;
  --panel-light: #2a3140;
  --paper: #f6f5f2;
  --paper-dim: #e9e7e1;
  --text: #1b1e24;
  --text-soft: #545b68;
  --text-inverse: #f4f4f2;
  --border: #d8d5cc;
  --safety-yellow: #ffce00;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(20, 24, 31, 0.12);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

/* ---------- Bandeau danger décoratif ---------- */
.hazard-strip {
  height: 8px;
  background: repeating-linear-gradient(
    135deg,
    var(--amber) 0px, var(--amber) 18px,
    var(--ink) 18px, var(--ink) 36px
  );
}

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--ink);
  color: var(--text-inverse);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-inverse);
}
.brand:hover { text-decoration: none; }
.brand .flame { font-size: 1.5rem; filter: drop-shadow(0 0 6px rgba(245,165,36,.6)); flex: none; }
.brand .pictogram { flex: none; }
.brand .sub { font-size: .6rem; font-weight: 600; letter-spacing: 2px; color: var(--amber); text-transform: uppercase; display:block; }

nav.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--text-inverse);
  opacity: .82;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 1px;
  text-transform: uppercase;
}
nav.main-nav a:hover { opacity: 1; background: rgba(255,255,255,.08); text-decoration: none; }
nav.main-nav a.active { opacity: 1; background: var(--red); color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 8px 16px 16px;
    border-bottom: 3px solid var(--red);
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 6px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
  }
}

/* ---------- Layout ---------- */
main { flex: 1; }
.container { max-width: 1180px; margin: 0 auto; padding: 36px 20px 60px; }
.container.narrow { max-width: 840px; }

section + section { margin-top: 40px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); text-transform: uppercase; letter-spacing: .5px; }
h2 {
  font-size: 1.6rem; text-transform: uppercase; letter-spacing: .5px;
  border-left: 8px solid var(--red); padding-left: 14px; margin: 0 0 18px;
}
h3 { font-size: 1.1rem; margin: 0 0 8px; font-family: var(--font-body); font-weight: 800; text-transform: none; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--safety-yellow);
  padding: 4px 12px 3px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.eyebrow::before { content: "▲"; font-size: .6rem; }
.lede { color: var(--text-soft); font-size: 1.05rem; max-width: 62ch; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 55%, var(--panel-light) 100%);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(245,165,36,.20), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(200,30,30,.25), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 48px;
}
.hero h1 { color: #fff; margin: 0 0 14px; }
.hero .lede { color: #c9cdd6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card.link-card { transition: transform .15s ease, box-shadow .15s ease; }
.card.link-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,24,31,.18); text-decoration: none; }
.card .icon { font-size: 1.8rem; }
.card h3 { margin: 0; color: var(--ink); }
.card p { margin: 0; color: var(--text-soft); font-size: .93rem; }
.card .tag {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--paper-dim);
  color: var(--text-soft);
}
.card .tag.ssiap1 { background: #e2f0ff; color: #1a5faa; }
.card .tag.ssiap2 { background: #fdeccb; color: var(--amber-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 7px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: var(--paper-dim); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 12px; font-size: .82rem; }

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius);
  padding: 16px 18px;
  border-left: 5px solid var(--amber);
  background: #fff7e6;
  font-size: .92rem;
}
.callout.info { border-color: #3a7bd5; background: #eaf2fd; }
.callout.warn { border-color: var(--red); background: #fdeaea; }

/* ---------- Filters / pills ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  color: var(--text-soft);
}
.pill.active { border-color: var(--red); color: var(--red-dark); background: #fdeaea; }

/* ==========================================================================
   QUIZBOX — style examen officiel
   ========================================================================== */
.quizbox {
  background: var(--ink);
  color: var(--text-inverse);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.quizbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--panel);
  border-bottom: 1px solid rgba(255,255,255,.08);
  gap: 12px;
  flex-wrap: wrap;
}
.qb-progress-wrap { flex: 1; min-width: 160px; }
.qb-progress-label { font-size: .72rem; color: #9aa2b1; margin-bottom: 5px; letter-spacing: .5px; text-transform: uppercase; }
.qb-progress-bar { height: 8px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.qb-progress-fill { height: 100%; background: linear-gradient(90deg, var(--amber), var(--red)); transition: width .3s ease; }
.qb-timer {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--panel-light);
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,.1);
}
.qb-timer.low { color: var(--red-light); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.qb-body { padding: 30px 28px 26px; }
.qb-meta { display:flex; gap:8px; margin-bottom: 14px; flex-wrap: wrap; }
.qb-meta .badge {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  padding: 4px 10px; border-radius: 5px; background: var(--panel-light); color: #cfd4dd;
}
.qb-question { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; color: #fff; }
.qb-hint { font-size: .82rem; color: var(--amber); margin-bottom: 18px; }

.qb-choices { display: flex; flex-direction: column; gap: 10px; }
.qb-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--panel);
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.qb-choice:hover { border-color: rgba(245,165,36,.5); }
.qb-choice .letter {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--panel-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: #cfd4dd;
}
.qb-choice.selected { border-color: var(--amber); background: rgba(245,165,36,.12); }
.qb-choice.selected .letter { background: var(--amber); color: var(--ink); }
.qb-choice.correct { border-color: var(--green); background: rgba(30,156,90,.16); }
.qb-choice.correct .letter { background: var(--green); color: #fff; }
.qb-choice.incorrect { border-color: var(--red); background: rgba(200,30,30,.18); }
.qb-choice.incorrect .letter { background: var(--red); color: #fff; }
.qb-choice-text { font-size: .97rem; color: #eef0f3; }

.qb-explain {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--panel);
  border-left: 4px solid var(--amber);
  font-size: .88rem;
  color: #d5d9e0;
  display: none;
}
.qb-explain.show { display: block; }

.qb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--panel);
  border-top: 1px solid rgba(255,255,255,.08);
  gap: 10px;
  flex-wrap: wrap;
}
.qb-score-live { font-size: .85rem; color: #9aa2b1; }
.qb-score-live b { color: #fff; }

/* Result screen */
.result-hero {
  text-align: center;
  padding: 30px 20px;
}
.result-score {
  font-size: 3.4rem;
  font-weight: 900;
  font-family: var(--font-head);
}
.result-score.pass { color: var(--green); }
.result-score.fail { color: var(--red); }
.result-sub { color: var(--text-soft); margin-bottom: 20px; }
.review-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
}
.review-item.wrong { border-left: 4px solid var(--red); }
.review-item.right { border-left: 4px solid var(--green); }
.review-item .q { font-weight: 700; margin-bottom: 6px; }
.review-item .a { font-size: .87rem; color: var(--text-soft); }
.review-item .a.your-wrong { color: var(--red-dark); }
.review-item .a.correct-answer { color: #157a44; }

/* ==========================================================================
   FICHES DE COURS
   ========================================================================== */
.fiche-list { display: flex; flex-direction: column; gap: 12px; }
.fiche {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fiche-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  gap: 10px;
}
.fiche-head h3 { margin: 0; }
.fiche-head .chevron { transition: transform .2s ease; font-size: 1rem; color: var(--text-soft); }
.fiche.open .chevron { transform: rotate(180deg); }
.fiche-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 20px;
}
.fiche.open .fiche-body { padding: 0 20px 20px; }
.fiche-body h4 { margin: 14px 0 6px; color: var(--red-dark); font-size: .95rem; }
.fiche-body ul { margin: 6px 0; padding-left: 20px; }
.fiche-body li { margin-bottom: 4px; }
.fiche-body p { margin: 6px 0; color: var(--text); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #9aa2b1;
  padding: 26px 20px;
  font-size: .85rem;
  text-align: center;
}
footer.site-footer a { color: #cfd4dd; }

/* ---------- Utilities ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
.select-input {
  padding: 11px 14px; border-radius: 7px; border: 2px solid var(--border);
  font-size: .95rem; font-weight: 600; background: #fff; color: var(--text);
}

/* ==========================================================================
   QUIZBOX EN DIRECT — animateur (host) et joueur (join)
   ========================================================================== */

/* ---- Écran d'accueil animateur : configuration + lobby ---- */
.host-setup { max-width: 560px; margin: 0 auto; }
.lobby-card {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.lobby-code-label { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); font-weight: 800; }
.lobby-code {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  letter-spacing: 10px;
  margin: 10px 0 6px;
  color: #fff;
}
.lobby-url { color: #9aa2b1; font-size: .95rem; margin-bottom: 18px; word-break: break-word; }
.lobby-url strong { color: #fff; }
.lobby-qr-wrap {
  background: #fff; display: inline-block; padding: 10px; border-radius: 12px;
  margin-bottom: 22px; box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.lobby-qr-wrap svg { display: block; width: 180px; height: 180px; }
.lobby-players-count { font-size: .85rem; color: #9aa2b1; margin-bottom: 12px; letter-spacing: .5px; text-transform: uppercase; }
.lobby-players {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  min-height: 44px; margin-bottom: 28px;
}
.lobby-player-chip {
  background: var(--panel-light);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  animation: pop-in .25s ease;
}
@keyframes pop-in { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lobby-empty { color: #545b68; font-size: .9rem; padding: 10px 0; }

/* ---- Barre de progression réponses (host, pendant une question) ---- */
.qb-answer-progress { font-size: .8rem; color: #9aa2b1; text-align: center; padding: 10px; }

/* ---- Distribution des réponses (reveal, host) ---- */
.reveal-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.reveal-bar-row { display: flex; align-items: center; gap: 10px; }
.reveal-bar-letter {
  width: 28px; height: 28px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: #fff; background: var(--panel-light);
}
.reveal-bar-letter.correct { background: var(--green); }
.reveal-bar-track { flex: 1; background: var(--panel); border-radius: 999px; overflow: hidden; height: 22px; }
.reveal-bar-fill { height: 100%; background: var(--panel-light); border-radius: 999px; transition: width .4s ease; }
.reveal-bar-fill.correct { background: var(--green); }
.reveal-bar-count { width: 28px; text-align: right; font-weight: 700; color: #cfd4dd; font-size: .85rem; }

/* ---- Classement (host & podium fin de partie) ---- */
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.leaderboard-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel);
  border-radius: 8px;
  padding: 10px 16px;
  color: #eef0f3;
}
.leaderboard-rank { font-weight: 900; font-size: 1rem; width: 26px; color: var(--amber); }
.leaderboard-name { flex: 1; font-weight: 700; }
.leaderboard-score { font-family: var(--font-mono); font-weight: 700; color: #cfd4dd; }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin: 30px 0; }
.podium-step { text-align: center; }
.podium-step .medal { font-size: 2rem; }
.podium-step .name { font-weight: 800; margin: 6px 0 2px; }
.podium-step .score { font-family: var(--font-mono); color: var(--amber); font-weight: 700; font-size: .9rem; }
.podium-step .bar { border-radius: 8px 8px 0 0; margin-top: 10px; }
.podium-step.first .bar { background: linear-gradient(180deg, var(--amber), var(--amber-dark)); height: 120px; width: 90px; }
.podium-step.second .bar { background: linear-gradient(180deg, #cfd4dd, #9aa2b1); height: 85px; width: 90px; }
.podium-step.third .bar { background: linear-gradient(180deg, #d7a26a, #a9713a); height: 60px; width: 90px; }

/* ---- Écran joueur (smartphone) ---- */
.join-form { max-width: 380px; margin: 0 auto; }
.join-form input {
  width: 100%; padding: 16px; font-size: 1.3rem; text-align: center;
  border-radius: 10px; border: 2px solid var(--border); margin-bottom: 14px;
  font-family: var(--font-mono); letter-spacing: 4px; font-weight: 700;
}
.join-form input#pj-name { font-family: var(--font-body); letter-spacing: normal; font-size: 1.05rem; }

.player-waiting { text-align: center; padding: 50px 20px; }
.player-waiting .pulse-dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--green);
  display: inline-block; margin-right: 8px; animation: blink 1s infinite;
}

.buzzer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-width: 480px; margin: 0 auto;
}
.buzzer-btn {
  aspect-ratio: 1;
  border: none; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 900; color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,.25);
  transition: transform .08s ease;
}
.buzzer-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.buzzer-btn.a { background: var(--red); }
.buzzer-btn.b { background: var(--blue); }
.buzzer-btn.c { background: var(--amber); }
.buzzer-btn.d { background: var(--green); }
.buzzer-btn:disabled { opacity: .4; cursor: not-allowed; }
.buzzer-btn.chosen { outline: 5px solid #fff; outline-offset: -5px; }

.player-reveal { text-align: center; padding: 40px 20px; }
.player-reveal .result-icon { font-size: 4rem; }
.player-reveal .delta { font-size: 1.6rem; font-weight: 900; margin: 10px 0; }
.player-reveal .delta.correct { color: var(--green); }
.player-reveal .delta.wrong { color: var(--red); }
.player-reveal .total-score { color: var(--text-soft); }

.player-rank-badge {
  display: inline-block; font-size: .8rem; font-weight: 800;
  background: var(--paper-dim); padding: 6px 14px; border-radius: 999px; margin-top: 10px;
}

/* ==========================================================================
   PICTOGRAMMES — style signalétique de sécurité incendie
   ========================================================================== */
.pictogram-tile {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; flex: none; box-shadow: 0 3px 8px rgba(0,0,0,.18);
}
.pictogram-tile svg {
  display: block; width: 100%; height: 100%;
  fill: none; stroke: #fff; color: #fff;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.pictogram-tile.red { background: var(--red); }
.pictogram-tile.green { background: var(--green); }
.pictogram-tile.blue { background: var(--blue); }
.pictogram-tile.ink { background: var(--ink); }
.pictogram-tile.amber { background: var(--amber-dark); }
.pictogram-tile.sm { width: 32px; height: 32px; padding: 6px; border-radius: 6px; }
.pictogram-tile.md { width: 54px; height: 54px; padding: 11px; }
.pictogram-tile.lg { width: 92px; height: 92px; padding: 18px; border-radius: 16px; }
.card .pictogram-tile { margin-bottom: 4px; }

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 6px;
}

/* ---- Graphique radar (bilan par thème) ---- */
.radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.radar-svg { width: 100%; max-width: 300px; height: auto; }
.radar-ring { fill: none; stroke: var(--border); stroke-width: 1; }
.radar-axis { stroke: var(--border); stroke-width: 1; }
.radar-data { fill: rgba(200,30,30,.28); stroke: var(--red); stroke-width: 2; }
.radar-label { font-size: 11px; font-weight: 800; fill: var(--text-soft); font-family: var(--font-body); }
.radar-legend { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 6px; }
.radar-legend-row {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; padding: 6px 4px; border-bottom: 1px solid var(--paper-dim);
}
.radar-legend-num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--red);
  color: #fff; font-weight: 800; font-size: .68rem; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.radar-legend-name { flex: 1; color: var(--text); text-align: left; }
.radar-legend-pct { font-weight: 800; color: var(--red-dark); font-family: var(--font-mono); }

/* Sur fond sombre (écran animateur, cartes .card claires : le radar reste sur fond clair par défaut) */
.card .radar-legend-row { border-color: var(--border); }
