/* Chez Merlin V2 — la signalétique d'une gare. Mobile d'abord. Valeurs : tokens.css. */

/* ---------- Reset court ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--fond); color: var(--texte); font-family: var(--font-texte); font-size: var(--size-corps); line-height: var(--lh-corps); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-titre); text-wrap: balance; }
p { text-wrap: pretty; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* Liens génériques : encre, soulignement 2px ; par ici = jaune 4px au survol et au focus */
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--color-jaune); text-decoration-thickness: var(--trait-signal); }
:focus-visible { outline: var(--trait-signal) solid var(--color-jaune); outline-offset: 2px; box-shadow: 0 0 0 calc(var(--trait-signal) + 4px) var(--texte); }
a:focus-visible { text-decoration-color: var(--color-jaune); text-decoration-thickness: var(--trait-signal); }

.evitement { position: absolute; left: var(--space-4); top: -100px; z-index: 50; background: var(--color-jaune); color: var(--color-encre); font-family: var(--font-titre); font-weight: 800; padding: var(--space-3) var(--space-4); border-radius: var(--radius); }
.evitement:focus { top: var(--space-4); }

/* ---------- Typographie de panneau ---------- */
.surtitre, .etiquette { font-family: var(--font-titre); font-weight: 700; font-size: var(--size-surtitre); line-height: var(--lh-interface); letter-spacing: var(--ls-surtitre); text-transform: uppercase; }
.surtitre { color: var(--texte-2); margin-bottom: var(--space-3); }
.titre-section { font-size: var(--size-h2); font-weight: 800; line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.display { font-size: var(--size-display); font-weight: 900; line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.meta, .meta-aplat { font-family: var(--font-titre); font-weight: 700; font-size: var(--size-surtitre); line-height: var(--lh-interface); font-variant-numeric: tabular-nums lining-nums; }
.meta { color: var(--texte-2); }
.tete-chapeau { max-width: 60ch; margin-top: var(--space-4); color: var(--texte-2); }

/* ---------- Couleurs de ligne ---------- */
.l1 { --ligne: var(--color-ligne-01); --ligne-texte: var(--ligne-01-texte); }
.l2 { --ligne: var(--color-ligne-02); --ligne-texte: var(--ligne-02-texte); }
.l3 { --ligne: var(--color-ligne-03); --ligne-texte: var(--ligne-03-texte); }
.l4 { --ligne: var(--color-ligne-04); --ligne-texte: var(--ligne-04-texte); }

/* 1. L'indicatif de ligne : carré 1.75em, numéro Overpass 900 clair, rayon 2px */
.ind { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.75em; height: 1.75em; padding-top: 0.12em; border-radius: var(--radius-indicatif); background: var(--ligne); color: var(--color-surface); font-family: var(--font-titre); font-weight: 900; font-size: var(--size-surtitre); line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums lining-nums; text-transform: none; }
.ind-inverse { background: var(--color-surface); color: var(--color-encre); }
.indicatif { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-titre); font-weight: 700; font-size: var(--size-surtitre); line-height: var(--lh-interface); }
.surtitre-ligne { text-transform: uppercase; letter-spacing: var(--ls-surtitre); color: var(--ligne-texte); }
.surtitre-ligne .ind { letter-spacing: 0; }

/* Bouton principal : aplat jaune, texte encre, rayon 4px */
.bouton { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--cible); padding: var(--space-3) 1.25rem; border-radius: var(--radius); background: var(--color-jaune); color: var(--color-encre); font-family: var(--font-titre); font-weight: 800; font-size: var(--size-interface); line-height: var(--lh-interface); text-decoration: none; }
.bouton:hover { text-decoration: none; }
.bouton .ico { transition: transform var(--duree-fleche); }
.bouton:hover .ico, .bouton:focus-visible .ico { transform: translateX(6px); }
.lien-suite { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-family: var(--font-titre); font-weight: 800; font-size: var(--size-interface); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }

