/* ==========================================================================
   ESPACES CONSEILS — Design System
   Régie d'affichage publicitaire extérieur — Alpes-Maritimes
   Feuille de style unique, sans dépendance externe.

   Conforme à la CHARTE GRAPHIQUE 2020 :
   · Bleu  #074FA3 et rouge #ED3326 — couleurs relevées sur le logotype officiel.
   · Titres  : Arial Bold (autorisé par la charte au même titre qu'Open Sans Bold).
   · Textes  : Helvetica Medium, avec repli Arial (autorisé par la charte).
   Voir README.md § « Arbitrage couleurs » pour les écarts constatés dans la charte.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Couleurs de marque (charte) --- */
  --blue:       #074FA3;   /* primaire — logotype. Blanc dessus : 7,9:1 (AAA) */
  --blue-dark:  #053C7C;
  --blue-soft:  #EAF1F9;
  --red:        #ED3326;   /* primaire — logotype. Aplats et grands titres */
  --red-text:   #E03024;   /* variante texte : 4,55:1 sur blanc (AA) */
  --red-light:  #FF3729;   /* variante texte sur fond sombre : 4,54:1 (AA) */
  --red-dark:   #B3241A;
  --red-soft:   #FDECEA;
  --grey:       #B2B2B2;   /* secondaire charte */

  /* --- Neutres --- */
  --ink:        #221F1F;   /* noir de la charte */
  --ink-800:    #191717;
  --ink-700:    #2E2A2A;
  --ink-600:    #4A4646;
  --ink-400:    #787474;
  --ink-300:    #A9A5A5;
  --ink-200:    #DCD9D9;
  --ink-100:    #EFEDED;
  --paper:      #FFFFFF;
  --sand:       #F4F3F1;
  --sand-dark:  #E4E2DF;

  /* --- Alias sémantiques --- */
  --accent:      var(--red);
  --accent-text: var(--red-text);
  --accent-soft: var(--red-soft);
  --accent-dark: var(--red-dark);

  --ok:    #1B7F4D;
  --error: #C62828;

  /* Typographie — conforme charte, zéro requête réseau, RGPD-safe.
     Voir README § « Typographie » pour activer Open Sans auto-hébergée. */
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-display: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;

  /* Échelle typographique fluide */
  --fs-display: clamp(2.9rem, 1.2rem + 7.2vw, 8.5rem);
  --fs-h1:      clamp(2.35rem, 1.3rem + 4.4vw, 5.25rem);
  --fs-h2:      clamp(1.8rem, 1.15rem + 2.2vw, 3.05rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --fs-h4:      clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-lead:    clamp(1.08rem, 1rem + 0.5vw, 1.4rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Rythme */
  --gutter:   clamp(1.25rem, 4vw, 3.5rem);
  --sec-y:    clamp(4.5rem, 9vw, 9.5rem);
  --maxw:     1440px;
  --maxw-txt: 68ch;

  /* Divers */
  --radius:    2px;
  --radius-lg: 4px;
  --border:    1px solid var(--ink-200);
  --shadow-sm: 0 1px 2px rgba(11,11,12,.06), 0 4px 12px rgba(11,11,12,.05);
  --shadow-md: 0 12px 40px -12px rgba(11,11,12,.22);
  --shadow-lg: 0 32px 80px -24px rgba(11,11,12,.34);
  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --header-h:  76px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
.sect--dark :focus-visible { outline-color: #fff; }

::selection { background: var(--blue); color: #fff; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHIE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  text-wrap: pretty;
}
h1, .display, .h1 { text-wrap: balance; }
h3, h4 { line-height: 1.18; letter-spacing: -0.018em; }

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); font-weight: 700; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-600);
  max-width: 60ch;
  text-wrap: pretty;
}
.sect--dark .lead { color: var(--ink-300); }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.muted { color: var(--ink-400); }
.accent-txt { color: var(--accent-text); }
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
}

