/* =====================================================================
   THE OPERATORY  (sjbarrett.com)  |  direction 09. Le Tableau de Classement
   squelette rhabille : fiches-reference (prefixe .tc-, pour treatment chart)
   Tout le vocabulaire de classes est tire du SPEC.md du squelette, renomme.
   Aucune requete externe : piles systeme, aucun fichier de police.
   ===================================================================== */

/* REGLE NEGATIVE 1 : aucun vert de validation ni rouge d'alerte. --douglas est une matiere
   (bois de douglas), jamais un « bon ». Une ligne de tableau ne change jamais de couleur pour
   signifier un jugement, et aucune pastille, etoile ni badge n'habille une ligne.
   REGLE NEGATIVE 2 : --laiton ne porte jamais de texte courant, jamais de lien, jamais de
   paragraphe. Filet, ligne de tete du tableau, trait de fin de barre d'emprise, etiquette de
   phase active : rien d'autre.
   REGLE NEGATIVE 3 : aucun aplat de couleur derriere un bloc de texte long (plus de trois
   lignes). Les fonds admis sont --papier-creux (protocole, thead, colophon, frise), --papier-relief
   (ligne paire, vignette) et le bloc encre de la seule plaque de tete d'article (deux lignes de
   texte, jamais plus).
   REGLE NEGATIVE 4 : le rang d'une ligne mesure une contrainte de plan, jamais un merite. La barre
   d'emprise mesure une part de surface occupee, jamais une note. */

:root {
  /* ---------- 1. MATIERES (papier de bloc clinique, vert douglas, laiton) ---------- */
  --papier:        #F4F1E6;   /* papier de bloc clinique : fond general de toutes les pages */
  --papier-creux:  #E9E5D6;   /* buvard de sous-main : protocole, thead, colophon, frise */
  --papier-relief: #FBFAF4;   /* email de plan de travail : ligne paire, vignette, planche */
  --fer:           #232A20;   /* fer forge de fauteuil : texte courant, vedettes, chiffres */
  --pierre:        #5C6356;   /* galet de riviere : mentions, unites, legendes, reserve */
  --douglas:       #3F5C33;   /* sapin de Douglas : filet de protocole, rang, vedette survolee */
  --douglas-voile: #D7DFCE;   /* sciure de douglas : remplissage de la barre d'emprise, seul usage */
  --ardoise:       #38506B;   /* ardoise humide : en-tetes de colonne, renvois croises */
  --laiton:        #B07D2A;   /* laiton brosse : ligne de tete, fin de barre, phase active */
  --craie-trait:   #C9C2AC;   /* trait de craie sur plan : tous les filets fins de 1 px */
  --craie-fort:    #A79E86;   /* mine de plomb : filets structurants, bordures de tableau */
  --selection:     #DCE3D0;   /* ruban de masquage : fond de selection de texte */
  /* jetons de bande sombre (matiere sous-bois, sombre) : servent au seul bloc encre du site,
     la plaque de tete d'article, qui porte deux lignes de texte et pas davantage. */
  --nuit-fond:     #1E2419;
  --nuit-encre:    #EDE8D6;
  --nuit-accent:   #9DBE7F;
  --nuit-filet:    #3E4A33;

  /* ---------- 2. PILES (systeme uniquement) ---------- */
  --titre-police: Optima, Candara, "Gill Sans", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --texte-police: Charter, "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
  --cote-police:  "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  /* ---------- 3. RYTHME ---------- */
  --mesure:        36rem;     /* environ 66 ch en Charter a 17 px, borne haute 72 ch */
  --marge-largeur: 10.5rem;   /* gouttiere de reperes ; sous 15 % de --cadre, voir notes de build */
  --cadre:         74rem;
  --gouttiere:     2.5rem;
  --pas:           1.15rem;
  --rayon:         0;         /* aucun angle arrondi, aucune ombre portee molle */
  --graisse-titre: 600;

  /* ---------- 4. TAILLES ---------- */
  --t-base:        clamp(1rem, .96rem + .2vw, 1.06rem);
  --t-petit:       0.86rem;
  --t-menu:        0.76rem;
  --t-cote:        0.9rem;
  --t-h1:          clamp(1.85rem, 1.4rem + 1.9vw, 2.6rem);
  --t-h2:          clamp(1.32rem, 1.15rem + .7vw, 1.62rem);
  --t-h3:          1.08rem;
  --il-titre:      1.12;
  --il-texte:      1.5;       /* interligne serre volontaire du squelette */

  /* ---------- 5. DEUX RATIOS, pas trois ---------- */
  --ratio-planche: 3 / 2;     /* toute image de tete : accueil, rubrique, article */
  --ratio-detail:  1 / 1;     /* vignette de ligne, de nomenclature, de pupitre de phase */
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0; background: var(--papier); color: var(--fer);
  font-family: var(--texte-police); font-size: var(--t-base); line-height: var(--il-texte);
  font-kerning: normal; text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
::selection { background: var(--selection); color: var(--fer); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ardoise); text-underline-offset: .14em; text-decoration-thickness: from-font; }
a:hover { color: var(--douglas); }
:focus-visible { outline: 2px solid var(--douglas); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--titre-police); font-weight: var(--graisse-titre); margin: 0; color: var(--fer); }
h1 { line-height: var(--il-titre); letter-spacing: .005em; }
h2 { line-height: 1.2; letter-spacing: .005em; }
h3 { line-height: 1.2; letter-spacing: .01em; }
p, ul, ol, dl, table, figure, blockquote { margin: 0; }
.tc-flux > * + * { margin-top: var(--pas); }