/* ---------- Mise en page ---------- */
.bloc-in, .entete-in, .pied-in, .suite-in { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: 1.25rem; }
.bloc { padding-block: var(--space-8); }
.bloc + .bloc { padding-top: 0; }
.bloc-tete { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: var(--space-6); margin-bottom: var(--space-5); }
.bloc-tete .surtitre { flex-basis: 100%; }
.bloc-tete .titre-section { margin-right: auto; }
.tete-page { padding-block: var(--space-7) var(--space-6); }
.tete-page h1 { font-size: var(--size-h1); font-weight: 800; line-height: var(--lh-h1); letter-spacing: var(--ls-h1); max-width: 24ch; }

/* ---------- Barre de progression ---------- */
.progression { position: fixed; inset: 0 0 auto 0; height: var(--trait-signal); z-index: 40; pointer-events: none; }
.progression span { display: block; height: 100%; background: var(--color-jaune); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
body:not(.page-article) .progression { display: none; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--filet); transition: transform var(--duree-entete); }
.entete-cache { transform: translateY(-100%); }
.entete-in { display: flex; align-items: center; gap: var(--space-4); min-height: 4rem; padding-block: var(--space-2); }
.entete-titre { font-size: var(--size-interface); line-height: 1; }
/* 5. La plaque : le logo toujours sur #F7F8FA, rayon 4px, 6px de marge latérale */
.plaque { display: inline-block; padding: 6px; background: var(--plaque); border-radius: var(--radius); }
.plaque img { height: 36px; width: auto; }
.entete-outils { display: flex; gap: var(--space-1); margin-left: auto; }
.bouton-icone { display: inline-flex; align-items: center; justify-content: center; width: var(--cible); height: var(--cible); border: 0; background: none; border-radius: var(--radius); color: var(--texte); cursor: pointer; }
.bouton-icone .ico { width: 1.5rem; height: 1.5rem; }
.bouton-menu .ico-fermer, .nav-ouverte .bouton-menu .ico-ouvrir { display: none; }
.nav-ouverte .bouton-menu .ico-fermer { display: block; }
.nav { display: none; }
.nav ul { list-style: none; }
.nav a { display: flex; align-items: center; gap: var(--space-2); min-height: var(--cible); white-space: nowrap; font-family: var(--font-titre); font-weight: 700; font-size: var(--size-interface); line-height: var(--lh-interface); text-decoration: none; }
.nav a:hover span:last-child, .nav a[aria-current] span:last-child { text-decoration: underline; text-decoration-color: var(--color-jaune); text-decoration-thickness: var(--trait-signal); text-underline-offset: 0.3em; }
.nav-ouverte .nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--filet); padding: var(--space-2) 1.25rem var(--space-4); }
.nav-ouverte .nav li + li { border-top: 1px solid var(--filet); }

@media (min-width: 1260px) {
  .entete-in { gap: var(--space-6); }
  .nav, .nav-ouverte .nav { display: block; position: static; padding: 0; border: 0; background: none; }
  .nav ul { display: flex; gap: var(--space-5); }
  .nav-ouverte .nav li + li { border: 0; }
  .bouton-menu { display: none; }
}

/* ---------- Pied de page (encre) ---------- */
.pied { background: var(--encre-bloc); color: var(--encre-bloc-texte); padding-block: var(--space-8); }
.pied-in { display: grid; gap: var(--space-6); }
.pied-signature p { font-family: var(--font-titre); font-weight: 800; font-size: var(--size-h3); line-height: var(--lh-h3); max-width: 34ch; margin-top: var(--space-4); }
.pied-liens { list-style: none; display: grid; gap: var(--space-1); align-content: start; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-titre); font-weight: 700; font-size: var(--size-interface); }
@media (min-width: 860px) { .pied-in { grid-template-columns: 2fr 1fr; } }

