/* ==========================================================================
   Item 156 · Infections ostéo-articulaires (IOA)
   Charge après styles.css + components.css. Reprend les composants
   structurels de l'item 151 (sec-title, lane, pipeline, hbox, etiogrid,
   matrix, traps, mmwrap, alert-clinical, didyou) et ajoute :
   - tableau "microbiologie par contexte" 3 sections
   - tableau comparatif 4 entités × 7 lignes (PIVOT)
   - tableau ATB par germe + pénétration osseuse + durées
   - cartes par entité (gabarit identique 8 sections)
   - 5 schémas SVG natifs (près du genou / frise matériel / anatomie articulaire / coupe rachidienne / biofilm)
   - arbre décisionnel SVG 4 branches
   ========================================================================== */

:root {
  --paper:    #faf6ec;
  --paper-2:  #fffcf5;
  --rule:     #d7ccb4;
  --rule-2:   var(--accent-dash);
  --bg-2:     #ece5d6;
  --bg-3:     #e4dcc8;
  --ink-2:    #524a3e;
  --ink-3:    #8a8270;
  --ink-4:    #b2a98f;
  --danger:   #a52a1a;
  --warn:     #8a5a12;
  --ok:       #4e6a2f;

  /* Couleurs sémantiques par entité (4 colonnes du tableau comparatif) */
  --ent-arthrite: #b8472c;   /* terracotta · rhumato 1 */
  --ent-spondylo: #8a4a7f;   /* aubergine · rhumato 2 */
  --ent-osteite:  #7a5a3a;   /* brun-tabac · ortho 1 */
  --ent-materiel: #2f5e6b;   /* bleu canard · ortho 2 */

  /* Couleurs de famille mindmap (7 branches) */
  --fam-urgences:  var(--spe-urgences);   /* bordeaux */
  --fam-entites:   var(--spe-orl);        /* ocre */
  --fam-demarche:  var(--spe-neuro);      /* aubergine */
  --fam-germes:    var(--spe-infectio);   /* terracotta */
  --fam-imagerie:  var(--spe-cardio);     /* bleu canard */
  --fam-atb:       var(--spe-pneumo);     /* vert olive */
  --fam-pediatrie: var(--spe-onco);       /* rose / pédiatrie */
}

.content { max-width: 1400px; }

/* Fade léger au changement d'onglet */
@keyframes ioa-fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.content-panel.active { animation: ioa-fadeIn .35s ease-out; }