/* =====================================================================
   OSSATURE
   ===================================================================== */
.tc-evitement {
  position: absolute; left: -9999px; top: 0; background: var(--fer); color: var(--papier);
  padding: .6rem 1rem; font-family: var(--titre-police); z-index: 50;
}
.tc-evitement:focus { left: .5rem; top: .5rem; position: fixed; }
.tc-corpus { width: 100%; max-width: var(--cadre); margin: 0 auto; padding: 0 1.15rem; }

/* =====================================================================
   ENTETE (frontispice) : plaque-titre + etat d'edition + navigation
   ===================================================================== */
.tc-entete { border-bottom: 2px solid var(--fer); background: var(--papier); }
.tc-entete__haut {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1.5rem; padding: 1.1rem 0 .75rem;
}
.tc-plaque-titre { display: block; text-decoration: none; color: inherit; }
.tc-plaque-titre__nom {
  display: block; font-family: var(--titre-police); font-weight: 600; letter-spacing: .005em;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
}
.tc-plaque-titre__sous {
  display: block; margin-top: .25rem; font-family: var(--cote-police); font-size: var(--t-menu);
  letter-spacing: .14em; text-transform: uppercase; color: var(--pierre);
}
.tc-etat {
  font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .05em;
  color: var(--pierre); text-align: right; font-variant-numeric: tabular-nums;
}
.tc-etat span { display: block; }
@media (max-width: 45.99em) { .tc-etat span + span { display: none; } .tc-etat { text-align: left; } }

.tc-navigation { border-top: 1px solid var(--craie-trait); padding: .35rem 0 .55rem; }
.tc-menu__case { position: absolute; opacity: 0; pointer-events: none; }
.tc-menu__declencheur {
  display: block; font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .14em;
  text-transform: uppercase; color: var(--fer); padding: .35rem 0; cursor: pointer;
}
.tc-menu__declencheur::before { content: "\25A0\00a0\00a0"; color: var(--douglas); }
.tc-navigation ul { list-style: none; margin: 0; padding: 0; display: none; }
.tc-navigation li { border-bottom: 1px dotted var(--craie-trait); }
.tc-navigation a {
  display: block; padding: .4rem 0; font-family: var(--titre-police); font-size: var(--t-petit);
  color: var(--fer); text-decoration: none; border-bottom: 2px solid transparent;
}
.tc-menu__case:checked ~ ul { display: block; }
.tc-menu__case:focus-visible ~ .tc-menu__declencheur { outline: 2px solid var(--douglas); outline-offset: 2px; }
@media (min-width: 54em) {
  .tc-menu__declencheur { display: none; }
  .tc-navigation ul { display: flex; flex-wrap: wrap; gap: .15rem 1.5rem; }
  .tc-navigation li { border-bottom: 0; }
  .tc-navigation a { display: inline-block; padding: .2rem 0; }
  .tc-navigation a:hover, .tc-navigation a[aria-current="page"] {
    border-bottom-color: var(--laiton); color: var(--fer);
  }
}

/* =====================================================================
   FIL (chemin de lecture)
   ===================================================================== */
.tc-fil { font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .05em; color: var(--pierre); padding: .85rem 0 0; }
.tc-fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tc-fil li + li::before { content: "\203A\00a0"; color: var(--craie-fort); }
.tc-fil a { color: var(--pierre); }

