/* ============================================================
   L'Info de la Boucle — V5 « Clair & Local »
   Couche de proposition posée PAR-DESSUS style.css (v4 + bridge).
   Objectifs :
     1. Alléger  — moins de noir, plus de papier
     2. Densifier — sections et blocs moins hauts, moins de vide
     3. Ancrer   — palette bord de Seine plutôt que palette SaaS
     4. Calmer   — une seule ombre, hovers discrets, rayons sobres
   Aucun fichier existant n'est modifié : suffit de retirer le <link>
   pour revenir à la v4.
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. TOKENS — palette « bord de Seine »
   ───────────────────────────────────────────────────────────── */
:root {
  /* Papier plus chaud et plus clair, encre adoucie (plus de noir pur) */
  --paper:    #FCFAF6;
  --paper-2:  #F2EDE3;
  --surface:  #FFFFFF;
  --ink:      #1C1E1B;
  --ink-soft: #4B4F49;
  --ink-mute: #696D66;   /* AA sur papier ET sur papier crème (4.5:1 mini) */
  --rule:     #E7E1D5;

  /* Accent : bleu-vert de Seine, moins « bleu roi tech » */
  --seine:        #1F5F72;
  --seine-deep:   #164856;
  --seine-wash:   #EAF2F4;
  --accent:       var(--seine);
  --accent-hover: var(--seine-deep);

  /* Couleurs catégories conservées pour les pastilles pleines sur photo.
     En plus : un fond clair + un texte assombri pour les puces sur fond
     blanc. Chaque paire wash/ink est vérifiée ≥ 4,5:1 (AA petit texte). */
  --c-eco-wash:      #E7F4EF;  --c-eco-ink:      #02694A;
  --c-mobil-wash:    #E9EEFA;  --c-mobil-ink:    #1E40AF;
  --c-sport-wash:    #FBEDE4;  --c-sport-ink:    #A93E08;
  --c-solid-wash:    #FBE9F1;  --c-solid-ink:    #A81A5B;
  --c-cult-wash:     #F1EAFC;  --c-cult-ink:     #6B2CD9;
  --c-env-wash:      #EEF4E2;  --c-env-ink:      #3F6708;
  --c-edu-wash:      #F8EFE0;  --c-edu-ink:      #8F4E03;
  --c-portrait-wash: #EAEAFA;  --c-portrait-ink: #4338CA;

  /* Rythme resserré : -33 % sur les grands paliers */
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 88px;

  /* Rayons plus sobres */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Ombres : une seule, douce et chaude */
  --shadow-1: 0 1px 2px rgba(28, 30, 27, 0.05);
  --shadow-2: 0 2px 6px rgba(28, 30, 27, 0.06), 0 10px 24px rgba(28, 30, 27, 0.06);
  --shadow-3: 0 8px 28px rgba(28, 30, 27, 0.12);
}

/* Le sous-titre du logo tient sur une ligne quelle que soit la largeur */
.logo-text span { white-space: nowrap; }

/* ─────────────────────────────────────────────────────────────
   1 bis. TYPOGRAPHIE
   Le duo v4 était Fraunces (une display à fort caractère, mais réglée
   au minimum de ses axes, donc payée sans être utilisée) + Inter, une
   grotesque d'interface dessinée pour être invisible. D'où l'impression
   de typo qui n'affirme rien.

   Retenu : Public Sans, en famille unique, sans empattement. Grotesque
   institutionnelle dessinée pour l'administration américaine, optimisée
   pour la lisibilité et rien d'autre. Une seule famille à charger au
   lieu de deux.

   La variable --serif ne désigne donc plus une fonte à empattements mais
   la fonte de titrage : on garde le nom pour ne pas avoir à réécrire les
   quelque 200 règles de la v4 qui l'utilisent.
   ───────────────────────────────────────────────────────────── */
