/* ==========================================================================
   Base — reset, typographie, éléments, mise en page à gouttière.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: var(--t-base);
  line-height: var(--interligne);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* --- Titres ---------------------------------------------------------------
   Fraunces en graisse basse et grande taille : le contraste vient de
   l'échelle, pas du gras. Casse normale partout. */

h1,
h2,
h3,
h4 {
  font-family: var(--police-titre);
  line-height: var(--interligne-titre);
  font-weight: 400;
  margin: 0 0 var(--e-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-2xl);
  font-weight: 300;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
}

h2 {
  font-size: var(--t-xl);
  font-variation-settings: "opsz" 24;
}

h3 {
  font-size: var(--t-lg);
}

h4 {
  font-family: var(--police-texte);
  font-size: var(--t-base);
  font-weight: 600;
}

p,
li {
  max-width: var(--mesure);
}

p {
  margin: 0 0 var(--e-4);
}

.introduction {
  font-size: var(--t-md);
  color: var(--encre-70);
}

/* --- Liens ---------------------------------------------------------------- */

a {
  color: var(--eau);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition);
}

a:hover {
  color: var(--laterite);
}

:focus-visible {
  outline: 2px solid var(--laterite);
  outline-offset: 3px;
}

/* --- Lien d'évitement ----------------------------------------------------- */

.evitement {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: var(--e-3) var(--e-4);
  background: var(--encre);
  color: var(--papier);
  /* Retiré de l'affichage sans sortir du document : un décalage négatif
     élargirait la zone défilante de la page. */
  clip-path: inset(50%);
  white-space: nowrap;
}

.evitement:focus {
  clip-path: none;
  top: var(--e-4);
  left: var(--e-4);
}

/* --- Ossature de page ------------------------------------------------------
   Colonne de contenu calée sur une gouttière large à gauche ; la marge
   droite reste disponible pour les notes latérales. */

.page {
  max-width: var(--largeur-page);
  margin-inline: auto;
  padding-inline: var(--gouttiere) var(--marge-droite);
}

.bloc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--colonne-notes);
  column-gap: var(--e-7);
  align-items: start;
}

.bloc > * {
  grid-column: 1;
}

/* Une note par bloc, ancrée en haut de celui-ci. */
.bloc > .note {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
}

.note {
  margin: var(--e-2) 0 var(--e-5);
  padding-top: var(--e-2);
  border-top: 1px solid var(--trait);
  color: var(--encre-70);
  font-size: var(--t-sm);
  line-height: 1.5;
  max-width: none;
}

.note p {
  max-width: none;
  margin-bottom: var(--e-3);
}

.note :last-child {
  margin-bottom: 0;
}

.note-source {
  font-family: var(--police-mono);
  font-size: var(--t-xs);
  color: var(--encre-50);
}

/* --- En-tête -------------------------------------------------------------- */

.entete {
  border-bottom: 1px solid var(--trait);
  background: var(--papier);
}

.entete-interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--e-4) var(--e-6);
  padding-block: var(--e-4);
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: var(--e-3);
  font-family: var(--police-titre);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--encre);
  text-decoration: none;
  white-space: nowrap;
}

.marque:hover {
  color: var(--encre);
}

.marque-fin {
  color: var(--laterite);
}

.marque-signe {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

/* --- Illustrations ---------------------------------------------------------
   Gravures a l'encre : pas d'ombre, pas de coin arrondi, un filet suffit. */

.bande {
  padding-block: var(--e-6);
}

.bande figure,
.attente-bande {
  margin: 0;
}

.bande img,
.attente-bande img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--trait);
  background: var(--papier-creux);
}

.bande-paire {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--e-4);
}

.bande-paire img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2) var(--e-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation li {
  max-width: none;
}

.navigation a {
  color: var(--encre-70);
  text-decoration: none;
  padding-block: var(--e-1);
  border-bottom: 1px solid transparent;
}

.navigation a:hover {
  color: var(--encre);
  border-bottom-color: var(--trait);
}

.navigation a[aria-current] {
  color: var(--encre);
  border-bottom-color: var(--laterite);
}

/* --- Pied ----------------------------------------------------------------- */

.pied {
  margin-top: var(--e-9);
  border-top: 1px solid var(--trait);
  background: var(--papier-creux);
  color: var(--encre-70);
  font-size: var(--t-sm);
}

.pied-interieur {
  display: grid;
  gap: var(--e-6);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  padding-block: var(--e-7) var(--e-5);
}

.pied h2 {
  font-family: var(--police-texte);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--encre);
  margin-bottom: var(--e-3);
}

