/* Paulette Matray — sénatrice de Saône-et-Loire
   Feuille de style unique du site. Couleurs et typographies issues du carnet de mandat. */

@font-face {
  font-family: 'Forta';
  src: url('../fonts/forta-subset.woff2') format('woff2');
  font-display: swap;
  /* Sous-ensemble extrait du carnet : les caractères absents basculent sur Barlow Condensed. */
  unicode-range: U+20, U+2D, U+31, U+34-35, U+38-39, U+41, U+43-49, U+4C-50, U+52-55, U+58-59,
    U+61, U+63-69, U+6C-70, U+72-75, U+78-79, U+C9, U+D4, U+E9, U+F4;
}

:root {
  --magenta: #c7156e;
  --magenta-fonce: #a8105c;
  --magenta-pale: #ffd0e5;
  --violet: #620fec;
  --violet-fonce: #3a0a8f;
  --violet-pale: #d9ccff;
  --vert: #33ab8b;
  --vert-fonce: #1f7a63;
  --vert-encre: #0b3328;
  --jaune: #ffe786;
  --creme: #f9edcd;
  --sable: #cdbfac;
  --brun: #744f32;
  --prune: #47142d;
  --bordeaux: #7d1d48;
  --jaune-trait: #e9bb2a;
  --jaune-texte: #7a5700;
  --encre: #2a0b1a;
  --blanc: #ffffff;
  --papier: #ffffff;

  --f-affiche: 'Forta', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-texte: 'Barlow', system-ui, sans-serif;

  --fs-small: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h4: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --fs-affiche: clamp(4rem, 1.4rem + 7.4vw, 8.5rem);

  --wrap: 82rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --rail: clamp(2.75rem, 1rem + 5vw, 6.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --header-h: 4.75rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 6px;

  /* Valeurs du champ courant, redéfinies par chaque aplat */
  --bg: var(--papier);
  --fg: var(--encre);
  --muted: #5c3a48;
  --accent: var(--magenta);
  --rule: rgba(71, 20, 45, 0.18);
  --focus: var(--magenta);
  --fil: var(--magenta);
  --btn-bg: var(--magenta);
  --btn-fg: var(--blanc);

  /* Couleur de la rubrique (body[data-rubrique]) : les rappels de la page la suivent.
     --rub : aplats ; --rub-trait : filets sur fond clair ; --rub-texte : titres et liens sur fond clair ;
     --rub-pale : fonds d'étiquettes ; --rub-sur / --rub-sur-doux : texte posé sur --rub ;
     --rub-btn / --rub-btn-fg : boutons et pastilles actives. Par défaut : magenta. */
  --rub: var(--magenta);
  --rub-trait: var(--magenta);
  --rub-texte: var(--magenta);
  --rub-pale: #fbe0ec;
  --rub-sur: var(--blanc);
  --rub-sur-doux: var(--magenta-pale);
  --rub-btn: var(--magenta);
  --rub-btn-fg: var(--blanc);

  color-scheme: light;
}

/* Engagements : violet */
[data-rubrique='violet'] {
  --rub: var(--violet); --rub-trait: var(--violet); --rub-texte: var(--violet);
  --rub-pale: #efe8ff; --rub-sur: var(--blanc); --rub-sur-doux: var(--violet-pale);
  --rub-btn: var(--violet); --rub-btn-fg: var(--blanc);
}
/* Au Sénat : jaune (filets dorés et texte bronze sur fond clair, le jaune pâle n'y serait pas lisible) */
[data-rubrique='jaune'] {
  --rub: var(--jaune); --rub-trait: var(--jaune-trait); --rub-texte: var(--jaune-texte);
  --rub-pale: #fff4c4; --rub-sur: var(--prune); --rub-sur-doux: #6b4a2a;
  --rub-btn: var(--prune); --rub-btn-fg: var(--jaune);
}
/* En Saône-et-Loire : vert */
[data-rubrique='vert'] {
  --rub: var(--vert); --rub-trait: var(--vert); --rub-texte: var(--vert-fonce);
  --rub-pale: #d6f1e8; --rub-sur: var(--vert-encre); --rub-sur-doux: #134a3b;
  --rub-btn: var(--vert); --rub-btn-fg: var(--vert-encre);
}
/* Accueil et presse : prune (bordeaux pour les rappels sur fond clair) */
[data-rubrique='prune'] {
  --rub: var(--prune); --rub-trait: var(--bordeaux); --rub-texte: var(--bordeaux);
  --rub-pale: #f1e1e8; --rub-sur: var(--blanc); --rub-sur-doux: #e6c3d3;
  --rub-btn: var(--prune); --rub-btn-fg: var(--jaune);
}

@view-transition { navigation: auto; }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: var(--magenta) var(--creme);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

::selection { background: var(--jaune); color: var(--prune); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

p, ul, ol, dl, blockquote, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1; text-wrap: balance; }
p { text-wrap: pretty; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--jaune); color: var(--prune); font-weight: 700;
  padding: 0.75rem 1.25rem; border-radius: var(--radius); text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typographie ---------- */

.affiche {
  font-family: var(--f-affiche);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0.005em;
}

.titre {
  font-family: var(--f-titre);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
}

.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }

.lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 38ch; }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose strong { font-weight: 700; }
.prose h3 { margin-top: 2em; }
.muted { color: var(--muted); }

.date {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.citation {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1.08;
  max-width: 24ch;
}
.citation::before { content: '« '; }
.citation::after { content: ' »'; }
.citation-auteur { margin-top: 1rem; font-weight: 500; color: var(--muted); }

/* ---------- Champs de couleur (aplats du carnet) ---------- */

.champ { background: var(--bg); color: var(--fg); position: relative; }

.champ--magenta {
  --bg: var(--magenta); --fg: var(--blanc); --muted: #ffe8f2;
  --accent: var(--jaune); --rule: rgba(255, 255, 255, 0.3); --focus: var(--jaune);
  --fil: var(--blanc); --btn-bg: var(--jaune); --btn-fg: var(--prune);
}
.champ--vert {
  --bg: var(--vert); --fg: var(--vert-encre); --muted: #0c3529;
  --accent: var(--prune); --rule: rgba(11, 51, 40, 0.28); --focus: var(--prune);
  --fil: var(--blanc); --btn-bg: var(--prune); --btn-fg: var(--blanc);
}
.champ--violet {
  --bg: var(--violet); --fg: var(--blanc); --muted: var(--violet-pale);
  --accent: var(--jaune); --rule: rgba(255, 255, 255, 0.3); --focus: var(--jaune);
  --fil: var(--jaune); --btn-bg: var(--jaune); --btn-fg: var(--prune);
}
.champ--jaune {
  --bg: var(--jaune); --fg: var(--prune); --muted: #6b4a2a;
  --accent: var(--magenta); --rule: rgba(71, 20, 45, 0.22); --focus: var(--magenta);
  --fil: var(--magenta); --btn-bg: var(--magenta); --btn-fg: var(--blanc);
}
.champ--prune {
  --bg: var(--prune); --fg: var(--blanc); --muted: #e6c3d3;
  --accent: var(--jaune); --rule: rgba(255, 255, 255, 0.22); --focus: var(--jaune);
  --fil: var(--jaune); --btn-bg: var(--jaune); --btn-fg: var(--prune);
}
.champ--papier {
  --bg: var(--papier); --fg: var(--encre); --muted: #66404f;
  --accent: var(--rub-texte); --rule: rgba(71, 20, 45, 0.16); --focus: var(--rub-texte);
  --fil: var(--rub-trait); --btn-bg: var(--rub-btn); --btn-fg: var(--rub-btn-fg);
}

/* ---------- Boutons et liens d'action ---------- */

.btn {
  --_bg: var(--btn-bg);
  --_fg: var(--btn-fg);
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.85em 1.4em;
  border: 2px solid var(--_bg);
  border-radius: var(--radius);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--f-texte);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.2s, color 0.2s, box-shadow 0.2s;
  -webkit-user-select: none; user-select: none;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--ligne { background: transparent; color: var(--fg); border-color: currentColor; }
.btn--ligne:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn:not(.btn--ligne):hover { box-shadow: 0 6px 18px -6px rgba(42, 11, 26, 0.45); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.lien-suite {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 0.15em;
}
.lien-suite svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease-out); }
.lien-suite:hover svg { transform: translateX(4px); }

.icone { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- En-tête ---------- */

.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--entete-fg, var(--blanc));
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out);
}
body[data-entete='sombre'] { --entete-fg: var(--prune); }
.entete.est-defile {
  background: rgba(255, 255, 255, 0.94);
  color: var(--prune);
  box-shadow: 0 1px 0 rgba(71, 20, 45, 0.12), 0 8px 24px -16px rgba(71, 20, 45, 0.35);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.entete.est-cache { transform: translateY(-100%); }
.entete .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.marque { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.marque-nom { font-family: var(--f-affiche); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.01em; }
.marque-role { font-size: 0.875rem; font-weight: 500; margin-top: 0.3rem; opacity: 0.9; }

.nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.6vw, 1.75rem); }
.nav a {
  position: relative; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 0.5rem 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 2.75rem; padding: 0.6em 1.1em; --_bg: var(--magenta); --_fg: var(--blanc); }
.nav .btn::after { display: none; }
body[data-entete='clair'] .entete:not(.est-defile) .nav .btn { --_bg: var(--jaune); --_fg: var(--prune); }

.menu-bouton {
  display: none; align-items: center; gap: 0.5rem;
  background: none; border: 0; color: inherit; font: inherit; font-weight: 700;
  padding: 0.5rem; margin-right: -0.5rem; cursor: pointer; min-height: 2.75rem;
}
.menu-bouton svg { width: 1.75rem; height: 1.75rem; }

.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--magenta); color: var(--blanc);
  display: flex; flex-direction: column;
  padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  clip-path: circle(0% at calc(100% - 2.5rem) 2.4rem);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-in-out), visibility 0s linear 0.6s;
  overscroll-behavior: contain;
}
.menu.est-ouvert {
  clip-path: circle(150% at calc(100% - 2.5rem) 2.4rem);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
}
.menu-haut { display: flex; justify-content: space-between; align-items: center; height: calc(var(--header-h) - 1rem); }
.menu nav { margin-block: auto; }
.menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.menu li a {
  display: block; text-decoration: none;
  font-family: var(--f-affiche); text-transform: uppercase;
  font-size: clamp(2.25rem, 9.5vw, 3.75rem); line-height: 1;
  padding: 0.2rem 0;
}
.menu li a[aria-current='page'] { color: var(--jaune); }
.menu.est-ouvert li { animation: menu-entree 0.6s var(--ease-out) both; }
.menu.est-ouvert li:nth-child(2) { animation-delay: 0.05s; }
.menu.est-ouvert li:nth-child(3) { animation-delay: 0.1s; }
.menu.est-ouvert li:nth-child(4) { animation-delay: 0.15s; }
.menu.est-ouvert li:nth-child(5) { animation-delay: 0.2s; }
.menu.est-ouvert li:nth-child(6) { animation-delay: 0.25s; }
.menu.est-ouvert li:nth-child(7) { animation-delay: 0.3s; }
@keyframes menu-entree { from { opacity: 0; transform: translateY(1.5rem); } }
.menu-pied { font-size: 1rem; color: var(--magenta-pale); }