/* =====================================================================
   PLAN DE PAGE : gouttiere de reperes + colonne de lecture
   ===================================================================== */
.tc-plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem var(--gouttiere); padding: 1.4rem 0 2.5rem; align-items: start; }
.tc-marge { order: 2; }
.tc-lecture { order: 1; }
@media (min-width: 60em) {
  .tc-plan { grid-template-columns: var(--marge-largeur) minmax(0, 1fr); }
  .tc-plan > .tc-marge { grid-column: 1; grid-row: 1; order: 0; }
  .tc-plan > .tc-lecture { grid-column: 2; grid-row: 1; order: 0; }
  .tc-plan--inverse { grid-template-columns: minmax(0, 1fr) var(--marge-largeur); }
  .tc-plan--inverse > .tc-marge { grid-column: 2; }
  .tc-plan--inverse > .tc-lecture { grid-column: 1; }
}
.tc-marge { font-size: var(--t-petit); color: var(--pierre); border-top: 2px solid var(--fer); padding-top: .6rem; }
@media (min-width: 60em) { .tc-marge { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; } }
.tc-marge__titre { font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .12em; text-transform: uppercase; color: var(--fer); margin-bottom: .45rem; }
.tc-marge ul { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.tc-marge li { border-bottom: 1px dotted var(--craie-trait); }
.tc-marge li a { display: block; padding: .28rem 0; color: var(--fer); text-decoration: none; }
.tc-marge li a:hover { color: var(--douglas); }
.tc-lecture { max-width: 100%; }
.tc-lecture--mesure { max-width: var(--mesure); }

/* =====================================================================
   TRANCHES (sections) + OUVERTURE
   ===================================================================== */
.tc-tranche { padding: 0 0 1.9rem; }
.tc-tranche + .tc-tranche { border-top: 1px solid var(--craie-trait); padding-top: 1.5rem; }
.tc-tranche__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .9rem; }
/* filet de mesure double, inegal, sous chaque h2 de tranche : la ligne de cote d'un plan */
.tc-tranche__titre {
  font-size: var(--t-h2); border-bottom: 1px solid var(--craie-fort); box-shadow: 0 3px 0 -2px var(--craie-trait);
  padding-bottom: .2rem;
}
.tc-tranche__titre .tc-numero { font-family: var(--cote-police); color: var(--douglas); margin-right: .45rem; font-weight: 400; }
.tc-tranche__mention { font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .1em; text-transform: uppercase; color: var(--pierre); }
.tc-chapeau { font-size: 1.03rem; max-width: var(--mesure); }
.tc-ouverture { padding: 0 0 1.4rem; }
/* le chapeau, la mention d'edition et la glose d'ouverture restent dans la mesure : la planche, elle, deborde */
.tc-ouverture p, .tc-ouverture .tc-chapeau, .tc-ouverture .tc-mention { max-width: var(--mesure); }
/* toute mention de service reste elle aussi dans la mesure */
.tc-mention { max-width: var(--mesure); }
.tc-ouverture > * + * { margin-top: .7rem; }
.tc-titre-page { font-size: var(--t-h1); font-weight: 600; }
.tc-mention { font-size: var(--t-petit); color: var(--pierre); }
.tc-tampon { font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .12em; text-transform: uppercase; color: var(--pierre); }
.tc-plaque__ligne .tc-cote { min-width: 6rem; }

/* plaque de tete d'article : seul bloc encre du site, deux lignes de texte */
.tc-plaque { background: var(--nuit-fond); color: var(--nuit-encre); padding: 1.4rem 1.4rem 1.2rem; margin: 0 0 1.4rem; }
.tc-plaque h1 { color: var(--nuit-encre); }
.tc-plaque .tc-mention, .tc-plaque .tc-tampon { color: var(--nuit-accent); }
.tc-plaque .tc-cote { color: var(--nuit-accent); }
.tc-plaque .tc-cote::before { background: var(--nuit-filet); }
.tc-plaque__ligne { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .5rem; }

/* =====================================================================
   SIGNATURE A : LA COTE DE PLAN (tc-cote)
   trait de rappel de 1 px qui court jusqu'a la valeur, valeur en condensee
   a chiffres tabulaires, unite en petites capitales pales.
   ===================================================================== */
.tc-cote {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem;
  font: 600 var(--t-cote)/1 var(--cote-police);
  font-variant-numeric: tabular-nums lining-nums; color: var(--fer);
}
.tc-cote::before { content: ""; height: 1px; background: var(--craie-trait); transform: translateY(.05em); }
.tc-cote span { font-size: .72em; letter-spacing: .14em; text-transform: uppercase; color: var(--pierre); }