.pied ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pied li {
  margin-bottom: var(--e-2);
  max-width: none;
}

.pied a {
  color: var(--encre-70);
}

.pied-bas {
  border-top: 1px solid var(--trait);
  padding-block: var(--e-4) var(--e-6);
  font-size: var(--t-xs);
  color: var(--encre-50);
}

.pied-bas p {
  max-width: none;
  margin: 0;
}

/* --- Appels à l'action ----------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-4);
  margin-block: var(--e-5);
}

.bouton {
  display: inline-block;
  padding: var(--e-3) var(--e-5);
  background: var(--encre);
  color: var(--papier);
  text-decoration: none;
  border: 1px solid var(--encre);
  border-radius: var(--rayon);
  transition: background var(--transition), color var(--transition);
}

.bouton:hover {
  background: var(--laterite-sourd);
  border-color: var(--laterite-sourd);
  color: var(--papier);
}

.bouton-second {
  background: transparent;
  color: var(--encre);
  border-color: var(--encre-50);
}

.bouton-second:hover {
  background: transparent;
  color: var(--laterite);
  border-color: var(--laterite);
}

/* --- Marqueur institutionnel : usage réservé, cf. tokens.css --------------- */

.sceau {
  display: inline-flex;
  align-items: baseline;
  gap: var(--e-2);
  color: var(--laterite-sourd);
  font-size: var(--t-sm);
}

.sceau::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  background: var(--sceau);
  transform: rotate(45deg);
}

/* --- Séparateur ------------------------------------------------------------ */

.filet {
  border: 0;
  border-top: 1px solid var(--trait);
  margin-block: var(--e-7);
}

/* --- Sections -------------------------------------------------------------- */

.section {
  padding-block: var(--e-7);
}

.section-titre {
  margin-bottom: var(--e-5);
}

/* --- Tracé du corridor -----------------------------------------------------
   Seul mouvement du site qui ne soit pas déclenché par l'utilisateur.
   Joué une fois au chargement, jamais rejoué. */

.corridor {
  margin: 0;
  padding-block: var(--e-4) var(--e-6);
}

.corridor-svg {
  display: block;
  width: 100%;
  height: auto;
}

.corridor figcaption {
  max-width: var(--mesure);
  margin-top: var(--e-3);
  color: var(--encre-70);
  font-size: var(--t-sm);
}

.corridor-reperes line {
  stroke: var(--trait);
  stroke-width: 1;
}

.corridor-trace {
  stroke: var(--laterite);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: corridor-tracer 1800ms cubic-bezier(0.22, 0.7, 0.25, 1) 200ms forwards;
}

.corridor-retour {
  stroke: var(--eau);
  stroke-width: 1;
  stroke-dasharray: 0.005 0.013;
  stroke-linecap: round;
  opacity: 0;
  animation: corridor-apparition 700ms ease-out 1500ms forwards;
}

.corridor-noeud circle {
  fill: var(--papier);
  stroke: var(--encre);
  stroke-width: 1.5;
  opacity: 0;
  animation: corridor-apparition 500ms ease-out 1700ms forwards;
}

.corridor-etiquette text {
  fill: var(--encre);
  font-family: var(--police-texte);
  font-size: 15px;
  opacity: 0;
  animation: corridor-apparition 500ms ease-out 1850ms forwards;
}

.corridor-etiquette .corridor-precision {
  fill: var(--encre-50);
  font-size: 12px;
}