/* Familles utilitaires (mindmap branches) */
.fam-urgences  { --fam: var(--fam-urgences);  --fam-bg: #ead0cb; }
.fam-entites   { --fam: var(--fam-entites);   --fam-bg: #f1e0c4; }
.fam-demarche  { --fam: var(--fam-demarche);  --fam-bg: #ead8e4; }
.fam-germes    { --fam: var(--fam-germes);    --fam-bg: #f1d8cd; }
.fam-imagerie  { --fam: var(--fam-imagerie);  --fam-bg: #cfdde0; }
.fam-atb       { --fam: var(--fam-atb);       --fam-bg: #dde2c8; }
.fam-pediatrie { --fam: var(--fam-pediatrie); --fam-bg: #f0d8e0; }

/* Familles par entité (cartes onglets 09-12 + tableau comparatif) */
.ent-arthrite  { --ent: var(--ent-arthrite); --ent-bg: #f3dccf; }
.ent-spondylo  { --ent: var(--ent-spondylo); --ent-bg: #ead8e4; }
.ent-osteite   { --ent: var(--ent-osteite);  --ent-bg: #ede1ce; }
.ent-materiel  { --ent: var(--ent-materiel); --ent-bg: #d7e1e4; }

/* Alias entité comme classes courtes */
.ent-rhumato   { --ent: var(--ent-arthrite); --ent-bg: #f3dccf; }
.ent-rhumato2  { --ent: var(--ent-spondylo); --ent-bg: #ead8e4; }
.ent-ortho     { --ent: var(--ent-osteite);  --ent-bg: #ede1ce; }
.ent-ortho2    { --ent: var(--ent-materiel); --ent-bg: #d7e1e4; }

/* ============================================================
   Sous-titres de section (recopie 151)
   ============================================================ */
.sec-title       { display: flex; align-items: baseline; gap: 16px; margin: 36px 0 18px; flex-wrap: wrap; }
.sec-num         { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; }
.sec-title h2    { font-family: var(--font-serif); font-weight: 500; font-size: 30px; letter-spacing: -.01em; margin: 0; line-height: 1; }
.sec-title .rule { flex: 1; height: 1px; background: var(--rule); margin-bottom: 8px; min-width: 40px; }
.sec-title .hint { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }

.rang-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--paper);
  vertical-align: middle;
}
.rang-tag.rang-a { color: var(--ok);    border-color: color-mix(in oklab, var(--ok) 40%, var(--rule-2)); }
.rang-tag.rang-b { color: var(--ink-3); border-color: var(--rule-2); }

/* ============================================================
   Pipelines · steps · lanes (repris du 151)
   ============================================================ */
.pipeline                { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 22px; }
.pipeline .lane          { background: var(--fam-bg, var(--bg-2)); border: 1px solid color-mix(in oklab, var(--fam, var(--ink)) 30%, var(--rule)); border-radius: 3px; padding: 14px; }
.pipeline .lane-h        { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pipeline .lane-h .dot   { width: 10px; height: 10px; border-radius: 50%; background: var(--fam, var(--ink)); }
.pipeline .lane-h h3     { font-family: var(--font-serif); font-weight: 500; font-size: 18px; margin: 0; letter-spacing: -.005em; }
.pipeline .lane-h .kind  { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }

/* Hbox / hstack */
.hstack { display: flex; flex-direction: column; gap: 10px; }
.hbox {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 3px;
  padding: 12px 16px;
  display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; align-items: baseline;
}
.hbox > .n {
  grid-column: 1; grid-row: 1 / -1;
  align-self: start; padding-top: 2px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); font-weight: 500;
  word-break: break-word; line-height: 1.3;
}
.hbox > h5 {
  grid-column: 2;
  font-family: var(--font-serif); font-weight: 500; font-size: 15px; margin: 0 0 4px;
}
.hbox > p,
.hbox > ul {
  grid-column: 2; margin: 0;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
}
.hbox > ul { padding-left: 18px; }
.hbox > ul li { margin: 6px 0; }

/* ============================================================
   Tables — matrix + variantes
   ============================================================ */
table.matrix              { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); }
table.matrix th,
table.matrix td           { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 12.5px; }
table.matrix thead th     { background: var(--bg-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; border-bottom: 1px solid var(--rule-2); }
table.matrix tbody th     { font-family: var(--font-serif); font-weight: 500; font-size: 14.5px; color: var(--ink); border-right: 1px solid var(--rule); }
table.matrix tbody tr:last-child th,
table.matrix tbody tr:last-child td { border-bottom: none; }
table.matrix tbody tr:hover td      { background: #fff; }

/* Surlignage discriminant */
b.alert-cell-red    { color: var(--danger); font-weight: 700; }
b.alert-cell-orange { color: var(--warn);   font-weight: 700; }
b.alert-cell-blue   { color: var(--spe-cardio); font-weight: 700; }

/* ============================================================
   Etiogrid (cards en grille)
   ============================================================ */
.etiogrid           { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.etiogrid.r-2       { grid-template-columns: repeat(2, 1fr); }
.etiogrid.r-4       { grid-template-columns: repeat(4, 1fr); }
.etio               { background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 14px 16px; }
.etio.fam           { border-left: 3px solid var(--fam, var(--ink)); }
.etio.ent           { border-left: 3px solid var(--ent, var(--ink)); }
.etio h5            { font-family: var(--font-serif); font-weight: 500; font-size: 16px; margin: 0 0 6px; color: var(--fam, var(--ent, var(--ink))); }
.etio ul            { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.etio ul li         { margin: 4px 0; }
.etio ul li b       { color: var(--ink); font-weight: 600; }
.etio p             { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }

/* ============================================================
   Pièges / DD (reprise 151)
   ============================================================ */
.traps           { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trap            { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--danger); border-radius: 3px; padding: 14px 16px; }
.trap .tn        { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--danger); text-transform: uppercase; margin-bottom: 4px; }
.trap h5         { font-family: var(--font-serif); font-weight: 500; font-size: 15.5px; margin: 0 0 4px; }
.trap p          { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.trap p b        { color: var(--ink); }

/* ============================================================
   Vignette d'amorçage clinique
   ============================================================ */
.vignette {
  background: var(--paper); border: 1px solid var(--rule);
  border-left: 4px solid var(--ent-arthrite);
  border-radius: 4px; padding: 20px 24px; margin-bottom: 24px;
}
.vignette .vg-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ent-arthrite); margin-bottom: 8px;
}
.vignette p {
  font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: var(--ink); margin: 0;
}
.vignette p b { font-weight: 600; }
.vignette .vg-trap {
  margin-top: 14px; padding: 10px 14px; background: var(--bg-2); border-radius: 3px;
  font-family: var(--font-sans); font-size: 12.5px; font-style: italic; color: var(--ink-2);
}
.vignette .vg-trap b { font-style: normal; }

/* ============================================================
   Keypoints (6 cards alignées)
   ============================================================ */
.keypoints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.keypoint  {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px;
  display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start;
}
.keypoint .kp-n {
  font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--ent-arthrite);
}
.keypoint p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.keypoint p b { color: var(--ink); font-weight: 600; }

/* ============================================================
   Cartes définitions (6 def cards)
   ============================================================ */
.def-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.def-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-top: 4px solid var(--ent, var(--fam, var(--ink)));
  border-radius: 4px; padding: 18px 20px;
}
.def-card .def-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.def-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: -.005em; margin: 0; color: var(--ent, var(--fam, var(--ink))); }
.def-card .def-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.def-card p { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 0 0 10px; }
.def-card p b { color: var(--ink); }
.def-card .def-pillar {
  margin-top: 12px; padding: 10px 12px; background: var(--bg-2);
  border-radius: 3px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .04em; color: var(--ink);
}
.def-card .def-pillar b { font-weight: 600; }

/* ============================================================
   Encadrés ALERTE (cf. règle B CLAUDE.md)
   ============================================================ */
.alert-clinical {
  background: #f3dccf; border: 1px solid var(--danger);
  border-radius: 4px; padding: 16px 20px;
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  margin: 18px 0;
}
.alert-clinical .alert-icon {
  font-family: var(--font-serif); font-size: 32px; line-height: 1;
  color: var(--danger); font-style: italic; font-weight: 500;
}
.alert-clinical h4 {
  font-family: var(--font-serif); font-weight: 500; font-size: 18px;
  letter-spacing: -.005em; color: var(--danger); margin: 0 0 8px;
}
.alert-clinical ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.alert-clinical ul li { margin: 4px 0; }
.alert-clinical ul li b { color: var(--ink); font-weight: 600; }

/* ============================================================
   Mindmap (reprise 151)
   ============================================================ */
.mmwrap { position: relative; min-height: 720px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.mmwrap .canvas { width: 100%; height: 720px; cursor: grab; }
.mmwrap .canvas:active { cursor: grabbing; }
.mmwrap .zctl {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,0.9); border: 1px solid var(--rule); border-radius: 3px; padding: 4px;
  z-index: 2;
}
.mmwrap .zctl button {
  width: 32px; height: 32px; border: 1px solid var(--rule); background: #fff;
  font-family: var(--font-mono); font-size: 14px; color: var(--ink); cursor: pointer;
  border-radius: 2px;
}
.mmwrap .zctl button:hover { background: var(--bg-2); }
.mmwrap .zhint {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); background: rgba(255,255,255,0.85); padding: 4px 8px; border-radius: 2px;
}

#mm-svg .ring {
  fill: none; stroke: var(--accent-dash); stroke-width: 1; stroke-dasharray: 4 4;
}
#mm-svg .link.main { fill: none; stroke: var(--ink-4); stroke-width: 2; }
#mm-svg .link.sat  { fill: none; stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 3 3; }

#mm-svg .root-circle {
  fill: var(--ink); stroke: var(--ink); stroke-width: 2;
}
#mm-svg .root-text {
  fill: var(--paper); font-family: var(--font-serif); font-weight: 500;
}

#mm-svg .node-card { cursor: pointer; }
#mm-svg .node-card .node-bg { fill: #fff; stroke: var(--rule); stroke-width: 1.5; }
#mm-svg .node-card .node-accent { fill: var(--fam, var(--ink)); }
#mm-svg .node-card .node-chip { fill: var(--fam-bg, var(--bg-2)); }
#mm-svg .node-card .node-chip-t { fill: var(--fam, var(--ink)); font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
#mm-svg .node-card .node-title { fill: var(--ink); font-family: var(--font-serif); font-weight: 500; font-size: 18px; }
#mm-svg .node-card .node-sub   { fill: var(--ink-2); font-family: var(--font-sans); font-size: 11px; }
#mm-svg .node-card:hover .node-bg { fill: var(--paper-2); stroke: var(--fam, var(--ink)); }

#mm-svg .node-sat { cursor: pointer; }
#mm-svg .node-sat .sat-bg { fill: var(--paper); stroke: var(--ink-3); stroke-width: 1.2; }
#mm-svg .node-sat .sat-title { fill: var(--ink); font-family: var(--font-serif); font-weight: 500; font-size: 13px; }
#mm-svg .node-sat .sat-sub   { fill: var(--ink-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
#mm-svg .node-sat:hover .sat-bg { fill: var(--bg-2); stroke: var(--ink); }

/* ============================================================
   TABLEAU MICROBIOLOGIE PAR CONTEXTE (3 sections empilées)
   ============================================================ */
.mb-section { margin-bottom: 22px; }
.mb-section h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: 18px;
  margin: 0 0 8px; color: var(--fam-germes); letter-spacing: -.005em;
}
.mb-section .mb-intro {
  font-size: 12.5px; color: var(--ink-3); font-style: italic; margin: 0 0 8px; line-height: 1.5;
}
.mb-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); }
.mb-table th, .mb-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top;
  font-size: 12.5px; line-height: 1.5;
}
.mb-table thead th {
  background: color-mix(in oklab, var(--fam-germes) 18%, var(--bg-2));
  color: var(--fam-germes);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; text-align: left;
}
.mb-table tbody th {
  width: 22%; font-family: var(--font-serif); font-weight: 500; font-size: 13.5px;
  color: var(--ink); background: var(--paper-2); border-right: 1px solid var(--rule);
}
.mb-table tbody tr:last-child th,
.mb-table tbody tr:last-child td { border-bottom: none; }
.mb-table .mb-note {
  font-size: 11.5px; color: var(--ink-3); font-style: italic; margin-top: 4px;
}

/* ============================================================
   TABLEAU COMPARATIF DES 4 ENTITÉS — PIVOT PÉDAGOGIQUE
   ============================================================ */
.cmp-table {
  width: 100%; border-collapse: collapse; background: var(--paper);
  border: 1px solid var(--rule);
}
.cmp-table th, .cmp-table td {
  padding: 11px 13px; border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  vertical-align: top; font-size: 12.5px; line-height: 1.5;
}
.cmp-table th:last-child, .cmp-table td:last-child { border-right: none; }
.cmp-table thead th {
  background: var(--bg-2);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; text-align: left;
  border-bottom: 2px solid var(--rule-2);
}
.cmp-table thead th.col-arthrite { background: color-mix(in oklab, var(--ent-arthrite) 22%, var(--bg-2)); color: var(--ent-arthrite); }
.cmp-table thead th.col-spondylo { background: color-mix(in oklab, var(--ent-spondylo) 22%, var(--bg-2)); color: var(--ent-spondylo); }
.cmp-table thead th.col-osteite  { background: color-mix(in oklab, var(--ent-osteite)  22%, var(--bg-2)); color: var(--ent-osteite); }
.cmp-table thead th.col-materiel { background: color-mix(in oklab, var(--ent-materiel) 22%, var(--bg-2)); color: var(--ent-materiel); }
.cmp-table thead th .ent-fr {
  display: block; font-size: 9px; letter-spacing: .08em; color: var(--ink-3); margin-top: 2px;
}
.cmp-table tbody th {
  width: 16%; font-family: var(--font-serif); font-weight: 500; font-size: 13.5px;
  color: var(--ink); background: var(--paper-2);
}
.cmp-table tbody td.cell-arthrite { background: color-mix(in oklab, var(--ent-arthrite) 6%, var(--paper)); }
.cmp-table tbody td.cell-spondylo { background: color-mix(in oklab, var(--ent-spondylo) 6%, var(--paper)); }
.cmp-table tbody td.cell-osteite  { background: color-mix(in oklab, var(--ent-osteite)  6%, var(--paper)); }
.cmp-table tbody td.cell-materiel { background: color-mix(in oklab, var(--ent-materiel) 6%, var(--paper)); }
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   ARBRE DÉCISIONNEL (4 branches HTML simplifié)
   ============================================================ */
.dt156-wrap {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 22px 24px;
}
.dt156-entry {
  background: var(--ink); color: var(--paper);
  border-radius: 6px; padding: 18px 22px;
}
.dt156-entry .tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-dash); margin-bottom: 6px; display: block;
}
.dt156-entry h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: 22px;
  margin: 0 0 6px; color: var(--paper);
}
.dt156-entry p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.dt156-flow {
  text-align: center; margin: 18px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.dt156-branches {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.dt156-branch {
  background: var(--paper-2); border: 1.5px solid var(--rule);
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
}
.dt156-branch.color-danger { border-color: var(--danger); }
.dt156-branch.color-warn   { border-color: var(--warn); }
.dt156-branch.color-info   { border-color: var(--spe-cardio); }
.dt156-branch.color-ok     { border-color: var(--ok); }

.dt156-branch .b-head {
  padding: 10px 14px; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.dt156-branch.color-danger .b-head { background: var(--danger); }
.dt156-branch.color-warn   .b-head { background: var(--warn); }
.dt156-branch.color-info   .b-head { background: var(--spe-cardio); }
.dt156-branch.color-ok     .b-head { background: var(--ok); }
.dt156-branch .b-id    { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; font-weight: 600; }
.dt156-branch .b-label { font-family: var(--font-serif); font-size: 16px; font-weight: 500; }
.dt156-branch .b-body  { padding: 14px 16px; }
.dt156-branch .b-criteres {
  font-size: 11.5px; color: var(--ink-3); font-style: italic; margin-bottom: 8px; line-height: 1.4;
}
.dt156-branch .b-action {
  font-size: 13px; color: var(--ink); margin-bottom: 8px; line-height: 1.45;
}
.dt156-branch .b-action b { font-weight: 600; }
.dt156-branch ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.dt156-branch ul li { margin: 3px 0; }
.dt156-branch ul li b { color: var(--ink); font-weight: 600; }
.dt156-branch .b-keyphrase {
  margin: 14px 0 0; padding: 9px 12px;
  border-left: 3px solid var(--acc, var(--ink));
  background: color-mix(in oklab, var(--acc, var(--ink)) 6%, var(--paper-2));
  font-family: var(--font-serif); font-size: 13px; font-style: italic;
  font-weight: 500; color: var(--ink); line-height: 1.4;
}
.dt156-branch.color-danger .b-keyphrase { --acc: var(--danger); }
.dt156-branch.color-warn   .b-keyphrase { --acc: var(--warn); }
.dt156-branch.color-info   .b-keyphrase { --acc: var(--spe-cardio); }
.dt156-branch.color-ok     .b-keyphrase { --acc: var(--ok); }
.dt156-branch .b-cross {
  margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--rule);
  font-size: 11.5px; color: var(--ink-3);
}
.dt156-branch .b-cross a {
  color: var(--ink-2); text-decoration: none;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
}
.dt156-branch .b-cross a:hover { color: var(--acc, var(--ink)); padding-left: 4px; transition: padding-left .15s; }

.dt156-converge {
  margin-top: 22px; background: var(--paper-2); border: 1px solid var(--rule);
  border-left: 4px solid var(--ok); border-radius: 4px; padding: 14px 18px;
}
.dt156-converge h4 {
  font-family: var(--font-serif); font-weight: 500; font-size: 17px;
  margin: 0 0 8px; color: var(--ok);
}
.dt156-converge ul { margin: 0; padding-left: 20px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.dt156-converge ul li { margin: 4px 0; }
.dt156-converge ul li b { color: var(--ink); font-weight: 600; }

/* ============================================================
   CARTES PAR ENTITÉ (gabarit identique 8 sections)
   ============================================================ */
.ent-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-top: 6px solid var(--ent, var(--ink));
  border-radius: 4px; padding: 22px 24px;
}
.ent-card .ec-head {
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--rule);
}
.ent-card .ec-head h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: 28px;
  margin: 0 0 6px; color: var(--ent, var(--ink)); letter-spacing: -.005em;
}
.ent-card .ec-head p.defi {
  margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
}
.ent-card .ec-head .urgence-tag {
  display: inline-block; padding: 4px 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 500;
  background: #f3dccf; color: var(--danger); border-radius: 2px;
}
.ent-card .ec-head .urgence-tag.calm {
  background: var(--bg-2); color: var(--ink-2);
}
.ent-card .ec-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.ent-card .ec-block {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 3px; padding: 12px 14px;
}
.ent-card .ec-block.full { grid-column: 1 / -1; }
.ent-card .ec-block .ec-lbl {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ent, var(--ink-3)); font-weight: 500;
  margin-bottom: 6px; display: block;
}
.ent-card .ec-block h5 {
  font-family: var(--font-serif); font-weight: 500; font-size: 15px;
  margin: 0 0 6px; color: var(--ink);
}
.ent-card .ec-block p {
  margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
}
.ent-card .ec-block ul {
  margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
}
.ent-card .ec-block ul li { margin: 4px 0; }
.ent-card .ec-block ul li b { color: var(--ink); font-weight: 600; }