/* =====================================================================
   SIGNATURE B : L'ENCADRE DE PROTOCOLE (tc-protocole)
   filet superieur de 3 px en vert douglas, fond papier creux, titre en
   capitales espacees, et derniere ligne en italique de reserve.
   ===================================================================== */
.tc-protocole { border-top: 3px solid var(--douglas); background: var(--papier-creux); padding: 1.1rem 1.25rem; max-width: var(--mesure); }
.tc-protocole > h3 {
  font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .16em;
  text-transform: uppercase; color: var(--fer); margin: 0 0 .5rem;
}
.tc-protocole ul { list-style: square; padding-left: 1.15rem; }
.tc-protocole li { padding: .1rem 0; font-size: var(--t-petit); }
.tc-protocole > p:last-child {
  font-style: italic; color: var(--pierre); border-top: 1px solid var(--craie-trait);
  padding-top: .55rem; margin-top: .7rem;
}
.tc-protocole--methode { margin-left: auto; margin-right: 0; }
@media (min-width: 60em) { .tc-protocole--methode { margin-right: calc(var(--marge-largeur) / 2); } }

/* =====================================================================
   SIGNATURE C : LA BARRE D'EMPRISE AU SOL (tc-emprise)
   part de surface occupee, linear-gradient sur le fond de cellule, sans SVG,
   trait de fin de barre en laiton de 2 px.
   ===================================================================== */
.tc-emprise {
  background-image: linear-gradient(to right, var(--douglas-voile) 0 var(--part, 0%), transparent var(--part, 0%) 100%);
  position: relative; min-width: 9rem;
}
.tc-emprise::after { content: ""; position: absolute; inset-block: .2rem; left: var(--part, 0%); width: 2px; background: var(--laiton); }
.tc-emprise > b { font-variant-numeric: tabular-nums; font-weight: 600; font-family: var(--cote-police); font-size: var(--t-cote); }

/* =====================================================================
   TRAME DE PLAN (tc-calque) : grille de calque a pas de 8 mm, uniquement
   sur le fond de la frise de phases et de la planche de degagement.
   ===================================================================== */
.tc-calque {
  background-color: var(--papier-relief);
  background-image: repeating-linear-gradient(to right, var(--craie-trait) 0 1px, transparent 1px 2.25rem),
                    repeating-linear-gradient(to bottom, var(--craie-trait) 0 1px, transparent 1px 2.25rem);
  background-position: 0 0;
}
.tc-calque > * { position: relative; }

/* =====================================================================
   ABECEDAIRE
   ===================================================================== */
.tc-abecedaire { border-top: 1px solid var(--craie-fort); border-bottom: 1px solid var(--craie-fort); padding: .5rem 0; margin: 0 0 1.4rem; }
.tc-abecedaire ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem; }
.tc-abecedaire a, .tc-abecedaire span {
  display: inline-block; min-width: 1.7rem; padding: .18rem .25rem; text-align: center;
  font-family: var(--cote-police); font-size: var(--t-petit); letter-spacing: .06em;
  text-decoration: none; color: var(--fer); border: 1px solid transparent;
}
.tc-abecedaire a:hover, .tc-abecedaire a[aria-current="page"] { border-color: var(--laiton); color: var(--fer); }
.tc-abecedaire span { color: var(--craie-fort); }
@media (max-width: 34.99em) { .tc-abecedaire { display: none; } }

/* =====================================================================
   NOMENCLATURE (listes de definitions) : dl > div > dt + dd
   ===================================================================== */