@keyframes corridor-tracer {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes corridor-apparition {
  to {
    opacity: 1;
  }
}

/* --- Les trois piliers R&D -------------------------------------------------
   Concomitants, donc ni numérotés ni ordonnés. */

.piliers {
  margin: var(--e-5) 0 0;
}

.pilier {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: var(--e-2) var(--e-6);
  padding-block: var(--e-4);
  border-top: 1px solid var(--trait);
}

.pilier:last-child {
  border-bottom: 1px solid var(--trait);
}

.pilier dt {
  font-family: var(--police-titre);
  font-size: var(--t-md);
}

.pilier dd {
  margin: 0;
  color: var(--encre-70);
  max-width: var(--mesure);
}

/* --- Avertissement --------------------------------------------------------
   Mention que le lecteur ne doit pas pouvoir survoler sans la voir.
   Signalée par un filet, jamais par un fond coloré. */

.avertissement {
  border-left: 2px solid var(--laterite);
  padding-left: var(--e-4);
  margin-block: var(--e-5);
  color: var(--encre);
}

/* --- Fil d'Ariane -----------------------------------------------------------
   Un lien de retour vers la section parente. Ce n'est pas une accroche :
   casse normale, pas d'espacement de lettres, pas de flèche. */

.fil {
  margin-bottom: var(--e-3);
  font-size: var(--t-sm);
}

.fil a {
  color: var(--encre-70);
}

/* --- Liste à puces sobre ---------------------------------------------------- */

.liste-nette {
  margin: 0 0 var(--e-6);
  padding-left: var(--e-4);
}

.liste-nette li {
  margin-bottom: var(--e-2);
}

.liste-nette b {
  font-weight: 600;
}

/* Les définitions de piliers acceptent des paragraphes complets. */
.pilier dd p:last-child {
  margin-bottom: 0;
}

/* --- Séquences numérotées ---------------------------------------------------
   Réservé à ce qui est réellement ordonné : parcours d'un dossier, étapes
   d'une caravane. Jamais sur du contenu concomitant. */

.etapes {
  margin: var(--e-5) 0 var(--e-6);
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.etapes li {
  counter-increment: etape;
  position: relative;
  padding: var(--e-4) 0 var(--e-4) var(--e-7);
  border-top: 1px solid var(--trait);
  max-width: var(--mesure);
}

.etapes li:last-child {
  border-bottom: 1px solid var(--trait);
}

.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: var(--e-4);
  font-family: var(--police-mono);
  font-size: var(--t-sm);
  color: var(--laterite);
}

.etapes b {
  font-weight: 600;
}

.etape-region,
.detail {
  display: block;
  color: var(--encre-70);
  font-size: var(--t-sm);
}

.etape-region {
  margin-top: var(--e-1);
}

.detail {
  margin-top: var(--e-1);
  color: var(--encre-50);
}

/* --- Tableaux ---------------------------------------------------------------
   Registre documentaire : des filets, pas de fond alterné ni d'arrondi.
   Le conteneur défile seul plutôt que de faire déborder la page. */

.tableau-defilant {
  overflow-x: auto;
  margin-block: var(--e-5) var(--e-6);
}

.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-base);
}

.tableau th,
.tableau td {
  text-align: left;
  vertical-align: top;
  padding: var(--e-4) var(--e-5) var(--e-4) 0;
  border-bottom: 1px solid var(--trait);
}

.tableau thead th {
  border-bottom: 1px solid var(--encre);
  font-family: var(--police-texte);
  font-size: var(--t-sm);
  font-weight: 600;
  padding-bottom: var(--e-2);
}

.tableau tbody th {
  font-family: var(--police-titre);
  font-size: var(--t-md);
  font-weight: 400;
  white-space: nowrap;
}

.tableau .colonne-nombre {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tableau tbody td.colonne-nombre {
  font-weight: 600;
}

/* --- Utilitaire d'accessibilité --------------------------------------------- */

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Formulaires ------------------------------------------------------------
   Champs sobres, étiquette au-dessus, message d'erreur sous le champ.
   Aucune information portée par la seule couleur. */

.formulaire {
  margin-block: var(--e-5);
}

.champ {
  margin-bottom: var(--e-5);
  max-width: 34rem;
}

.champ-large {
  max-width: var(--mesure);
}

.champ label,
.champ-case label {
  display: block;
  margin-bottom: var(--e-2);
  font-size: var(--t-sm);
  font-weight: 600;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: var(--e-3);
  font: inherit;
  color: var(--encre);
  background: var(--papier);
  border: 1px solid var(--encre-50);
  border-radius: var(--rayon);
}

.champ textarea {
  resize: vertical;
  line-height: 1.6;
}

.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  border-color: var(--encre);
}

.champ input[aria-invalid="true"] {
  border-color: var(--laterite);
  border-width: 2px;
}

.champ-erreur {
  margin: var(--e-2) 0 0;
  padding-left: var(--e-3);
  border-left: 2px solid var(--laterite);
  color: var(--encre);
  font-size: var(--t-sm);
}

.champ-aide {
  margin: var(--e-2) 0 0;
  color: var(--encre-70);
  font-size: var(--t-sm);
  max-width: var(--mesure);
}

.champ-case {
  margin-bottom: var(--e-5);
}

.champ-case label {
  display: flex;
  align-items: baseline;
  gap: var(--e-3);
  font-weight: 400;
}

.champ-case input {
  flex: none;
}

button.bouton,
.formulaire button {
  font: inherit;
  cursor: pointer;
}

