/* Palette Maths0 = palette du site principal (blanc / navy / orange clair),
   comme la bannière d'accueil — demande explicite de l'utilisateur, à la
   place d'une teinte distincte par chapitre. Une seule palette pour tous
   les chapitres : `[data-theme]` reste posé dans le HTML (cf.
   content/content.json > chapitres[].color) mais ne change plus rien ici,
   pour ne pas avoir à toucher le contenu si l'un ou l'autre revient. */
:root {
  --ivory: #ffffff;
  --ivory-soft: #f4f6f9;
  --card: #ffffff;
  --ink: #002b5c;
  --ink-soft: #5a6b7b;
  --border: #e2e8f0;
  --shadow: 0 6px 20px rgba(0, 43, 92, 0.08);
  --shadow-lg: 0 14px 36px rgba(0, 43, 92, 0.16);
  --radius: 14px;
  --green: #16a34a;
  --red: #dc2626;

  --theme: #002b5c;
  --theme-soft: #eaf3fb;
  --blue: #0073cf;
  --accent: #ff6a13;
  --accent-600: #e85d08;
  /* Orangé clair utilisé sur fond navy (bannière d'accueil du site,
     `.home-banner-note a`) — demande explicite de l'utilisateur pour le
     bandeau sombre de Maths0, distinct de l'orange vif des boutons. */
  --accent-light: #ffc78a;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--ivory);
  color: var(--ink);
}
h2 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 6px;
}
.muted { color: var(--ink-soft); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  background: var(--ink);
  color: #fff;
}
.back-link { color: #fff; opacity: 0.85; text-decoration: none; font-size: 0.9rem; font-weight: 600; flex: none; white-space: nowrap; }
.back-link:hover { opacity: 1; text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; min-width: 0; overflow: hidden; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 0.78rem;
}
.brand-text { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text em { font-style: normal; opacity: 0.85; font-weight: 600; color: var(--accent-light); }
.topbar nav { display: flex; gap: 8px; flex: none; }
.nav-btn {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); color: #fff;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 0.88rem; font-weight: 700; white-space: nowrap;
}
.nav-btn:hover { background: rgba(255,255,255,0.22); }

@media (max-width: 640px) {
  .topbar { padding: 12px 14px; gap: 8px; }
  .back-link span.back-label { display: none; }
  .brand-text { font-size: 1rem; }
  .nav-btn { padding: 7px 10px; font-size: 0.76rem; }
}
@media (max-width: 360px) {
  /* Sous 360px, même deux libellés courts ("Composer"/"Progression") ne
     tiennent plus à côté du monogramme + "← " : le monogramme porte seul
     la marque (cf. apps/web, même geste sur le header du site). */
  .brand-text { display: none; }
}

#app { max-width: 880px; margin: 0 auto; padding: 26px 16px 60px; }
.footer { text-align: center; padding: 18px; color: var(--ink-soft); font-size: 0.82rem; }

.section-title {
  margin-top: 28px; padding-bottom: 6px; font-size: 0.95rem; color: var(--ink);
  font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 2px solid var(--border);
}

/* ── Compositeur ─────────────────────────────────────────────────────── */
.chapter-block { margin-top: 14px; }
.chapter-head {
  display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--theme);
  padding: 8px 0;
}
.chapter-head--soon { color: var(--ink-soft); }
.chapter-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--theme-soft); color: var(--theme);
  font-weight: 800; font-size: 0.8rem; flex: none;
}
.soon-badge { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); background: var(--ivory-soft); padding: 3px 10px; border-radius: 999px; }
.chapter-avg { margin-left: auto; font-weight: 800; color: var(--theme); }

/* Matière → chapitre → paragraphes (2026-10-18). 4 boutons de matière en tête
   (2 par ligne sur téléphone), puis les chapitres de la matière choisie en
   accordéon : un seul déplié à la fois. */