.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.5em; }
.prose h3 { font-size: var(--fs-h4); margin-top: 2em; }
.prose ul { margin-top: 1em; }
.prose li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .55rem;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  background: var(--accent);
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.prose a:hover { color: var(--accent-text); }
.prose strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 900px; }

.sect { padding-block: var(--sec-y); position: relative; }
.sect--tight { padding-block: clamp(3rem, 5.5vw, 5.5rem); }
.sect--sand { background: var(--sand); }
.sect--dark { background: var(--ink); color: var(--paper); }
.sect--dark h1, .sect--dark h2, .sect--dark h3 { color: #fff; }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--split { grid-template-columns: minmax(0,1.06fr) minmax(0,1fr); align-items: start; }
.grid--split-even { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; }

.stack-sm > * + * { margin-top: .75rem; }
.stack   > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.5rem; }

.sect-head { max-width: min(100%, 62rem); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sect-head--wide { max-width: min(100%, 76rem); }
.sect-head .lead { max-width: 62ch; }
.sect-head--center { margin-inline: auto; text-align: center; }
.sect-head--center .eyebrow { justify-content: center; }

.rule { height: 1px; background: var(--ink-200); border: 0; }
.sect--dark .rule { background: rgba(255,255,255,.14); }

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1.02rem 1.85rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.005em;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  transition: transform .28s var(--ease), background .22s, border-color .22s, color .22s, box-shadow .28s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--accent { --btn-bg: var(--blue); --btn-fg: #fff; }
.btn--accent:hover { --btn-bg: var(--blue-dark); border-color: var(--blue-dark); }
.btn--red { --btn-bg: var(--red-dark); --btn-fg: #fff; }
.btn--red:hover { --btn-bg: #94190F; border-color: #94190F; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink-200); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { padding: .68rem 1.15rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Lien flèche */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 2px solid var(--accent);
  transition: gap .3s var(--ease-out), color .2s;
}
.arrow-link:hover { gap: 1rem; color: var(--accent-text); }
.sect--dark .arrow-link { color: #fff; }
.sect--dark .arrow-link:hover { color: var(--red-light); }
/* Tout lien flèche posé sur un fond sombre est blanc au repos. */
.split-cta__panel .arrow-link,
.cta-band .arrow-link,
.contact-aside .arrow-link,
.card--dark .arrow-link,
.card--accent .arrow-link { color: #fff; border-bottom-color: #fff; }
.split-cta__panel .arrow-link:hover,
.cta-band .arrow-link:hover,
.contact-aside .arrow-link:hover,
.card--dark .arrow-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,.45); }

/* --------------------------------------------------------------------------
   6. HEADER / NAV
   -------------------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1rem 1.5rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: height .35s var(--ease);
}
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34,31,31,.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: -1;
}
.header.is-stuck::after { opacity: 1; }
.header.is-stuck { height: 64px; }

.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .95rem; flex: none; }
.logo__img {
  width: clamp(104px, 10vw, 128px);
  height: auto;
  flex: none;
  display: block;
  transition: width .35s var(--ease);
}
.header.is-stuck .logo__img { width: clamp(94px, 8.5vw, 108px); }
.logo__sub {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.6;
  white-space: nowrap;
  border-left: 1px solid rgba(255,255,255,.22);
  padding-left: 1rem;
}
@media (max-width: 1400px) { .logo__sub { display: none; } }
.footer .logo__sub { border-color: rgba(255,255,255,.18); }

/* Nav desktop */
.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative;
  padding: .6rem .85rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,.82);
  transition: color .2s;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .25rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease-out);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: #fff; }

.header__cta { display: flex; align-items: center; gap: .9rem; flex: none; }
.header__tel {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.header__tel:hover { color: var(--red-light); }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex: none;
}
.burger span {
  display: block;
  position: relative;
  width: 24px; height: 2px;
  background: #fff;
  transition: background .2s;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px; height: 2px;
  background: #fff;
  transition: transform .34s var(--ease-out), top .2s;
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Panneau mobile */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .34s var(--ease), transform .34s var(--ease), visibility .34s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-nav__link span { color: var(--red-light); font-size: .7rem; font-family: var(--font-mono); }
.mobile-nav__foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: .75rem; }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero--inner {
  min-height: auto;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  align-items: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg picture { display: contents; }
.hero__bg img, .hero__bg svg {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Le panneau se trouve en haut à droite du cliché : le recadrage doit le préserver. */
  object-position: 66% 38%;
  opacity: .88;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(20,18,18,.94) 0%, rgba(20,18,18,.80) 34%, rgba(20,18,18,.30) 66%, rgba(20,18,18,.52) 100%),
    linear-gradient(180deg, rgba(20,18,18,.58) 0%, rgba(20,18,18,0) 26%, rgba(20,18,18,.88) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__title { color: #fff; max-width: 17ch; }
/* Les titres de pages intérieures sont plus longs que celui de l'accueil :
   sans cette largeur, `text-wrap: balance` les casse en trois lignes. */
.hero--inner .hero__title { max-width: 24ch; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead {
  color: rgba(255,255,255,.78);
  max-width: 54ch;
  margin-top: 1.75rem;
  font-size: var(--fs-lead);
}
.hero__actions { margin-top: 2.5rem; }

.hero__meta {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.hero__meta dt {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.52);
  margin-bottom: .4rem;
}
.hero__meta dd {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
}
.hero__meta dd small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255,255,255,.55);
  margin-top: .5rem;
  line-height: 1.4;
}

/* Fil d'Ariane */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.55);
  margin-bottom: 1.5rem;
}
.crumbs a:hover { color: #fff; }
.crumbs li { display: flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: "/"; color: rgba(255,255,255,.3); }
.crumbs [aria-current] { color: var(--accent); }

/* --------------------------------------------------------------------------
   8. BANDEAU DÉFILANT (communes couvertes)
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--blue);
  color: #fff;
  padding: .95rem 0;
  overflow: hidden;
  position: relative;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 52s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding-inline: .8rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 5px; height: 5px;
  background: rgba(255,255,255,.65);
  border-radius: 50%;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   9. CARTES & BLOCS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--ink-300); }
.card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 1.4rem;
  letter-spacing: .1em;
}
.card__title { font-size: var(--fs-h4); margin-bottom: .75rem; }
.card__txt { font-size: var(--fs-sm); color: var(--ink-600); }
.card__foot { margin-top: auto; padding-top: 1.75rem; }
.card--dark { background: var(--ink-800); border-color: rgba(255,255,255,.12); color: #fff; }
.card--dark .card__txt { color: var(--ink-300); }
.card--dark:hover { border-color: rgba(255,255,255,.3); }
.card--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.card--accent .card__txt { color: rgba(255,255,255,.88); }
.card--accent .card__num { color: rgba(255,255,255,.7); }
.card--sand { background: var(--sand); border-color: var(--sand-dark); }
.card--link::after { content: ""; position: absolute; inset: 0; }

.icon-box {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  flex: none;
}
.sect--dark .icon-box, .card--dark .icon-box { background: rgba(237,51,38,.16); color: var(--red-light); }

/* Liste de features */
.features { display: grid; gap: 1.1rem; }
.feature { display: grid; grid-template-columns: 26px 1fr; gap: 1rem; align-items: start; }
.feature__ico {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  margin-top: 2px;
}
.sect--dark .feature__ico { background: var(--accent); }
.feature__body strong { display: block; margin-bottom: .2rem; font-size: var(--fs-body); }
.feature__body span { font-size: var(--fs-sm); color: var(--ink-600); }
.sect--dark .feature__body span { color: var(--ink-300); }

/* --------------------------------------------------------------------------
   10. DOUBLE TUNNEL (annonceurs / bailleurs)
   -------------------------------------------------------------------------- */
.split-cta { display: grid; grid-template-columns: repeat(2, 1fr); }
.split-cta__panel {
  position: relative;
  padding: clamp(2.5rem, 5.5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(360px, 42vw, 520px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.split-cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform .8s var(--ease-out);
}
.split-cta__panel:hover::before { transform: scale(1.06); }
.split-cta__panel--a::before { background: linear-gradient(155deg, #10203A 0%, #221F1F 52%, #06305F 100%); }
.split-cta__panel--b::before { background: linear-gradient(155deg, #D42A1D 0%, #8A180F 100%); }
.split-cta__panel h3 { font-size: var(--fs-h2); color: #fff; margin-bottom: 1rem; }
.split-cta__panel p { color: rgba(255,255,255,.92); max-width: 38ch; margin-bottom: 2rem; }
.split-cta__panel .eyebrow { color: #fff; }
.split-cta__panel .eyebrow::before { background: #fff; }
.split-cta__panel--a .eyebrow { color: var(--red-light); }
.split-cta__panel--a .eyebrow::before { background: var(--accent); }

/* --------------------------------------------------------------------------
   11. CHIFFRES
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-200); border: var(--border); }
.sect--dark .stats { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.stat { background: var(--paper); padding: clamp(1.75rem, 3vw, 2.75rem); }
.sect--dark .stat { background: var(--ink); }
.sect--sand .stat { background: var(--sand); }
.stat__val {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
}
.sect--dark .stat__val { color: #fff; }
.stat__val sup { font-size: .45em; vertical-align: super; color: var(--accent-text); }
.stat__lbl { margin-top: .85rem; font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.4; }
.sect--dark .stat__lbl { color: var(--ink-300); }

/* --------------------------------------------------------------------------
   12. FORMATS (panneaux)
   -------------------------------------------------------------------------- */
.format {
  display: flex;
  flex-direction: column;
  border: var(--border);
  background: var(--paper);
  overflow: hidden;
  transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
  height: 100%;
}
.format:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.format__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-100);
  display: grid;
  place-items: center;
  padding: 1.75rem;
  overflow: hidden;
}
.format__visual svg { width: 100%; height: 100%; }
/* Variante photographique : l'image occupe toute la vignette, sans marge. */
.format__visual--photo { padding: 0; background: var(--ink); }
.format__visual--photo picture { display: contents; }
.format__visual--photo img { width: 100%; height: 100%; object-fit: cover; }
.format__badge {
  position: absolute;
  z-index: 2;
  top: 1rem; left: 1rem;
  padding: .3rem .6rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.format__body { padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.format__name { font-size: var(--fs-h4); margin-bottom: .35rem; }
.format__dim {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-text);
  font-weight: 700;
  margin-bottom: .9rem;
}
.format__txt { font-size: var(--fs-sm); color: var(--ink-600); }
.format__specs {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: var(--border);
  display: grid;
  gap: .5rem;
  font-size: var(--fs-xs);
}
.format__specs div { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; }
.format__specs div:first-child { padding-top: 1.25rem; }
.format__specs dt { color: var(--ink-400); }
.format__specs dd { font-weight: 700; text-align: right; }

/* --------------------------------------------------------------------------
   13. ÉTAPES / PROCESS
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: var(--border);
  align-items: start;
}
.sect--dark .step { border-color: rgba(255,255,255,.14); }
.step:last-child { border-bottom: var(--border); }
.sect--dark .step:last-child { border-color: rgba(255,255,255,.14); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.step__title { font-size: var(--fs-h3); margin-bottom: .65rem; }
.step__txt { color: var(--ink-600); max-width: 62ch; font-size: var(--fs-sm); }
.sect--dark .step__txt { color: var(--ink-300); }

/* --------------------------------------------------------------------------
   14. ZONES / RÉSEAU
   -------------------------------------------------------------------------- */
.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-200); border: var(--border); }
.zone { background: var(--paper); padding: clamp(1.4rem, 2.4vw, 2rem); transition: background .3s; }
.zone:hover { background: var(--sand); }
.zone__name { font-size: var(--fs-h4); margin-bottom: .5rem; }
.zone__cities { font-size: var(--fs-sm); color: var(--ink-600); }
.zone__tag {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .22rem .55rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Nuage de communes (maillage SEO local) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: .46rem .85rem;
  border: var(--border);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-600);
  background: var(--paper);
  transition: all .22s;
}
.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sect--dark .chip { border-color: rgba(255,255,255,.18); background: transparent; color: var(--ink-300); }
.sect--dark .chip:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* --------------------------------------------------------------------------
   15. SECTEURS
   -------------------------------------------------------------------------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-200); border: var(--border); }
.sector {
  background: var(--paper);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 170px;
  transition: background .3s, color .3s;
}
.sector:hover { background: var(--ink); color: #fff; }
.sector:hover .sector__txt { color: var(--ink-300); }
.sector__ico { color: var(--accent); }
.sector__name { font-size: var(--fs-h4); }
.sector__txt { font-size: var(--fs-xs); color: var(--ink-400); margin-top: auto; }

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: var(--border); }
.sect--dark .faq { border-color: rgba(255,255,255,.14); }
.faq__item { border-bottom: var(--border); }
.sect--dark .faq__item { border-color: rgba(255,255,255,.14); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  text-align: left;
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color .22s;
}
.faq__q:hover { color: var(--accent-text); }
.faq__ico { position: relative; flex: none; width: 22px; height: 22px; margin-top: 3px; }
.faq__ico::before, .faq__ico::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform .34s var(--ease-out), opacity .2s;
}
.faq__ico::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq__ico::after  { left: 10px; top: 0; width: 2px; height: 22px; }
.faq__q[aria-expanded="true"] .faq__ico::after { transform: rotate(90deg); opacity: 0; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding-bottom: 1.6rem; max-width: 78ch; color: var(--ink-600); font-size: var(--fs-sm); }
.sect--dark .faq__a p { color: var(--ink-300); }

/* --------------------------------------------------------------------------
   17. FORMULAIRES
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.35rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .92rem 1rem;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  font-size: var(--fs-body);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23757984' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7,79,163,.18);
}
.field__err { font-size: var(--fs-xs); color: var(--error); font-weight: 600; display: none; text-transform: none; letter-spacing: 0; }
.field.has-error .field__err { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-400); text-transform: none; letter-spacing: 0; font-weight: 400; }

.checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .8rem;
  align-items: start;
  font-size: var(--fs-xs);
  color: var(--ink-600);
  line-height: 1.55;
  cursor: pointer;
}
.checkbox input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); cursor: pointer; }
.checkbox a { text-decoration: underline; text-underline-offset: 2px; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__status {
  padding: 1rem 1.2rem;
  border-left: 3px solid;
  font-size: var(--fs-sm);
  font-weight: 600;
  display: none;
}
.form__status.is-visible { display: block; }
.form__status--ok { border-color: var(--ok); background: #EDF7F1; color: #14603A; }
.form__status--ko { border-color: var(--error); background: #FDEDED; color: #8E1F1F; }

/* Encadré latéral contact */
.contact-aside {
  background: var(--ink);
  color: #fff;
  padding: clamp(2rem, 3.4vw, 3rem);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.contact-aside h2 { color: #fff; font-size: var(--fs-h3); }
.contact-line { display: grid; grid-template-columns: 22px 1fr; gap: 1rem; align-items: start; }
.contact-line svg { color: var(--red-light); margin-top: 3px; }
.contact-line strong { display: block; font-size: var(--fs-body); }
.contact-line a { font-weight: 700; }
.contact-line a:hover { color: var(--red-light); }
.contact-line span { font-size: var(--fs-sm); color: var(--ink-300); }

/* --------------------------------------------------------------------------
   18. BANDEAU CTA FINAL
   -------------------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(7,79,163,.42) 0%, transparent 62%),
    radial-gradient(60% 100% at 0% 100%, rgba(237,51,38,.26) 0%, transparent 60%);
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.25fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cta-band h2 { color: #fff; max-width: 20ch; }

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink-800);
  color: var(--ink-300);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
}
.footer h3 {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4rem;
}
.footer__links li + li { margin-top: .7rem; }
.footer__links a { color: var(--ink-300); transition: color .2s, padding-left .25s var(--ease-out); display: inline-block; }
.footer__links a:hover { color: #fff; padding-left: 5px; }
.footer__about p { max-width: 42ch; margin-top: 1.4rem; line-height: 1.65; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__legal a:hover { color: #fff; }
.footer .logo__img { width: 148px; }

.socials { display: flex; gap: .6rem; margin-top: 1.75rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  color: var(--ink-300);
  transition: all .25s;
}
.socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* --------------------------------------------------------------------------
   20. DIVERS
   -------------------------------------------------------------------------- */
.media-frame { position: relative; background: var(--ink-100); border: var(--border); overflow: hidden; }
.media-frame img, .media-frame svg { width: 100%; height: 100%; object-fit: cover; }
.media-frame--4x3 { aspect-ratio: 4/3; }
.media-frame--3x2 { aspect-ratio: 3/2; }
.media-frame--1x1 { aspect-ratio: 1/1; }

.quote {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.32;
  max-width: 26ch;
  text-wrap: balance;
}
.quote::before { content: "\00ab\00a0"; color: var(--accent); }
.quote::after  { content: "\00a0\00bb"; color: var(--accent); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: 100px;
}
.sect--dark .badge { background: rgba(237,51,38,.18); color: var(--red-light); }

/* Masqué visuellement, restitué par les lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Information restant à compléter avant mise en ligne — voir README */
.tofill {
  background: #FFF3CD;
  color: #6B4E00;
  padding: .1em .45em;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-bottom: 2px solid #D39E00;
}

.table-wrap { overflow-x: auto; border: var(--border); }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
table.tbl th, table.tbl td { padding: 1rem 1.15rem; text-align: left; border-bottom: var(--border); }
table.tbl thead th {
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
}
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: var(--sand); }

/* --------------------------------------------------------------------------
   21. ANIMATIONS D'APPARITION
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* --------------------------------------------------------------------------
   22. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1140px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__tel span { display: none; }
  .header__cta .btn { display: none; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--split, .grid--split-even { grid-template-columns: minmax(0,1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .split-cta { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

@media (max-width: 680px) {
  :root { --header-h: 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0,1fr); }
  .zones, .sectors, .stats { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: minmax(0,1fr); }
  .step { grid-template-columns: 1fr; gap: .75rem; }
  .step::before { font-size: 1.15rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 3.5rem); }
  /* Sur petit écran l'illustration est fortement recadrée : on renforce le voile
     pour garantir le contraste du titre. */
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(20,18,18,.88) 0%, rgba(20,18,18,.78) 44%, rgba(20,18,18,.95) 100%);
  }
  /* Un cliché recadré en portrait, déjà centré sur le panneau, est servi
     sous 700 px : le décalage horizontal n'a plus lieu d'être. */
  .hero__bg img { opacity: .82; object-position: 50% 42%; }
  .logo__sub { font-size: .52rem; }
}

@media print {
  .header, .mobile-nav, .ticker, .cta-band, .footer__grid, .btn { display: none !important; }
  body { color: #000; }
  .sect--dark { background: #fff !important; color: #000 !important; }
}

/* --------------------------------------------------------------------------
   23. CARTE DU RÉSEAU
   Aucune tuile n'est chargée avant clic : le bloc de consentement occupe
   d'abord toute la surface, puis la carte le remplace.
   -------------------------------------------------------------------------- */
.carte {
  position: relative;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.14);
  aspect-ratio: 16 / 10;
  min-height: 380px;
  overflow: hidden;
  isolation: isolate;
}
.sect:not(.sect--dark) .carte { border-color: var(--ink-200); }

/* --- écran d'attente --- */
.carte__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  background:
    radial-gradient(75% 110% at 80% 0%, rgba(7,79,163,.40) 0%, transparent 62%),
    radial-gradient(60% 100% at 0% 100%, rgba(237,51,38,.24) 0%, transparent 60%),
    var(--ink);
}
.carte__consent h3 { font-size: var(--fs-h3); color: #fff; }
.carte__consent p {
  font-size: var(--fs-sm);
  color: var(--ink-300);
  max-width: 54ch;
  line-height: 1.6;
}
.carte__consent svg { color: var(--red-light); }

/* --- carte active --- */
.carte.is-active .carte__consent { display: none; }
.carte__vue {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #DCD7CE;
  cursor: grab;
  touch-action: none;
}
.carte__vue.is-dragging { cursor: grabbing; }
.carte__vue:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.carte__couche, .carte__points { position: absolute; inset: 0; }
.carte__points { pointer-events: none; }
.carte__tuile {
  position: absolute;
  top: 0; left: 0;
  width: 256px; height: 256px;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* --- repères --- */
.carte__point {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: -7px 0 0 -7px;
  pointer-events: auto;
  white-space: nowrap;
}
.carte__pastille {
  width: 14px; height: 14px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.45);
  transition: transform .2s var(--ease-out);
}
.carte__etiquette {
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  padding: .12rem .42rem;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.carte__etiquette em { font-style: normal; font-weight: 400; color: var(--ink-400); }
a.carte__point:hover .carte__pastille { transform: scale(1.35); }
a.carte__point:hover .carte__etiquette { background: var(--ink); color: #fff; }
a.carte__point:focus-visible .carte__pastille { outline: 3px solid var(--blue); outline-offset: 2px; }
.carte__point--siege .carte__pastille { background: var(--blue); }
.carte__point--focus .carte__pastille { background: var(--blue); transform: scale(1.3); }
.carte__point--focus .carte__etiquette { background: var(--blue); color: #fff; }

/* --- commandes et crédit --- */
.carte__cmd {
  position: absolute;
  top: .85rem; right: .85rem;
  z-index: 2;
  display: grid;
  gap: .3rem;
}
.carte__cmd button {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink-200);
  border-radius: 2px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: background .2s, color .2s;
}
.carte__cmd button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.carte__credit {
  position: absolute;
  bottom: 0; right: 0;
  z-index: 2;
  margin: 0;
  padding: .22rem .5rem;
  background: rgba(255,255,255,.88);
  font-size: .66rem;
  color: var(--ink-600);
  border-top-left-radius: 2px;
}
.carte__credit a { text-decoration: underline; }

.carte__legende {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.1rem;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}
.carte__legende span { display: inline-flex; align-items: center; gap: .45rem; }
.carte__legende i {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-block;
}
.carte__legende .p-reseau { color: var(--red); }
.carte__legende .p-siege  { color: var(--blue); }

@media (max-width: 680px) {
  .carte { aspect-ratio: 4 / 5; min-height: 420px; }
  .carte__etiquette { display: none; }
}

/* --------------------------------------------------------------------------
   24. PIED DE PAGE — bandeau des communes
   -------------------------------------------------------------------------- */
.footer__communes {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.75rem;
}
.footer__communes h3 { margin-bottom: 1rem; }
.footer__communes nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .5rem;
}
.footer__communes a {
  display: inline-block;
  padding: .34rem .75rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-300);
  transition: background .22s, color .22s, border-color .22s;
}
.footer__communes a:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Commune disposant d'une page dédiée, dans le nuage du réseau */
.chip--page { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.chip--page::after {
  content: "";
  width: 5px; height: 5px;
  margin-left: .5rem;
  border-radius: 50%;
  background: var(--red);
}
.chip--page:hover::after { background: #fff; }