.ent-card .ec-pieges {
  margin-top: 18px; background: #fffaf1; border: 1px solid var(--warn);
  border-left: 4px solid var(--warn); border-radius: 3px; padding: 12px 14px;
}
.ent-card .ec-pieges h5 {
  font-family: var(--font-serif); font-weight: 500; font-size: 15px;
  margin: 0 0 6px; color: var(--warn);
}
.ent-card .ec-pieges ul {
  margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
}
.ent-card .ec-pieges ul li { margin: 4px 0; }
.ent-card .ec-pieges ul li b { color: var(--ink); font-weight: 600; }

/* ============================================================
   SCHÉMAS SVG NATIFS — règles communes
   ============================================================ */
.fig-svg {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 4px; padding: 20px; margin: 14px 0;
}
.fig-svg svg {
  display: block; max-width: 100%; height: auto; margin: 0 auto;
}
.fig-svg figcaption {
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--rule);
  font-size: 12px; color: var(--ink-3); font-style: italic; line-height: 1.5; text-align: center;
}
.fig-svg figcaption b { color: var(--ink); font-style: normal; font-weight: 600; }

/* Près du genou, loin du coude */
.svg-ge .bone { fill: none; stroke: var(--ink); stroke-width: 2; }
.svg-ge .meta-hot { fill: color-mix(in oklab, var(--danger) 60%, transparent); stroke: var(--danger); stroke-width: 2; }
.svg-ge .meta-cold { fill: color-mix(in oklab, var(--ink-3) 30%, transparent); stroke: var(--ink-3); stroke-width: 1.5; }
.svg-ge text { fill: var(--ink); font-family: var(--font-sans); font-size: 12px; }
.svg-ge .lbl-hot  { fill: var(--danger); font-weight: 600; }
.svg-ge .lbl-cold { fill: var(--ink-3); }