/* --- Propos signé -----------------------------------------------------------
   Un texte à la première personne dans un site institutionnel : le décalage
   de registre doit être visible, sinon le lecteur le prend pour la position
   de la structure. D'où le filet et la signature. */

.propos {
  margin: var(--e-5) 0;
  padding-left: var(--e-5);
  border-left: 2px solid var(--gris);
  max-width: var(--mesure);
}

.propos p {
  color: var(--encre-70);
}

.propos footer {
  font-size: var(--t-sm);
  color: var(--encre-50);
}

.propos footer::before {
  content: "— ";
}

/* --- Adresse postale --------------------------------------------------------- */

.adresse {
  margin-bottom: var(--e-6);
  line-height: 1.7;
}

/* --- Progression d'un dépôt --------------------------------------------------
   Repère d'avancement, pas un fil d'Ariane : les étapes non atteintes ne sont
   pas cliquables, et l'état ne repose pas sur la seule couleur. */

.progression {
  margin-block: var(--e-5) var(--e-6);
}

.progression ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.progression li {
  display: flex;
  align-items: baseline;
  gap: var(--e-2);
  padding-top: var(--e-2);
  border-top: 2px solid var(--trait);
  min-width: 7rem;
  max-width: none;
  color: var(--encre-50);
  font-size: var(--t-sm);
}

.progression .faite {
  border-top-color: var(--encre-50);
  color: var(--encre-70);
}

.progression .courante {
  border-top-color: var(--laterite);
  color: var(--encre);
  font-weight: 600;
}

.progression-rang {
  font-family: var(--police-mono);
  font-size: var(--t-xs);
}

.progression .faite .progression-rang::after {
  content: " ·";
}

/* --- Piège à robots ----------------------------------------------------------
   Masqué à l'œil sans display:none : certains automates ignorent les champs
   réellement retirés du flux. */

.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Cases des objectifs de développement durable ----------------------------- */

.groupe-odd {
  margin: 0 0 var(--e-6);
  padding: var(--e-4) var(--e-5);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
}

.groupe-odd legend {
  padding-inline: var(--e-2);
  font-size: var(--t-sm);
  font-weight: 600;
}

.odd-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--e-2) var(--e-5);
  margin-top: var(--e-3);
}

.odd-case {
  display: flex;
  align-items: baseline;
  gap: var(--e-3);
  padding-block: var(--e-1);
  font-size: var(--t-sm);
  font-weight: 400;
}

.odd-case input {
  flex: none;
}

.facultatif {
  font-weight: 400;
  color: var(--encre-50);
}

.reference {
  font-family: var(--police-mono);
  font-size: 0.95em;
}

.unite {
  color: var(--encre-70);
  font-size: var(--t-sm);
  font-weight: 400;
}

/* ==========================================================================
   Éléments partagés par le back-office et l'espace porteur
   Ils vivaient dans admin.css ; l'espace porteur les utilise aussi, et lui
   ne charge que base.css.
   ========================================================================== */

/* --- Messages ---------------------------------------------------------------- */

.bo-flash {
  max-width: var(--mesure);
  margin-bottom: var(--e-5);
  padding: var(--e-3) var(--e-4);
  background: var(--papier);
  border-left: 3px solid var(--eau);
}

.bo-flash-succes {
  border-left-color: var(--encre);
}

.bo-flash-erreur {
  border-left-color: var(--laterite);
}

/* --- États d'un dossier -------------------------------------------------------
   L'état est lisible par son libellé ; le trait n'est qu'un repère
   secondaire, jamais la seule information. */

.etat {
  display: inline-block;
  padding: 2px var(--e-3);
  border: 1px solid var(--trait);
  border-left-width: 3px;
  border-left-color: var(--encre-50);
  background: var(--papier);
  font-size: var(--t-xs);
  white-space: nowrap;
}

.etat-soumis { border-left-color: var(--eau); }
.etat-devis_emis { border-left-color: var(--sceau); }
.etat-paiement_recu { border-left-color: var(--laterite); }
.etat-consultation_planifiee { border-left-color: var(--laterite-sourd); }
.etat-livrables_remis { border-left-color: var(--encre); }
.etat-clos { border-left-color: var(--encre-50); }

.bo-vide {
  max-width: var(--mesure);
  padding: var(--e-5);
  background: var(--papier);
  border: 1px dashed var(--trait);
  color: var(--encre-70);
}

.bo-fiche {
  margin: 0;
}

.bo-fiche > div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: var(--e-2) var(--e-4);
  padding-block: var(--e-2);
  border-top: 1px solid var(--trait);
}

.bo-fiche > div:first-child {
  border-top: 0;
}