.tc-nomenclature { margin: 0; }
.tc-entree {
  border-top: 1px solid var(--craie-trait); padding: .7rem 0 .75rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem 1rem;
}
@media (min-width: 46em) { .tc-entree { grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); } }
.tc-entree:hover { background: var(--papier-relief); }
.tc-nomenclature > .tc-entree:first-of-type { border-top: 2px solid var(--fer); }
.tc-vedette { font-family: var(--titre-police); font-weight: 600; font-size: var(--t-h3); margin: 0; line-height: 1.25; }
.tc-vedette a { color: var(--fer); text-decoration: none; }
.tc-vedette a:hover { color: var(--douglas); text-decoration: underline; }
.tc-vedette__variante { display: block; font-family: var(--texte-police); font-style: italic; font-weight: 400; font-size: var(--t-petit); color: var(--pierre); }
.tc-vignette { margin: .45rem 0 0; }
.tc-vignette img { aspect-ratio: var(--ratio-detail); object-fit: cover; filter: saturate(.92); width: 100%; border: 1px solid var(--craie-fort); background: var(--papier-relief); }
.tc-glose { margin: 0; font-size: .97rem; }
.tc-glose > p { max-width: var(--mesure); }
.tc-glose p + p { margin-top: .4rem; }
/* entree illustree : la vignette 1/1 ouvre la definition, dans la colonne du texte (fiche de soins) */
.tc-glose--vignette { display: grid; grid-template-columns: 10rem minmax(0, 1fr); column-gap: 1.2rem; align-items: start; }
.tc-glose--vignette .tc-vignette { margin: 0; grid-row: 1 / span 3; }
.tc-glose--vignette > p { grid-column: 2; }
@media (max-width: 45.99em) {
  .tc-glose--vignette { display: block; }
  .tc-glose--vignette .tc-vignette { margin: 0 0 .5rem; max-width: 10rem; }
}
/* etiquette condensee : dates, sections, phases, numeros d'operatory. Jamais une phrase. */
.tc-repere {
  display: block; font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .1em;
  text-transform: uppercase; color: var(--pierre); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
}
.tc-repere a { color: var(--pierre); }
/* la ligne de reperes d'une entree vit dans la gouttiere de 10,5 rem : elle doit se replier
   dans cette gouttiere et ne jamais deborder sur la glose de droite (corrige au rendu du 16/09). */
.tc-entree .tc-vedette .tc-repere { white-space: normal; overflow-wrap: break-word; }

.tc-repere a:hover { color: var(--douglas); }
.tc-etiquette {
  display: inline-block; font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .08em;
  text-transform: uppercase; color: var(--fer); border: 1px solid var(--craie-fort); padding: .05rem .4rem; margin-right: .3rem;
}
.tc-lettrage {
  display: flex; align-items: baseline; gap: .7rem; font-family: var(--titre-police); font-size: 1.5rem;
  font-weight: 600; color: var(--douglas); border-bottom: 2px solid var(--fer); padding: 1.5rem 0 .25rem; scroll-margin-top: 1rem;
}
.tc-lettrage__compte { font-family: var(--cote-police); font-size: var(--t-menu); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--pierre); }
.tc-lettrage + .tc-nomenclature .tc-entree:first-of-type { border-top: 0; }

/* index plat du squelette, mis en colonnes par le CSS */
.tc-index { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: var(--gouttiere); }
@media (min-width: 46em) { .tc-index { columns: 2; } }
@media (min-width: 60em) { .tc-index { columns: 3; } }
.tc-index li { break-inside: avoid; border-bottom: 1px dotted var(--craie-trait); padding: .22rem 0; font-size: var(--t-petit); }
.tc-index a { color: var(--fer); text-decoration: none; }
.tc-index a:hover { color: var(--douglas); text-decoration: underline; }
.tc-index .tc-repere { float: right; display: inline; padding-left: .5rem; }

/* =====================================================================
   ABAQUE (tableau comparatif) + TABLEAU
   ===================================================================== */
.tc-abaque { overflow-x: auto; border: 1px solid var(--craie-fort); background: var(--papier); max-width: 100%; }
.tc-abaque:focus-visible { outline: 2px solid var(--douglas); outline-offset: 0; }
.tc-tableau {
  border-collapse: collapse; width: 100%; min-width: 40rem; font-size: var(--t-petit);
  font-variant-numeric: tabular-nums lining-nums; font-family: var(--texte-police);
}
.tc-tableau caption {
  caption-side: top; text-align: left; font-family: var(--cote-police); font-size: var(--t-menu);
  letter-spacing: .1em; text-transform: uppercase; color: var(--pierre); padding: .5rem .7rem; border-bottom: 1px solid var(--craie-trait);
}
.tc-tableau th, .tc-tableau td { padding: .45rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--craie-trait); }
.tc-tableau thead th {
  position: sticky; top: 0; z-index: 2; background: var(--papier-creux); color: var(--ardoise);
  font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .1em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--craie-fort); white-space: nowrap;
}
.tc-tableau tbody th { font-family: var(--titre-police); font-weight: 600; white-space: nowrap; }
.tc-tableau tbody tr:nth-child(even) { background: var(--papier-relief); }
.tc-tableau tbody tr:last-child th, .tc-tableau tbody tr:last-child td { border-bottom: 0; }
/* la ligne de tete du classement porte le laiton ; c'est un filet, jamais un jugement */
.tc-tableau tbody tr.tc-tete th, .tc-tableau tbody tr.tc-tete td { border-bottom: 2px solid var(--laiton); }
/* gouttiere de rang : chiffres elzeviriens, cote de plan a gauche de chaque ligne */
.tc-tableau .tc-rang { width: 3rem; text-align: right; padding-right: .5rem; vertical-align: top; }
.tc-tableau .tc-rang .tc-cote { grid-template-columns: 1fr auto; font-size: var(--t-cote); font-variant-numeric: oldstyle-nums; color: var(--douglas); }
.tc-tableau .tc-rang .tc-cote::before { background: var(--craie-fort); }
.tc-tableau td.tc-cote, .tc-tableau th.tc-cote { grid-template-columns: none; display: table-cell; }
.tc-defilement-note { font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .06em; color: var(--pierre); margin-top: .35rem; }
@media (min-width: 46em) { .tc-defilement-note { display: none; } }