/* ---------- 2. Le panneau de direction ---------- */
.panneau { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-5); padding-bottom: calc(var(--space-5) + 2.5rem); border-radius: var(--radius); background: var(--ligne); color: var(--color-surface); text-decoration: none; }
.panneau-corps { display: block; }
.panneau-titre { font-weight: 900; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.02; letter-spacing: var(--ls-h1); max-width: 14ch; text-decoration: underline transparent var(--trait-signal); text-underline-offset: 0.18em; text-decoration-skip-ink: none; }
.panneau-texte { display: block; margin-top: var(--space-3); font-size: var(--size-interface); line-height: 1.45; max-width: 38ch; }
.panneau-nombre { font-family: var(--font-titre); font-weight: 700; font-size: var(--size-surtitre); font-variant-numeric: tabular-nums lining-nums; margin-top: auto; }
.panneau-fleche { position: absolute; right: 1.25rem; bottom: 1.1rem; }
.panneau-fleche .ico { width: 2rem; height: 2rem; transition: transform var(--duree-fleche); }
.panneau:hover .panneau-fleche .ico, .panneau:focus-visible .panneau-fleche .ico { transform: translateX(6px); }
.panneau:hover .panneau-titre, .panneau:focus-visible .panneau-titre { text-decoration-color: var(--color-jaune); }
.panneau:hover { text-decoration: none; }

/* Mur des quatre rubriques, proportionné au nombre d'articles */
.titre-section + .mur { margin-top: var(--space-5); }
.mur { display: grid; gap: 0.6rem; }
.mur-01 { min-height: 15rem; }
.mur-02, .mur-03 { min-height: 9rem; }
.mur-04 { min-height: 6rem; }
@media (min-width: 860px) {
  .panneau { padding: var(--space-7); padding-bottom: calc(var(--space-7) + 2rem); }
  .mur { grid-template-columns: repeat(12, 1fr); }
  .mur-01 { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 30rem; }
  .mur-03 { grid-column: 8 / 13; grid-row: 1; }
  .mur-02 { grid-column: 8 / 13; grid-row: 2; }
  .mur-04 { grid-column: 1 / 13; grid-row: 3; flex-direction: row; align-items: center; gap: var(--space-5); padding-block: var(--space-5); padding-right: 5rem; min-height: 5.5rem; }
  .mur-04 .panneau-corps { display: flex; align-items: baseline; gap: var(--space-5); flex-wrap: wrap; }
  .mur-04 .panneau-titre { max-width: none; font-size: 1.75rem; }
  .mur-04 .panneau-texte { margin-top: 0; }
  .mur-04 .panneau-nombre { margin: 0 0 0 auto; white-space: nowrap; }
  .mur-04 .panneau-fleche { bottom: 50%; transform: translateY(50%); }
}

/* Grand dossier de l'accueil : panneau bleu pleine largeur */
.dossier { padding-top: 0; }
.dossier-in { display: flex; flex-direction: column; background: var(--ligne); color: var(--color-surface); overflow: hidden; }
.dossier-image { order: -1; aspect-ratio: 4 / 3; border-bottom: var(--trait-bande) solid var(--color-surface); }
.dossier-texte { padding: var(--space-5) 1.25rem var(--space-6); }
.dossier .display { margin: var(--space-3) 0 var(--space-4); max-width: 16ch; }
.dossier .bouton { margin-top: var(--space-5); }
@media (min-width: 860px) {
  .dossier { padding-top: var(--space-6); }
  .dossier-in { display: grid; grid-template-columns: 7fr 5fr; max-width: calc(var(--page-max) - 2.5rem); margin-inline: auto; border-radius: var(--radius); }
  .dossier-texte { padding: var(--space-7); align-self: center; }
  .dossier-image { order: 0; aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-left: var(--trait-bande) solid var(--color-surface); }
}
@media (min-width: 860px) and (max-width: 1280px) { .dossier-in { margin-inline: 1.25rem; } }