:root {
  --serif: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans:  'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Public Sans n'a pas d'axe optique : rien à régler. Les deux variables
     restent définies parce que la §14 les consomme. */
  --serif-axes:    normal;
  --serif-axes-lg: normal;
}

/* Sans empattement, la hiérarchie ne repose plus que sur la graisse et
   l'espacement : on serre les titres et on monte le contraste de poids. */
h1, h2, h3, h4,
.hero-title,
.b-card h2, .b-card h3,
.r-card h3, .e-card h4, .a-card h4,
.section-head h2, .nl-card h2,
.map-v4-panel h3, .signature-inner h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
}
.hero-title, .b-hero h2, .nl-card h2 { letter-spacing: -0.035em; }

/* La citation du portrait passait en italique : Public Sans en a une
   dessinée (chargée sur l'axe ital), elle reste donc utilisable. */
.portrait-fb-quote { font-style: italic; }

/* Fond uni : suppression des halos violet/bleu (effet SaaS) */
body {
  background: var(--paper);
  font-size: 16.5px;
}
@media (min-width: 768px) { body { font-size: 17px; } }

/* Filet « ligne d'eau » discret sous le header, signature du média */
.header { border-bottom: 1px solid var(--rule); }

/* ─────────────────────────────────────────────────────────────
   2. TOP BAR — réduite à l'essentiel
   ───────────────────────────────────────────────────────────── */
.top-bar {
  background: var(--paper-2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
}
.top-bar .container { min-height: 38px; }

/* La météo 3 jours passe en mode compact plus tôt : la barre reste calme */
@media (max-width: 1180px) {
  .tb-w-days { display: none; }
}

/* Plus de pilule noire : lien texte souligné à la demande */
.tb-newsletter {
  background: transparent;
  color: var(--seine);
  padding: 4px 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
}
.tb-newsletter:hover {
  background: transparent;
  transform: none;
  border-bottom-color: var(--seine);
  color: var(--seine-deep);
}
.tb-w-mega-cta { background: var(--seine); }
.tb-w-mega-cta:hover { background: var(--seine-deep); transform: none; }
.tb-w-mega-day.is-today { background: var(--seine-wash); color: var(--ink); }
.tb-w-mega-day.is-today .tb-w-mega-lab,
.tb-w-mega-day.is-today .tb-w-mega-cond,
.tb-w-mega-day.is-today .lo,
.tb-w-mega-day.is-today .tb-w-mega-rain { color: var(--ink-mute); }
.tb-w-mega-day.is-today .tb-w-mega-ico { color: var(--seine); }

/* ─────────────────────────────────────────────────────────────
   3. HEADER — CTA et burger sans noir
   ───────────────────────────────────────────────────────────── */
.header-cta {
  background: var(--seine);
  color: #fff;
  padding: 9px 16px;
}
.header-cta:hover { background: var(--seine-deep); transform: none; }

.burger { background: var(--paper-2); border: 1px solid var(--rule); }
.burger span { background: var(--ink); }

.search-box button { background: var(--seine); }
.search-overlay { background: rgba(28, 30, 27, 0.45); }

.nav-mobile-close { background: var(--paper-2); }

/* ─────────────────────────────────────────────────────────────
   4. RYTHME VERTICAL — on récupère un écran entier sur l'accueil
   ───────────────────────────────────────────────────────────── */
section { padding: var(--s-6) 0; }
@media (max-width: 768px) { section { padding: var(--s-5) 0; } }

.hero { padding: var(--s-5) 0 var(--s-6); }
@media (max-width: 768px) { .hero { padding: var(--s-4) 0 var(--s-5); } }

/* Accroche d'ouverture : le titre de la une, avec le numéro d'édition
   posé sur la même ligne de base à droite. */
.hero-masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);

}
.hero-masthead .hero-edition {
  display: block;
  margin-bottom: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.hero-masthead .hero-edition strong { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .hero-masthead { gap: 6px; }
  .hero-masthead .hero-edition { font-size: 11px; }
}

/* Les titres de section portent seuls : plus de sur-titre au-dessus */
.section-head .kicker { margin-bottom: 6px; }

.section-head { margin-bottom: var(--s-4); }
.section-head h2 { font-size: clamp(26px, 2.8vw, 36px); }

/* ─────────────────────────────────────────────────────────────
   5. BENTO — cartes moins hautes, overlay moins opaque
   ───────────────────────────────────────────────────────────── */
.bento { gap: 14px; grid-auto-rows: minmax(150px, auto); }

.b-card { padding: var(--s-3) var(--s-4) var(--s-4); }
.b-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.b-card:hover .b-card-img img { transform: scale(1.03); }

/* Voile plus court et moins noir : la photo reste lisible,
   le bloc respire, le texte garde son contraste AA */
.b-card-img::after {
  background: linear-gradient(
    to top,
    rgba(20, 24, 28, 0.82) 0%,
    rgba(20, 24, 28, 0.42) 45%,
    rgba(20, 24, 28, 0) 78%
  );
}

.b-hero  { min-height: 400px; }
.b-mid1, .b-mid2 { min-height: 200px; }
.b-side1, .b-side2, .b-side3 { min-height: 220px; }

.b-hero h2 { font-size: clamp(26px, 2.9vw, 38px); }
.b-mid1 h3, .b-mid2 h3 { font-size: clamp(19px, 1.5vw, 22px); }
.b-side1 h3, .b-side2 h3, .b-side3 h3 { font-size: 17px; }
.b-card p { font-size: 14.5px; -webkit-line-clamp: 2; }

@media (max-width: 1024px) {
  .b-hero { min-height: 340px; }
}

/* Badges : plus petits partout */
.badge {
  font-size: 11px !important;
  letter-spacing: 0.1em;
  padding: 4px 9px !important;
}

/* ─────────────────────────────────────────────────────────────
   6. REPORTAGES — la couleur passe du fond au filet
   ───────────────────────────────────────────────────────────── */
.r-card {
  border: 1px solid var(--rule);
  box-shadow: none;
  border-radius: var(--r-lg);
}
.r-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}
.r-card.r-big .r-card-body h3 { font-size: clamp(21px, 2vw, 26px); }
.r-card.r-small .r-card-body h3 { font-size: 17px; }