.matiere-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (max-width: 720px) { .matiere-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.matiere-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  border: 1.5px solid var(--border); background: var(--card); color: var(--ink);
  padding: 12px; border-radius: var(--radius); cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow); transition: border-color .12s ease, transform .12s ease;
}
.matiere-btn:hover:not([disabled]) { border-color: var(--theme); transform: translateY(-1px); }
.matiere-btn.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 19, .18), var(--shadow); }
.matiere-btn.is-active .chapter-num { background: var(--accent); color: #fff; }
.matiere-btn[disabled] { cursor: default; opacity: .6; box-shadow: none; }
.matiere-titre { font-weight: 800; font-size: 0.92rem; line-height: 1.25; }
.matiere-info { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }

.chapitre-liste { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.chapitre-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.chapitre-item.is-open { border-color: var(--theme); box-shadow: var(--shadow); }
.chapitre-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px;
  background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; color: var(--theme);
}
.chapitre-btn[disabled] { cursor: default; color: var(--ink-soft); }
.chapitre-titre { font-weight: 700; flex: 1; min-width: 0; }
.chapitre-compte { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.chapitre-compte.has-choix { color: #fff; background: var(--accent); padding: 2px 9px; border-radius: 999px; }
.chapitre-caret { color: var(--ink-soft); font-size: 0.8rem; }
.chapitre-paragraphes { padding: 2px 14px 14px; border-top: 1px solid var(--border); background: var(--ivory-soft); }
.chapitre-paragraphes .paragraphe-grid { margin-top: 12px; }
.tout-btn { margin-top: 6px; font-size: 0.85rem; }
.roadmap-matiere { width: 100%; font-weight: 800; color: var(--ink); font-size: 0.88rem; margin-bottom: 2px; }
button.roadmap-pill { border: none; cursor: pointer; font-family: inherit; }

.paragraphe-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.paragraphe-chip {
  border: 1.5px solid var(--border); background: var(--card); color: var(--ink);
  padding: 8px 14px; border-radius: 18px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .12s ease;
}
.paragraphe-chip:hover { border-color: var(--theme); }
.paragraphe-chip.is-selected { background: var(--theme); border-color: var(--theme); color: #fff; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  border: 1.5px solid var(--border); background: var(--card); color: var(--ink);
  padding: 7px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Origine des exercices (série / type DS-examen / classiques) : choix multiple. */
.source-aide { margin: 2px 0 0; font-size: 0.85rem; }
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (max-width: 720px) { .source-grid { grid-template-columns: 1fr; } }
.source-chip {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  border: 1.5px solid var(--border); background: var(--card); color: var(--ink);
  padding: 10px 12px; border-radius: 14px; cursor: pointer; font-family: inherit;
}
.source-chip-check {
  flex: none; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px;
  border: 1.5px solid var(--border); color: transparent; font-size: 0.8rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.source-chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.source-chip-text strong { font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.source-chip-text small { color: var(--ink-soft); font-size: 0.8rem; }
.source-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--theme-soft); }
.source-chip[aria-pressed="true"] .source-chip-check { background: var(--ink); border-color: var(--ink); color: #fff; }
.source-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Étiquette d'origine sur la carte de question. */
.source-tag { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 0.74rem; font-weight: 700; border: 1px solid var(--border); color: var(--ink-soft); background: var(--card); }
.source-tag--examen { color: #8a3d00; border-color: #f2c79f; background: #fff4ea; }
.source-tag--classique { color: #00605d; border-color: #a9dcd8; background: #eefaf9; }
.source-tag--externe { color: #4a2d8a; border-color: #cdbdf0; background: #f5f1fd; }
/* Exercice adapté d'une ressource externe : origine + lien vers d'autres exercices similaires. */
.origine-box { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid #cdbdf0; background: #f5f1fd; color: #3b2470; font-size: 0.9rem; line-height: 1.45; font-weight: 400; }
.origine-box svg { flex: none; margin-top: 2px; }
.origine-box a { color: #4a2d8a; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }

.roadmap {
  margin-top: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.roadmap-title { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); margin-bottom: 8px; }
.roadmap-body { display: flex; flex-wrap: wrap; gap: 6px; }
.roadmap-pill { background: var(--theme-soft); color: var(--theme); font-weight: 700; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; }

.primary-btn {
  background: var(--accent); color: #fff; border: none; padding: 12px 22px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s;
}
.primary-btn:hover { background: var(--accent-600); }
.primary-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.link-btn { background: none; border: none; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: 0.9rem; padding: 0; font-weight: 600; font-family: inherit; flex: none; }

/* ── Rappel de cours ─────────────────────────────────────────────────── */
.rappel-card {
  background: var(--theme-soft); border: 1px solid var(--theme); border-radius: var(--radius);
  padding: 22px; margin-top: 14px;
}
.rappel-tag { font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .3px; color: var(--theme); margin-bottom: 10px; }
.rappel-body p { margin: 0 0 10px; line-height: 1.65; }
.rappel-body ol, .rappel-body ul { margin: 0 0 10px; padding-left: 22px; line-height: 1.65; }
.rappel-body li { margin-bottom: 6px; }
/* Rappels « aérés » (2026-10-18) : sections titrées, encadrés d'exemple et de piège. */
.rappel-body .rappel-h {
  margin: 22px 0 10px; font-size: 1rem; font-weight: 800; color: var(--theme);
  padding-bottom: 6px; border-bottom: 2px solid var(--theme-soft);
}
.rappel-body .rappel-h:first-child { margin-top: 4px; }
.rappel-box { margin: 10px 0 16px; padding: 12px 14px; border-radius: 10px; border-left: 4px solid; }
.rappel-box p { margin: 0 0 6px; }
.rappel-box p:last-child { margin-bottom: 0; }
/* Une formule ne se coupe pas en deux (« 3(k+ » / « 1) ») : on revient à la
   ligne ENTRE les formules. Une formule plus large que sa ligne reçoit
   `.katex-coupable` (renderMath dans app.js) et peut alors se couper. */
.rappel-body .katex { white-space: nowrap; }
.rappel-body .katex.katex-coupable { white-space: normal; }
/* Dans un tableau, la cellule s'élargit avec sa formule : on y autorise toujours la coupure. */
.rappel-table .katex { white-space: normal; }
.rappel-box--ex { background: var(--card); border-left-color: var(--theme); }
.rappel-box--piege { background: #fff7e8; border-left-color: #c27100; }
.rappel-box--piege strong { color: #8a4f00; }
.rappel-body strong { color: var(--theme); }
.rappel-table { width: 100%; border-collapse: collapse; margin: 4px 0 14px; background: var(--card); border-radius: 10px; overflow: hidden; }
.rappel-table th, .rappel-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 0.92rem; text-align: center; }
.rappel-table th:first-child, .rappel-table td:first-child { text-align: left; }
.rappel-table th { background: var(--theme); color: #fff; font-weight: 700; }
.rappel-table tr:last-child td { border-bottom: none; }

/* ── Question ─────────────────────────────────────────────────────────── */
.top-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.top-actions-left { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--theme); cursor: pointer; padding: 0; flex: none;
}
.icon-btn:hover { border-color: var(--theme); }

/* ── Calculatrice ─────────────────────────────────────────────────────── */
.calc-overlay {
  position: fixed; inset: 0; background: rgba(0, 43, 92, 0.45); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.calc-card {
  width: min(320px, 100%); background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
}
.calc-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.calc-close { background: none; border: none; color: var(--ink-soft); cursor: pointer; padding: 4px; display: flex; }
.calc-display {
  background: var(--ivory-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; text-align: right; font-size: 1.6rem; font-weight: 700; color: var(--ink);
  margin-bottom: 10px; overflow-x: auto; white-space: nowrap;
}
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-grid button {
  min-height: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--ivory-soft);
  color: var(--ink); font-size: 1.05rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.calc-grid button:active { background: var(--theme-soft); }
.calc-grid button[data-op],
.calc-grid button[data-act="sqrt"],
.calc-grid button[data-act="pow"] { background: var(--theme-soft); color: var(--theme); }
.calc-zero { grid-column: span 2; }
.calc-eq { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
.calc-combi { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.calc-combi-title { font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .3px; color: var(--ink-soft); margin-bottom: 8px; }
.calc-combi-row { display: flex; gap: 10px; margin-bottom: 10px; }
.calc-combi-row label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; }
.calc-combi-row input {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 1rem;
  font-family: inherit; color: var(--ink); width: 100%;
}
.calc-combi-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-combi-btns button {
  flex: 1; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--theme); background: #fff;
  color: var(--theme); font-weight: 700; cursor: pointer; font-family: inherit;
}
.calc-combi-result { margin-top: 10px; font-weight: 700; color: var(--ink); min-height: 1.2em; word-break: break-word; }

@media (max-width: 360px) {
  .calc-card { padding: 12px; }
  .calc-grid button { min-height: 42px; font-size: 0.98rem; }
}
.progress-bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.progress-bar-fill { height: 100%; background: var(--theme); transition: width .2s; }

.quiz-card { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--theme); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.quiz-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
/* Petit rappel visuel de la marque sur chaque question, en haut à droite —
   demande de l'utilisateur. Le vrai logo du site (`LOGO_KHOUBAIB` dans
   app.js, copie du SVG d'apps/web/components/Header.tsx), pas le monogramme
   « M0 » du topbar de cette appli. Posé comme DERNIER élément de
   `.quiz-card-head` : `justify-content: space-between` le pousse tout à
   droite et décale « Revoir le rappel » vers le centre, sans chevauchement. */
.quiz-card-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; flex: none; overflow: hidden;
}
.quiz-card-logo svg { width: 100%; height: 100%; display: block; }
.badge { display: inline-block; background: var(--theme-soft); color: var(--theme); border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; font-weight: 700; }

.prompt { font-size: 1.15rem; margin-bottom: 16px; line-height: 1.6; font-weight: 600; }
.katex { color: inherit; }

.choices { display: grid; gap: 10px; }
.choice-btn {
  text-align: left; border: 1.5px solid var(--border); background: var(--ivory-soft); color: var(--ink);
  padding: 12px 16px; border-radius: 12px; font-size: 1rem; font-family: inherit; cursor: pointer; transition: all .12s;
}
.choice-btn:hover:not(:disabled) { border-color: var(--theme); }
.choice-btn:disabled { cursor: default; }
.choice-btn.choice-correct { background: #e3f3e6; border-color: var(--green); color: var(--green); font-weight: 700; }
.choice-btn.choice-wrong { background: #fbe7e5; border-color: var(--red); color: var(--red); }

.feedback { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 0.98rem; font-weight: 600; }
.feedback.correct { background: #e3f3e6; color: var(--green); }
.feedback.incorrect { background: #fbe7e5; color: var(--red); }
.feedback-expl { white-space: pre-line; margin-top: 6px; font-weight: 500; font-size: 0.9rem; opacity: 0.9; }

.result-summary { text-align: center; }
.result-score { font-size: 2.4rem; font-weight: 800; color: var(--theme); margin: 8px 0; }
.result-table { width: 100%; border-collapse: collapse; margin-top: 16px; text-align: left; }
.result-table th, .result-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.result-table th { color: var(--ink-soft); font-weight: 700; }

@media (max-width: 640px) {
  #app { padding: 18px 12px 44px; }
  .quiz-card, .rappel-card { padding: 16px; }
  .prompt { font-size: 1.05rem; }
}

/* ── Mode « vitrine » : fenêtre de connexion + thèmes verrouillés ─────── */
.login-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff7f0; border: 1px solid var(--accent-light); border-radius: 12px;
  padding: 12px 14px; margin: 14px 0 4px; color: var(--ink); font-size: 0.92rem; font-weight: 600;
}
.login-banner-btn {
  border: none; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700;
  padding: 8px 16px; cursor: pointer; font-family: inherit; flex: none;
}
.login-banner-btn:hover { background: var(--accent-600); }
.paragraphe-chip.is-locked { color: var(--ink-soft); }
.paragraphe-chip.is-locked svg { opacity: .7; }
.login-card { width: min(400px, 100%); padding: 22px; }
.login-sub { margin: 0 0 14px; }
.login-form label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--ink); margin: 10px 0 5px; }
.login-note { font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; }
.login-form input[type=text], .login-form input[type=password] {
  width: 100%; padding: 10px 12px; font-size: 1rem; font-family: inherit; color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px; box-sizing: border-box;
}
.login-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 115, 207, .15); }
.login-foot { margin: 14px 0 0; text-align: center; font-size: 0.88rem; color: var(--ink-soft); }
.login-foot a { color: var(--blue); font-weight: 600; }

/* Diagrammes de Venn (correction des exercices d'ensembles, rappels `@venn`) */
.venn-bloc { margin-top: 12px; }
.venn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.venn-fig { margin: 0; flex: 1 1 150px; max-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 8px 6px; color: var(--ink); }
.venn { display: block; width: 100%; height: auto; }
.venn-trait { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.venn-nom { font: italic 600 15px "Times New Roman", serif; fill: var(--ink); text-anchor: middle; }
.venn-nom--e { text-anchor: start; font-size: 13px; fill: var(--ink-soft); }
.venn-fill { fill-opacity: 0.45; }
.venn--ok .venn-fill { fill: var(--green); }
.venn--ko .venn-fill { fill: var(--red); }
.venn--neutre .venn-fill { fill: var(--accent); }
.venn-fig figcaption { text-align: center; font-size: 0.85rem; font-weight: 500; line-height: 1.3; margin-top: 2px; }
.venn-titre { display: block; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.venn--ok + figcaption .venn-titre { color: var(--green); }
.venn--ko + figcaption .venn-titre { color: var(--red); }
.venn-note { margin: 8px 0 0; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.rappel-body .venn-fig figcaption .katex { white-space: normal; }