/* Bichromie de ligne : aplat de la rubrique, image en gris multipliée */
.bichro { display: block; position: relative; background: var(--ligne); overflow: hidden; }
.bichro img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.08); mix-blend-mode: multiply; }
.bichro-169 { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.bichro-carre { aspect-ratio: 1; width: 6rem; border-radius: var(--radius); }

/* ---------- 3. Le tableau des départs ---------- */
.departs { background: var(--surface); border-top: 2px solid var(--texte); }
.departs-tete { display: none; }
.departs-liste { list-style: none; }
.depart { border-bottom: 1px solid var(--filet); }
.depart a { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); align-items: center; min-height: 4rem; padding: var(--space-3) var(--space-4); text-decoration: none; }
.depart a:hover { background: var(--panneau); text-decoration: none; }
.depart a:hover .depart-titre { text-decoration: underline; text-decoration-color: var(--color-jaune); text-decoration-thickness: var(--trait-signal); text-underline-offset: 0.2em; }
.depart-titre { grid-column: 1 / -1; grid-row: 2; font-weight: 700; font-size: var(--size-h3); line-height: var(--lh-h3); }
.depart-quand { grid-column: 2; grid-row: 1; justify-self: end; display: flex; gap: var(--space-3); font-family: var(--font-titre); font-weight: 700; font-size: var(--size-surtitre); line-height: var(--lh-interface); color: var(--texte-2); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
@media (min-width: 720px) {
  .departs-tete { display: grid; grid-template-columns: 4rem 1fr 11rem; gap: var(--space-4); padding: var(--space-2) var(--space-4); font-family: var(--font-titre); font-weight: 700; font-size: var(--size-surtitre); letter-spacing: var(--ls-surtitre); text-transform: uppercase; color: var(--texte-2); background: var(--fond); }
  .departs-tete span:last-child { text-align: right; }
  .depart a { grid-template-columns: 4rem 1fr 11rem; }
  .depart-titre { grid-column: 2; grid-row: 1; }
  .depart-quand { grid-column: 3; flex-direction: column; align-items: flex-end; gap: 0; }
}

/* Rangées à vignette (sélection, articles liés) */
.vignettes { list-style: none; display: grid; gap: var(--space-2); }
.vignette a { display: grid; grid-template-columns: 6rem 1fr; gap: var(--space-4); align-items: start; padding: var(--space-3); background: var(--surface); border-radius: var(--radius); text-decoration: none; }
.vignette a:hover { background: var(--panneau); }
.vignette a:hover .vignette-titre { text-decoration: underline; text-decoration-color: var(--color-jaune); text-decoration-thickness: var(--trait-signal); }
.vignette-texte { display: grid; gap: var(--space-2); }
.vignette .indicatif { color: var(--ligne-texte); }
.vignette-titre { font-weight: 700; font-size: var(--size-h3); line-height: var(--lh-h3); }

/* Grande entrée */
.grande { display: grid; gap: var(--space-5); }
.grande-texte { display: grid; gap: var(--space-3); justify-items: start; }
.grande-titre { font-weight: 800; font-size: var(--size-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.grande-chapeau { font-size: var(--size-interface); line-height: 1.55; color: var(--texte-2); max-width: 60ch; }

.selection { display: grid; gap: var(--space-6); }
@media (min-width: 960px) {
  .selection { grid-template-columns: 7fr 5fr; align-items: start; }
}

/* Lettre du dimanche : fond encre */
.lettre { background: var(--encre-bloc); color: var(--encre-bloc-texte); padding-block: var(--space-8); }
.lettre .surtitre { color: var(--encre-bloc-texte-2); }
.lettre .titre-section { max-width: 24ch; }
.lettre-texte { max-width: 52ch; margin-block: var(--space-4) var(--space-5); }

/* ---------- Journal ---------- */
.filtres { position: sticky; top: 0; z-index: 20; background: var(--fond); border-bottom: 1px solid var(--filet); }
.filtres-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding-block: var(--space-2); }
.filtre ul { list-style: none; display: flex; gap: var(--space-2) var(--space-4); overflow-x: auto; }
.filtre a { display: flex; align-items: center; gap: var(--space-2); min-height: var(--cible); font-family: var(--font-titre); font-weight: 700; font-size: var(--size-interface); white-space: nowrap; text-decoration: none; }
.filtre a:hover span:last-child { text-decoration: underline; text-decoration-color: var(--color-jaune); text-decoration-thickness: var(--trait-signal); }
.recherche-champ { display: flex; align-items: center; gap: var(--space-2); min-height: var(--cible); padding-inline: var(--space-3); background: var(--surface); border: 2px solid var(--texte-2); border-radius: var(--radius); }
.recherche-champ input { flex: 1; min-width: 0; border: 0; background: none; font-family: var(--font-titre); font-weight: 700; font-size: var(--size-interface); padding-block: var(--space-2); }
.recherche-champ input::placeholder { color: var(--texte-2); opacity: 1; }
.recherche-champ input:focus-visible { outline: none; box-shadow: none; }
.recherche-champ:focus-within { outline: var(--trait-signal) solid var(--color-jaune); outline-offset: 2px; }
.recherche-etat { font-family: var(--font-titre); font-weight: 700; font-size: var(--size-surtitre); color: var(--texte-2); }
.recherche-etat:empty { display: none; }
@media (min-width: 1100px) { .filtres-in { grid-template-columns: minmax(0, 1fr) 18rem; align-items: center; } .recherche-etat { grid-column: 1 / -1; } }
.journal-ligne { padding-top: var(--space-7); scroll-margin-top: 7rem; }
.journal-ligne:last-of-type { padding-bottom: var(--space-8); }
.bande { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); align-items: center; min-height: 5rem; padding: var(--space-4) var(--space-5); background: var(--ligne); color: var(--color-surface); border-radius: var(--radius) var(--radius) 0 0; }
.bande h2 { font-weight: 900; font-size: var(--size-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.bande-texte p { font-size: var(--size-interface); line-height: 1.45; }
.bande-nombre { font-family: var(--font-titre); font-weight: 700; font-size: var(--size-surtitre); font-variant-numeric: tabular-nums lining-nums; }
.bande-lien { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-family: var(--font-titre); font-weight: 800; font-size: var(--size-interface); justify-self: end; }
.bande-lien .ico { transition: transform var(--duree-fleche); }
.bande-lien:hover .ico, .bande-lien:focus-visible .ico { transform: translateX(6px); }
.bande > .ind, .bande-texte { grid-column: 1 / -1; }
.bande + .departs { border-top: 0; }
@media (min-width: 860px) { .bande { grid-template-columns: auto 1fr auto auto; column-gap: var(--space-6); } .bande > .ind, .bande-texte { grid-column: auto; } }

/* ---------- Rubrique : l'en-tête est le panneau ---------- */
.rubrique-tete { background: var(--ligne); color: var(--color-surface); overflow: hidden; }
.rubrique-tete-in { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-4); max-width: var(--page-max); margin-inline: auto; padding: var(--space-6) 1.25rem var(--space-6); }
.rubrique-tete .display { margin: var(--space-3) 0 var(--space-4); }
.rubrique-description { max-width: 40ch; font-size: var(--size-interface); line-height: 1.5; }
.rubrique-tete .meta-aplat { margin-top: var(--space-4); }
.geant { font-family: var(--font-titre); font-weight: 900; font-size: var(--size-geant); line-height: var(--lh-geant); letter-spacing: var(--ls-geant); font-variant-numeric: tabular-nums lining-nums; }
@media (min-width: 860px) {
  .rubrique-tete-in { min-height: 60vh; padding-block: var(--space-8); }
}
.page-rubrique .grande { margin-bottom: var(--space-7); }
@media (min-width: 960px) { .page-rubrique .grande { grid-template-columns: 7fr 5fr; align-items: center; gap: var(--space-7); } }

/* ---------- Article ---------- */
.bande-ligne { height: var(--trait-bande); background: var(--ligne); }
.article { max-width: var(--page-max); margin-inline: auto; padding: var(--space-4) 0 var(--space-7); }
.ariane { padding-inline: 1.25rem; margin-bottom: var(--space-4); font-family: var(--font-titre); font-weight: 700; font-size: var(--size-surtitre); line-height: var(--lh-interface); color: var(--texte-2); }
.ariane ol { display: none; list-style: none; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ariane li { display: inline-flex; align-items: center; gap: var(--space-2); }
.ariane li + li::before { content: "/"; color: var(--texte-2); }
.ariane li a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.ariane li[aria-current]::before { margin-right: var(--space-2); }
.ariane li[aria-current] { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ariane-retour { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--texte); text-decoration: none; }
.ariane-retour span:last-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
@media (min-width: 860px) { .ariane ol { display: flex; } .ariane-retour { display: none; } }

.colonne { background: var(--surface); padding: var(--space-6) 1.25rem var(--space-7); min-width: 0; }
.colonne > * { max-width: var(--mesure); }
.colonne h1 { font-size: var(--size-h1); font-weight: 800; line-height: var(--lh-h1); letter-spacing: var(--ls-h1); margin: var(--space-3) 0 var(--space-4); }
.colonne .meta { margin-bottom: var(--space-5); }
.figure-tete img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.figure-tete figcaption, .figure-corps figcaption { margin-top: var(--space-2); font-size: var(--size-legende); line-height: var(--lh-legende); color: var(--texte-2); }

/* 4. Panneau d'information « À savoir » */
.savoir { display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-4); margin-block: var(--space-5); padding: 1.25rem var(--space-5); background: var(--panneau); border-radius: var(--radius); font-size: var(--size-interface); line-height: 1.6; }
.savoir-carre { width: 2rem; height: 2rem; }
.savoir-fond { fill: var(--info-carre); }
.savoir-i { fill: var(--info-lettre); }
.savoir strong { font-weight: 600; }
.tel { display: inline-flex; align-items: center; gap: 0.2em; font-family: var(--font-titre); font-weight: 800; color: var(--texte); text-decoration: underline; text-decoration-color: var(--texte); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.tel .ico { width: 1em; height: 1em; }
.tel:hover, .tel:focus-visible { text-decoration-color: var(--color-jaune); text-decoration-thickness: var(--trait-signal); }

/* Corps de lecture : colonne nue */
.corps { hyphens: auto; -webkit-hyphens: auto; }
.corps > * + * { margin-top: 1.1em; }
.corps h2 { font-size: var(--size-h2); font-weight: 800; line-height: var(--lh-h2); letter-spacing: var(--ls-h2); margin-top: 2.2em; scroll-margin-top: 5rem; hyphens: manual; }
.corps h3 { font-size: var(--size-h3); font-weight: 700; line-height: var(--lh-h3); margin-top: 1.8em; hyphens: manual; }
.corps h2 + *, .corps h3 + * { margin-top: 0.6em; }
.corps ul { padding-left: 1.25em; }
.corps li + li { margin-top: 0.4em; }
.corps hr { border: 0; border-top: 1px solid var(--filet); margin-block: 2em; }
.figure-corps img { width: 100%; border-radius: var(--radius); }
.tableau { overflow-x: auto; }
.tableau table { width: 100%; border-collapse: collapse; font-size: var(--size-interface); line-height: 1.45; }
.tableau th { font-family: var(--font-titre); font-weight: 800; text-align: left; border-bottom: 2px solid var(--texte); padding: var(--space-2) var(--space-3) var(--space-2) 0; }
.tableau td { border-bottom: 1px solid var(--filet); padding: var(--space-2) var(--space-3) var(--space-2) 0; vertical-align: top; }
@media (min-width: 860px) { .corps { hyphens: manual; -webkit-hyphens: manual; } }

/* Direction de l'aide : bande jaune 8px, fond quai */
.aide { border-left: var(--trait-aide) solid var(--color-jaune); background: var(--aide-fond); padding: var(--space-5); border-radius: 0 var(--radius) var(--radius) 0; }
.corps .aide { margin-top: 2em; }
.aide > * + * { margin-top: 1.1em; }
.aide > h2:first-child, .aide > h3:first-child { margin-top: 0; }

/* Phrases d'exemple : guillemet suspendu, Overpass 600 */
.exemple { position: relative; margin-left: 2.25rem; margin-block: 2rem; font-family: var(--font-titre); font-weight: 600; font-size: var(--size-exemple); line-height: var(--lh-exemple); hyphens: manual; }
.corps > .exemple { margin-top: 2rem; }
.guillemet { position: absolute; left: -2.25rem; top: -0.1em; font-weight: 900; font-size: var(--size-guillemet); line-height: 1; color: var(--ligne-texte); }

/* Arrêts du protocole */
.arrets { list-style: none; }
.arrets li { display: grid; grid-template-columns: 4rem 1fr; gap: var(--space-4); padding-bottom: var(--space-6); }
.arrets li:last-child { padding-bottom: 0; }
.arret-num { display: flex; flex-direction: column; align-items: flex-start; font-family: var(--font-titre); font-weight: 900; font-size: var(--size-etape); line-height: var(--lh-etape); color: var(--ligne-texte); font-variant-numeric: tabular-nums lining-nums; }
.arret-num::after { content: ""; display: block; flex: 1; width: var(--trait-protocole); min-height: 2rem; margin: 0.4rem 0 calc(-1 * var(--space-6)) 0.35rem; background: var(--ligne); }
.arrets li:last-child .arret-num::after { display: none; }
.arret-corps strong { display: block; font-family: var(--font-titre); font-weight: 800; font-size: var(--size-h3); line-height: var(--lh-h3); margin-bottom: var(--space-1); }

/* Plan de ligne (sommaire) */
.plan-ligne { position: relative; border-left: var(--trait-plan) solid var(--filet); }
.plan-ligne ol { list-style: none; font-family: var(--font-titre); font-size: var(--size-interface); line-height: var(--lh-interface); }
.plan-ligne a { display: block; padding: 0.6rem 0 0.6rem var(--space-4); font-weight: 700; color: var(--texte-2); text-decoration: none; }
.plan-ligne a:hover { color: var(--texte); text-decoration: underline; text-decoration-color: var(--color-jaune); text-decoration-thickness: var(--trait-signal); }
.plan-ligne a.actif { font-weight: 800; color: var(--texte); }
.plan-repere { position: absolute; left: calc(-1 * var(--trait-plan)); top: 0; width: 0.75em; height: 0.75em; margin-left: calc(var(--trait-plan) / 2 - 0.375em); background: var(--color-jaune); transform: translateY(var(--y, 0)); transition: transform var(--duree-repere); visibility: hidden; }
.plan-repere.visible { visibility: visible; }
.plan-titre { font-family: var(--font-titre); font-weight: 700; font-size: var(--size-surtitre); letter-spacing: var(--ls-surtitre); text-transform: uppercase; color: var(--texte-2); margin-bottom: var(--space-3); }
.plan-bouton { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--cible); padding: 0 1.25rem; border: 0; border-top: 2px solid var(--texte); background: var(--surface); font-family: var(--font-titre); font-weight: 800; font-size: var(--size-interface); cursor: pointer; }
.plan-caret { margin-left: auto; transition: transform var(--duree-sommaire); }
.plan.ouvert .plan-caret { transform: rotate(180deg); }

/* Téléphone : bouton « Sommaire » collé en bas d'écran, liste repliée */
.page-article { padding-bottom: var(--cible); }
.marge { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; }
.plan-repli { display: grid; grid-template-rows: 0fr; background: var(--surface); transition: grid-template-rows var(--duree-sommaire); }
.plan-repli > * { overflow: hidden; }
.plan-repli .plan-titre { display: none; }
.plan.ouvert .plan-repli { grid-template-rows: 1fr; }
.plan-repli .plan-ligne { margin: 0 1.25rem; max-height: 60vh; overflow-y: auto; }
.plan.ouvert .plan-ligne { margin-block: var(--space-2) var(--space-4); }
.plan { display: flex; flex-direction: column-reverse; }

@media (min-width: 1024px) {
  .page-article { padding-bottom: 0; }
  .article { padding-inline: 1.25rem; }
  .ariane { padding-inline: 0; }
  .article-grille { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: var(--space-7); align-items: start; }
  .colonne { padding: var(--space-7) var(--space-7) var(--space-8); border-radius: var(--radius); }
  .marge { position: sticky; top: var(--space-6); z-index: auto; }
  .plan { display: block; }
  .plan-bouton { display: none; }
  .plan-repli { display: block; background: none; }
  .plan-repli > * { overflow: visible; }
  .plan-repli .plan-titre { display: block; }
  .plan-repli .plan-ligne { margin: 0; max-height: none; overflow: visible; }
}

/* Fin d'article : la suite de la ligne */
.suite { padding-block: var(--space-7) var(--space-8); }
.suite .titre-section { margin-bottom: var(--space-5); }
.suite .departs { margin-bottom: var(--space-6); }
.suite .vignettes { margin-bottom: var(--space-7); max-width: 52rem; }
.suite-cta { margin-top: var(--space-6); }

/* ---------- Contact : le guichet ---------- */
.guichet { max-width: 46rem; padding: var(--space-6) var(--space-5); background: var(--panneau); border-radius: var(--radius); }
.guichet h2 { font-size: var(--size-h2); font-weight: 800; line-height: var(--lh-h2); letter-spacing: var(--ls-h2); margin-bottom: var(--space-4); }
.formulaire { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--filet); display: grid; gap: var(--space-4); justify-items: start; }
.formulaire-adresse { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-titre); font-weight: 800; font-size: var(--size-interface); }
@media (min-width: 860px) { .guichet { padding: var(--space-7); } }