/* Puces catégorie teintées sur les cartes claires : lisible sans crier */
.r-card .badge.cat-eco      { background: var(--c-eco-wash);      color: var(--c-eco-ink); }
.r-card .badge.cat-mobil    { background: var(--c-mobil-wash);    color: var(--c-mobil-ink); }
.r-card .badge.cat-sport    { background: var(--c-sport-wash);    color: var(--c-sport-ink); }
.r-card .badge.cat-solid    { background: var(--c-solid-wash);    color: var(--c-solid-ink); }
.r-card .badge.cat-cult     { background: var(--c-cult-wash);     color: var(--c-cult-ink); }
.r-card .badge.cat-env      { background: var(--c-env-wash);      color: var(--c-env-ink); }
.r-card .badge.cat-edu      { background: var(--c-edu-wash);      color: var(--c-edu-ink); }
.r-card .badge.cat-portrait { background: var(--c-portrait-wash); color: var(--c-portrait-ink); }

/* ─────────────────────────────────────────────────────────────
   7. AGENDA — cartes calmes, date moins écrasante
   ───────────────────────────────────────────────────────────── */
.events-section-v4 { background: none; }
.e-card {
  min-height: 0;
  padding: var(--s-3) var(--s-4) var(--s-4);
  gap: 10px;
  border: 1px solid var(--rule);
  box-shadow: none;
}
.e-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}
.e-day { font-size: 38px; color: var(--seine); }
.e-card h4 { font-size: 16.5px; }
.e-type { background: var(--seine-wash); color: var(--seine-deep); font-size: 11px; }