.bo-fiche dt {
  color: var(--encre-70);
  font-size: var(--t-sm);
}

.bo-fiche dd {
  margin: 0;
}

.bo-liste {
  margin: 0 0 var(--e-4);
  padding: 0;
  list-style: none;
}

.bo-liste li {
  padding-block: var(--e-2);
  border-top: 1px solid var(--trait);
  max-width: none;
}

.bo-liste li:first-child {
  border-top: 0;
}

/* Dans la colonne latérale la place manque : l'étiquette passe au-dessus
   de la valeur, et les adresses longues coupent plutôt que de déborder. */

.bo-lateral .bo-fiche > div {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.bo-lateral .bo-fiche dd,
.bo-lateral .bo-liste li {
  overflow-wrap: anywhere;
}

/* --- Bandeau d'identité de l'espace porteur ---------------------------------- */

.bandeau {
  background: var(--papier-creux);
  border-bottom: 1px solid var(--trait);
  font-size: var(--t-sm);
}

.bandeau-interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e-3) var(--e-5);
  padding-block: var(--e-3);
}

.bandeau-qui {
  color: var(--encre-70);
}

.bandeau-role {
  margin-left: var(--e-3);
  padding: 1px var(--e-2);
  border: 1px solid var(--sceau);
  color: var(--laterite-sourd);
  font-size: var(--t-xs);
}

.lien-bouton {
  padding: 0;
  font: inherit;
  color: var(--eau);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--trait);
  cursor: pointer;
}

.lien-bouton:hover {
  color: var(--laterite);
  border-bottom-color: var(--laterite);
}

/* --- Parcours d'un dossier, vu par son porteur --------------------------------
   L'état atteint n'est pas signalé par la seule couleur : le libellé « état
   actuel » le dit, et les étapes à venir sont estompées. */

.etapes-etat li {
  border-top-color: var(--trait);
}

.etapes-etat .franchie::before {
  color: var(--encre-50);
}

.etapes-etat .franchie {
  color: var(--encre-70);
}

.etapes-etat .courante {
  border-top-color: var(--laterite);
}

.etapes-etat .courante b {
  font-weight: 600;
}

.etapes-etat .a-venir {
  color: var(--encre-50);
}

.etapes-etat .a-venir::before {
  color: var(--trait);
}

/* --- Liste d'articles ---------------------------------------------------------
   Une suite datée, séparée par des filets : ni vignettes, ni cartes. */

.articles {
  margin: var(--e-5) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.articles li {
  padding-block: var(--e-5);
  border-top: 1px solid var(--trait);
  max-width: var(--mesure);
}

.articles li:last-child {
  border-bottom: 1px solid var(--trait);
}

.articles h2,
.articles h3 {
  margin-bottom: var(--e-2);
}

.articles h2 {
  font-size: var(--t-lg);
}

.articles h3 {
  font-size: var(--t-md);
}

.articles a {
  text-decoration: none;
}

.articles a:hover {
  text-decoration: underline;
}

.article-date {
  margin-bottom: var(--e-2);
  font-family: var(--police-mono);
  font-size: var(--t-xs);
  color: var(--encre-50);
}

.article-chapo {
  margin-bottom: 0;
  color: var(--encre-70);
}

.corps-article {
  max-width: var(--mesure);
  line-height: var(--interligne);
}

/* ==========================================================================
   Adaptations selon la taille d'écran et les préférences
   Regroupées en fin de feuille : une règle responsive placée avant celle
   qu'elle annule reste sans effet, à spécificité égale.
   ========================================================================== */

@media (max-width: 44rem) {
  .bande-paire {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Responsive ------------------------------------------------------------
   Sous 60rem, la note quitte la marge et se place sous le bloc qu'elle
   annote, signalée par un filet vertical. */

@media (max-width: 60rem) {
  .bloc {
    grid-template-columns: minmax(0, 1fr);
  }

  .bloc > .note {
    grid-column: 1;
    grid-row: auto;
    border-top: 0;
    border-left: 2px solid var(--trait);
    padding: 0 0 0 var(--e-4);
    margin-block: var(--e-4) var(--e-6);
    max-width: var(--mesure);
  }
}

@media (max-width: 44rem) {
  .pilier {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Le SVG est réduit de moitié à cette largeur : les étiquettes sont
     redimensionnées en unités du viewBox pour rester lisibles. */
  .corridor-etiquette text {
    font-size: 28px;
  }

  .corridor-etiquette .corridor-precision {
    font-size: 22px;
  }

  .corridor-noeud circle {
    r: 7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