/* ---------- Mentions légales : panneaux en attente ---------- */
.colonne-simple { border-radius: var(--radius); }
.legal > * + * { margin-top: 1.1em; }
.legal-nom { font-family: var(--font-titre); font-weight: 800; font-size: var(--size-h3); }
.legal-bloc { margin-top: var(--space-6); }
.legal-bloc h2 { font-size: var(--size-h3); font-weight: 800; line-height: var(--lh-h3); margin-bottom: var(--space-3); }
.attente { padding: var(--space-4) var(--space-5); background: var(--attente-fond); border: 2px dashed var(--attente-trait); border-radius: var(--radius); font-family: var(--font-titre); font-weight: 700; font-size: var(--size-interface); color: var(--texte-2); }
.legal-retour { margin-top: var(--space-7); }

/* ---------- 404 : un panneau encre, une flèche ---------- */
.panneau-404 { display: grid; gap: var(--space-6); justify-items: start; padding: var(--space-7) var(--space-5); background: var(--encre-bloc); color: var(--encre-bloc-texte); border-radius: var(--radius); }
@media (min-width: 860px) { .panneau-404 { padding: var(--space-9) var(--space-7); } }

/* ---------- Mouvement réduit : tout est posé ---------- */
@media (prefers-reduced-motion: reduce) {
  .progression { display: none; }
  .entete { transition: none; }
  .entete-cache { transform: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
.page-journal .tete-page { padding-block: var(--space-2) 0; }
#rubrique-sante-mentale-enfant-et-ado { padding-top: var(--space-4); }
.page-contact .tete-page { padding-block: var(--space-4) 0; }