/* ─────────────────────────────────────────────────────────────
   8. ANNUAIRE — icônes à plat, sans dégradé
   ───────────────────────────────────────────────────────────── */
.a-card {
  border: 1px solid var(--rule);
  box-shadow: none;
  padding: var(--s-4);
}
.a-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: transparent; }
.a-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  font-size: 18px;
}
.a-icon.tone-warm   { background: var(--c-edu-wash);   color: var(--c-edu-ink); }
.a-icon.tone-green  { background: var(--c-eco-wash);   color: var(--c-eco-ink); }
.a-icon.tone-red    { background: var(--c-sport-wash); color: var(--c-sport-ink); }
.a-icon.tone-blue   { background: var(--c-mobil-wash); color: var(--c-mobil-ink); }
.a-icon.tone-violet { background: var(--c-cult-wash);  color: var(--c-cult-ink); }
.a-card h4 { font-size: 17px; }
.a-tags span { background: var(--paper-2); font-size: 11.5px; }

/* ─────────────────────────────────────────────────────────────
   9. PORTRAIT — bandeau plus bas, citation raisonnable
   ───────────────────────────────────────────────────────────── */
.portrait-fb-inner {
  min-height: 380px;
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-xl);
  margin: 0 var(--s-4);
}
.portrait-fb-img::after {
  background:
    linear-gradient(115deg, rgba(20, 24, 28, 0.80) 0%, rgba(20, 24, 28, 0.32) 62%, transparent 100%),
    linear-gradient(to top, rgba(20, 24, 28, 0.68), rgba(20, 24, 28, 0.15) 55%, transparent 75%);
}
.portrait-fb-quote {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: var(--s-3);
  max-width: 24ch;
}
/* Filet d'ombre : le texte reste lisible même sur une photo claire */
.portrait-fb-content .kicker,
.portrait-fb-quote,
.portrait-fb-name,
.portrait-fb-role { text-shadow: 0 1px 12px rgba(20, 24, 28, 0.55); }

.portrait-fb-byline { margin-bottom: var(--s-3); }
.portrait-fb-avatar { width: 44px; height: 44px; }
.portrait-fb-name { font-size: 17px; }
.portrait-fb-cta { padding: 10px 18px; }
.portrait-fb-cta:hover { transform: none; gap: 10px; }
@media (max-width: 768px) {
  .portrait-fb-inner { min-height: 340px; padding: var(--s-5) var(--s-4); }
}

/* ─────────────────────────────────────────────────────────────
   10. CARTE DU TERRITOIRE — passage en clair
   ───────────────────────────────────────────────────────────── */
