/* « Comment on livre » — schéma en couloirs. Couleurs = variables du site (assets/site.css) : le thème clair /
   sombre et la bascule ◐ s'appliquent d'eux-mêmes. Aucune police tierce. */
.kta-schema { margin: 16px 0 24px; display: grid; gap: 10px; min-width: 0; }
.kta-schema-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--texte2); }
.kta-schema-legende span { display: inline-flex; align-items: center; gap: 7px; }
.kta-schema-pastille { width: 24px; height: 13px; border-radius: 3px; border: 2px solid var(--texte2); background: var(--fond2); }
.kta-schema-pastille.auto { border-color: var(--lien); }
.kta-schema-pastille.man { border-color: var(--marque); border-style: dashed; }
.kta-schema-pastille.stop { border-color: var(--alerte); border-width: 3px; }
.kta-schema-pastille.hot, .kta-schema-pastille.dash { height: 0; border-width: 2px 0 0; border-radius: 0; background: none; }
.kta-schema-pastille.hot { border-color: var(--lien); }
.kta-schema-pastille.dash { border-style: dashed; }
.kta-schema-cadre { overflow-x: auto; border: 1px solid var(--trait); border-radius: 10px; background: var(--fond3); }
.kta-schema-cadre svg { display: block; width: 100%; height: auto; }
/* Sur ordinateur le schéma tient dans la colonne ; sur petit écran il garde une taille lisible et défile dans son
   cadre, sans élargir la page. */
@media (max-width: 900px) { .kta-schema-cadre svg { min-width: 940px; } }
.kta-sch-couloir { fill: var(--fond2); }
.kta-sch-couloir.alt { fill: var(--fond3); }
.kta-sch-lieu { fill: var(--texte); font: 700 15px var(--sans); }
.kta-sch-lieu-sous { fill: var(--texte2); font: 11px var(--sans); }
.kta-sch-moment { fill: var(--texte2); font: 600 12px var(--mono); letter-spacing: .05em; }
.kta-sch-sep { stroke: var(--trait); stroke-width: 1; }
.kta-sch-etape rect { fill: var(--fond); stroke-width: 2; }
.kta-sch-etape.auto rect { stroke: var(--lien); }
.kta-sch-etape.man rect { stroke: var(--marque); stroke-dasharray: 6 4; }
.kta-sch-etape.stop rect { stroke: var(--alerte); stroke-width: 3; }
.kta-sch-etape .t { fill: var(--texte); font: 700 14px var(--sans); }
.kta-sch-etape .l { fill: var(--texte2); font: 12.5px var(--sans); }
.kta-sch-lien { fill: none; stroke: var(--texte2); stroke-width: 1.7; }
.kta-sch-lien.dash { stroke-dasharray: 5 4; }
.kta-sch-lien.hot { stroke: var(--lien); }
.kta-sch-lien-texte { fill: var(--texte); font: 12px var(--sans); paint-order: stroke; stroke: var(--fond3);
  stroke-width: 5px; stroke-linejoin: round; }
.kta-sch-fleche { fill: var(--texte2); }
.kta-sch-fleche.hot { fill: var(--lien); }
@media print {
  .kta-schema-cadre { overflow: visible; }
  .kta-schema-cadre svg { min-width: 0; }
  .kta-schema { break-inside: avoid; }
}
