/* PEAU « Le Tableau de Distribution » — Volterre, electricite-kagan.be. Préfixe td-.
   Voir l'en-tête de theme.mjs pour la métaphore et les gestes signature. */
@font-face { font-family: 'td-condensed'; src: url('/td-condensed-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'td-sans'; src: url('/td-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'td-sans'; src: url('/td-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --td-creme: #f0ede2;
  --td-papier: #faf8f0;
  --td-encre: #20293b;
  --td-encre-2: #2e3950;
  --td-fil-bleu: #2b6cb0;
  --td-terre: #6b8f2a;
  --td-rouille: #b4532a;
  --td-rouille-2: #8f4220;
  --td-jaune: #f2b705;
  --td-gris: #6a7078;
  --td-liser: #d9d4c4;
  --td-fente: #b9b2a0;
  --td-display: 'td-condensed', 'Arial Narrow', sans-serif;
  --td-texte: 'td-sans', 'Segoe UI', sans-serif;
  --td-largeur: 72rem;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body.td-boitier {
  margin: 0;
  background: var(--td-creme);
  color: var(--td-encre);
  font-family: var(--td-texte);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--td-rouille); text-decoration-color: color-mix(in srgb, var(--td-rouille) 45%, transparent); text-underline-offset: .16em; }
a:hover { color: var(--td-rouille-2); }
.td-perimetre { width: min(var(--td-largeur), 100% - 2.4rem); margin-inline: auto; }
.td-acces { position: absolute; left: -999rem; top: 0; background: var(--td-jaune); color: var(--td-encre); padding: .5rem 1rem; z-index: 60; font-weight: 600; }
.td-acces:focus { left: .5rem; top: .5rem; }
h1, h2, h3 { font-family: var(--td-display); font-weight: 700; line-height: 1.02; text-transform: uppercase; letter-spacing: .015em; margin: 0; }

/* ============ GESTE A : le disjoncteur à bascule ============ */
.td-disj { display: inline-flex; align-items: center; gap: .3rem; flex: none; }
.td-disj__boitier { width: 1.15rem; height: 1.9rem; border-radius: .2rem; background: linear-gradient(160deg, #f6f2e4 0%, #e4decb 70%, #d5cfba 100%); border: 1px solid var(--td-fente); box-shadow: inset 0 -2px 3px rgba(32,41,59,.18), 0 1px 2px rgba(32,41,59,.2); display: block; position: relative; }
.td-disj__manette { position: absolute; left: 15%; right: 15%; top: 8%; height: 44%; border-radius: .12rem; background: #8f8570; box-shadow: inset 0 1px 1px rgba(255,255,255,.4); transition: background .15s; }
.td-disj--on .td-disj__manette { background: var(--td-jaune); }
.td-disj__io { font-family: var(--td-display); font-size: .62rem; font-weight: 700; color: var(--td-gris); line-height: 1; }

/* ============ GESTE B : l'étiquette de repérage ============ */
.td-rep { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--td-liser); border-radius: .18rem; padding: .32rem .7rem; box-shadow: 0 1px 0 rgba(32,41,59,.12), 0 3px 7px -4px rgba(32,41,59,.35); max-width: 100%; }
.td-rep__vis { width: .34rem; height: .34rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8d2c0 30%, var(--td-fente) 75%); flex: none; box-shadow: inset 0 1px 1px rgba(32,41,59,.3); }

/* ============ GESTE C : la goulotte à trois fils ============ */
.td-goulotte { padding: .55rem 0; }
.td-goulotte__rail { display: flex; flex-direction: column; gap: .22rem; background: linear-gradient(180deg, #cfccbf, #bdb9ab); border-radius: .25rem; padding: .3rem 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(32,41,59,.15); }
.td-fil { display: block; height: .16rem; border-radius: 1rem; box-shadow: 0 1px 1px rgba(32,41,59,.25); }
.td-fil--phase { background: linear-gradient(90deg, var(--td-rouille) 0 60%, var(--td-rouille-2) 60%); }
.td-fil--neutre { background: var(--td-fil-bleu); margin-inline: 4% 7%; }
.td-fil--terre { background: linear-gradient(90deg, var(--td-terre) 0 50%, var(--td-jaune) 50%); }
.td-goulotte--rail { padding: 0 0 .9rem; }
.td-goulotte--rail .td-goulotte__rail { background: none; box-shadow: none; padding: 0; gap: .18rem; }
.td-goulotte--rail .td-fil { height: .12rem; }

/* ============ EN-TÊTE : la bande d'armoire ============ */
.td-entete { background: var(--td-encre); color: var(--td-creme); border-bottom: 3px solid var(--td-jaune); }
.td-entete__rang { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: .55rem; }
.td-entete__marque { display: inline-flex; align-items: center; }
.td-entete__logo { height: 2.5rem; width: auto; }
.td-departs__liste { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.td-departs__lien { color: var(--td-creme); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem .1rem; border-bottom: 2px solid transparent; }
.td-departs__lien:hover { color: var(--td-jaune); }
.td-departs__lien[aria-current="page"] { border-bottom-color: var(--td-jaune); color: var(--td-jaune); }
.td-departs__lien--carnet { color: var(--td-jaune); }
.td-departs__lien--carnet:hover { color: #ffd94d; }

/* ============ FIL D'ARIANE ============ */
.td-arborescence { padding-top: .9rem; }
.td-arborescence ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .7rem; margin: 0; padding: 0; font-size: .85rem; color: var(--td-gris); }
.td-arborescence li + li::before { content: '›'; margin-right: .7rem; color: var(--td-fente); }
.td-arborescence a { color: var(--td-gris); }
.td-arborescence a:hover { color: var(--td-rouille); }

/* ============ SURTITRES, PASTILLES, CALIBRES ============ */
.td-surtitre { display: flex; align-items: center; gap: .6rem; font-family: var(--td-display); text-transform: uppercase; letter-spacing: .12em; font-size: .92rem; color: var(--td-gris); margin: 0 0 .8rem; }
.td-surtitre__barre { width: 2.1rem; height: .3rem; background: var(--td-jaune); border-radius: .1rem; }
.td-surtitre--clair { color: var(--td-creme); opacity: .85; }
.td-surtitre--encre { color: var(--td-encre); }
.td-surtitre a { color: inherit; }
.td-pastille { display: inline-block; font-family: var(--td-display); font-weight: 700; font-size: .82rem; letter-spacing: .08em; color: #fff; background: var(--td-rc, var(--td-encre)); padding: .14rem .5rem .1rem; border-radius: .15rem; line-height: 1.3; }
.td-calibre { display: inline-flex; align-items: baseline; gap: .25rem; font-size: .82rem; color: var(--td-gris); border: 1px solid var(--td-liser); border-radius: .2rem; padding: .1rem .5rem; background: var(--td-papier); }
.td-calibre b { font-family: var(--td-display); font-size: 1rem; color: var(--td-encre); }

/* ============ VUES ============ */
/* la classe porte sur l'élément <picture> ; l'<img> interne remplit et recadre (object-fit) */
.td-vue { display: block; overflow: hidden; }
.td-vue img { display: block; width: 100%; height: 100%; object-fit: cover; }
.td-vue--hero, .td-vue--fond { position: absolute; inset: 0; }
.td-vue--carte { aspect-ratio: 4 / 3; border-radius: .25rem; }
.td-vue--mini { aspect-ratio: 1 / 1; border-radius: .25rem; }
.td-vue--planche { aspect-ratio: 16 / 9; }

/* ============ APPELS ============ */
.td-appel { display: inline-block; font-weight: 600; text-decoration: none; border-radius: .3rem; padding: .75rem 1.5rem; font-size: 1rem; }
.td-appel--plein { background: var(--td-jaune); color: var(--td-encre); box-shadow: 0 3px 0 var(--td-rouille-2); }
.td-appel--plein:hover { background: #ffc61a; color: var(--td-encre); }
.td-appel--contour { border: 1px solid rgba(240,237,226,.55); color: var(--td-creme); }
.td-appel--contour:hover { border-color: var(--td-jaune); color: var(--td-jaune); }

/* ============ ACCUEIL : le héros ============ */
.td-hero { background: linear-gradient(150deg, var(--td-encre) 0%, var(--td-encre-2) 100%); color: var(--td-creme); padding: 3.4rem 0 3.8rem; }
.td-hero__rang { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.6rem; align-items: center; }
.td-hero__surtitre { font-family: var(--td-display); text-transform: uppercase; letter-spacing: .14em; color: var(--td-jaune); font-size: 1rem; margin: 0 0 1rem; }
.td-hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); color: var(--td-creme); }
.td-accroche__or { color: var(--td-jaune); }
.td-hero__promesse { font-size: 1.18rem; max-width: 34rem; color: #d8d4c6; margin: 1.3rem 0 0; }
.td-hero__appels { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 0; }
.td-hero__dernier { margin: 1.4rem 0 0; font-size: .95rem; color: #b9b4a4; }
.td-hero__dernier a { color: var(--td-creme); }
.td-hero__dernier a:hover { color: var(--td-jaune); }
.td-hero__vue { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: .5rem; overflow: hidden; border: 3px solid rgba(240,237,226,.16); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.td-hero__legende { position: absolute; left: .9rem; bottom: .9rem; right: .9rem; font-size: .82rem; }
.td-hero__legende .td-rep { padding: .3rem .6rem; }
.td-hero__legende .td-rep span:not(.td-rep__vis) { color: var(--td-encre); }

/* ============ ACCUEIL : les circuits (prestations) ============ */
.td-circuits { padding: 3.6rem 0 2.8rem; }
.td-circuits__titre { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1.6rem; }
.td-circuits__rangs { display: grid; gap: 1.3rem; }
.td-circuit { position: relative; display: grid; grid-template-columns: auto 1fr 17rem; gap: 1.4rem; align-items: center; background: var(--td-papier); border: 1px solid var(--td-liser); border-top: 4px solid var(--td-rc, var(--td-encre)); border-radius: .45rem; padding: 1.5rem 1.6rem; overflow: hidden; box-shadow: 0 10px 26px -18px rgba(32,41,59,.5); }
.td-circuit__filigrane { position: absolute; right: 15.5rem; top: -.6rem; font-family: var(--td-display); font-weight: 700; font-size: 6.5rem; line-height: 1; color: var(--td-rc, var(--td-encre)); opacity: .09; pointer-events: none; }
.td-circuit__titre { font-size: 1.55rem; display: inline; }
.td-circuit__titre a { color: var(--td-encre); text-decoration: none; }
.td-circuit__titre a:hover { color: var(--td-rouille); }
.td-circuit__texte { margin: .8rem 0 0; max-width: 42rem; color: #3c4457; }
.td-circuit__vue { margin: 0; border-radius: .3rem; overflow: hidden; border: 1px solid var(--td-liser); }

/* ============ ACCUEIL : la bande de preuves ============ */
.td-preuves { background: var(--td-jaune); padding: 2.2rem 0; }
.td-preuves__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.td-preuve { display: flex; gap: .8rem; align-items: flex-start; background: rgba(255,255,255,.5); border: 1px solid rgba(32,41,59,.18); border-radius: .35rem; padding: .95rem 1rem; }
.td-preuve p { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.45; }

/* ============ ACCUEIL : la une ============ */
.td-une { padding: 3rem 0 0; }
.td-une__piece { position: relative; min-height: 30rem; display: flex; align-items: flex-end; overflow: hidden; }
.td-une__fond { position: absolute; inset: 0; margin: 0; }
.td-une__fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,41,59,0) 30%, rgba(32,41,59,.88) 88%); }
.td-une__texte { position: relative; z-index: 1; padding: 4rem 0 3rem; color: var(--td-creme); }
.td-une__circuit { display: flex; align-items: center; gap: .7rem; margin: 0 0 .9rem; }
.td-une__avant { font-family: var(--td-display); text-transform: uppercase; letter-spacing: .12em; color: var(--td-jaune); font-size: .95rem; }
.td-une__circuit-lien { color: var(--td-creme); font-weight: 600; }
.td-une__titre { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 46rem; }
.td-une__titre a { color: var(--td-creme); text-decoration: none; }
.td-une__titre a:hover { color: var(--td-jaune); }
.td-une__chapo { max-width: 40rem; font-size: 1.1rem; color: #ddd8c8; margin: .9rem 0 0; }
.td-une__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; margin: 1.1rem 0 0; font-size: .88rem; color: #b9b4a4; }
.td-une__credit { font-style: italic; }
.td-une__credit::before { content: 'Photo : '; font-style: normal; }

/* ============ ACCUEIL : les relevés ============ */
.td-releves { padding: 3rem 0 3.4rem; }
.td-releves__titre { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.5rem; }
.td-releves__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.4rem; }
.td-releve { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.1rem; background: var(--td-papier); border: 1px solid var(--td-liser); border-left: 4px solid var(--td-rc, var(--td-encre)); border-radius: .35rem; padding: .95rem; align-items: start; box-shadow: 0 8px 20px -16px rgba(32,41,59,.55); }
.td-releve__vue { margin: 0; border-radius: .25rem; overflow: hidden; }
.td-releve__circuit { display: flex; align-items: center; gap: .55rem; margin: 0 0 .45rem; }
.td-releve__circuit-lien, .td-depart__circuit { font-size: .88rem; font-weight: 600; }
.td-releve__circuit-lien { color: var(--td-encre); }
.td-releve__titre { font-size: 1.28rem; line-height: 1.12; }
.td-releve__titre a { color: var(--td-encre); text-decoration: none; }
.td-releve__titre a:hover { color: var(--td-rouille); }
.td-releve__usage { margin: .55rem 0 0; font-size: .93rem; color: #3c4457; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-releve__meta, .td-ligne__meta, .td-depart__meta { display: flex; align-items: center; gap: .8rem; margin: .65rem 0 0; font-size: .84rem; color: var(--td-gris); }
.td-releves__dense { margin-top: 1.6rem; border-top: 1px solid var(--td-liser); }
.td-ligne { display: grid; grid-template-columns: auto 1fr 4.5rem; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--td-liser); }
.td-ligne__titre { font-size: 1.12rem; }
.td-ligne__titre a { color: var(--td-encre); text-decoration: none; }
.td-ligne__titre a:hover { color: var(--td-rouille); }
.td-ligne__meta { margin-top: .3rem; }
.td-ligne__vue { margin: 0; }

/* ============ ACCUEIL : la zone ============ */
.td-zone { padding: 3.4rem 0; }
.td-zone__rang { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; background: var(--td-papier); border: 1px solid var(--td-liser); border-radius: .5rem; padding-block: 2.2rem; }
.td-zone__titre { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.td-zone__texte { font-size: 1.1rem; max-width: 36rem; margin: 1rem 0 0; }
.td-zone__contact { border-left: 3px solid var(--td-jaune); padding-left: 1.6rem; }
.td-zone__ligne { margin: 0 0 1rem; color: #3c4457; }
.td-zone__contact .td-appel--plein { box-shadow: 0 3px 0 var(--td-rouille-2); }
.td-zone__carnet { margin: 1rem 0 0; font-weight: 600; }

/* ============ COMPTAGE (réseau) ============ */
.td-comptage { background: var(--td-encre); color: var(--td-creme); padding: 3rem 0 3.4rem; }
.td-comptage__titre { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--td-creme); }
.td-comptage__phrase { max-width: 40rem; color: #c8c3b2; margin: .9rem 0 1.6rem; }
.td-comptage__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 46rem; }
.td-comptage__liste li { display: flex; gap: .9rem; align-items: flex-start; background: var(--td-encre-2); border: 1px solid rgba(240,237,226,.14); border-left: 3px solid var(--td-jaune); border-radius: .3rem; padding: .9rem 1.1rem; }
.td-comptage__liste p { margin: 0; color: #d5d0bf; }
.td-comptage__liste a { color: var(--td-jaune); font-weight: 600; }
.td-comptage__liste a:hover { color: #ffd94d; }

/* ============ PIED : l'armoire qui prouve ============ */
.td-plinthe { background: var(--td-encre); color: #c8c3b2; padding: 2.6rem 0 1.4rem; font-size: .95rem; }
.td-plinthe__colonnes { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.4rem; }
.td-plinthe__marque { display: flex; align-items: center; gap: .7rem; margin: 0 0 .9rem; }
.td-plinthe__raison { font-family: var(--td-display); font-size: 1.5rem; text-transform: uppercase; color: var(--td-creme); }
.td-plinthe__colophon { margin: 0 0 1rem; max-width: 30rem; }
.td-plinthe__note-titre { font-family: var(--td-display); text-transform: uppercase; letter-spacing: .1em; color: var(--td-jaune); margin: 1.2rem 0 .4rem; font-size: .9rem; }
.td-plinthe__note { margin: 0; max-width: 30rem; }
.td-plinthe__preuves { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .4rem; }
.td-plinthe__preuves li::before { content: '▸ '; color: var(--td-jaune); }
.td-plinthe__titre { font-family: var(--td-display); font-size: 1rem; letter-spacing: .1em; color: var(--td-creme); margin-bottom: .9rem; }
.td-plinthe__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.td-plinthe__liste a { color: #d5d0bf; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.td-plinthe__liste a:hover { color: var(--td-jaune); }
.td-plinthe__rc, .td-voisin__rc, .td-borniers__rc { width: .7rem; height: .7rem; border-radius: 2px; background: var(--td-rc, var(--td-jaune)); display: inline-block; flex: none; }
.td-plinthe__compte { color: var(--td-gris); font-size: .85rem; margin-left: .3rem; }
.td-plinthe__dates { margin: 1.4rem 0 0; font-size: .85rem; color: var(--td-gris); }
.td-plinthe__ligne { border-top: 1px solid rgba(240,237,226,.15); margin-top: 2rem; padding-top: 1.1rem; font-size: .85rem; color: var(--td-gris); }

/* ============ FRONTISPICE (carnet, circuits) ============ */
.td-frontispice { background: linear-gradient(140deg, var(--td-encre), var(--td-encre-2)); color: var(--td-creme); padding: 3rem 0 3.2rem; position: relative; overflow: hidden; }
.td-frontispice--circuit { background: linear-gradient(140deg, var(--td-encre) 55%, color-mix(in srgb, var(--td-rc, var(--td-encre)) 55%, var(--td-encre)) 100%); }
.td-frontispice__rang { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.td-frontispice h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); color: var(--td-creme); max-width: 46rem; }
.td-frontispice__desc { font-size: 1.15rem; color: #d5d0bf; max-width: 38rem; margin: 1rem 0 0; }
.td-frontispice__chiffres { display: flex; flex-wrap: wrap; gap: 1.8rem; margin: 1.8rem 0 0; }
.td-frontispice__chiffres div { border-left: 3px solid var(--td-jaune); padding-left: .8rem; }
.td-frontispice__chiffres dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #b9b4a4; }
.td-frontispice__chiffres dd { margin: .2rem 0 0; font-family: var(--td-display); font-size: 1.9rem; font-weight: 700; color: var(--td-creme); line-height: 1; }
.td-frontispice__filigrane { font-family: var(--td-display); font-weight: 700; font-size: 11rem; line-height: .8; color: var(--td-rc, var(--td-creme)); opacity: .1; pointer-events: none; }

/* ============ BORNIERS (bande de circuits) ============ */
.td-borniers { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: 1.4rem; }
.td-borniers__lien { display: inline-flex; align-items: center; gap: .55rem; background: var(--td-papier); border: 1px solid var(--td-liser); border-radius: .3rem; padding: .5rem .9rem; color: var(--td-encre); text-decoration: none; font-weight: 600; font-size: .95rem; }
.td-borniers__lien:hover { border-color: var(--td-rc, var(--td-jaune)); color: var(--td-rouille); }
.td-borniers__lien[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--td-rc, var(--td-jaune)); }
.td-borniers--ouvert { padding-top: .6rem; margin-bottom: 1.6rem; }

/* ============ SCHÉMA DU CARNET : les départs ============ */
.td-schema { padding: 2.2rem 0 3.4rem; }
.td-schema__rangs { display: grid; gap: .9rem; }
.td-depart { display: grid; grid-template-columns: 3rem auto minmax(0, 1fr) auto 5rem; gap: 1.1rem; align-items: center; background: var(--td-papier); border: 1px solid var(--td-liser); border-radius: .35rem; padding: .85rem 1.1rem; box-shadow: 0 6px 16px -14px rgba(32,41,59,.5); }
.td-depart__numero { font-family: var(--td-display); font-weight: 700; font-size: 1.5rem; color: var(--td-fente); text-align: right; }
.td-depart__titre { font-size: 1.2rem; display: inline; }
.td-depart__titre a { color: var(--td-encre); text-decoration: none; }
.td-depart__titre a:hover { color: var(--td-rouille); }
.td-depart__circuit { font-family: var(--td-display); letter-spacing: .04em; color: var(--td-rc, var(--td-encre)); font-size: .95rem; margin: 0; text-transform: uppercase; }
.td-depart__meta { margin-top: .2rem; }
.td-depart__vue { margin: 0; border-radius: .25rem; overflow: hidden; border: 1px solid var(--td-liser); }

/* ============ LISTE / VOISINS de circuit ============ */
.td-liste { padding: 2.4rem 0 3rem; }
.td-liste__releves { display: grid; grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); gap: 1.3rem; }
.td-voisins { padding: 0 0 3.4rem; }
.td-voisins__titre { font-size: 1.6rem; margin-bottom: 1.2rem; }
.td-voisins__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; max-width: 42rem; }
.td-voisin { display: flex; align-items: center; gap: .9rem; background: var(--td-papier); border: 1px solid var(--td-liser); border-left: 4px solid var(--td-jaune); border-radius: .3rem; padding: .7rem 1rem; }
.td-voisin a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--td-encre); text-decoration: none; }
.td-voisin a:hover { color: var(--td-rouille); }
.td-voisin__compte { margin-left: auto; font-size: .85rem; color: var(--td-gris); }

/* ============ LE RELEVÉ (article) ============ */
.td-note__frontispice { background: linear-gradient(140deg, var(--td-encre) 60%, color-mix(in srgb, var(--td-rc, var(--td-encre)) 45%, var(--td-encre)) 100%); color: var(--td-creme); padding: 2.8rem 0 3rem; }
.td-note__rang { max-width: 50rem; }
.td-note__circuit { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; }
.td-note__circuit .td-rep { font-weight: 600; }
.td-note__circuit-lien { color: var(--td-encre); text-decoration: none; }
.td-note__circuit-lien:hover { color: var(--td-rouille); }
.td-note__circuit-nom { font-family: var(--td-display); text-transform: uppercase; letter-spacing: .1em; color: #d5d0bf; font-size: .92rem; }
.td-note h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); color: var(--td-creme); max-width: 46rem; }
.td-note__chapo { font-size: 1.18rem; color: #d5d0bf; max-width: 42rem; margin: 1rem 0 0; }
.td-note__firma { margin: 1.2rem 0 0; font-size: .95rem; color: #c8c3b2; }
.td-note__firma b { color: var(--td-creme); }
.td-note__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; margin: 1rem 0 0; font-size: .88rem; color: #b9b4a4; }
.td-note__plan { display: grid; grid-template-columns: minmax(0, 46rem) 17rem; gap: 2.8rem; padding: 2.4rem 0 3rem; align-items: start; }
.td-planche { margin: 0 0 1.4rem; }
.td-planche .td-vue--planche { border-radius: .4rem; border: 1px solid var(--td-liser); }
.td-planche__legende { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; color: var(--td-gris); margin-top: .55rem; }
.td-planche__humaine { font-style: italic; color: #3c4457; }
.td-note__usage { background: var(--td-papier); border-left: 4px solid var(--td-jaune); padding: .8rem 1.1rem; margin: 0 0 1.6rem; font-size: .98rem; color: #3c4457; }
.td-note__usage-libelle { font-family: var(--td-display); text-transform: uppercase; letter-spacing: .08em; color: var(--td-rouille); margin-right: .3rem; }
.td-note__retour { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--td-liser); font-weight: 600; }

/* le corps du relevé */
.td-corps { font-size: 1.06rem; }
.td-corps > p { margin: 0 0 1.25rem; max-width: 44rem; }
.td-corps > p:first-of-type::first-letter { font-family: var(--td-display); font-size: 3.4rem; line-height: .85; float: left; margin: .18rem .55rem 0 0; color: var(--td-rouille); }
.td-corps h2 { font-size: 1.75rem; margin: 2.4rem 0 1rem; padding-left: 1rem; border-left: 4px solid var(--td-rc, var(--td-jaune)); }
.td-corps h3 { font-size: 1.3rem; margin: 1.8rem 0 .7rem; }
.td-corps ul, .td-corps ol { margin: 0 0 1.25rem; padding-left: 1.4rem; max-width: 42rem; }
.td-corps li { margin-bottom: .45rem; }
.td-corps li::marker { color: var(--td-rouille); }
.td-corps strong { color: var(--td-encre); }
.td-corps blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; background: var(--td-papier); border-left: 4px solid var(--td-jaune); font-size: 1.08rem; color: #3c4457; }
.td-corps table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .95rem; }
.td-corps th { font-family: var(--td-display); text-transform: uppercase; letter-spacing: .06em; font-size: .88rem; text-align: left; background: var(--td-encre); color: var(--td-creme); padding: .55rem .8rem; }
.td-corps td { border: 1px solid var(--td-liser); padding: .5rem .8rem; background: var(--td-papier); }

/* le rail collant */
.td-rail { position: sticky; top: 1.2rem; display: grid; gap: 1.1rem; }
.td-rail__bloc { background: var(--td-papier); border: 1px solid var(--td-liser); border-radius: .35rem; padding: 1rem 1.1rem; }
.td-rail__bloc--armoire { background: var(--td-encre); color: #d5d0bf; border-color: var(--td-encre); }
.td-rail__bloc--armoire p { margin: 0; font-size: .9rem; }
.td-rail__titre { font-size: 1rem; letter-spacing: .08em; margin-bottom: .7rem; color: inherit; }
.td-rail__fiche { margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.td-rail__fiche div { display: grid; grid-template-columns: 5.4rem 1fr; gap: .5rem; }
.td-rail__fiche dt { color: var(--td-gris); }
.td-rail__fiche dd { margin: 0; font-weight: 600; }
.td-rail__sommaire, .td-rail__sources { margin: 0; padding-left: 1.2rem; font-size: .9rem; display: grid; gap: .4rem; }
.td-rail__sources { list-style: decimal; overflow-wrap: anywhere; }
.td-rail__sources a { text-decoration: none; color: var(--td-encre); }
.td-rail__sources a:hover .td-rail__hote { color: var(--td-rouille); }
.td-rail__hote { font-weight: 600; }
.td-rail__chemin { display: block; color: var(--td-gris); font-size: .8rem; }

/* la suite du circuit */
.td-suite { padding: 0 0 3rem; }
.td-suite__rang { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.td-suite__lien { display: block; background: var(--td-papier); border: 1px solid var(--td-liser); border-radius: .35rem; padding: 1rem 1.2rem; text-decoration: none; }
.td-suite__lien--suiv { text-align: right; }
.td-suite__lien:hover { border-color: var(--td-jaune); }
.td-suite__sens { display: block; font-family: var(--td-display); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--td-gris); }
.td-suite__titre { display: block; font-weight: 600; color: var(--td-encre); margin-top: .35rem; }

/* les voisines */
.td-voisines { padding: 0 0 3.4rem; }
.td-voisines__titre { font-size: 1.8rem; margin-bottom: 1.4rem; }

/* ============ 404 : hors du schéma ============ */
.td-ouvert { background: linear-gradient(140deg, var(--td-encre), var(--td-encre-2)); color: var(--td-creme); padding: 3.4rem 0 3.6rem; }
.td-ouvert__rang { display: flex; gap: 1.6rem; align-items: flex-start; }
.td-ouvert__rang > .td-disj { margin-top: 1rem; transform: scale(1.6); transform-origin: top left; margin-right: 1rem; }
.td-ouvert__chiffre { font-family: var(--td-display); font-weight: 700; font-size: clamp(5rem, 14vw, 9rem); line-height: .9; color: var(--td-jaune); margin: 0; }
.td-ouvert h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--td-creme); }
.td-ouvert__phrase { font-size: 1.12rem; color: #d5d0bf; max-width: 34rem; margin: 1rem 0 0; }
.td-ouvert__corps { margin-top: 1.2rem; color: #c8c3b2; max-width: 34rem; }
.td-ouvert__corps a { color: var(--td-jaune); }

/* ============ MOBILE ============ */
@media (max-width: 62rem) {
  .td-hero__rang { grid-template-columns: 1fr; gap: 1.8rem; }
  .td-circuit { grid-template-columns: auto 1fr; }
  .td-circuit__vue { grid-column: 1 / -1; }
  .td-circuit__filigrane { right: 1rem; }
  .td-preuves__liste { grid-template-columns: repeat(2, 1fr); }
  .td-zone__rang { grid-template-columns: 1fr; }
  .td-zone__contact { border-left: none; border-top: 3px solid var(--td-jaune); padding: 1.4rem 0 0; }
  .td-plinthe__colonnes { grid-template-columns: 1fr 1fr; }
  .td-note__plan { grid-template-columns: 1fr; }
  .td-rail { position: static; }
  .td-frontispice__filigrane { display: none; }
}
@media (max-width: 40rem) {
  body.td-boitier { font-size: 1rem; }
  .td-entete__rang { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .td-hero { padding: 2.2rem 0 2.6rem; }
  .td-circuit { grid-template-columns: 1fr; padding: 1.1rem 1.2rem; }
  .td-circuit .td-disj { position: absolute; top: 1rem; right: 1rem; }
  .td-preuves__liste { grid-template-columns: 1fr; }
  .td-releve { grid-template-columns: 6rem 1fr; }
  .td-ligne { grid-template-columns: auto 1fr; }
  .td-ligne__vue { display: none; }
  .td-depart { grid-template-columns: auto minmax(0, 1fr) 4rem; }
  .td-depart__numero, .td-depart__infos { display: none; }
  .td-suite__rang { grid-template-columns: 1fr; }
  .td-plinthe__colonnes { grid-template-columns: 1fr; }
  .td-frontispice__chiffres { gap: 1.1rem; }
}