/* =====================================================================
   RENVOIS CROISES
   ===================================================================== */
.tc-renvoi { color: var(--ardoise); font-style: italic; }
.tc-renvoi::before { content: "\2192\00a0"; font-style: normal; }
.tc-renvois {
  list-style: none; margin: 0; padding: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem;
  border-top: 1px solid var(--craie-trait); font-size: var(--t-petit);
}
.tc-renvois li::before { content: "\2192\00a0"; color: var(--craie-fort); }
.tc-renvois a { color: var(--ardoise); text-decoration: none; }
.tc-renvois a:hover { text-decoration: underline; }

/* =====================================================================
   EXERGUE, LETTRINE, PARA A MANCHETTE
   ===================================================================== */
.tc-exergue { font-size: 1.08rem; border-top: 2px solid var(--fer); border-bottom: 1px solid var(--craie-trait); padding: .85rem 0; margin: 0 0 1.3rem; max-width: var(--mesure); }
.tc-exergue strong { font-family: var(--titre-police); }
.tc-lettrine::first-letter {
  font-family: var(--titre-police); font-size: 3.1em; line-height: .82; float: left;
  padding: .06em .1em 0 0; color: var(--douglas); font-weight: 600;
}
.tc-para { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding: 1.2rem 0; border-top: 1px solid var(--craie-trait); }
.tc-para ul, .tc-para ol, .tc-glose ul, .tc-protocole ul { padding-left: 1.15rem; }
.tc-para li { padding: .1rem 0; }
.tc-para > .tc-lettrine { grid-column: 1; }
.tc-manchette {
  font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .12em; text-transform: uppercase;
  color: var(--douglas); padding-top: .15rem;
}
.tc-manchette .tc-numero { color: var(--pierre); }
.tc-manchette .tc-libelle { color: var(--douglas); }
/* colonne de corps : ce qui se lit, en regard de la gouttiere de reperes */
.tc-corps { min-width: 0; }
/* le propos d'ouverture, hors manchette, reste borne par la mesure de lecture comme les blocs numerotes */
.tc-corps > p, .tc-corps > ul, .tc-corps > ol, .tc-corps > h3, .tc-corps > blockquote, .tc-corps > .tc-transition { max-width: var(--mesure); }
@media (min-width: 60em) {
  .tc-para { grid-template-columns: 10.5rem minmax(0, 1fr); gap: .75rem var(--gouttiere); }
  /* un conteneur DOM par colonne visuelle : la manchette est une colonne, le texte en est une autre */
  .tc-para > .tc-colonne { grid-column: 2; min-width: 0; }
  .tc-para > .tc-colonne > p, .tc-para > .tc-colonne > ul, .tc-para > .tc-colonne > ol,
  .tc-para > .tc-colonne > h3, .tc-para > .tc-colonne > blockquote { max-width: var(--mesure); }
  .tc-manchette { grid-column: 1; grid-row: 1; text-align: right; align-self: start; }
}

/* =====================================================================
   CONSIGNE (dl a trois entrees) et AVANT / APRES
   ===================================================================== */