@media (max-width: 64rem) {
  .nav { display: none; }
  .menu-bouton { display: inline-flex; }
}

/* ---------- Le fil (tracé du village à l'hémicycle) ---------- */

[data-fil-scope] { position: relative; }
.fil {
  position: absolute; left: 0; top: 0; z-index: 3;
  pointer-events: none; overflow: visible;
}
.fil path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fil .fil-tete { fill: var(--jaune); stroke: var(--prune); stroke-width: 2.5; }

.station {
  position: absolute; z-index: 4;
  left: calc(var(--rail) / 2); top: 0.15em;
  width: 1.25rem; height: 1.25rem; margin-left: -0.625rem;
  border-radius: 50%;
  border: 3px solid var(--fil);
  background: var(--bg);
  transition: background-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.station.est-atteinte { background: var(--fil); transform: scale(1.25); }
.waypoint { position: absolute; width: 1px; height: 1px; pointer-events: none; }

/* ---------- Accueil : ouverture ---------- */

.ouverture {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  overflow: clip;
}
.ouverture-texte {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 9rem max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  position: relative; z-index: 2;
}
.ouverture-nom { font-size: var(--fs-affiche); margin-left: -0.04em; }
.ouverture-nom .ligne { display: block; overflow: hidden; padding-bottom: 0.04em; }
.ouverture-nom .ligne > span { display: block; }
.ouverture-role {
  margin-top: 1.25rem;
  font-family: var(--f-titre); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); line-height: 1;
}
.ouverture-devise { margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.4; max-width: 30ch; color: var(--muted); }
.ouverture .actions { margin-top: 2.25rem; }
.ouverture-reelue {
  margin-top: 2.5rem; display: inline-flex; align-items: center; gap: 0.75rem;
  font-weight: 600; font-size: 1rem;
}
.ouverture-reelue::before { content: ''; width: 2.5rem; height: 2px; background: var(--jaune); }

.ouverture-photo { position: relative; min-height: 32rem; }
.ouverture-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.ouverture-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
none;
  pointer-events: none;
}

.ouverture-carte {
  position: absolute; z-index: 3;
  left: -9%; bottom: 7%;
  width: min(23rem, 70%);
}
.carte-silhouette { overflow: visible; }
.carte-silhouette path { fill: color-mix(in srgb, var(--rub) 82%, transparent); stroke: var(--blanc); stroke-width: 6; stroke-linejoin: round; }
.ouverture-carte .epingle {
  position: absolute; width: 1.1rem; height: 1.1rem; margin: -0.55rem 0 0 -0.55rem;
  border-radius: 50%; background: var(--jaune); border: 3px solid var(--prune);
}
.ouverture-carte .epingle-label {
  position: absolute; transform: translate(0.9rem, -50%);
  font-family: var(--f-titre); font-weight: 700; font-size: 1.125rem; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.02em;
}

/* ---------- Chapitres ---------- */

.chapitre { padding-block: var(--section); }
.chapitre > .wrap { position: relative; padding-left: calc(var(--gutter) + var(--rail)); }
.chapitre .station { left: calc(var(--gutter) + var(--rail) / 2); top: calc(var(--fs-h2) * 0.38); }
.chapitre-titre { font-size: var(--fs-h2); }
.chapitre-tete { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.chapitre-tete p { max-width: 46ch; font-size: var(--fs-lead); line-height: 1.4; }

/* Parcours en quatre étapes (accueil) */
.parcours-grille {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start;
}
.parcours-photo { position: relative; }
.parcours-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.parcours-photo figcaption { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--muted); }
.etapes { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 2.5rem; border-top: 2px solid var(--fg); }
.etapes li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--rule);
}
.etapes .date { color: var(--accent); }
.etapes li > div:only-child { grid-column: 1 / -1; }
.etapes strong { display: block; font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h4); line-height: 1.05; }
.etapes p { margin-top: 0.35rem; color: var(--muted); }

/* Liste des engagements (accueil) */
.engagements-liste { list-style: none; padding: 0; border-top: 2px solid var(--fg); position: relative; }
.engagements-liste li { border-bottom: 1px solid var(--rule); }
.engagements-liste a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
  gap: clamp(1rem, 3vw, 3rem); align-items: baseline;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem) 0;
  text-decoration: none;
  transition: padding-left 0.4s var(--ease-out), background-color 0.3s;
}
.engagements-liste .titre { font-size: var(--fs-h3); }
.engagements-liste .constat { font-size: var(--fs-body); max-width: 44ch; }
.engagements-liste .acte { display: block; margin-top: 0.4rem; font-weight: 700; }
.engagements-liste .fleche { width: 2rem; height: 2rem; transition: transform 0.35s var(--ease-out); }
.engagements-liste a:hover .fleche, .engagements-liste a:focus-visible .fleche { transform: translateX(6px); }
@media (hover: hover) and (min-width: 64rem) {
  .engagements-liste a:hover { padding-left: 1.25rem; }
}
.apercu {
  position: absolute; z-index: 5; top: 0; left: 0;
  width: 17rem; aspect-ratio: 4 / 5; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(0.9) rotate(-3deg);
  transition: opacity 0.25s, transform 0.45s var(--ease-out);
  box-shadow: 0 24px 48px -20px rgba(11, 51, 40, 0.6);
}
.apercu.est-visible { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.apercu img { width: 100%; height: 100%; object-fit: cover; }

/* Au Sénat (accueil) */
.senat-visuel { position: relative; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.senat-visuel img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.senat-visuel figcaption { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--muted); }

.compteurs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--fg); border-bottom: 2px solid var(--fg);
}
.compteur { padding: 1.5rem 1.25rem 1.5rem 0; }
.compteur + .compteur { border-left: 1px solid var(--rule); padding-left: 1.25rem; }
.compteur-valeur {
  display: flex; font-family: var(--f-titre); font-weight: 900;
  font-size: clamp(3.5rem, 2rem + 5vw, 7rem); line-height: 1; height: 1em; overflow: hidden;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.chiffre { display: block; height: 1em; overflow: hidden; }
.chiffre-bande { display: flex; flex-direction: column; }
.chiffre-bande span { height: 1em; display: block; }
.compteur-libelle { margin-top: 0.75rem; font-weight: 600; line-height: 1.3; max-width: 18ch; }
.compteurs-note { margin-top: 1rem; font-size: var(--fs-small); color: var(--muted); }

.textes { list-style: none; padding: 0; margin-top: clamp(2.5rem, 4vw, 4rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); }
.textes li { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.textes .nature { font-weight: 600; color: var(--muted); font-size: var(--fs-small); }
.textes h3 { margin-top: 0.4rem; font-size: var(--fs-h4); font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.textes p { margin-top: 0.5rem; }

/* Terrain (accueil) */
.terrain-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.carte { position: relative; }
.carte svg path { fill: var(--blanc); stroke: var(--prune); stroke-width: 5; stroke-linejoin: round; }
.champ--jaune .carte svg path { fill: rgba(255, 255, 255, 0.55); }
.carte-lieu {
  /* Le centre du point (0,35 rem de marge + 0,5 rem de rayon) tombe sur la coordonnée */
  position: absolute; transform: translate(-0.85rem, -50%);
  display: flex; align-items: center; gap: 0.4rem;
  background: none; border: 0; padding: 0.35rem; margin: 0; cursor: pointer;
  font: inherit; color: var(--prune); text-decoration: none;
}
.carte-lieu .point {
  width: 1rem; height: 1rem; border-radius: 50%; flex: none;
  background: var(--magenta); border: 3px solid var(--prune);
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.carte-lieu .nom {
  font-family: var(--f-titre); font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.02em;
  background: var(--jaune); padding: 0 0.3rem; border-radius: 3px; line-height: 1.3;
}
.carte-lieu:not([aria-pressed='true']) .nom { display: none; }
.carte-lieu:hover .point, .carte-lieu[aria-pressed='true'] .point { transform: scale(1.35); background: var(--violet); }
.carte-lieu[aria-pressed='true'] .nom { background: var(--prune); color: var(--jaune); }
.carte-lieu--gauche { flex-direction: row-reverse; transform: translate(calc(-100% + 0.85rem), -50%); }
@media (max-width: 30rem) { .nom-suite { display: none; } }

.actus-courtes { list-style: none; padding: 0; border-top: 2px solid var(--fg); }
.actus-courtes li { border-bottom: 1px solid var(--rule); }
.actus-courtes a { display: block; padding: 1.25rem 0; text-decoration: none; }
.actus-courtes .date { color: var(--accent); }
.actus-courtes h3 { margin-top: 0.3rem; font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h4); line-height: 1.05; }
.actus-courtes a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

/* Écrire (accueil) */
.profils { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--fg); }
.profils li + li { border-left: 1px solid var(--rule); }
.profils a {
  display: flex; flex-direction: column; gap: 0.75rem; height: 100%;
  padding: 1.75rem 1.5rem 2rem 0; text-decoration: none;
  transition: background-color 0.3s;
}
.profils li + li a { padding-left: 1.5rem; }
.profils .titre { font-size: var(--fs-h3); }
.profils p { color: var(--muted); max-width: 30ch; }
.profils .lien-suite { margin-top: auto; align-self: flex-start; color: var(--accent); }

/* ---------- Pages intérieures ---------- */

.page-tete {
  padding: calc(var(--header-h) + clamp(3rem, 6vw, 6rem)) 0 clamp(3rem, 6vw, 5.5rem);
  overflow: clip;
}
.page-tete-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.page-titre { font-size: clamp(2.75rem, 1.4rem + 4.4vw, 5.5rem); }
.page-tete .lead { margin-top: 1.75rem; max-width: 40ch; }
.page-tete figure { position: relative; }
.page-tete figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.page-tete figure figcaption { margin-top: 0.6rem; font-size: var(--fs-small); color: var(--muted); }
.fil-ariane { font-size: var(--fs-small); margin-bottom: 1.5rem; }
.fil-ariane ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fil-ariane li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.6; }
.fil-ariane a { text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }

.section { padding-block: var(--section); }
.section-titre { font-size: var(--fs-h2); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.colle { position: sticky; top: calc(var(--header-h) + 2rem); }

/* Frise verticale (parcours) */
.frise { list-style: none; padding: 0 0 0 var(--rail); position: relative; }
.frise li { position: relative; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.frise li:last-child { padding-bottom: 0; }
.frise .station { left: calc(var(--rail) / -2); top: 0.4rem; }
.frise .date { color: var(--accent); font-size: 1.25rem; }
.frise h3 { margin-top: 0.35rem; font-size: var(--fs-h3); }
.frise p { margin-top: 0.75rem; max-width: 58ch; }

/* Principes */
.principes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.principes li { border-top: 2px solid var(--fg); padding-top: 1.25rem; }
.principes h3 { font-size: var(--fs-h3); }
.principes p { margin-top: 0.75rem; }

/* Liste (colistiers) */
.liste-equipe { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.liste-equipe figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.liste-equipe .rang { font-family: var(--f-titre); font-weight: 900; font-size: 2.5rem; line-height: 1; color: var(--accent); margin-top: 0.75rem; display: block; }
.liste-equipe strong { display: block; font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: 1.375rem; line-height: 1.05; margin-top: 0.4rem; }
.liste-equipe span.qualite { display: block; margin-top: 0.35rem; font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }

.resultat { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 4rem); margin-block: 2rem 3rem; }
.resultat div { border-top: 2px solid var(--fg); padding-top: 0.75rem; min-width: 10rem; }
.resultat strong { display: block; font-family: var(--f-titre); font-weight: 900; font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Engagements : index + dossiers */
.dossiers { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sommaire { position: sticky; top: calc(var(--header-h) + 2rem); }
.sommaire p { font-weight: 700; margin-bottom: 0.75rem; }
.sommaire ol { list-style: none; padding: 0; border-left: 2px solid var(--rule); }
.sommaire a {
  display: block; padding: 0.45rem 0 0.45rem 1rem; margin-left: -2px; text-decoration: none; line-height: 1.3;
  border-left: 2px solid transparent; transition: border-color 0.3s, color 0.3s;
  font-weight: 500;
}
.sommaire a:hover { border-left-color: var(--rule); }
.sommaire a[aria-current='true'] { border-left-color: var(--rub-texte); color: var(--rub-texte); font-weight: 700; }

.dossier { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 2px solid var(--encre); }
.dossier:first-of-type { border-top: 0; padding-top: 0; }
.dossiers-fil .dossier { position: relative; }
/* Sur grand écran, le fil court dans la gouttière entre le sommaire et les dossiers */
.dossiers-fil .station { left: calc(clamp(2rem, 5vw, 5rem) / -2); top: calc(clamp(2.5rem, 5vw, 4.5rem) + 0.7rem); }
@media (max-width: 64rem) {
  .dossiers-fil .dossier { padding-left: var(--rail); }
  .dossiers-fil .station { left: calc(var(--rail) / 2); }
}
.dossiers-fil .dossier:first-of-type .station { top: 0.7rem; }
.dossier-tete { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: 2rem; align-items: start; }
.dossier-tete img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dossier h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.dossier .accroche { margin-top: 1rem; font-size: var(--fs-lead); line-height: 1.4; max-width: 44ch; }
.volets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); margin-top: 2.5rem; }
.volet h3 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; padding-bottom: 0.6rem; border-bottom: 3px solid var(--volet, var(--rub-trait)); margin-bottom: 0.9rem; }
.volet--constat { --volet: var(--sable); }
.volet--actes { --volet: var(--rub-trait); }
.volet--demande { --volet: var(--magenta); }
.volet ul { padding-left: 1.1em; display: grid; gap: 0.6rem; }
.volet li::marker { color: var(--volet); }
.volet p + p { margin-top: 0.75rem; }
.volet .date { color: var(--rub-texte); }

.chiffre-cle { display: flex; gap: 1rem; align-items: baseline; margin-top: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.chiffre-cle strong { font-family: var(--f-titre); font-weight: 900; font-size: 2.75rem; line-height: 1; color: var(--rub-texte); white-space: nowrap; }

/* Au Sénat : tableaux de travaux */
.travaux { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.travaux caption { text-align: left; font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h3); padding-bottom: 1rem; }
.travaux th, .travaux td { text-align: left; vertical-align: top; padding: 1.1rem 1rem 1.1rem 0; border-top: 1px solid var(--rule); }
.travaux thead th { font-size: var(--fs-small); font-weight: 700; color: var(--muted); border-top: 2px solid var(--fg); padding-block: 0.75rem; }
.travaux td:first-child { white-space: nowrap; font-family: var(--f-titre); font-weight: 700; font-variant-numeric: tabular-nums; }
.travaux strong { font-weight: 700; }
.etiquette {
  display: inline-block; font-size: 0.875rem; font-weight: 700; line-height: 1.2;
  padding: 0.25rem 0.55rem; border-radius: 3px; white-space: nowrap;
  background: var(--etiquette-bg, var(--creme)); color: var(--etiquette-fg, var(--prune));
}
.etiquette--adopte { --etiquette-bg: var(--vert); --etiquette-fg: var(--vert-encre); }
.etiquette--depose { --etiquette-bg: var(--jaune); --etiquette-fg: var(--prune); }
.etiquette--bloque { --etiquette-bg: var(--magenta-pale); --etiquette-fg: var(--magenta-fonce); }
.etiquette--publie { --etiquette-bg: var(--violet-pale); --etiquette-fg: var(--violet-fonce); }

.role-senat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.role-senat li { list-style: none; border-top: 2px solid var(--fg); padding-top: 1rem; }
ul.role-senat { padding: 0; margin: 0; }
.role-senat h3 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h4); }
.role-senat p { margin-top: 0.5rem; color: var(--muted); }

/* Territoire : grande carte */
.territoire { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.lieu-panneau { position: sticky; top: calc(var(--header-h) + 2rem); min-height: 20rem; }
.lieu-panneau .lieu { display: none; }
.lieu-panneau .lieu.est-actif { display: block; animation: panneau 0.5s var(--ease-out); }
@keyframes panneau { from { opacity: 0; transform: translateY(0.75rem); } }
.lieu h3 { font-size: var(--fs-h3); }
.lieu img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 1.25rem; }
.lieu p { margin-top: 1rem; }
.lieu .lien-suite { margin-top: 1.25rem; }
.lieux-liste { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.lieux-liste button {
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: 0.5rem 0.9rem; border-radius: 999px; min-height: 2.75rem;
  border: 2px solid var(--prune); background: transparent; color: var(--prune);
  transition: background-color 0.2s, color 0.2s;
}
.lieux-liste button[aria-pressed='true'], .lieux-liste button:hover { background: var(--prune); color: var(--jaune); }

.permanence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.permanence > div { border-top: 2px solid var(--fg); padding-top: 1.25rem; }
.permanence h3 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h4); margin-bottom: 0.75rem; }
.permanence address { font-style: normal; }
.a-completer { background: var(--creme); color: var(--brun); padding: 0 0.3em; border-radius: 3px; }