/* Frise temporelle IOA matériel */
.svg-frise .axis { stroke: var(--ink); stroke-width: 1.5; }
.svg-frise .zone-precoce { fill: color-mix(in oklab, var(--danger) 25%, var(--paper)); stroke: var(--danger); stroke-width: 1.5; }
.svg-frise .zone-retard  { fill: color-mix(in oklab, var(--warn)   25%, var(--paper)); stroke: var(--warn);   stroke-width: 1.5; }
.svg-frise .zone-tard    { fill: color-mix(in oklab, var(--spe-cardio) 25%, var(--paper)); stroke: var(--spe-cardio); stroke-width: 1.5; }
.svg-frise text { fill: var(--ink); font-family: var(--font-sans); font-size: 12px; }
.svg-frise .zone-title { font-family: var(--font-serif); font-weight: 500; font-size: 14px; }
.svg-frise .axis-label { fill: var(--ink-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

/* Anatomie articulaire / ponction */
.svg-art .capsule  { fill: none; stroke: var(--ink); stroke-width: 2; }
.svg-art .synoviale { fill: color-mix(in oklab, var(--ent-spondylo) 30%, transparent); stroke: var(--ent-spondylo); stroke-width: 1.5; }
.svg-art .liquide  { fill: color-mix(in oklab, var(--spe-cardio) 25%, transparent); stroke: var(--spe-cardio); stroke-width: 1.5; }
.svg-art .cartilage { fill: color-mix(in oklab, var(--ok) 50%, var(--paper)); stroke: var(--ok); stroke-width: 1.5; }
.svg-art .needle { stroke: var(--danger); stroke-width: 3; fill: none; }
.svg-art .needle-tip { fill: var(--danger); }
.svg-art text { fill: var(--ink); font-family: var(--font-sans); font-size: 12px; }
.svg-art .lbl-warn { fill: var(--danger); font-weight: 600; }

/* Coupe rachidienne */
.svg-rachis .vertebre { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.5; }
.svg-rachis .disque-sain { fill: color-mix(in oklab, var(--ok) 40%, var(--paper)); stroke: var(--ok); stroke-width: 1.2; }
.svg-rachis .disque-infecte { fill: color-mix(in oklab, var(--danger) 50%, transparent); stroke: var(--danger); stroke-width: 2; }
.svg-rachis .abces-paravert { fill: color-mix(in oklab, var(--warn) 40%, transparent); stroke: var(--warn); stroke-width: 1.5; }
.svg-rachis .abces-epidural { fill: color-mix(in oklab, var(--danger) 35%, transparent); stroke: var(--danger); stroke-width: 1.5; stroke-dasharray: 4 3; }
.svg-rachis .moelle { fill: color-mix(in oklab, var(--spe-neuro) 40%, var(--paper)); stroke: var(--spe-neuro); stroke-width: 1.2; }
.svg-rachis text { fill: var(--ink); font-family: var(--font-sans); font-size: 11.5px; }
.svg-rachis .lbl-danger { fill: var(--danger); font-weight: 600; }

/* Cycle du biofilm */
.svg-biofilm .surf { fill: var(--ink-4); stroke: var(--ink); stroke-width: 1.5; }
.svg-biofilm .step-circle { fill: var(--paper-2); stroke: var(--ent-materiel); stroke-width: 2; }
.svg-biofilm .step-label { fill: var(--ent-materiel); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.svg-biofilm .step-title { fill: var(--ink); font-family: var(--font-serif); font-weight: 500; font-size: 13px; }
.svg-biofilm .step-body  { fill: var(--ink-2); font-family: var(--font-sans); font-size: 11px; }
.svg-biofilm .arrow { stroke: var(--ent-materiel); stroke-width: 2; fill: none; marker-end: url(#bf-arrow); }
.svg-biofilm .bact { fill: var(--danger); }
.svg-biofilm .matrix { fill: color-mix(in oklab, var(--warn) 35%, transparent); stroke: var(--warn); stroke-width: 1; }
.svg-biofilm .lbl-final { fill: var(--danger); font-family: var(--font-serif); font-weight: 600; font-size: 13px; }

/* ============================================================
   ALERTES (helper "alert-list" pour les pièges en bullet list)
   ============================================================ */
.alert-list {
  background: #f3dccf; border: 1px solid var(--danger);
  border-left: 4px solid var(--danger); border-radius: 3px;
  padding: 12px 14px; margin: 14px 0;
}
.alert-list .al-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--danger); margin-bottom: 4px; display: block;
}
.alert-list h5 {
  font-family: var(--font-serif); font-weight: 500; font-size: 15px;
  margin: 0 0 6px; color: var(--danger);
}
.alert-list ul {
  margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
}
.alert-list ul li { margin: 4px 0; }
.alert-list ul li b { color: var(--ink); font-weight: 600; }

/* ============================================================
   FRISE / FROISES temporelles compactes (péd / ATB)
   ============================================================ */
.frise {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 4px; padding: 14px 16px;
}
.frise-axis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 8px;
}
.frise-cell {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 3px; padding: 10px 12px;
}
.frise-cell .fc-h {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.frise-cell .fc-v {
  font-family: var(--font-serif); font-size: 14px; font-weight: 500; color: var(--ink);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .keypoints { grid-template-columns: repeat(2, 1fr); }
  .def-grid  { grid-template-columns: 1fr; }
  .etiogrid, .etiogrid.r-2, .etiogrid.r-4 { grid-template-columns: 1fr; }
  .traps { grid-template-columns: 1fr; }
  .ent-card .ec-grid { grid-template-columns: 1fr; }
  .dt156-branches { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .keypoints { grid-template-columns: 1fr; }
  .cmp-table { font-size: 11px; }
  .cmp-table th, .cmp-table td { padding: 8px 9px; }
  .frise-axis { grid-template-columns: 1fr 1fr; }
}