.tc-consigne { margin: 1.6rem 0 0; border-top: 3px solid var(--douglas); background: var(--papier-creux); padding: 1.1rem 1.25rem; max-width: var(--mesure); }
.tc-consigne dt {
  font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .14em; text-transform: uppercase;
  color: var(--fer); padding-top: .6rem;
}
.tc-consigne dd { margin: .2rem 0 0; font-size: var(--t-petit); }
.tc-consigne dd + dt { border-top: 1px solid var(--craie-trait); margin-top: .6rem; }
.tc-consigne .tc-reserve { font-style: italic; color: var(--pierre); }
.tc-reserve { font-style: italic; color: var(--pierre); }
.tc-avant-apres { display: grid; grid-template-columns: minmax(0, 1fr); margin: 1.5rem 0 0; max-width: var(--mesure); }
@media (min-width: 46em) { .tc-avant-apres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-avant-apres > div { padding: 1rem 1.1rem; border-top: 1px solid var(--craie-fort); }
@media (min-width: 46em) { .tc-avant-apres > div + div { border-left: 1px solid var(--craie-trait); } }
.tc-avant-apres h3 { font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.tc-avant-apres p { font-size: var(--t-petit); }
.tc-avant-apres p + p { margin-top: .5rem; }

/* =====================================================================
   PLANCHE (image de tete) et LEGENDE
   ===================================================================== */
.tc-planche { margin: 0; }
.tc-planche img {
  border: 1px solid var(--craie-fort); background: var(--papier-relief); padding: .4rem; width: 100%;
  aspect-ratio: var(--ratio-planche); object-fit: cover;
}
.tc-legende { font-size: var(--t-petit); color: var(--pierre); padding-top: .35rem; border-bottom: 1px solid var(--craie-trait); padding-bottom: .5rem; max-width: var(--mesure); }
.tc-legende p { max-width: var(--mesure); }
.tc-legende .tc-repere { margin-top: .2rem; }
.tc-planche--large { max-width: none; }
@media (min-width: 60em) {
  .tc-planche--large { margin-inline: calc(-1 * var(--gouttiere)); }
}

/* =====================================================================
   FEUILLE : la tranche du tableau maitre
   ===================================================================== */
.tc-feuille { padding-top: 1.2rem; }
.tc-feuille .tc-abaque { border-color: var(--fer); }

/* FLUX DATE : deux colonnes asymetriques, reperes a gauche */
.tc-releve { padding: 0 0 1.4rem; }
.tc-releve .tc-nomenclature { max-width: 100%; }

/* =====================================================================
   FRISE DE PHASES : bande retournee, fond plein, trame de calque
   ===================================================================== */
.tc-frise {
  background: var(--papier-creux); margin-inline: calc(50% - 50vw); padding: 1.8rem calc(50vw - 50%);
}
.tc-frise__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem var(--gouttiere); }
@media (min-width: 46em) { .tc-frise__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60em) { .tc-frise__grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tc-pupitre { border-top: 1px solid var(--craie-fort); padding: .9rem 0 0; }
.tc-pupitre > h3 { font-family: var(--titre-police); font-size: var(--t-h3); }
.tc-pupitre__cote { margin: .35rem 0 .5rem; }
.tc-pupitre p { font-size: var(--t-petit); }
.tc-pupitre img { aspect-ratio: var(--ratio-detail); object-fit: cover; filter: saturate(.92); width: 100%; border: 1px solid var(--craie-fort); background: var(--papier-relief); margin: .6rem 0 .5rem; }
.tc-onglet {
  display: inline-block; font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .14em;
  text-transform: uppercase; padding: .2rem .5rem; border: 1px solid var(--craie-fort); color: var(--pierre); text-decoration: none;
}
.tc-onglet--actif { border-color: var(--laiton); color: var(--fer); }
.tc-onglets { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (min-width: 60em) { .tc-onglets { justify-content: flex-end; } }

/* =====================================================================
   RUBRIQUES : les quatre portes d'entree de l'accueil
   ===================================================================== */
.tc-rubriques { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem var(--gouttiere); }
@media (min-width: 46em) { .tc-rubriques { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60em) { .tc-rubriques { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tc-rubrique { border-top: 1px solid var(--craie-fort); padding-top: .7rem; }
.tc-rubrique > h3 { font-size: var(--t-h3); }
.tc-rubrique > h3 a { color: var(--fer); text-decoration: none; }
.tc-rubrique > h3 a:hover { color: var(--douglas); text-decoration: underline; }
.tc-rubrique .tc-numero { display: block; font-family: var(--cote-police); color: var(--douglas); font-size: var(--t-menu); letter-spacing: .14em; }
.tc-rubrique p { font-size: var(--t-petit); margin-top: .35rem; }

/* =====================================================================
   ENVELOPPE DE DEGAGEMENT (idee inattendue) : trois zones imbriquees,
   filets de 1 px sur trame de calque, cotes en chiffres tabulaires.
   ===================================================================== */
.tc-enveloppe { border: 1px solid var(--craie-fort); padding: .8rem; margin: 1.5rem 0 0; max-width: 100%; }
.tc-zone { border: 1px solid var(--craie-trait); padding: 1.6rem 1.6rem 1.9rem; position: relative; }
.tc-zone__nom {
  position: absolute; top: .35rem; left: .5rem; font-family: var(--cote-police); font-size: var(--t-menu);
  letter-spacing: .16em; text-transform: uppercase; color: var(--pierre);
}
.tc-zone__cote { position: absolute; font-family: var(--cote-police); font-size: var(--t-menu); font-variant-numeric: tabular-nums lining-nums; color: var(--fer); letter-spacing: .06em; white-space: nowrap; }
.tc-zone__cote--bas { left: .5rem; bottom: .3rem; }
.tc-zone__cote--droite { right: .4rem; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; }
.tc-zone__cote::before { content: ""; display: inline-block; width: 1.1rem; height: 1px; background: var(--craie-fort); vertical-align: middle; margin-right: .3rem; }
.tc-enveloppe__reserve { font-style: italic; color: var(--pierre); font-size: var(--t-petit); margin-top: .7rem; max-width: var(--mesure); }
@media (max-width: 46em) {
  .tc-enveloppe { padding: .6rem; }
  .tc-zone { padding: 2.1rem .8rem .7rem; }
  .tc-zone__cote--droite { position: static; writing-mode: horizontal-tb; transform: none; display: block; margin-top: .35rem; }
  .tc-zone__cote--bas { position: static; display: block; margin-top: .35rem; }
}

/* =====================================================================
   JALONS et COLOPHON
   ===================================================================== */
.tc-jalons { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; border-top: 2px solid var(--fer); margin-top: 1.6rem; padding-top: .9rem; }
@media (min-width: 46em) { .tc-jalons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-jalon { text-decoration: none; color: var(--fer); display: block; padding: .4rem 0; }
.tc-jalon:hover .tc-jalon__nom { color: var(--douglas); text-decoration: underline; }
.tc-jalon__sens { display: block; font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .12em; text-transform: uppercase; color: var(--pierre); }
.tc-jalon__nom { font-family: var(--titre-police); font-weight: 600; }
.tc-jalon--suivant { text-align: left; }
@media (min-width: 46em) { .tc-jalon--suivant { text-align: right; } }

.tc-colophon { border-top: 2px solid var(--fer); background: var(--papier-creux); padding: 1.6rem 0 2rem; font-size: var(--t-petit); }
.tc-colophon__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem var(--gouttiere); align-items: start; }
@media (min-width: 46em) { .tc-colophon__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60em) { .tc-colophon__grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tc-colophon h2 { font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .45rem; }
.tc-colophon ul { list-style: none; margin: 0; padding: 0; }
.tc-colophon li { padding: .16rem 0; }
.tc-colophon a { color: var(--fer); }
.tc-colophon a:hover { color: var(--douglas); }
.tc-colophon__pied {
  border-top: 1px solid var(--craie-fort); margin-top: 1.3rem; padding-top: .8rem; color: var(--pierre);
  font-family: var(--cote-police); font-size: var(--t-menu); letter-spacing: .05em;
  display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; justify-content: space-between;
}
.tc-colophon .tc-protocole { margin-top: 1.1rem; }

/* =====================================================================
   IMPRESSION : navigation, reperes, abecedaire et jalons masques,
   tableaux deplies, enveloppes conservees avec leurs cotes, URLs imprimees.
   ===================================================================== */
@media print {
  :root { --papier: #ffffff; --papier-creux: #ffffff; --papier-relief: #ffffff; }
  .tc-navigation, .tc-marge, .tc-abecedaire, .tc-jalons, .tc-evitement, .tc-onglets, .tc-menu__declencheur { display: none; }
  .tc-plan { grid-template-columns: minmax(0, 1fr); }
  .tc-frise { margin-inline: 0; padding: 1rem 0; }
  a { color: inherit; text-decoration: none; }
  .tc-renvoi::after, .tc-renvois a::after { content: " (" attr(href) ")"; font-family: var(--cote-police); font-size: .8em; }
  .tc-abaque { overflow: visible; }
  .tc-tableau { min-width: 0; }
  .tc-enveloppe { break-inside: avoid; }
  .tc-plaque { background: none; color: var(--fer); }
  .tc-plaque h1, .tc-plaque .tc-mention, .tc-plaque .tc-cote { color: var(--fer); }
}