.map-v4-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: none;
  color: var(--ink);
  min-height: 0;
  border-radius: var(--r-xl);
}
.map-v4-canvas-wrap {
  background: var(--seine-wash);
  padding: var(--s-4);
}
.map-v4-canvas { min-height: 320px; }
.map-v4-legend { color: var(--ink-mute); }
.map-v4-legend .leg-covered { background: var(--seine); }
.map-v4-legend .leg-context { background: #D9D3C6; }
.map-v4-legend .leg-active  { background: var(--c-sport); }

.map-v4-canvas .territory-commune {
  fill: #FFFFFF;
  stroke: #CFC8B9;
  stroke-width: 0.8;
}
.map-v4-canvas .territory-commune.is-context { fill: #EFEADF; opacity: 1; }
.map-v4-canvas .territory-commune.is-covered { fill: rgba(31, 95, 114, 0.35); }
.map-v4-canvas .territory-commune.is-covered:hover {
  fill: rgba(31, 95, 114, 0.65);
  filter: none;
}
.map-v4-canvas .territory-commune.active { fill: var(--c-sport); filter: none; }
.map-v4-canvas .territory-commune:focus-visible { stroke: var(--ink); stroke-width: 2; }
.map-v4-canvas .territory-label {
  fill: var(--ink);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2.5px;
}
.map-v4-canvas .territory-map-loading,
.map-v4-canvas .territory-map-error { color: var(--ink-mute); min-height: 320px; }

.map-v4-panel {
  background: var(--surface);
  border-left: 1px solid var(--rule);
  padding: var(--s-4);
}
@media (max-width: 900px) {
  .map-v4-panel { border-left: 0; border-top: 1px solid var(--rule); }
}
.map-v4-panel .kicker { color: var(--ink-mute); }
.map-v4-panel .kicker::before { background: var(--seine); }
.map-v4-panel h3 { color: var(--ink); font-size: clamp(20px, 2.2vw, 26px); }
.map-v4-panel .sub { color: var(--ink-mute); }

.map-v4-chip {
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.map-v4-chip:hover { background: var(--paper-2); }
.map-v4-chip.active {
  background: var(--seine);
  color: #fff;
  border-color: var(--seine);
}

.map-v4-articles { max-height: 300px; scrollbar-color: var(--rule) transparent; }
.map-v4-articles::-webkit-scrollbar-thumb { background: var(--rule); }
.map-v4-article:hover { background: var(--paper-2); }
.map-v4-article h4 { color: var(--ink); font-size: 14px; }
.map-v4-article .a-meta { color: var(--ink-mute); }
.map-v4-article .a-meta .cat { color: var(--seine); }

.territory-map-tooltip {
  background: var(--ink);
  border: 0;
  backdrop-filter: none;
}

/* ─────────────────────────────────────────────────────────────
   11. NEWSLETTER — la grosse carte noire devient un bloc papier
   ───────────────────────────────────────────────────────────── */
.nl-section { padding: var(--s-6) var(--s-4); }
.nl-card {
  max-width: 860px;
  padding: var(--s-6) var(--s-5);
  background: var(--seine-wash);
  border: 1px solid #D8E4E7;
  border-radius: var(--r-xl);
  color: var(--ink);
}
.nl-card::before { display: none; }
.nl-card .kicker { color: var(--ink-mute); }
.nl-card .kicker::before { background: var(--seine); }
.nl-card h2 {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: var(--s-2);
}
.nl-card .dek { color: var(--ink-soft); font-size: 15.5px; }
.nl-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: none;
}
.nl-form input { color: var(--ink); }
.nl-form input::placeholder { color: var(--ink-mute); }
.nl-form button { background: var(--seine); color: #fff; }
.nl-form button:hover { background: var(--seine-deep); transform: none; }
.nl-fine {
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

/* ─────────────────────────────────────────────────────────────
   11 bis. SIGNATURE — bandeau « qui sommes-nous » avant le footer
   ───────────────────────────────────────────────────────────── */
.signature { padding: var(--s-5) 0 var(--s-6); }
.signature-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.signature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: var(--s-3);
  border-radius: var(--r-pill);
  background: var(--seine-wash);
  color: var(--seine);
  font-size: 18px;
}
.signature-inner h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.signature-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
}
.signature-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
  text-wrap: pretty;
}
.signature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--seine);
  color: var(--seine);
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms, color 160ms;
}
.signature-cta:hover { background: var(--seine); color: #fff; }
.signature-cta i { font-size: 12px; }

/* ─────────────────────────────────────────────────────────────
   12. FOOTER & DIVERS
   ───────────────────────────────────────────────────────────── */
.footer { background: var(--paper-2); padding: var(--s-6) 0 var(--s-4); }
.footer-grid { gap: var(--s-5); margin-bottom: var(--s-4); }
.footer-social a:hover { background: var(--seine); color: #fff; border-color: var(--seine); }
.footer-communes a:hover { background: var(--seine); color: #fff; border-color: var(--seine); }

.back-to-top {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-1);
  width: 40px; height: 40px;
}
.back-to-top:hover { background: var(--seine); color: #fff; transform: translateY(-2px); }

.pulse { padding: 0 0 var(--s-6); }
.pulse-label { background: var(--seine); }
.pulse-wrap { border: 1px solid var(--rule); box-shadow: none; }

/* ─────────────────────────────────────────────────────────────
   13. PAGES INTERNES (bridge legacy) — mêmes règles partout
   Les 26 pages héritent de style.css : on y applique la même
   logique « moins de noir, plus de Seine ».
   ───────────────────────────────────────────────────────────── */

/* Alias legacy recalés sur la nouvelle teinte */
:root {
  --ciel:        var(--seine-wash);
  --ciel-deep:   var(--seine);
  --accent-soft: rgba(31, 95, 114, 0.08);
  --primary-light: var(--seine-wash);
}

/* Les deux grands bandeaux noirs des pages internes passent en papier */
.cta-banner,
.community-cta-band {
  background: var(--seine-wash);
  border: 1px solid #D8E4E7;
  color: var(--ink);
}
.cta-banner { padding: var(--s-6) var(--s-4); margin: var(--s-5) var(--s-4); }
.cta-banner h2,
.community-cta-band h2 { color: var(--ink); }
.cta-banner p,
.community-cta-band p { color: var(--ink-soft); }
.cta-banner .btn-accent { background: var(--seine); color: #fff; }
.cta-banner .btn-accent:hover { background: var(--seine-deep); color: #fff; }
.cta-banner .btn-outline { color: var(--seine); border-color: var(--seine); }
.cta-banner .btn-outline:hover { background: var(--seine); color: #fff; }

/* Boutons et puces : le noir devient bleu Seine */
.btn-accent { background: var(--seine); color: #fff; }
.btn-accent:hover { background: var(--seine-deep); box-shadow: none; }
.btn-outline { color: var(--seine); border-color: var(--seine); }
.btn-outline:hover { background: var(--seine); color: #fff; }

.newsletter-form button,
.search-form-large button { background: var(--seine); color: #fff; }

.commune-tag:hover,
.article-tags a:hover,
.section-title a:hover,
.agenda-chip:hover,
.search-filter-chip:hover,
.admin-chip:hover,
.anx-tab:hover {
  background: var(--seine);
  color: #fff;
  border-color: var(--seine);
}
.event-actions .btn-outline:hover { background: var(--seine) !important; color: #fff !important; }
.event-modal-close:hover { background: var(--seine); color: #fff; transform: none; }

/* Respect des préférences système : on coupe les animations décoratives */
@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
  .b-card, .r-card, .e-card, .a-card { transition: none; }
}

/* ─────────────────────────────────────────────────────────────
   14. AXES VARIABLES DE LA FONTE DE TITRAGE
   Placé en toute fin : plusieurs règles v4 et v5 posent leur propre
   `font-variation-settings` (notamment .b-hero h2 et .portrait-fb-quote),
   il faut passer après elles pour que les axes de la piste active
   s'appliquent réellement.
   ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4,
.b-card h2, .b-card h3,
.r-card h3,
.e-card h4, .e-day,
.a-card h4,
.map-v4-panel h3,
.map-v4-article h4,
.portrait-fb-quote,
.portrait-fb-name,
.signature-inner h2 {
  font-variation-settings: var(--serif-axes);
}

.hero-title,
.b-hero h2,
.nl-card h2,
.section-head h2 {
  font-variation-settings: var(--serif-axes-lg);
}

/* ─────────────────────────────────────────────────────────────
   15. BANNIÈRE DE PAGE
   Les pages internes ouvrent sur un bandeau dont le fond reprenait les
   halos bleu roi / violet de la v4. On le repasse en papier crème avec
   un simple filet, cohérent avec le reste.
   ───────────────────────────────────────────────────────────── */
.page-banner {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-5) var(--s-4);
}
.page-banner h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
  margin-top: var(--s-2);
  margin-bottom: var(--s-2);
}
.page-banner p,
.page-banner .lead,
.page-banner-lead { font-size: clamp(15px, 1.5vw, 17px); }

/* La v4 centrait chaque enfant dans la largeur maximale via des marges
   auto, ce qui décalait le chapô vers la droite dès qu'il était plus
   étroit que le titre. On crée plutôt la gouttière sur la section
   elle-même : les enfants redeviennent de simples blocs alignés à
   gauche, et le chapô garde sa mesure de lecture. */
.page-banner,
.page-banner .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* La v4 centrait le texte des bannières sans conteneur interne, d'où
     deux alignements différents selon la page. */
  text-align: left;
}

/* La gouttière est portée par la section, pas par des marges auto sur
   chaque enfant : c'est ce qui permet à tous les blocs de s'aligner sur
   la même verticale quelle que soit leur largeur. Le point de bascule
   vaut --maxw + deux gouttières. */
@media (min-width: 1288px) {
  .page-banner { padding-inline: calc((100% - var(--maxw)) / 2); }
}

/* Certaines bannières enveloppent leur contenu dans un .container. Devenu
   élément flex, il se réduisait à sa largeur de contenu puis ses marges
   auto le recentraient. On le remet pleine largeur, sans marges ni
   gouttière propres : la section s'en charge déjà. */
.page-banner > .container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* Les sélecteurs sont énumérés un à un : `.page-banner > *` ne pesait
   pas assez face aux `.page-banner > h1` de la v4. */
.page-banner > h1,
.page-banner > h2,
.page-banner > p,
.page-banner > .lead,
.page-banner > .breadcrumb {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.page-banner > p,
.page-banner > .lead,
.page-banner .container > p,
.page-banner .container > .lead,
.page-banner-lead { max-width: 60ch; }

/* Le fil d'Ariane passait sous le titre : il le précède désormais. */
.page-banner > .breadcrumb,
.page-banner .container > .breadcrumb { order: -1; }

/* ─────────────────────────────────────────────────────────────
   16. BANDEAU DE CONSENTEMENT
   Feuille séparée (consent-banner.css), chargée après la v5 sur
   certaines pages : on requalifie ses couleurs bleu roi en teinte Seine.
   Sélecteurs doublés pour passer devant sans recourir à !important.
   ───────────────────────────────────────────────────────────── */
html #eb-consent-banner { border-top-color: var(--seine); }
#eb-consent-banner .eb-consent-text a { color: var(--seine); }
#eb-consent-banner .eb-btn-primary,
.eb-modal-card .eb-btn-primary {
  background: var(--seine);
  border-color: var(--seine);
}
#eb-consent-banner .eb-btn-primary:hover,
.eb-modal-card .eb-btn-primary:hover {
  background: var(--seine-deep);
  border-color: var(--seine-deep);
}
#eb-consent-banner .eb-btn-ghost:hover,
.eb-modal-card .eb-btn-ghost:hover { color: var(--seine); }

/* ─────────────────────────────────────────────────────────────
   17. ANNUAIRE — note Google sur les cartes
   Les fiches issues du scraping Google Maps portent une note ; la
   carte la montre pour rendre la liste triable à l'œil.
   ───────────────────────────────────────────────────────────── */
.a-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.a-rating i { color: #E8A317; font-size: 0.8em; }

/* ─────────────────────────────────────────────────────────────
   17. CHIFFRES CLÉS DES FICHES COMMUNE
   Les compteurs du bandeau montaient à 48 px : à côté du nom de la
   commune, le nombre d'habitants pesait plus lourd que le titre de la
   page. On les ramène à une taille de donnée, pas de titre, et on
   allège la carte qui les porte.
   ───────────────────────────────────────────────────────────── */
.commune-stat,
.partnership-metric {
  padding: var(--s-3);
  border: 1px solid var(--rule);
  box-shadow: none;
}
.commune-stat strong,
.partnership-metric strong {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.commune-stat span,
.partnership-metric span {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
}