/* Actualités */
.filtres { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; padding: 0; list-style: none; }
.filtres button {
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: 0.5rem 1rem; border-radius: 999px; min-height: 2.75rem;
  border: 2px solid var(--prune); background: transparent; color: var(--prune);
  transition: background-color 0.2s, color 0.2s, transform 0.15s var(--ease-out);
}
.filtres button:active { transform: scale(0.96); }
.filtres button[aria-pressed='true'] { background: var(--prune); color: var(--jaune); }
.filtres-etat { margin-bottom: 1rem; font-weight: 600; color: var(--muted); }

.actus { list-style: none; padding: 0; border-top: 2px solid var(--encre); }
.actu { border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); padding: clamp(1.5rem, 3vw, 2.25rem) 0; }
.actu[hidden] { display: none; }
.actu .date { color: var(--magenta-fonce); font-size: 1.25rem; }
.actu .theme { display: block; margin-top: 0.4rem; font-size: var(--fs-small); color: var(--muted); font-weight: 600; }
.actu h2 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h3); line-height: 1; }
.actu .resume { margin-top: 0.75rem; max-width: 62ch; }
.actu-detail { margin-top: 1rem; }
.actu-detail summary {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 700; color: var(--magenta-fonce);
  list-style: none; min-height: 2.75rem;
}
.actu-detail summary::-webkit-details-marker { display: none; }
.actu-detail summary svg { width: 1.1rem; height: 1.1rem; transition: transform 0.3s var(--ease-out); }
.actu-detail[open] summary svg { transform: rotate(45deg); }
.actu-detail .moins, .actu-detail[open] .plus { display: none; }
.actu-detail[open] .moins { display: inline; }
.actu-detail .prose { padding-top: 0.5rem; }
.actu-detail::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
.actu-detail[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
.actu-photo { margin-top: 1.25rem; max-width: 34rem; }
.actu-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.formulaire { display: grid; gap: 1.5rem; }
.formulaire fieldset { border: 0; margin: 0; padding: 0; }
.formulaire legend { font-weight: 700; margin-bottom: 0.75rem; padding: 0; }
.choix-profil { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choix-profil label {
  position: relative; display: inline-flex; align-items: center; cursor: pointer;
  padding: 0.6rem 1.1rem; min-height: 2.75rem; border-radius: 999px;
  border: 2px solid var(--prune); font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.choix-profil input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choix-profil label:has(input:checked) { background: var(--prune); color: var(--jaune); }
.choix-profil label:has(input:focus-visible) { outline: 3px solid var(--magenta); outline-offset: 3px; }
.champ-form { display: grid; gap: 0.5rem; }
.champ-form label { font-weight: 700; }
.champ-form .aide { font-size: var(--fs-small); color: var(--muted); }
.deux-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.champ-form input, .champ-form select, .champ-form textarea {
  width: 100%; font: inherit; font-size: max(16px, 1.0625rem); color: var(--encre);
  background: var(--blanc); border: 2px solid rgba(71, 20, 45, 0.35); border-radius: var(--radius);
  padding: 0.8rem 0.95rem; min-height: 3.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.champ-form textarea { min-height: 11rem; resize: vertical; line-height: 1.5; }
.champ-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23c7156e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.25rem;
}
.champ-form input:hover, .champ-form select:hover, .champ-form textarea:hover { border-color: rgba(71, 20, 45, 0.6); }
.champ-form input:focus, .champ-form select:focus, .champ-form textarea:focus {
  outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(199, 21, 110, 0.18);
}
.champ-form [aria-invalid='true'] { border-color: #b3123f; background: #fff5f7; }
.erreur { color: #b3123f; font-weight: 600; font-size: var(--fs-small); display: flex; gap: 0.4rem; align-items: center; }
.erreur:empty { display: none; }
.consentement { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--fs-small); }
.consentement input { width: 1.35rem; height: 1.35rem; accent-color: var(--magenta); margin-top: 0.15rem; flex: none; }
.pot-de-miel { position: absolute; left: -9999px; }
.formulaire .btn[aria-busy='true'] { opacity: 0.75; pointer-events: none; }
.formulaire .icone-attente { display: none; }
.formulaire .btn[aria-busy='true'] .icone-envoi { display: none; }
.formulaire .btn[aria-busy='true'] .icone-attente { display: block; animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.envoi-etat { border-radius: var(--radius); padding: 1.25rem 1.5rem; font-weight: 600; }
.envoi-etat[hidden] { display: none; }
.envoi-etat--ok { background: var(--vert); color: var(--vert-encre); }
.envoi-etat--erreur { background: var(--magenta-pale); color: var(--magenta-fonce); }

.coordonnees { display: grid; gap: 2rem; }
.coordonnees > div { border-top: 2px solid var(--fg); padding-top: 1rem; }
.coordonnees h2 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h4); margin-bottom: 0.6rem; }
.coordonnees address { font-style: normal; }

/* Mentions */
.mentions h2 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h3); margin-top: 2.5em; }
.mentions h2:first-child { margin-top: 0; }

/* ---------- Pied de page (gabarit Chalon en commun : logo compact, liens resserrés) ---------- */

.pied {
  --focus: var(--jaune);
  background: var(--prune); color: var(--blanc);
  padding-top: clamp(3rem, 2.25rem + 3vw, 4.5rem);
}
.pied-haut { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 3rem; }
.pied-logo {
  display: inline-block; font-family: var(--f-affiche); text-transform: uppercase; text-decoration: none;
  font-size: 2rem; line-height: 0.88; letter-spacing: 0.01em; margin-bottom: 1.25rem;
}
.pied-texte { max-width: 26rem; margin-bottom: 1.25rem; color: rgba(255, 255, 255, 0.82); font-size: 1rem; }
.pied address { font-style: normal; color: rgba(255, 255, 255, 0.78); line-height: 1.8; font-size: 1rem; }
.pied address a { text-underline-offset: 3px; text-decoration: underline; text-decoration-thickness: 1px; }
.pied address a:hover { color: var(--jaune); }
.pied-suivre { margin-top: 1.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--jaune); }
.reseaux { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.reseau {
  display: inline-flex; align-items: center; gap: 0.55rem; height: 44px; padding: 0 1.05rem 0 0.85rem;
  border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.22); font-weight: 700; font-size: 0.9375rem; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--ease-out);
}
.reseau .icone { width: 18px; height: 18px; }
.reseau:hover { background: var(--magenta); border-color: var(--magenta); transform: translateY(-3px); }
.pied-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; min-width: 0; }
.pied-h { font-family: var(--f-texte); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--jaune); margin-bottom: 1rem; line-height: 1.3; }
.pied-nav ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.pied-nav a {
  display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-size: 1rem;
  color: rgba(255, 255, 255, 0.85); transition: color 0.2s; overflow-wrap: anywhere;
}
.pied-nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 4px; }
.pied-bas {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem; color: rgba(255, 255, 255, 0.7);
}
.pied-bas ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.pied-bas a { text-underline-offset: 3px; }
.pied-bas a:hover { color: #fff; }
@media (max-width: 56rem) { .pied-haut { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 37.5rem) { .pied-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pied-bas a { display: inline-block; padding-block: 0.75rem; } }

/* ---------- 404 ---------- */
.perdu { min-height: 100svh; display: grid; place-items: center; text-align: left; padding-top: var(--header-h); }
.perdu .affiche { font-size: clamp(3rem, 2rem + 6vw, 7rem); }

/* ---------- Mouvement : état initial seulement quand le script est actif ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js-motion .ouverture-nom .ligne > span { transform: translateY(105%); }
  .js-motion .est-pret .ouverture-nom .ligne > span { transform: none; transition: transform 1s var(--ease-out); }
  .js-motion .est-pret .ouverture-nom .ligne:nth-child(2) > span { transition-delay: 0.08s; }
  .js-motion .ouverture-role, .js-motion .ouverture-devise, .js-motion .ouverture .actions, .js-motion .ouverture-reelue { opacity: 0; transform: translateY(0.75rem); }
  .js-motion .est-pret .ouverture-role, .js-motion .est-pret .ouverture-devise, .js-motion .est-pret .actions, .js-motion .est-pret .ouverture-reelue {
    opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }
  .js-motion .est-pret .ouverture-role { transition-delay: 0.35s; }
  .js-motion .est-pret .ouverture-devise { transition-delay: 0.45s; }
  .js-motion .est-pret .actions { transition-delay: 0.55s; }
  .js-motion .est-pret .ouverture-reelue { transition-delay: 0.65s; }
  .js-motion .ouverture-photo img { clip-path: inset(0 0 0 100%); }
  .js-motion .est-pret .ouverture-photo img { clip-path: inset(0); transition: clip-path 1.2s var(--ease-in-out) 0.1s; }
  .js-motion .carte-silhouette path { stroke-dasharray: var(--longueur, 4000); stroke-dashoffset: var(--longueur, 4000); fill-opacity: 0; }
  .js-motion .est-pret .carte-silhouette path { stroke-dashoffset: 0; fill-opacity: 1; transition: stroke-dashoffset 1.6s var(--ease-in-out) 0.6s, fill-opacity 0.8s ease 1.8s; }
  .js-motion .ouverture-carte .epingle, .js-motion .ouverture-carte .epingle-label { opacity: 0; transform: translateY(-1.5rem); }
  .js-motion .est-pret .ouverture-carte .epingle { opacity: 1; transform: none; transition: opacity 0.3s 1.9s, transform 0.7s var(--ease-out) 1.9s; }
  .js-motion .est-pret .ouverture-carte .epingle-label { opacity: 1; transform: translate(0.9rem, -50%); transition: opacity 0.4s 2.1s, transform 0.6s var(--ease-out) 2.1s; }

  /* Titre de chapitre : il se dévoile quand le fil atteint sa station */
  .js-motion [data-revele] { clip-path: inset(-0.4em 100% -0.3em -0.1em); }
  .js-motion [data-revele].est-revele { clip-path: inset(-0.4em -0.2em -0.3em -0.1em); transition: clip-path 0.9s var(--ease-out); }
}

/* ---------- Adaptations ---------- */

@media (max-width: 64rem) {
  .ouverture { grid-template-columns: 1fr; min-height: 0; }
  .ouverture-texte { padding: calc(var(--header-h) + 2.5rem) var(--gutter) 3rem; }
  .ouverture-photo { min-height: 0; aspect-ratio: 4 / 4.2; }

  .ouverture-carte { left: var(--gutter); bottom: 1.5rem; width: min(15rem, 55%); }
  .parcours-grille, .terrain-grille, .deux-colonnes, .territoire, .contact-grille, .page-tete-grille { grid-template-columns: 1fr; }
  .colle, .lieu-panneau { position: static; }
  .page-tete figure { max-width: 28rem; }
  .dossiers { grid-template-columns: 1fr; }
  .sommaire { position: static; }
  .sommaire ol { columns: 2; column-gap: 1.5rem; }
  .compteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compteurs > .compteur:nth-child(3) { border-left: 0; padding-left: 0; }
  .compteur:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .role-senat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .liste-equipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
  :root { --header-h: 4.25rem; --rail: 2.25rem; }
  .marque-nom { font-size: 1.25rem; }
  .marque-role { font-size: 0.8125rem; }
  .chapitre > .wrap { padding-left: calc(var(--gutter) + var(--rail)); }
  .etapes li { grid-template-columns: 1fr; gap: 0.25rem; }
  .engagements-liste a { grid-template-columns: minmax(0, 1fr) auto; }
  .engagements-liste .constat { grid-column: 1 / -1; grid-row: 2; }
  .engagements-liste .fleche { grid-row: 1; grid-column: 2; align-self: center; }
  .textes, .principes, .volets, .permanence, .deux-champs, .profils { grid-template-columns: 1fr; }
  .profils li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .profils li + li a, .profils a { padding-left: 0; padding-right: 0; }
  .role-senat { grid-template-columns: 1fr; }
  .liste-equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dossier-tete { grid-template-columns: 1fr; }
  .dossier-tete img { max-width: 12rem; }
  .sommaire ol { columns: 1; }
  .actu { grid-template-columns: 1fr; gap: 0.5rem; }
  .travaux thead { display: none; }
  .travaux, .travaux tbody, .travaux tr, .travaux td { display: block; width: 100%; }
  .travaux tr { border-top: 1px solid var(--rule); padding: 1rem 0; }
  .travaux td { border: 0; padding: 0.2rem 0; }
  .carte-lieu .nom { font-size: 0.8125rem; }
  .compteur { padding-right: 0.75rem; }
  .compteur + .compteur { padding-left: 0.75rem; }
  .compteurs > .compteur:nth-child(3) { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .entete, .menu, .fil, .station, .pied, .apercu { display: none !important; }
  .champ { background: none !important; color: #000 !important; }
  body { font-size: 11pt; }
}

/* =====================================================================
   Arborescence reliée : menu déroulant, fonctions, travaux, actualités,
   questions, propositions de loi, liens croisés, presse
   ===================================================================== */

.champ--creme {
  --bg: #f6efe0; --fg: var(--encre); --muted: #66404f;
  --accent: var(--rub-texte); --rule: rgba(71, 20, 45, 0.16); --focus: var(--rub-texte);
  --fil: var(--rub-trait); --btn-bg: var(--rub-btn); --btn-fg: var(--rub-btn-fg);
}

/* Menu déroulant « Au Sénat » */
.nav-deroulant { position: relative; }
.nav-bouton {
  display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: 0; color: inherit; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; padding: 0.5rem 0; position: relative;
}
.nav-bouton .icone { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease-out); }
.nav-bouton[aria-expanded='true'] .icone { transform: rotate(180deg); }
.nav-bouton::after {
  content: ''; position: absolute; left: 0; right: 1.3rem; bottom: 0.15rem; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
}
.nav-bouton[data-courant]::after, .nav-bouton:hover::after { transform: scaleX(1); transform-origin: left; }
.sous-menu {
  position: absolute; top: calc(100% + 0.75rem); left: 50%; width: 22rem; list-style: none; margin: 0; padding: 0.5rem;
  background: var(--blanc); color: var(--encre); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(42, 11, 26, 0.08), 0 24px 48px -18px rgba(42, 11, 26, 0.4);
  opacity: 0; visibility: hidden; transform: translate(-50%, -0.5rem);
  transition: opacity 0.2s, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.sous-menu::before { content: ''; position: absolute; inset: -0.75rem 0 auto; height: 0.75rem; }
.nav-deroulant.est-ouvert .sous-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity 0.2s, transform 0.3s var(--ease-out), visibility 0s;
}
.sous-menu a { display: block; padding: 0.75rem 0.9rem; border-radius: 10px; text-decoration: none; }
.sous-menu a::after { display: none; }
.sous-menu a:hover, .sous-menu a:focus-visible { background: #fbeef4; }
.sous-menu a[aria-current='page'] { background: #fbeef4; }
.sous-menu strong { display: block; font-weight: 700; color: var(--prune); }
.sous-menu span { display: block; font-size: 0.875rem; font-weight: 500; color: #66404f; margin-top: 0.1rem; }
.menu-sous { list-style: none; padding: 0 0 0.5rem 0.25rem; margin: 0.25rem 0 0; display: grid; gap: 0.1rem; }
.menu .menu-sous a { font-family: var(--f-texte); text-transform: none; font-size: 1.125rem; font-weight: 600; color: var(--magenta-pale); padding: 0.3rem 0; }
.menu .menu-sous a[aria-current='page'] { color: var(--jaune); }

/* Ses fonctions */
.responsabilites { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--fg); }
.responsabilite { border-bottom: 1px solid var(--rule); }
.responsabilite:nth-child(odd) { border-right: 1px solid var(--rule); }
.responsabilite a {
  position: relative; display: grid; gap: 0.35rem; height: 100%; text-decoration: none;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem) clamp(1rem, 2vw, 2rem) clamp(1.25rem, 1rem + 1vw, 2rem) 0;
  transition: background-color 0.3s;
}
.responsabilite:nth-child(even) a { padding-left: clamp(1rem, 2vw, 2rem); }
.responsabilite-etat {
  justify-self: start; font-size: 0.8125rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px;
  background: var(--vert); color: var(--vert-encre);
}
.responsabilite--terminee .responsabilite-etat { background: var(--creme); color: var(--brun); }
.responsabilite-role { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h4); color: var(--accent); line-height: 1; margin-top: 0.4rem; }
.responsabilite-instance { font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.08; max-width: 26ch; }
.responsabilite-texte { color: var(--muted); max-width: 46ch; }
.responsabilite-icone { position: absolute; right: clamp(1rem, 2vw, 2rem); top: clamp(1.25rem, 1rem + 1vw, 2rem); width: 1.5rem; height: 1.5rem; transition: transform 0.3s var(--ease-out); }
.responsabilite a:hover .responsabilite-icone { transform: translate(3px, -3px); }
.champ--prune .responsabilite-etat { background: var(--jaune); color: var(--prune); }
.champ--prune .responsabilite--terminee .responsabilite-etat { background: rgba(255, 255, 255, 0.14); color: var(--blanc); }

/* Derniers travaux + décompte vertical */
.travaux-grille { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.travaux-liste { list-style: none; padding: 0; border-top: 2px solid var(--fg); }
.travaux-liste li { border-bottom: 1px solid var(--rule); }
.travaux-liste a {
  display: grid; grid-template-columns: 6.5rem 11rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline;
  padding: 1rem 0; text-decoration: none; transition: padding-left 0.35s var(--ease-out);
}
.travaux-liste a:hover { padding-left: 0.5rem; }
.travaux-liste time { font-family: var(--f-titre); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.travail-nature { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.travail-titre { font-weight: 600; line-height: 1.35; }
.travaux-liste .icone { width: 1.1rem; height: 1.1rem; align-self: center; }
.travaux-liste li.est-nouveau { animation: nouveau 0.8s var(--ease-out); }
@keyframes nouveau { from { opacity: 0; transform: translateY(-0.5rem); } }
.travaux-compteurs { position: sticky; top: calc(var(--header-h) + 2rem); }
.compteurs--vertical { grid-template-columns: 1fr; border-bottom: 0; }
.compteurs--vertical .compteur { padding: 1rem 0; border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--rule); }
.compteurs--vertical .compteur-valeur { font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); }
.compteurs--vertical .compteur-libelle { margin-top: 0.35rem; font-size: 0.9375rem; }
.compteurs-note a { color: inherit; }

/* Puces de thème */
.puce { display: inline-block; font-size: 0.8125rem; font-weight: 700; line-height: 1.2; padding: 0.25rem 0.6rem; border-radius: 999px; }
.puce--magenta { background: #fbe0ec; color: var(--magenta-fonce); }
.puce--violet { background: #e9e0ff; color: var(--violet-fonce); }
.puce--prune { background: #f1e1e8; color: var(--prune); }
.puce--vert { background: #d6f1e8; color: #12513f; }
.puce--sable { background: #efe6d1; color: #5d4f2f; }

/* Cartes d'actualités (format PS71) */
.grille-actus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.carte-actu {
  position: relative; display: flex; flex-direction: column; background: var(--blanc); color: var(--encre);
  border: 1px solid rgba(71, 20, 45, 0.12); border-radius: 18px; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.carte-actu:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(42, 11, 26, 0.45); }
.carte-actu[hidden] { display: none; }
.carte-actu-visuel { aspect-ratio: 16 / 10; overflow: hidden; background: var(--creme); }
.carte-actu-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.carte-actu:hover .carte-actu-visuel img { transform: scale(1.04); }
.carte-actu-aplat { position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 1rem 1.25rem; overflow: hidden; }
.carte-actu-aplat svg { position: absolute; right: -12%; top: -18%; width: 80%; opacity: 0.22; }
.carte-actu-aplat svg path { fill: currentColor; }
.carte-actu-aplat span { position: relative; font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: 1.75rem; line-height: 1; }
.aplat--magenta { background: var(--magenta); color: var(--blanc); }
.aplat--violet { background: var(--violet); color: var(--blanc); }
.aplat--prune { background: var(--prune); color: var(--jaune); }
.aplat--vert { background: var(--vert); color: var(--vert-encre); }
.aplat--sable { background: #978559; color: var(--blanc); }
.carte-actu-corps { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 1.35rem 1.35rem; flex: 1; }
.carte-actu-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; font-size: 0.875rem; color: #66404f; }
.carte-actu-titre { font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.12; text-wrap: balance; }
.carte-actu-titre a { text-decoration: none; }
.carte-actu-titre a::after { content: ''; position: absolute; inset: 0; }
.carte-actu-chapo { color: #4d2f3c; font-size: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-actu-pied { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.5rem; }
.carte-actu-lieu { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.875rem; font-weight: 600; color: #66404f; }
.carte-actu-lieu .icone { width: 1rem; height: 1rem; }
.carte-actu-lire { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--magenta-fonce); }
.carte-actu-lire .icone { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease-out); }
.carte-actu:hover .carte-actu-lire .icone { transform: translateX(4px); }
.carte-actu--vedette { grid-column: 1 / -1; flex-direction: row; }
.carte-actu--vedette .carte-actu-visuel { flex: 0 0 55%; aspect-ratio: auto; min-height: 22rem; }
.carte-actu--vedette .carte-actu-corps { padding: clamp(1.5rem, 3vw, 2.5rem); justify-content: center; }
.carte-actu--vedette .carte-actu-titre { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.carte-actu--vedette .carte-actu-chapo { -webkit-line-clamp: 5; font-size: 1.0625rem; }
.grille-actus--accueil .carte-actu { border-color: transparent; }

.section-tete-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-tete-ligne .section-titre { margin-bottom: 0; }

/* Outils de filtre (actualités, questions) */
.page-tete--claire { padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgba(71, 20, 45, 0.1); }
.page-tete--claire .page-titre { color: var(--prune); }
.section--actus { padding-top: clamp(2rem, 4vw, 3rem); }
.outils-actus { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.recherche { position: relative; max-width: 30rem; }
.recherche .icone { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #66404f; }
.recherche input {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem 0.75rem 2.9rem; border-radius: 999px;
  border: 2px solid rgba(71, 20, 45, 0.25); font: inherit; font-size: max(16px, 1rem); background: var(--blanc); color: var(--encre);
}
.recherche input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(199, 21, 110, 0.15); }
.filtres-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.filtres-ligne .filtres { margin: 0; }
.filtres-libelle { font-weight: 700; font-size: 0.9375rem; min-width: 4.5rem; }
.select-lieu {
  min-height: 2.75rem; padding: 0.5rem 2.75rem 0.5rem 1rem; border-radius: 999px; border: 2px solid var(--prune);
  font: inherit; font-weight: 600; font-size: max(16px, 1rem); color: var(--prune); background-color: var(--blanc); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2347142d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1.1rem;
}
.actus-vide { padding: 3rem 0; display: grid; gap: 1rem; justify-items: start; }

/* Page d'actualité */
.actu-titre { font-family: var(--f-titre); font-weight: 900; font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem); line-height: 0.98; letter-spacing: -0.01em; max-width: 20ch; margin-top: 1rem; color: var(--prune); text-wrap: balance; }
.actu-chapo { margin-top: 1.25rem; max-width: 52ch; }
.section--actu { padding-top: clamp(2rem, 4vw, 3.5rem); }
.actu-grille { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.actu-principal { max-width: 46rem; }
.actu-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }
.actu-figure + .prose { margin-top: 2rem; }
.actu-cote { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 0.85rem; }
.chiffre-carte { border: 1px solid rgba(71, 20, 45, 0.14); border-radius: 16px; padding: 1.1rem 1.2rem; background: var(--blanc); }
.chiffre-carte strong { display: block; font-family: var(--f-titre); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--rub-texte); }
.chiffre-carte span { display: block; margin-top: 0.4rem; font-size: 0.9375rem; color: #4d2f3c; line-height: 1.35; }
.partage { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(71, 20, 45, 0.14); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; font-size: 0.9375rem; }
.partage span { font-weight: 700; }
.partage a, .partage button { color: var(--magenta-fonce); font-weight: 700; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }

/* Liens croisés */
.liens-croises { margin-top: 2.5rem; }
.liens-croises-titre { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--fg); }
.liens-croises ul { list-style: none; padding: 0; border-top: 2px solid var(--fg); }
.liens-croises li { border-bottom: 1px solid var(--rule); }
.liens-croises a {
  display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline;
  padding: 0.85rem 0; text-decoration: none; color: var(--fg); transition: padding-left 0.3s var(--ease-out);
}
.liens-croises a:hover { padding-left: 0.4rem; }
.lien-nature { font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.lien-titre { font-weight: 600; line-height: 1.35; }
.liens-croises .icone { width: 1.05rem; height: 1.05rem; align-self: center; }
.dossier .liens-croises { margin-top: 2rem; }

/* Carte interactive : légende, permanence, actualités du lieu */
.carte-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; }
.legende-point { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--magenta); border: 3px solid var(--prune); }
.legende-point--permanence { background: var(--jaune); border-radius: 3px; margin-left: 0.75rem; }
.carte-lieu--permanence .point { background: var(--jaune); border-radius: 4px; }
.carte-lieu--permanence .nom { background: var(--prune); color: var(--jaune); }
.lieu-type { font-size: 0.875rem; font-weight: 700; color: var(--accent); margin-bottom: 0.35rem; }
.lieu img { border-radius: 14px; }
.lieu-contact { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-weight: 700; }
.lieu-contact a { display: inline-flex; align-items: center; gap: 0.4rem; }
.lieu-actus { list-style: none; padding: 0; margin-top: 1.25rem; border-top: 2px solid var(--fg); }
.lieu-actus li { border-bottom: 1px solid var(--rule); }
.lieu-actus a { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.75rem; padding: 0.7rem 0; text-decoration: none; }
.lieu-actus time { font-weight: 700; color: var(--accent); font-size: 0.9375rem; }
.lieu-actus span { font-weight: 600; line-height: 1.3; }
/* Déplacements sans article : point plus petit et blanc cerclé, nom seulement au survol ou une fois choisi */
.legende-point--deplacement { width: 0.7rem; height: 0.7rem; background: var(--blanc); margin-left: 0.75rem; }
.carte-lieu--deplacement { z-index: 0; }
.carte-lieu--deplacement .point { width: 0.7rem; height: 0.7rem; border-width: 2px; background: var(--blanc); margin: 0.15rem; }
.carte-lieu[aria-pressed='true'] { z-index: 3; }
.carte-lieu--deplacement:hover .point, .carte-lieu--deplacement[aria-pressed='true'] .point { background: var(--violet); }
.lieu-sous-titre { font-size: 0.9375rem; font-weight: 700; margin-top: 1.5rem; }
.lieu-deplacements { margin-top: 0.5rem; }
.lieu-deplacements li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.75rem; padding: 0.7rem 0; }
.lieu-deplacements small { display: block; font-weight: 400; font-size: 0.875rem; margin-top: 0.2rem; }
.champ--jaune .lieu-panneau, .champ--vert .lieu-panneau { background: rgba(255, 255, 255, 0.55); border-radius: 18px; padding: 1.5rem; }
.permanence-adresse { font-style: normal; font-weight: 600; }

/* Questions */
.questions-resume { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-bottom: 2rem; }
.questions-resume p { display: flex; align-items: baseline; gap: 0.6rem; font-weight: 600; }
.questions-resume strong { font-family: var(--f-titre); font-weight: 900; font-size: 2.75rem; line-height: 1; color: var(--rub-texte); }
.questions { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.question[hidden] { display: none; }
.question-bouton {
  position: relative; width: 100%; height: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--encre);
  display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 3.5rem 1.25rem 1.35rem;
  background: var(--blanc); border: 1px solid rgba(71, 20, 45, 0.14); border-radius: 16px;
  transition: border-color 0.25s, transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.question-bouton:hover { border-color: var(--rub-trait); transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(58, 10, 143, 0.5); }
.question-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; font-size: 0.875rem; color: #66404f; font-weight: 600; }
.question-genre { padding: 0.2rem 0.55rem; border-radius: 999px; font-weight: 700; background: var(--rub-pale); color: var(--rub-texte); }
.question-genre--actualite { background: var(--rub-btn); color: var(--rub-btn-fg); }
.question-genre--intervention { background: var(--jaune); color: var(--prune); }
.question-titre { font-family: var(--f-titre); font-weight: 800; font-size: 1.375rem; line-height: 1.12; }
.question-pied { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: auto; }
.question-statut { font-size: 0.8125rem; font-weight: 600; color: #66404f; margin-left: auto; }
.question-icone { position: absolute; right: 1.1rem; top: 1.15rem; width: 1.6rem; height: 1.6rem; padding: 0.3rem; border-radius: 50%; background: var(--rub-pale); color: var(--rub-texte); transition: transform 0.3s var(--ease-out), background-color 0.2s; }
.question-bouton:hover .question-icone { transform: rotate(90deg); background: var(--rub-btn); color: var(--rub-btn-fg); }

/* Encart (dialogue) */
.encart {
  width: min(62rem, calc(100vw - 2rem)); max-height: min(88vh, 60rem); padding: 0; border: 0; border-radius: 22px;
  background: var(--blanc); color: var(--encre); box-shadow: 0 40px 80px -30px rgba(42, 11, 26, 0.6);
  overscroll-behavior: contain;
}
.encart::backdrop { background: rgba(42, 11, 26, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.encart[open] { animation: encart-entree 0.45s var(--ease-out); }
.encart[open]::backdrop { animation: fondu 0.3s ease; }
@keyframes encart-entree { from { opacity: 0; transform: translateY(1.5rem) scale(0.98); } }
@keyframes fondu { from { opacity: 0; } }
.encart-tete {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem 1rem clamp(1.25rem, 3vw, 2.25rem); background: var(--rub); color: var(--rub-sur);
}
.encart-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; font-size: 0.9375rem; font-weight: 600; }
.encart-fermer { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: var(--blanc); cursor: pointer; display: grid; place-items: center; }
.encart-fermer:hover { background: rgba(255, 255, 255, 0.28); }
.encart-fermer .icone { width: 1.25rem; height: 1.25rem; }
.encart-corps { padding: clamp(1.5rem, 3vw, 2.25rem); --fg: var(--encre); --rule: rgba(71, 20, 45, 0.14); --accent: var(--rub-texte); }
.encart-titre { font-family: var(--f-titre); font-weight: 900; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1.02; color: var(--prune); max-width: 26ch; }
.encart-ministre { margin-top: 0.75rem; font-weight: 600; color: #66404f; }
.encart-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 1.75rem; }
.encart-colonnes > section:only-child { grid-column: 1 / -1; max-width: 66ch; }
.encart-colonnes h3 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: 1.125rem; padding-bottom: 0.5rem; border-bottom: 3px solid var(--rub-trait); margin-bottom: 1rem; }
.encart-colonnes section + section h3 { border-color: var(--vert); }
.encart .prose { font-size: 1rem; }
.encart .actions { margin-top: 1.75rem; }
body.encart-ouvert { overflow: hidden; }

/* Propositions de loi */
.grille-textes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.carte-texte {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem;
  background: var(--blanc); color: var(--encre); border: 1px solid rgba(71, 20, 45, 0.14); border-top: 6px solid var(--rub-trait); border-radius: 16px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.carte-texte:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(58, 10, 143, 0.5); }
.carte-texte-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center; font-size: 0.9375rem; font-weight: 600; }
.carte-texte :is(h2, h3) { font-family: var(--f-titre); font-weight: 800; font-size: 1.625rem; line-height: 1.08; }
.carte-texte :is(h2, h3) a { text-decoration: none; }
.carte-texte :is(h2, h3) a::after { content: ''; position: absolute; inset: 0; }
.carte-texte p { color: #4d2f3c; }
.carte-texte-pied { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 700; color: var(--rub-texte) !important; padding-top: 0.5rem; border-top: 1px solid rgba(71, 20, 45, 0.1); }
.texte-titre { font-family: var(--f-titre); font-weight: 900; font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); line-height: 0.98; margin-top: 1rem; text-wrap: balance; }
.page-tete .carte-texte-meta { color: var(--muted); }
.fiche-texte { display: grid; gap: 0; background: rgba(255, 255, 255, 0.45); border-radius: 18px; padding: 0.5rem 1.5rem; align-self: start; }
.champ--olive .fiche-texte { background: rgba(36, 30, 21, 0.3); }
.fiche-texte div { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.fiche-texte div:last-child { border-bottom: 0; }
.fiche-texte dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.fiche-texte dd { margin: 0.25rem 0 0; font-weight: 600; line-height: 1.4; }
.articles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: art; }
.articles li { background: var(--blanc); border: 1px solid rgba(71, 20, 45, 0.14); border-radius: 16px; padding: 1.35rem 1.5rem; }
.articles h3 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: 1.125rem; color: var(--rub-texte); margin-bottom: 0.5rem; }
.articles + .compteurs-note { margin-top: 1rem; }

/* Missions */
.grille-missions { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1rem, 2vw, 1.75rem); }
.carte-mission { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; text-decoration: none; }
.carte-mission--mh { background: #2a241b; color: var(--blanc); }
.carte-mission--mh img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.carte-mission--mh:hover img { transform: scale(1.04); }
.carte-mission--climat { background: var(--vert); color: var(--vert-encre); }
.carte-mission-corps { display: flex; flex-direction: column; gap: 0.75rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.carte-mission-corps .etiquette { align-self: flex-start; }
.carte-mission-titre { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1; }
.carte-mission--mh .carte-mission-titre { color: #e8c88c; }
.carte-mission .lien-suite { align-self: flex-start; margin-top: 0.5rem; }

/* Espace presse */
.presse-contact { margin-top: 2rem; display: grid; gap: 0.5rem; }
.presse-contact h3 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: 1.125rem; }
.presse-contact a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.bio { position: relative; border-top: 2px solid var(--encre); padding: 1.25rem 0 2rem; }
.bio h3 { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; margin-bottom: 0.75rem; }
.bio p { max-width: 66ch; }
.bouton-copier { margin-top: 1rem; font: inherit; font-weight: 700; font-size: 0.9375rem; padding: 0.5rem 1rem; border-radius: 999px; border: 2px solid var(--prune); background: transparent; color: var(--prune); cursor: pointer; min-height: 2.75rem; }
.bouton-copier.est-copie { background: var(--vert); border-color: var(--vert); color: var(--vert-encre); }
.photos-presse { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.photos-presse img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.photos-presse figcaption { display: grid; gap: 0.35rem; margin-top: 0.75rem; font-weight: 600; }
.photos-presse a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--magenta-fonce); font-weight: 700; }

@media (max-width: 64rem) {
  .travaux-grille, .actu-grille, .grille-missions { grid-template-columns: 1fr; }
  .travaux-compteurs { position: static; }
  .compteurs--vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compteurs--vertical .compteur:nth-child(odd) { padding-right: 1rem; }
  .grille-actus, .grille-textes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte-actu--vedette { flex-direction: column; }
  .carte-actu--vedette .carte-actu-visuel { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .actu-cote { position: static; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
  .photos-presse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .questions { grid-template-columns: 1fr; }
  .travaux-liste a { grid-template-columns: 6rem minmax(0, 1fr) auto; }
  .travail-nature { grid-column: 2; grid-row: 1; }
  .travail-titre { grid-column: 2; grid-row: 2; }
  .travaux-liste a .icone { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 44rem) {
  .responsabilites { grid-template-columns: 1fr; }
  .responsabilite:nth-child(odd) { border-right: 0; }
  .responsabilite:nth-child(even) a { padding-left: 0; }
  .grille-actus, .grille-textes, .articles, .encart-colonnes { grid-template-columns: 1fr; }
  .liens-croises a { grid-template-columns: minmax(0, 1fr) auto; }
  .lien-nature { grid-column: 1; }
  .lien-titre { grid-column: 1; }
  .liens-croises a .icone { grid-column: 2; grid-row: 1 / 3; }
  .travaux-liste a { grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; }
  .travaux-liste time { grid-column: 1; grid-row: 1; }
  .travail-nature { grid-column: 1; grid-row: 2; }
  .travail-titre { grid-column: 1; grid-row: 3; }
  .travaux-liste a .icone { grid-column: 2; grid-row: 1 / 4; }
  .encart { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .filtres-libelle { min-width: 0; width: 100%; }
}
.menu { overflow-y: auto; }
.actus-vide[hidden] { display: none; }

/* =====================================================================
   Itération 3 : menu, ouverture, fonctions compactes, newsletter, barre Sénat
   ===================================================================== */

/* Menu ordinateur : capitales condensées */
.nav a, .nav-lien-senat { font-family: var(--f-titre); font-weight: 700; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.04em; }
.nav .btn { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.0625rem; padding-inline: 1.4em; }
.nav-deroulant { display: flex; align-items: center; gap: 0.1rem; }
.nav-lien-senat { position: relative; text-decoration: none; padding: 0.5rem 0; }
.nav-lien-senat::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
}
.nav-lien-senat:hover::after, .nav-lien-senat[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav-bouton { padding: 0.5rem 0.2rem; min-width: 1.75rem; justify-content: center; }
.nav-bouton::after { display: none; }

/* En haut de page, la barre transparente ne montre que le menu : la marque apparaît au défilement */
.entete .marque { transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s; transform-origin: left center; }
.entete:not(.est-defile) .marque { opacity: 0; visibility: hidden; transform: translateY(-0.5rem); transition: opacity 0.2s, transform 0.3s, visibility 0s linear 0.3s; }
/* Hors accueil, le nom reste dans le coin de la barre, en logo, pour revenir à l'accueil ; sur l'accueil il est masqué */
body:not(.page-accueil) .entete:not(.est-defile) .marque { opacity: 1; visibility: visible; transform: none; }
body.page-accueil .entete .marque { opacity: 0; visibility: hidden; pointer-events: none; }
.entete .marque-nom { font-size: 1.6rem; line-height: 0.88; }
.entete .marque-role { display: none; }
.entete .marque-nom::first-line { letter-spacing: 0.01em; }

/* Ouverture : la photo est un cadre net, sans dégradé */
.ouverture-photo { margin: calc(var(--header-h) + 1.25rem) 0 0; min-height: 0; }
.ouverture-photo img { border-radius: 24px 0 0 0; }
.ouverture-carte { left: -16%; }
.ouverture-engagements { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 36rem; }
.ouverture-engagements a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55); font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.ouverture-engagements a:hover { background: var(--jaune); border-color: var(--jaune); color: var(--prune); transform: translateY(-2px); }
.js-motion .ouverture-engagements { opacity: 0; transform: translateY(0.75rem); }
.js-motion .est-pret .ouverture-engagements { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out) 0.55s, transform 0.8s var(--ease-out) 0.55s; }
@media (prefers-reduced-motion: reduce) { .js-motion .ouverture-engagements { opacity: 1; transform: none; } }
@media (max-width: 64rem) {
  .ouverture-photo { margin: 0 var(--gutter); }
  .ouverture-photo img { border-radius: 20px 20px 0 0; }
  .ouverture-carte { left: 1rem; }
}

/* Fonctions : une liste compacte */
.fonctions { list-style: none; padding: 0; border-top: 2px solid var(--fg); max-width: 58rem; }
.fonctions li { border-bottom: 1px solid var(--rule); }
.fonctions a {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto auto; gap: 1rem; align-items: baseline;
  padding: 0.85rem 0; text-decoration: none; transition: padding-left 0.3s var(--ease-out);
}
.fonctions a:hover { padding-left: 0.4rem; }
.fonction-role { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; color: var(--accent); letter-spacing: 0.02em; }
.fonction-instance { font-weight: 600; line-height: 1.35; }
.fonction-etat { white-space: nowrap; }
.fonctions .icone { width: 1rem; height: 1rem; align-self: center; }
@media (max-width: 44rem) {
  .fonctions a { grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; }
  .fonction-role { grid-column: 1; }
  .fonction-instance { grid-column: 1; }
  .fonction-etat { grid-column: 1; }
  .fonctions .icone { grid-column: 2; grid-row: 1 / 4; }
}

/* Barre de rubrique Au Sénat, sous l'en-tête */
main { position: relative; }
.barre-senat {
  position: sticky; z-index: 40; top: 0; padding-top: var(--header-h); background: var(--rub); color: var(--rub-sur);
  transition: top 0.4s var(--ease-out);
}
body.entete-cachee .barre-senat { top: calc(var(--header-h) * -1); }
.page-mh .barre-senat { background: #6e6146; color: #ffffff; }
.barre-senat ul { list-style: none; margin: 0; padding: 0.4rem 0 0.5rem; display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.barre-senat ul::-webkit-scrollbar { display: none; }
.barre-senat a {
  display: inline-flex; align-items: center; white-space: nowrap; min-height: 2.5rem; padding: 0.35rem 0.9rem; border-radius: 999px;
  font-family: var(--f-titre); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9375rem;
  color: inherit; text-decoration: none; transition: background-color 0.2s, color 0.2s;
}
.barre-senat a:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.barre-senat a[aria-current='page'] { background: var(--rub-btn); color: var(--rub-btn-fg); }
.barre-senat + .page-tete, .barre-senat + section.page-tete { padding-top: clamp(2rem, 4vw, 3.5rem); }

/* Menu mobile : jaune au survol ou au toucher */
.menu a { transition: color 0.2s; }
.menu li a:hover, .menu li a:active, .menu li a:focus-visible,
.menu .menu-sous a:hover, .menu .menu-sous a:active, .menu .menu-sous a:focus-visible { color: var(--jaune); }

/* Sommaire des engagements : même langage que le menu mobile */
.sommaire { background: var(--rub); color: var(--rub-sur); border-radius: 20px; padding: 1.5rem 1.4rem 1.75rem; }
.sommaire p { font-family: var(--f-affiche); text-transform: uppercase; font-weight: 400; font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--rub-sur-doux); }
.sommaire ol { border-left: 0; display: grid; gap: 0.15rem; }
.sommaire a {
  display: block; margin: 0; padding: 0.3rem 0; border: 0; color: var(--rub-sur);
  font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: 1.1875rem; line-height: 1.1; letter-spacing: 0.01em;
  transition: color 0.2s, transform 0.3s var(--ease-out);
}
.sommaire a:hover, .sommaire a:focus-visible { color: var(--jaune); transform: translateX(4px); }
.sommaire a[aria-current='true'] { color: var(--jaune); border: 0; }
.sommaire a:focus-visible { outline-color: var(--jaune); }
@media (prefers-reduced-motion: no-preference) {
  .js-motion .sommaire li { animation: menu-entree 0.6s var(--ease-out) both; }
  .js-motion .sommaire li:nth-child(2) { animation-delay: 0.04s; } .js-motion .sommaire li:nth-child(3) { animation-delay: 0.08s; }
  .js-motion .sommaire li:nth-child(4) { animation-delay: 0.12s; } .js-motion .sommaire li:nth-child(5) { animation-delay: 0.16s; }
  .js-motion .sommaire li:nth-child(6) { animation-delay: 0.2s; } .js-motion .sommaire li:nth-child(7) { animation-delay: 0.24s; }
  .js-motion .sommaire li:nth-child(8) { animation-delay: 0.28s; } .js-motion .sommaire li:nth-child(9) { animation-delay: 0.32s; }
}

/* Newsletter, toujours juste avant le pied de page */
.newsletter { background: var(--jaune); color: var(--prune); padding-block: clamp(3rem, 2.25rem + 3vw, 4.5rem); --focus: var(--magenta); }
.newsletter-grille { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.newsletter-titre { font-size: var(--fs-h2); }
.newsletter-texte { margin-top: 0.75rem; max-width: 40ch; }
.newsletter-form label[for='newsletter-email'] { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.newsletter-ligne { display: flex; gap: 0.5rem; }
.newsletter-ligne input {
  flex: 1; min-width: 0; min-height: 3.25rem; padding: 0.75rem 1rem; border-radius: var(--radius); border: 2px solid var(--prune);
  font: inherit; font-size: max(16px, 1.0625rem); background: var(--blanc); color: var(--encre);
}
.newsletter-ligne input:focus { outline: none; box-shadow: 0 0 0 4px rgba(199, 21, 110, 0.25); border-color: var(--magenta); }
.newsletter .btn { --_bg: var(--prune); --_fg: var(--blanc); }
.newsletter-note { margin-top: 0.75rem; font-size: 0.9375rem; color: #5a3a2a; }
.newsletter-note.est-ok { color: var(--prune); font-weight: 700; }
.newsletter-note.est-erreur { color: #b3123f; font-weight: 700; }
@media (max-width: 44rem) { .newsletter-grille { grid-template-columns: 1fr; } .newsletter-ligne { flex-direction: column; } }

/* Pied de page : liens resserrés, réseaux en pastilles d'icônes */
.pied-nav ul { gap: 0; }
.pied-nav a { min-height: 0; padding: 0.22rem 0; line-height: 1.3; }
.pied-h { margin-bottom: 0.6rem; }
.pied-senat { margin-bottom: 1rem; }
.pied-senat a { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--jaune); text-underline-offset: 3px; }
.pied-senat .icone { width: 1.1rem; height: 1.1rem; }
.reseau { width: 44px; height: 44px; padding: 0; justify-content: center; }
.reseau .icone { width: 20px; height: 20px; }
@media (max-width: 37.5rem) { .pied-nav a { padding-block: 0.4rem; } }

/* Carte : plus de permanence */
.carte-legende { display: none; }

/* Page de la mission : sable, olive et brun des visuels, dans le langage du site */
.champ--sable {
  --bg: #978559; --fg: #241e15; --muted: #241e15; --accent: #2a241b; --rule: rgba(36, 30, 21, 0.25);
  --focus: var(--prune); --fil: #2a241b; --btn-bg: #2a241b; --btn-fg: #f5efe3;
}
.champ--olive {
  --bg: #6e6146; --fg: #ffffff; --muted: #ebe1cc; --accent: #e8c88c; --rule: rgba(255, 255, 255, 0.25);
  --focus: #e8c88c; --fil: #e8c88c; --btn-bg: #e8c88c; --btn-fg: #2a241b;
}
.champ--brun {
  --bg: #2a241b; --fg: #ffffff; --muted: #d9cfbb; --accent: #e8c88c; --rule: rgba(232, 200, 140, 0.25);
  --focus: #e8c88c; --fil: #e8c88c; --btn-bg: #e8c88c; --btn-fg: #2a241b;
}
.champ--creme { --bg: #f5efe3; }
.page-sous-titre { margin-top: 1rem; font-family: var(--f-titre); font-weight: 700; text-transform: uppercase; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.05; color: var(--accent); }
.titre.h3 + .prose, .section-titre + .titre.h3 { margin-top: 0; }
.section-titre + .titre.h3 { margin-top: -1.25rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); color: var(--accent); }
.chiffre-signe { display: block; height: 1em; }
.mh-aligne { align-items: center; }
.mh-tete-cote { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.mh-portrait img { width: 100%; aspect-ratio: 9 / 16 !important; object-fit: cover; border-radius: 16px; }
.mh-compteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-compteurs .compteur:nth-child(3) { border-left: 0; padding-left: 0; }
.mh-compteurs .compteur:nth-child(n + 3) { border-top: 1px solid var(--rule); }
.mh-compteurs .compteur-valeur, .mh-atouts .compteur-valeur { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); color: #6e6146; }
.mh-photo-fond { overflow: clip; }
.mh-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.mh-photo-fond .wrap { position: relative; }
.mh-alertes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.mh-alertes li { border-top: 2px solid var(--accent); padding-top: 1rem; }
.mh-alertes h4 { margin: 0.4rem 0 0.6rem; }
.mh-alertes p { color: var(--muted); }
.mh-num { font-family: var(--f-titre); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--accent); }
.mh-urgence { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch; }
.mh-grand { position: relative; border-radius: 20px; overflow: hidden; background: #2a241b; color: #fff; display: flex; align-items: flex-end; min-height: 20rem; }
.mh-grand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.mh-grand figcaption { position: relative; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 0.75rem; }
.mh-grand .compteur-valeur { font-size: clamp(4.5rem, 3rem + 6vw, 8rem); color: #e8c88c; }
.mh-grand figcaption > span:last-child { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.1; max-width: 26ch; }
.mh-urgence .compteurs--vertical { border-top: 2px solid var(--fg); }
.mh-urgence .compteur-valeur { color: #2a241b; }
.mh-bonne-nouvelle { margin-top: 2rem; max-width: 62ch; font-size: var(--fs-lead); line-height: 1.45; }
.mh-points { list-style: none; padding: 0; border-top: 2px solid var(--fg); }
.mh-points li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.mh-points h3 { color: var(--accent); margin-bottom: 0.4rem; }
.mh-atouts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2rem; }
.mh-usages { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mh-usages li { padding: 0.6rem 1.1rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.5); font-weight: 700; }
.mh-usages li:last-child { background: #e8c88c; border-color: #e8c88c; color: #2a241b; }
/* Onglets des axes */
.onglets-liste { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.onglets-liste button {
  flex: 1 0 10rem; text-align: left; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2;
  padding: 0.85rem 1rem; border-radius: 14px; border: 2px solid rgba(36, 30, 21, 0.35); background: transparent; color: var(--fg);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.onglets-liste button span { display: block; font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: 1.25rem; line-height: 1; margin-bottom: 0.3rem; }
.onglets-liste button:hover { border-color: var(--fg); }
.onglets-liste button[aria-selected='true'] { background: #2a241b; border-color: #2a241b; color: #f5efe3; }
.onglets-liste button[aria-selected='true'] span { color: #e8c88c; }
.axe { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); background: #f5efe3; color: var(--encre); border-radius: 20px; overflow: hidden; }
.axe[hidden] { display: none; }
.axe:not([hidden]) { animation: panneau 0.5s var(--ease-out); }
.axe > img { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; }
.axe > div { padding: clamp(1.5rem, 3vw, 2.5rem); }
.axe h4 { color: #2a241b; }
.axe-intro { margin-top: 0.75rem; color: #4a3f2c; }
.axe-liste { margin-top: 1.25rem; padding: 0; list-style: none; counter-reset: prop; border-top: 2px solid #2a241b; }
.axe-liste li { counter-increment: prop; position: relative; padding: 0.85rem 0 0.85rem 2.5rem; border-bottom: 1px solid rgba(42, 36, 27, 0.18); line-height: 1.45; }
.axe-liste li::before { content: counter(prop, decimal-leading-zero); position: absolute; left: 0; top: 0.85rem; font-family: var(--f-titre); font-weight: 900; color: #978559; }
/* Galerie défilante */
.mh-galerie-boutons { display: flex; gap: 0.5rem; }
.rond { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s, color 0.2s; }
.rond:hover { background: var(--fg); color: var(--bg); }
.rond svg { width: 1.25rem; height: 1.25rem; }
.rond[data-galerie='precedent'] svg { transform: rotate(180deg); }
.mh-galerie {
  list-style: none; margin: 0; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 1rem;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); scrollbar-width: thin;
}
.mh-galerie li { flex: 0 0 clamp(13rem, 20vw, 17rem); scroll-snap-align: start; }
.mh-galerie img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
@media (max-width: 64rem) {
  .mh-urgence, .axe { grid-template-columns: 1fr; }
  .axe > img { max-height: 14rem; min-height: 0; }
  .mh-alertes, .mh-atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-alertes { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
  .mh-tete-cote { grid-template-columns: 1fr; }
  .mh-portrait { max-width: 9rem; }
  .mh-compteurs, .mh-atouts { grid-template-columns: 1fr 1fr; }
}
.mh-urgence .mh-grand .compteur-valeur { color: #e8c88c; }
.page-mh .champ--creme { --accent: #6e6146; --focus: #6e6146; --fil: #6e6146; }
.page-mh .champ--creme .lien-nature { color: #6e6146; }

/* Pied de page compact (hauteur alignée sur le site PS71) */
.pied { padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.pied-haut { gap: 2rem 3rem; }
.pied-logo { font-size: 1.75rem; margin-bottom: 0.9rem; }
.pied address { line-height: 1.65; font-size: 0.9375rem; }
.pied address a { text-decoration-color: rgba(255, 255, 255, 0.35); }
.pied .reseaux { margin-top: 1rem; }
.pied-nav a .icone { width: 0.85em; height: 0.85em; margin-left: 0.3em; opacity: 0.6; }
.pied-bas { margin-top: clamp(1.75rem, 1.5rem + 1vw, 2.5rem); padding-block: 1.1rem calc(1.1rem + env(safe-area-inset-bottom)); }
@media (max-width: 37.5rem) { .pied-nav a { padding-block: 0.3rem; } }

/* Le fil se pose sur « La lettre » (accueil) */
.newsletter--fil .wrap { padding-left: calc(var(--gutter) + var(--rail)); }
.newsletter-tete { position: relative; }
.newsletter--fil .station { left: calc(var(--rail) / -2); top: calc(var(--fs-h2) * 0.38); }

/* Bulles de chiffres (même dessin que les chiffres clés des actualités) */
.compteurs--vertical { border: 0; gap: 0.75rem; }
.compteurs--vertical .compteur {
  background: var(--blanc); color: var(--encre); border: 1px solid rgba(71, 20, 45, 0.12); border-radius: 16px;
  padding: 1rem 1.15rem !important; border-bottom: 1px solid rgba(71, 20, 45, 0.12);
}
.compteurs--vertical .compteur-valeur { color: var(--rub-texte); font-size: clamp(2.25rem, 1.9rem + 1.2vw, 3rem); }
.champ--violet .compteurs--vertical .compteur-valeur { color: var(--violet); }
.champ--jaune .compteurs--vertical .compteur-valeur { color: var(--magenta); }
.compteurs--vertical .compteur-libelle { color: #4d2f3c; }
.mh-urgence .compteurs--vertical { border-top: 0; }
.mh-urgence .compteurs--vertical .compteur-valeur { color: #6e6146; }
.resultat div { background: var(--blanc); border: 1px solid rgba(71, 20, 45, 0.14); border-radius: 16px; padding: 1.1rem 1.3rem; min-width: 12rem; }
.resultat strong { color: var(--magenta); }

/* Fonctions : quatre bulles sur une ligne */
.fonctions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; border: 0; max-width: none; }
.fonctions li { border: 0; }
.fonctions a {
  position: relative; display: flex; flex-direction: column; gap: 0.4rem; height: 100%;
  padding: 1.15rem 1.25rem 1.25rem; background: var(--blanc); color: var(--encre);
  border: 1px solid rgba(71, 20, 45, 0.12); border-radius: 16px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.fonctions a:hover { padding-left: 1.25rem; transform: translateY(-3px); box-shadow: 0 16px 32px -22px rgba(42, 11, 26, 0.45); }
.fonction-role { color: var(--rub-texte); font-size: 1.0625rem; }
.fonction-instance { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.fonction-etat { margin-top: auto; padding-top: 0.4rem; }
.fonctions .icone { position: absolute; top: 1.15rem; right: 1.1rem; }
@media (max-width: 64rem) { .fonctions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 44rem) {
  .fonctions { grid-template-columns: 1fr; }
  .fonctions a { display: flex; }
  .grille-actus--accueil .carte-actu:nth-child(n + 2) { display: none; }
  [data-travaux] li:nth-child(n + 4) { display: none; }
}

/* Principes : une bulle par principe */
.principes li { background: var(--blanc); color: var(--encre); border: 0; border-radius: 18px; padding: 1.4rem 1.5rem 1.6rem; }
.principes h3 { color: var(--vert-fonce); font-size: var(--fs-h4); }
.principes p { color: #4d2f3c; }

/* Détails d'interface repris des sites PS71 et Chalon en commun */
.filtre-compte {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; margin-left: 0.45em; padding: 0 0.35em;
  border-radius: 999px; font-size: 0.8125rem; font-weight: 800; background: rgba(71, 20, 45, 0.1);
}
.filtres button[aria-pressed='true'] .filtre-compte { background: rgba(255, 231, 134, 0.25); }
/* 2. le logo se resserre au défilement ; plus petit en pied de page sur téléphone */
.entete.est-defile .marque { transform: scale(0.88); }
.entete .wrap { transition: height 0.3s var(--ease-out); }
@media (max-width: 47.5rem) { .pied-logo { font-size: 1.4rem; } }
/* 3. retour visuel au toucher, sans flash gris */
a, button, label { -webkit-tap-highlight-color: transparent; }
.filtres button:active, .lieux-liste button:active, .choix-profil label:active, .reseau:active,
.onglets-liste button:active, .question-bouton:active, .carte-lieu:active { transform: scale(0.96); transition-duration: 0.12s; }
.carte-actu:active, .carte-texte:active, .fonctions a:active { transform: scale(0.985); transition-duration: 0.12s; }
.lien-suite:active, .nav a:active, .pied a:active { opacity: 0.7; }
.actu-auteur { margin-top: 2rem; font-weight: 600; color: #66404f; }
.actu-auteur a { color: var(--rub-texte); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.actu-auteur a:hover { text-decoration-thickness: 2px; }
.plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.plan h2 { margin-bottom: 0.75rem; }
.plan-liste { list-style: none; padding: 0; border-top: 2px solid var(--fg); }
.plan-liste li { border-bottom: 1px solid var(--rule); }
.plan-liste a { display: block; padding: 0.5rem 0; text-decoration: none; font-weight: 600; }
.plan-liste a:hover { color: var(--magenta); }
.lieu--intro .titre { margin-top: 0.25rem; }
@media (max-width: 64rem) { .plan { grid-template-columns: 1fr 1fr; } }
@media (max-width: 44rem) { .plan { grid-template-columns: 1fr; } }

/* Fleuves et rivières de la carte */
.carte svg path.fleuve { fill: none; stroke: #4f86c6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.fleuve-nom {
  position: absolute; pointer-events: none; z-index: 1; font-family: var(--f-titre); font-style: italic; font-weight: 600;
  font-size: 0.875rem; letter-spacing: 0.02em; color: #2c5c98; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}
.fleuve-nom--droite { transform: translate(0.6rem, -50%); }
.fleuve-nom--gauche { transform: translate(calc(-100% - 0.6rem), -50%); }
.fleuve-nom--haut { transform: translate(-50%, -150%); }
.legende-fleuve { display: inline-block; width: 1.4rem; height: 0.3rem; border-radius: 2px; background: #4f86c6; margin-left: 0.75rem; vertical-align: middle; }
@media (max-width: 30rem) { .fleuve-nom { font-size: 0.75rem; } }

/* Fonctions : « En cours » en vert, « Mission terminée » en rouge */
.fonction-etat {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.65rem 0.2rem 0.55rem; border-radius: 999px; align-self: flex-start; justify-self: start;
  font-size: 0.8125rem; font-weight: 800; color: var(--blanc);
}
.fonction-etat::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; flex: none; }
.fonction-etat--cours { background: #1f7a63; }
.fonction-etat--terminee { background: #b3261e; }


/* ---------- Téléphone : carrousels et ordre des blocs ---------- */
@media (max-width: 44rem) {
  /* Presse : les photos défilent à l'horizontale */
  .photos-presse, .liens-croises--defile ul {
    display: flex; gap: 0.85rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.75rem; scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .photos-presse::-webkit-scrollbar, .liens-croises--defile ul::-webkit-scrollbar { display: none; }
  .photos-presse > li { flex: 0 0 72%; scroll-snap-align: start; }
  .photos-presse img { aspect-ratio: 4 / 5; }
  /* Engagements : « Ses actes sur ce dossier » défile à la main */
  .liens-croises--defile { min-width: 0; max-width: 100%; }
  .liens-croises--defile ul { border-top: 0; margin-inline: 0; padding-inline: 0; }
  .liens-croises--defile li { flex: 0 0 78%; scroll-snap-align: start; border: 1px solid var(--rule); border-radius: 14px; background: var(--blanc); }
  .liens-croises--defile a { height: 100%; padding: 0.9rem 1rem; align-content: start; }
  .liens-croises--defile a:hover { padding-left: 1rem; }
  .liens-croises--defile .lien-titre { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  /* Actualité : les chiffres clés viennent avant le texte */
  .actu-cote { order: -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actu-grille { gap: 1.5rem; }
  /* Accueil : les compteurs passent avant la liste des derniers travaux */
  .travaux-compteurs { order: -1; }
  .travaux-compteurs .compteurs-note { display: none; }
}

/* Lien d'édition, visible seulement une fois connecté à l'éditeur */
.modifier-page {
  position: fixed; z-index: 45; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  padding: 0.65rem 1.1rem; border-radius: 999px; background: var(--prune); color: var(--jaune);
  font-weight: 700; font-size: 0.9375rem; text-decoration: none; box-shadow: 0 8px 24px -8px rgba(42, 11, 26, 0.5);
}
.modifier-page:hover { background: var(--magenta); color: var(--blanc); }
@media print { .modifier-page { display: none; } }
.dossiers-fil, .dossier { min-width: 0; }
