/* ═══════════════════════════════════════════════════════════════════════
   AfricaVigilance — « atlas de terrain »

   Une surface de lecture claire, comme une planche d'atlas : papier gris-vert,
   encre bleu-noir, indigo de teinture pour les liens, ocre d'harmattan pour la
   saison sèche, bleu de pluie pour l'eau. Un seul motif signe le service : les
   isohyètes (courbes d'égale pluie, celles qui tracent le Sahel sur les cartes)
   en filigrane des en-têtes.

   Deux familles : Archivo, un peu resserrée, pour les titres, les chiffres et
   l'interface ; Source Serif 4 pour tout ce qui se lit en continu.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --av-papier: #f4f6f3;
  --av-papier-2: #e9eee9;
  --av-surface: #ffffff;
  --av-encre: #17222a;
  --av-encre-2: #45535d;
  --av-discret: #67747d;
  --av-filet: #d6ddd8;
  --av-filet-fort: #b9c4bd;
  --av-indigo: #2c4a8a;
  --av-indigo-fonce: #1e3466;
  --av-indigo-voile: #e7ecf6;
  --av-ocre: #a86a12;
  --av-ocre-voile: #f6ecdc;
  --av-pluie: #2f6fb0;

  /* Niveaux d'attention : lisibles sur fond clair, sans néon. */
  --av-vert: #2f7d4f;
  --av-jaune: #9a7b06;
  --av-jaune-vif: #e2bd33;
  --av-orange: #c2611b;
  --av-rouge: #b3261e;
  --av-gris: #7a8790;

  /* Anciennes variables encore lues par les gabarits et les scripts. */
  --av-bg: var(--av-papier);
  --av-surface-2: var(--av-surface);
  --av-border: var(--av-filet);
  --av-text: var(--av-encre);
  --av-muted: var(--av-discret);
  --av-cyan: var(--av-indigo);
  --av-blue: var(--av-pluie);
  --av-green: var(--av-vert);
  --av-yellow: var(--av-jaune-vif);
  --av-red: var(--av-rouge);

  --av-titre: "Archivo", "Archivo Variable", "Helvetica Neue", Arial, sans-serif;
  --av-texte: "Source Serif 4", "Source Serif 4 Variable", Georgia, "Times New Roman", serif;
  --av-rayon: 10px;
  --av-mesure: 68ch;
}

/* ── Socle ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* Un élément masqué par l'attribut hidden le reste, quel que soit son display. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
.av-body {
  min-height: 100vh; margin: 0;
  color: var(--av-encre); background: var(--av-papier);
  font-family: var(--av-titre); font-size: 1rem; line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.av-body a { color: var(--av-indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.av-body a:hover { color: var(--av-indigo-fonce); }
.av-body :focus-visible { outline: 3px solid #7f9ad6; outline-offset: 2px; border-radius: 4px; }
.av-body h1, .av-body h2, .av-body h3 { font-family: var(--av-titre); font-stretch: 88%; color: var(--av-encre); }
.av-body img, .av-body svg { max-width: 100%; }
.av-body .bi { line-height: 1; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 575.98px) { .container { padding-inline: 16px; } }
.alert { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--av-filet); border-radius: var(--av-rayon); background: var(--av-surface); }
.alert-warning { border-color: #e5cf8e; background: #fbf5e2; }

.av-muted { color: var(--av-discret); }

/* Texte courant : le sérif, à mesure de lecture. */
.av-hero__copy > p, .av-outil-question, .av-questions__intro, .av-questions__list dd,
.av-geo p, .av-prudence p, .av-outil-chiffres p, .av-outil-methode p, .av-outil-garde p,
.av-outil-serie p, .av-verdict p, .av-method-card p, .av-method-card dd, .av-method-card li,
.av-explainer p, .av-city-directory header p, .av-directory-note, .av-methodology > header p,
.av-outil-carte p, .av-couverture__grille p, .av-section-heading p, .av-citation, .av-outil-domaine {
  font-family: var(--av-texte); font-variant-numeric: lining-nums proportional-nums;
}

/* Titres d'étape : simples mentions, en casse normale. */
.av-eyebrow, .av-section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--av-indigo); font-family: var(--av-titre); font-size: .9rem; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}
.av-eyebrow .bi-circle-fill { font-size: .5rem; color: var(--av-vert); }

/* ── Bandeau du service ────────────────────────────────────────────────── */
.av-site-header { position: relative; z-index: 1000; border-bottom: 1px solid var(--av-filet); background: var(--av-surface); }
.av-site-header__inner { display: flex; flex-wrap: wrap; min-height: 64px; align-items: center; justify-content: space-between; gap: 2px 20px; padding-block: 6px; }
.av-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--av-encre) !important; text-decoration: none; }
.av-brand__mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; color: #fff; background: var(--av-indigo); font-size: 1.05rem; }
.av-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.02rem; font-stretch: 88%; font-weight: 500; }
.av-brand strong { color: var(--av-encre); font-weight: 750; }
.av-brand small { margin-top: 2px; color: var(--av-discret); font-size: .75rem; font-stretch: 100%; font-weight: 500; }
.av-site-header nav { display: flex; flex: 1 1 100%; gap: 4px; overflow-x: auto; }
.av-site-header nav a { padding: 10px 12px; border-radius: 6px; color: var(--av-encre-2); font-size: .95rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.av-site-header nav a:hover { color: var(--av-indigo); background: var(--av-indigo-voile); }
@media (min-width: 640px) {
  .av-site-header__inner { flex-wrap: nowrap; padding-block: 0; }
  .av-site-header nav { flex: 0 1 auto; justify-content: flex-end; overflow: visible; }
}

/* ── Fil d'ariane ──────────────────────────────────────────────────────── */
.av-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 18px; color: var(--av-discret); font-size: .88rem; }
.av-breadcrumb a { display: inline-flex; min-height: 32px; align-items: center; color: var(--av-encre-2); text-decoration: none; }
.av-breadcrumb a:hover { color: var(--av-indigo); text-decoration: underline; }
.av-breadcrumb span[aria-current] { color: var(--av-encre); font-weight: 600; }

/* ── En-têtes : le filigrane des isohyètes ─────────────────────────────── */
.av-hero, .av-outil-tete {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--av-filet);
  background-color: var(--av-papier);
  background-image: url("isohyetes.959bdc4723d6.svg");
  background-repeat: no-repeat; background-position: right -120px top -40px; background-size: 980px auto;
}
.av-hero::before, .av-outil-tete::before {
  position: absolute; inset: 0; content: "";
  background: linear-gradient(90deg, var(--av-papier) 30%, rgba(244, 246, 243, .55) 70%, rgba(244, 246, 243, .2));
  pointer-events: none;
}
.av-hero__mesh { display: none; }
.av-hero__content { position: relative; display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: clamp(40px, 6vw, 80px); }
.av-hero h1, .av-outil-tete h1 {
  max-width: 19ch; margin: 12px 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 700; font-stretch: 82%;
  line-height: 1.02; letter-spacing: -.015em;
}
.av-hero__copy > p { max-width: 58ch; margin: 0; color: var(--av-encre-2); font-size: clamp(1.08rem, 1.4vw, 1.2rem); line-height: 1.7; }
.av-outil-tete { padding: clamp(28px, 4.5vw, 60px) 0 clamp(28px, 4vw, 48px); }
.av-outil-tete > .container { position: relative; }
.av-outil-tete h1 { max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.av-outil-question { max-width: var(--av-mesure); margin: 0; color: var(--av-encre-2); font-size: clamp(1.06rem, 1.4vw, 1.18rem); line-height: 1.7; }
.av-outil-question strong { color: var(--av-encre); }
@media (min-width: 993px) { .av-hero__content { grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(40px, 6vw, 88px); } }

.av-privacy { display: flex; max-width: 58ch; gap: 11px; margin-top: 26px; padding: 12px 0 0; border-top: 1px solid var(--av-filet); color: var(--av-encre-2); font-size: .92rem; line-height: 1.55; }
.av-privacy i { color: var(--av-vert); font-size: 1.05rem; }
.av-privacy strong { color: var(--av-encre); }

/* Fiche d'identité d'un lieu : une table de repères, pas une grille de cartes. */
.av-fiche { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 760px; margin: 26px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--av-encre); }
.av-fiche li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--av-filet); }
.av-fiche span { color: var(--av-discret); font-size: .85rem; font-weight: 500; }
.av-fiche strong { color: var(--av-encre); font-size: 1.05rem; font-weight: 650; font-stretch: 90%; }
@media (min-width: 620px) { .av-fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
@media (min-width: 900px) { .av-fiche { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Recherche ─────────────────────────────────────────────────────────── */
.av-search-panel { position: relative; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--av-filet); border-radius: 14px; background: var(--av-surface); box-shadow: 0 1px 0 rgba(23, 34, 42, .04), 0 18px 40px -28px rgba(23, 34, 42, .35); }
.av-search-panel label { display: block; margin-bottom: 9px; color: var(--av-encre); font-size: 1rem; font-weight: 650; }
.av-search-row { display: grid; gap: 8px; }
.av-search-input { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--av-filet-fort); border-radius: 8px; background: var(--av-surface); }
.av-search-input:focus-within { border-color: var(--av-indigo); box-shadow: 0 0 0 3px var(--av-indigo-voile); }
.av-search-input i { color: var(--av-discret); }
.av-search-input input { width: 100%; min-width: 0; padding: 14px 0; border: 0; outline: 0; color: var(--av-encre); background: transparent; font: inherit; font-size: 1.02rem; }
.av-search-input input::placeholder { color: #8b979f; }
.av-search-row > button, .av-dashboard__actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px;
  color: #fff; background: var(--av-indigo); font: inherit; font-weight: 650; cursor: pointer;
}
.av-search-row > button:hover, .av-dashboard__actions button:hover { background: var(--av-indigo-fonce); }
@media (min-width: 761px) { .av-search-row { display: flex; } }
.av-location-button { margin-top: 12px; padding: 6px 0; border: 0; color: var(--av-indigo); background: transparent; font: inherit; font-size: .93rem; font-weight: 600; cursor: pointer; }
.av-location-button:hover { text-decoration: underline; }
.av-search-status { min-height: 20px; margin-top: 6px; color: var(--av-discret); font-size: .9rem; }
.av-search-results { display: grid; gap: 6px; max-height: 260px; margin-top: 10px; overflow: auto; }
.av-search-result { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--av-filet); border-radius: 8px; color: var(--av-encre); text-align: left; background: var(--av-surface); font: inherit; cursor: pointer; }
.av-search-result:hover { border-color: var(--av-indigo); background: var(--av-indigo-voile); }
.av-search-result i:first-child { color: var(--av-indigo); }
.av-search-result strong, .av-search-result small { display: block; }
.av-search-result small { color: var(--av-discret); font-size: .82rem; }

/* ── Sections : rythme vertical commun ─────────────────────────────────── */
.av-workspace { padding-top: 40px; padding-bottom: 24px; }
.av-cities, .av-explainer, .av-questions, .av-geo, .av-prudence, .av-couverture, .av-outils-accueil,
.av-outil-cartes-ville { padding-top: clamp(44px, 6vw, 72px); }
.av-cities, .av-explainer, .av-prudence { padding-bottom: clamp(28px, 4vw, 48px); }

.av-section-heading { display: grid; gap: 10px 40px; margin-bottom: 22px; }
.av-section-heading p { max-width: 52ch; margin: 0; color: var(--av-encre-2); font-size: 1.02rem; line-height: 1.65; }
@media (min-width: 900px) { .av-section-heading { grid-template-columns: 1fr 1fr; align-items: end; } }

.av-map-card h2, .av-section-heading h2, .av-questions h2, .av-geo h2, .av-prudence h2,
.av-explainer h2, .av-couverture h2, .av-outil-cartes-ville h2,
.av-outil-chiffres h2, .av-outil-serie h2, .av-outil-journee h2, .av-outil-calculateur h2,
.av-outil-methode h2, .av-outil-ailleurs h2, .av-outil-garde h2, .av-dashboard__head h2 {
  margin: 6px 0 14px; font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 700; font-stretch: 84%;
  line-height: 1.12; letter-spacing: -.01em;
}
.av-geo h3, .av-geo__grid h3, .av-outil-methode h3 { margin: 26px 0 10px; font-size: 1.15rem; font-weight: 650; font-stretch: 90%; }

.av-questions__intro, .av-geo p, .av-prudence p, .av-outil-chiffres p, .av-outil-methode p,
.av-outil-garde p, .av-outil-serie p {
  max-width: var(--av-mesure); margin: 0 0 14px; color: var(--av-encre-2); font-size: 1.08rem; line-height: 1.75;
}
.av-outil-chiffres p strong, .av-outil-methode p strong, .av-geo p strong { color: var(--av-encre); }

/* ── Avertissements de provenance ──────────────────────────────────────── */
.av-producer-notice { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; padding: 16px 0; border-top: 1px solid var(--av-filet); border-bottom: 1px solid var(--av-filet); }
.av-producer-notice__icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--av-indigo); background: var(--av-indigo-voile); }
.av-producer-notice strong { display: block; color: var(--av-encre); font-size: 1rem; }
.av-producer-notice p { max-width: var(--av-mesure); margin: 4px 0 0; color: var(--av-encre-2); font-family: var(--av-texte); font-size: 1rem; line-height: 1.6; }
.av-producer-line { max-width: 90ch; margin: 0 0 24px; padding-left: 14px; border-left: 3px solid var(--av-indigo); color: var(--av-encre-2); font-family: var(--av-texte); font-size: 1rem; line-height: 1.65; }
.av-producer-line i { color: var(--av-indigo); }
.av-producer-line strong { color: var(--av-encre); }

/* ── Carte ─────────────────────────────────────────────────────────────── */
.av-map-card, .av-panel, .av-dashboard, .av-loading, .av-error {
  border: 1px solid var(--av-filet); border-radius: 14px; background: var(--av-surface);
}
.av-map-card { overflow: hidden; }
.av-map-card__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding: 20px 22px 16px; }
.av-map-card h2 { margin-bottom: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.av-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--av-encre-2); font-size: .88rem; }
.av-legend span { display: inline-flex; align-items: center; gap: 7px; }
.av-dot { width: 10px; height: 10px; border-radius: 50%; }
.av-dot--quake { background: #6d4fb3; }
.av-dot--alert { background: var(--av-orange); }
.av-dot--fire { background: var(--av-rouge); }
#av-map { z-index: 1; width: 100%; height: clamp(360px, 46vw, 560px); background: var(--av-papier-2); }
.av-map-status { padding: 10px 22px; border-top: 1px solid var(--av-filet); color: var(--av-discret); background: var(--av-papier); font-size: .86rem; }
.leaflet-container { font-family: var(--av-titre); }
.leaflet-popup-content-wrapper { border-radius: 8px; }
.av-popup { min-width: 180px; color: var(--av-encre); font-size: .88rem; line-height: 1.45; }
.av-popup strong { display: block; margin-bottom: 3px; }

/* ── Tableau de bord ───────────────────────────────────────────────────── */
.av-dashboard { margin-top: 24px; padding: clamp(18px, 3vw, 30px); }
.av-dashboard__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--av-filet); }
.av-dashboard__head h2 { margin-bottom: 4px; }
.av-dashboard__head p { margin: 0; color: var(--av-discret); font-size: .92rem; }
.av-dashboard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.av-dashboard__actions label { color: var(--av-encre-2); font-size: .9rem; }
.av-dashboard__actions select { min-height: 44px; padding: 0 30px 0 12px; border: 1px solid var(--av-filet-fort); border-radius: 8px; color: var(--av-encre); background: var(--av-surface); font: inherit; }
.av-dashboard__actions button { min-height: 44px; padding: 0 14px; }
#av-refresh { width: 44px; padding: 0; }
#av-share { color: var(--av-indigo); background: var(--av-indigo-voile); }
#av-share:hover { color: #fff; background: var(--av-indigo); }

.av-overall { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border-left: 4px solid var(--av-gris); border-radius: 0 8px 8px 0; background: var(--av-papier); }
.av-overall__signal { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; background: var(--av-gris); }
.av-overall strong { display: block; font-size: 1.05rem; font-weight: 650; }
.av-overall small { color: var(--av-encre-2); font-size: .92rem; }
.av-overall--green { border-left-color: var(--av-vert); } .av-overall--green .av-overall__signal { background: var(--av-vert); }
.av-overall--yellow { border-left-color: var(--av-jaune-vif); } .av-overall--yellow .av-overall__signal { background: var(--av-jaune-vif); }
.av-overall--orange { border-left-color: var(--av-orange); } .av-overall--orange .av-overall__signal { background: var(--av-orange); }
.av-overall--red { border-left-color: var(--av-rouge); } .av-overall--red .av-overall__signal { background: var(--av-rouge); }

.av-summary { margin-bottom: 18px; }
.av-summary__heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.av-summary h3 { margin: 2px 0 0; font-size: 1.25rem; font-weight: 650; }
.av-coverage { color: var(--av-encre-2); font-size: .92rem; }
.av-attention p { max-width: var(--av-mesure); margin: 10px 0 0; font-family: var(--av-texte); font-size: 1.05rem; line-height: 1.6; }
.av-attention__notice { color: #6a4c00; }
.av-attention__calm { color: var(--av-vert); }
.av-source-health { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.av-source-state, .av-source-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--av-filet); border-radius: 999px; color: var(--av-encre-2); background: var(--av-surface); font-size: .82rem; }
.av-source-state--success, .av-source-state--empty { border-color: #bcd9c6; color: #24603d; }
.av-source-state--unavailable, .av-source-state--disabled { border-color: #e5cf8e; color: #6a4c00; }

/* Repères : une colonne de couleur, pas un badge lumineux. */
.av-risk-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .av-risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 993px) { .av-risk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.av-risk-card { --niveau: var(--av-gris); position: relative; display: flex; flex-direction: column; padding: 18px 18px 16px 20px; border: 1px solid var(--av-filet); border-radius: 10px; background: var(--av-surface); box-shadow: inset 4px 0 0 var(--niveau); }
.av-risk-card--green { --niveau: var(--av-vert); }
.av-risk-card--yellow { --niveau: var(--av-jaune-vif); }
.av-risk-card--orange { --niveau: var(--av-orange); }
.av-risk-card--red { --niveau: var(--av-rouge); }
.av-risk-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.av-risk-card__icon { color: var(--av-encre-2); font-size: 1.15rem; }
.av-risk-card__level { display: inline-flex; align-items: center; gap: 6px; color: var(--av-encre); font-size: .86rem; font-weight: 600; }
.av-risk-card__level::before { width: 9px; height: 9px; border-radius: 50%; background: var(--niveau); content: ""; }
.av-risk-card h3 { margin: 12px 0 2px; color: var(--av-encre-2); font-size: .98rem; font-weight: 550; font-stretch: 100%; }
.av-risk-card__value { margin: 0; color: var(--av-encre); font-size: 1.85rem; font-weight: 700; font-stretch: 85%; line-height: 1.1; }
.av-risk-card__detail { margin: 6px 0 0; color: var(--av-encre-2); font-family: var(--av-texte); font-size: .98rem; line-height: 1.5; }
.av-risk-card__meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--av-filet); font-size: .84rem; }
.av-risk-card__meta dt { color: var(--av-discret); font-weight: 500; }
.av-risk-card__meta dd { margin: 0; color: var(--av-encre); }
.av-risk-card__limit { margin: 10px 0 0; color: var(--av-discret); font-family: var(--av-texte); font-size: .92rem; font-style: italic; line-height: 1.5; }

.av-note--differe { display: flex; gap: 10px; margin: 18px 0 0; color: var(--av-encre-2); font-family: var(--av-texte); font-size: .98rem; line-height: 1.55; }
.av-note--differe i { color: var(--av-indigo); }

.av-institutional { margin: 16px 0; padding: 16px 18px; border: 1px solid #ebc9a7; border-radius: 10px; background: #fcf3ea; }
.av-institutional__head { display: flex; gap: 10px; align-items: flex-start; }
.av-institutional__head > i { color: var(--av-orange); font-size: 1.2rem; }
.av-institutional h3 { margin: 0; font-size: 1.05rem; font-weight: 650; }
.av-institutional p { margin: 2px 0 0; color: var(--av-encre-2); font-size: .92rem; }
#av-institutional-list article { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 15px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #ebc9a7; }
#av-institutional-list strong, #av-institutional-list small { display: block; }
#av-institutional-list small { margin-top: 2px; color: var(--av-encre-2); font-size: .86rem; }
#av-institutional-list a { font-size: .9rem; font-weight: 600; white-space: nowrap; }

.av-details-toggle { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin: 18px 0 0; border: 1px solid var(--av-filet-fort); border-radius: 8px; color: var(--av-indigo); background: var(--av-surface); font: inherit; font-weight: 600; cursor: pointer; }
.av-details-toggle:hover { border-color: var(--av-indigo); background: var(--av-indigo-voile); }

.av-reading-guide { margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--av-filet); }
.av-reading-guide__head { display: flex; align-items: flex-start; gap: 10px; }
.av-reading-guide__head > i { color: var(--av-indigo); }
.av-reading-guide h3 { margin: 0; font-size: 1.1rem; font-weight: 650; }
.av-reading-guide__head p { margin: 3px 0 0; color: var(--av-encre-2); font-size: .95rem; }
.av-reading-guide__grid { display: grid; grid-template-columns: 1fr; gap: 0 28px; margin-top: 10px; }
@media (min-width: 760px) { .av-reading-guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 993px) { .av-reading-guide__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.av-reading-guide__grid p { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--av-filet); }
.av-reading-guide__grid strong, .av-reading-guide__grid span { display: block; }
.av-reading-guide__grid strong { font-size: .98rem; font-weight: 650; }
.av-reading-guide__grid span { margin-top: 3px; color: var(--av-encre-2); font-family: var(--av-texte); font-size: .96rem; line-height: 1.5; }

.av-chart-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .av-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .av-panel--wide { grid-column: 1 / -1; } }
.av-panel { min-width: 0; padding: 18px; }
.av-panel h3 { margin: 0 0 12px; font-size: 1.02rem; font-weight: 650; font-stretch: 95%; }
.av-panel h3 i { margin-right: 6px; color: var(--av-indigo); }
.av-chart { position: relative; height: 240px; }
.av-chart--small { height: 190px; }
.av-panel__note { margin: 10px 0 0; color: var(--av-discret); font-family: var(--av-texte); font-size: .92rem; line-height: 1.5; }

.av-data-table { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--av-filet); }
.av-data-table summary { cursor: pointer; padding: 10px 0; color: var(--av-indigo); font-size: .95rem; font-weight: 600; }
.av-table-wrap { max-height: 340px; margin-top: 6px; overflow: auto; }
.av-table-wrap--libre { max-height: none; }
.av-table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.av-table-wrap th, .av-table-wrap td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--av-filet); text-align: left; white-space: nowrap; }
.av-table-wrap thead th { position: sticky; top: 0; z-index: 1; color: var(--av-discret); background: var(--av-surface); font-weight: 550; }
.av-table-wrap th[scope="row"] { color: var(--av-encre); font-weight: 600; }
.av-table-wrap td { color: var(--av-encre-2); }

.av-nearby-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .av-nearby-grid { grid-template-columns: 1fr 1fr; } }
.av-nearby { padding: 16px 18px; border: 1px solid var(--av-filet); border-radius: 10px; background: var(--av-surface); }
.av-nearby h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 650; }
.av-nearby ul { margin: 0; padding: 0; list-style: none; }
.av-nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--av-filet); color: var(--av-encre); font-size: .92rem; }
.av-nearby li span:last-child { color: var(--av-discret); white-space: nowrap; }

.av-warnings { margin-top: 14px; padding: 12px 14px; border: 1px solid #e5cf8e; border-radius: 8px; color: #6a4c00; background: #fbf5e2; font-size: .92rem; }
.av-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; color: var(--av-discret); font-size: .88rem; }
.av-sources a { padding: 4px 10px; border: 1px solid var(--av-filet); border-radius: 999px; text-decoration: none; }
.av-ephemeral { max-width: var(--av-mesure); margin: 16px 0 0; color: var(--av-discret); font-family: var(--av-texte); font-size: .95rem; line-height: 1.55; }
.av-ephemeral i { margin-right: 6px; color: var(--av-vert); }
.av-loading { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 18px; }
.av-loading strong, .av-loading small { display: block; }
.av-loading small { margin-top: 3px; color: var(--av-discret); }
.av-spinner { width: 26px; height: 26px; border: 3px solid var(--av-indigo-voile); border-top-color: var(--av-indigo); border-radius: 50%; animation: av-tour .8s linear infinite; }
@keyframes av-tour { to { transform: rotate(360deg); } }
.av-error { margin-top: 20px; padding: 14px 16px; border-color: #e7b3ae; color: #7d1b15; background: #fbeceb; }

/* ── Villes : des entrées d'index, pas des tuiles ──────────────────────── */
.av-city-grid { display: grid; grid-template-columns: 1fr; gap: 0 28px; border-top: 2px solid var(--av-encre); }
@media (min-width: 560px) { .av-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .av-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .av-city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.av-city-grid a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--av-filet); color: var(--av-encre); text-decoration: none; }
.av-city-grid a:hover strong { color: var(--av-indigo); text-decoration: underline; }
.av-city-grid a > span { grid-row: 1 / 3; color: var(--av-indigo); font-size: 1.05rem; }
.av-city-grid strong { font-size: 1.02rem; font-weight: 600; }
.av-city-grid small { grid-column: 2; color: var(--av-discret); font-size: .86rem; }
.av-city-grid a > i { grid-column: 3; grid-row: 1 / 3; color: var(--av-filet-fort); font-size: .85rem; }
.av-all-cities { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 1rem; font-weight: 600; }
.av-capital-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; color: var(--av-indigo); background: var(--av-indigo-voile); font-size: .76rem; font-weight: 600; }
.av-city-climat { margin-left: auto; color: var(--av-discret) !important; font-size: .86rem; }

.av-city-directory { padding-top: 40px; padding-bottom: 72px; }
.av-city-directory header { max-width: 760px; margin-bottom: 28px; }
.av-city-directory h1, .av-methodology h1 { margin: 12px 0 14px; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; font-stretch: 82%; line-height: 1.04; letter-spacing: -.015em; }
.av-city-directory header p, .av-directory-note { max-width: var(--av-mesure); color: var(--av-encre-2); font-size: 1.08rem; line-height: 1.7; }
.av-directory-stats { font-family: var(--av-titre) !important; font-size: .98rem !important; }
.av-directory-stats strong { color: var(--av-encre); }
.av-directory-note { margin-top: 28px; }
.av-country-index { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 22px 0 30px; padding: 14px 0; border-top: 1px solid var(--av-filet); border-bottom: 1px solid var(--av-filet); }
.av-country-index a { display: inline-flex; min-height: 36px; align-items: center; padding: 4px 10px; border-radius: 6px; color: var(--av-encre-2); font-size: .92rem; text-decoration: none; }
.av-country-index a:hover { color: var(--av-indigo); background: var(--av-indigo-voile); }
.av-country-block { padding-top: 26px; scroll-margin-top: 16px; }
.av-country-block h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--av-encre); font-size: 1.45rem; font-weight: 700; font-stretch: 84%; }
.av-country-block h2 .av-muted { font-size: .9rem; font-weight: 450; font-stretch: 100%; }
.av-country-cities { display: grid; grid-template-columns: 1fr; gap: 0 28px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .av-country-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .av-country-cities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.av-country-cities li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--av-filet); }
.av-country-cities a:first-child { display: flex; min-height: 46px; align-items: center; color: var(--av-encre); font-size: 1.02rem; font-weight: 550; text-decoration: none; }
.av-country-cities a:first-child:hover { color: var(--av-indigo); text-decoration: underline; }

/* ── Questions, géographie, prudence ──────────────────────────────────── */
.av-questions__list { max-width: 80ch; margin: 0; padding: 0; }
.av-questions__list dt { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--av-filet); color: var(--av-encre); font-size: 1.15rem; font-weight: 650; font-stretch: 92%; line-height: 1.35; }
.av-questions__list dt:first-child { margin-top: 8px; }
.av-questions__list dd { margin: 8px 0 0; color: var(--av-encre-2); font-size: 1.08rem; line-height: 1.72; }
.av-questions__source { display: block; margin-top: 6px; color: var(--av-discret); font-family: var(--av-titre); font-size: .86rem; }

.av-geo__grid { display: grid; grid-template-columns: 1fr; gap: 10px 48px; margin-top: 18px; }
@media (min-width: 900px) { .av-geo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.av-distances { margin: 0; padding: 0; list-style: none; }
.av-distances li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 2px 0; border-bottom: 1px solid var(--av-filet); }
.av-distances a { display: inline-flex; min-height: 42px; align-items: center; color: var(--av-encre); font-size: 1rem; font-weight: 550; text-decoration: none; }
.av-distances a:hover { color: var(--av-indigo); text-decoration: underline; }
.av-distances span { color: var(--av-discret); font-size: .9rem; }

.av-reperes { width: 100%; margin: 8px 0 22px; border-collapse: collapse; font-size: .98rem; }
.av-reperes caption { caption-side: top; padding-bottom: 10px; color: var(--av-discret); font-family: var(--av-texte); font-size: .95rem; font-style: italic; text-align: left; }
.av-reperes th, .av-reperes td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--av-filet); text-align: left; vertical-align: top; }
.av-reperes thead th { border-bottom: 2px solid var(--av-encre); color: var(--av-discret); font-size: .88rem; font-weight: 550; }
.av-reperes tbody th { width: 38%; color: var(--av-encre); font-weight: 600; }
.av-reperes td { color: var(--av-encre-2); line-height: 1.55; }
.av-reperes--plages th[scope="row"], .av-reperes--semaine th[scope="row"] { width: auto; }
.av-reperes--semaine { display: block; overflow-x: auto; white-space: nowrap; }
.av-ligne-active th, .av-ligne-active td { color: var(--av-encre); background: var(--av-indigo-voile); }

.av-prudence { margin-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--av-encre); }
.av-prudence__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-family: var(--av-titre) !important; font-size: .98rem !important; }
.av-prudence__links a { font-weight: 600; }

/* ── Outils : verdict, chiffres, séries ───────────────────────────────── */
.av-verdict { --niveau: var(--av-gris); max-width: 76ch; margin-top: 26px; padding: 20px 22px; border: 1px solid var(--av-filet); border-radius: 10px; background: var(--av-surface); box-shadow: inset 5px 0 0 var(--niveau); }
.av-verdict strong { display: block; color: var(--av-encre); font-size: clamp(1.18rem, 2vw, 1.4rem); font-weight: 650; font-stretch: 90%; line-height: 1.3; }
.av-verdict p { margin: 10px 0 0; color: var(--av-encre-2); font-size: 1.06rem; line-height: 1.7; }
.av-verdict p strong { display: inline; font-family: var(--av-titre); font-size: 1em; }
.av-verdict small { display: block; margin-top: 12px; color: var(--av-discret); font-size: .88rem; line-height: 1.5; }
.av-verdict--rempli, .av-verdict--green { --niveau: var(--av-vert); }
.av-verdict--en_attente, .av-verdict--yellow { --niveau: var(--av-jaune-vif); }
.av-verdict--rompu, .av-verdict--orange { --niveau: var(--av-orange); }
.av-verdict--absent, .av-verdict--red { --niveau: var(--av-rouge); }
.av-outil-domaine { max-width: 76ch; margin: 14px 0 0; padding: 12px 16px; border-radius: 8px; color: var(--av-encre-2); background: var(--av-papier-2); font-size: 1rem; line-height: 1.65; }
.av-outil-domaine--hors { color: #5c4a10; background: #f8f0d6; }
.av-outil-domaine i { color: var(--av-ocre); }

.av-outil-chiffres, .av-outil-serie, .av-outil-journee, .av-outil-calculateur,
.av-outil-methode, .av-outil-ailleurs, .av-outil-garde { padding-top: clamp(40px, 5vw, 64px); }
.av-outil-garde { padding-bottom: clamp(36px, 5vw, 64px); }
.av-fiche--large { border-top-width: 1px; border-top-color: var(--av-filet); }

.av-citation { max-width: 76ch; margin: 0 0 16px; padding: 4px 0 4px 20px; border-left: 3px solid var(--av-indigo); color: var(--av-encre); font-size: 1.08rem; line-height: 1.72; }
.av-formule { max-width: 76ch; margin: 0 0 16px; padding: 14px 18px; overflow-x: auto; border-radius: 8px; color: var(--av-encre); background: var(--av-papier-2); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.7; }
.av-comparaison { display: grid; grid-template-columns: 1fr; gap: 0 28px; max-width: 76ch; margin: 0 0 16px; padding: 0; list-style: none; }
@media (min-width: 620px) { .av-comparaison { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.av-comparaison li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--av-filet); }
.av-comparaison span { color: var(--av-encre-2); font-family: var(--av-texte); }
.av-comparaison strong { color: var(--av-encre); font-size: 1.05rem; font-weight: 650; }

.av-barres { display: flex; align-items: flex-end; gap: 2px; height: 180px; margin: 6px 0 10px; padding: 0 0 28px; overflow-x: auto; list-style: none; border-bottom: 1px solid var(--av-filet); }
.av-barre { position: relative; flex: 0 0 15px; min-width: 15px; height: 100%; display: flex; align-items: flex-end; }
@media (min-width: 900px) { .av-barre { flex: 1 1 auto; } }
.av-barre::after { content: ""; width: 100%; height: var(--hauteur, 2%); min-height: 2px; border-radius: 2px 2px 0 0; background: var(--av-pluie); }
.av-barre--prevu::after { background: repeating-linear-gradient(135deg, var(--av-pluie) 0 3px, #8fb3d9 3px 6px); }
.av-barre--sec::after { background: var(--av-filet-fort); }
.av-barre--bascule { margin-left: 4px; padding-left: 4px; border-left: 1px dashed var(--av-encre-2); }
.av-barre__jour { position: absolute; bottom: -26px; left: 50%; color: var(--av-discret); font-size: .66rem; white-space: nowrap; transform: translateX(-50%) rotate(-55deg); transform-origin: top left; }
.av-outil-serie__note { font-size: .95rem !important; }

.av-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 3px; margin: 4px 0 14px; }
.av-heure { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; padding: 4px 2px; border-radius: 6px; background: var(--av-papier-2); }
.av-heure b { color: var(--av-discret); font-size: .7rem; font-weight: 550; }
.av-heure i { color: var(--av-encre); font-size: .84rem; font-style: normal; font-weight: 650; }
.av-heure--green { background: #dcecdf; }
.av-heure--yellow { background: #f6ecc4; }
.av-heure--orange { background: #f5dcc6; }
.av-heure--red { background: #f2cfcb; }
.av-heure--passee { opacity: .45; }

/* Calculateur d'eau de pluie */
.av-eau-form { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 8px 0 22px; }
@media (min-width: 620px) { .av-eau-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .av-eau-form { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.av-eau-form label { display: block; margin-bottom: 6px; color: var(--av-encre); font-size: .98rem; font-weight: 600; }
.av-eau-form small { display: block; margin-top: 6px; color: var(--av-discret); font-family: var(--av-texte); font-size: .9rem; line-height: 1.45; }
.av-champ { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--av-filet-fort); border-radius: 8px; background: var(--av-surface); }
.av-champ:focus-within { border-color: var(--av-indigo); box-shadow: 0 0 0 3px var(--av-indigo-voile); }
.av-champ input { width: 100%; min-width: 0; min-height: 48px; padding: 0; border: 0; outline: 0; color: var(--av-encre); background: transparent; font: inherit; font-size: 1.1rem; font-weight: 600; }
.av-champ span { color: var(--av-discret); font-size: .9rem; }
.av-eau-form select { width: 100%; min-height: 50px; padding: 0 12px; border: 1px solid var(--av-filet-fort); border-radius: 8px; color: var(--av-encre); background: var(--av-surface); font: inherit; }
.av-eau-resultat { display: grid; grid-template-columns: 1fr; gap: 0 28px; border-top: 2px solid var(--av-encre); }
@media (min-width: 620px) { .av-eau-resultat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.av-eau-resultat > div { padding: 16px 0; border-bottom: 1px solid var(--av-filet); }
.av-eau-resultat span { display: block; color: var(--av-discret); font-size: .9rem; }
.av-eau-resultat strong { display: block; margin: 4px 0 2px; color: var(--av-pluie); font-size: 2.3rem; font-weight: 700; font-stretch: 82%; line-height: 1; }
.av-eau-resultat small { color: var(--av-encre-2); font-size: .9rem; }
.av-eau-detail { max-width: 76ch; margin-top: 12px; color: var(--av-encre-2); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.6; }

.av-ma-ville { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 22px; color: var(--av-encre-2); font-size: .95rem; }
.av-ma-ville a { min-height: 36px; display: inline-flex; align-items: center; font-weight: 600; }

/* Catalogue des outils : des notices, séparées par des filets. */
.av-outil-cartes { display: grid; grid-template-columns: 1fr; gap: 0 40px; padding-top: clamp(32px, 4vw, 48px); }
@media (min-width: 760px) { .av-outil-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.av-outil-cartes--accueil { padding-top: 6px; }
.av-outil-carte { padding: 22px 0 24px; border-top: 2px solid var(--av-encre); }
.av-outil-carte__icone { display: inline-grid; width: 40px; height: 40px; place-items: center; border-radius: 8px; color: var(--av-indigo); background: var(--av-indigo-voile); font-size: 1.15rem; }
.av-outil-carte h2, .av-outil-carte h3 { margin: 14px 0 6px; font-size: 1.45rem; font-weight: 700; font-stretch: 84%; }
.av-outil-carte h3 a { color: var(--av-encre); text-decoration: none; }
.av-outil-carte h3 a:hover { color: var(--av-indigo); text-decoration: underline; }
.av-outil-carte__question { margin: 0 0 8px; color: var(--av-indigo) !important; font-family: var(--av-titre) !important; font-size: 1.02rem; font-weight: 550; }
.av-outil-carte p { max-width: 60ch; margin: 0 0 10px; color: var(--av-encre-2); font-size: 1.04rem; line-height: 1.65; }
.av-outil-carte__reseau { display: flex; align-items: center; gap: 8px; color: var(--av-discret) !important; font-family: var(--av-titre) !important; font-size: .9rem !important; }
.av-outil-carte__villes { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; }
.av-outil-carte__villes a { min-height: 32px; display: inline-flex; align-items: center; font-size: .95rem; }

.av-outil-ailleurs { display: grid; grid-template-columns: 1fr; gap: 28px 48px; }
@media (min-width: 900px) { .av-outil-ailleurs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.av-outil-ailleurs__lien { margin-top: 14px; font-size: 1rem; }
.av-outil-ailleurs__lien a { font-weight: 600; }
.av-outil-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--av-filet); }
.av-outil-liste a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 2px; border-bottom: 1px solid var(--av-filet); color: var(--av-encre); text-decoration: none; }
.av-outil-liste a:hover strong { color: var(--av-indigo); text-decoration: underline; }
.av-outil-liste i { width: 22px; color: var(--av-indigo); font-size: 1.15rem; text-align: center; }
.av-outil-liste strong { display: block; font-size: 1.04rem; font-weight: 600; }
.av-outil-liste small { display: block; margin-top: 2px; color: var(--av-encre-2); font-family: var(--av-texte); font-size: .95rem; line-height: 1.45; }
.av-outil-liste--large { display: grid; grid-template-columns: 1fr; gap: 0 28px; }
@media (min-width: 760px) { .av-outil-liste--large { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Accueil : explication et couverture ──────────────────────────────── */
.av-explainer { display: grid; grid-template-columns: 1fr; gap: 28px 64px; align-items: start; border-top: 1px solid var(--av-filet); margin-top: 24px; }
@media (min-width: 900px) { .av-explainer { grid-template-columns: 1.1fr .9fr; } }
.av-explainer p { max-width: 60ch; color: var(--av-encre-2); font-size: 1.08rem; line-height: 1.72; }
.av-explainer a { font-weight: 600; }
.av-explainer ol { margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.av-explainer li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--av-filet); }
.av-explainer li > span { flex: 0 0 auto; color: var(--av-indigo); font-size: 1.6rem; font-weight: 700; font-stretch: 80%; line-height: 1; }
.av-explainer strong, .av-explainer small { display: block; }
.av-explainer strong { font-size: 1.05rem; font-weight: 600; }
.av-explainer small { margin-top: 2px; color: var(--av-encre-2); font-family: var(--av-texte); font-size: .98rem; }

.av-couverture__grille { display: grid; grid-template-columns: 1fr; gap: 0 36px; margin: 6px 0 18px; border-top: 2px solid var(--av-encre); }
@media (min-width: 620px) { .av-couverture__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .av-couverture__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.av-couverture__grille > div { padding: 16px 0 18px; border-bottom: 1px solid var(--av-filet); }
.av-couverture__grille h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 650; font-stretch: 92%; }
.av-couverture__grille p { margin: 0; color: var(--av-encre-2); font-size: 1rem; line-height: 1.6; }

/* ── Méthodologie ─────────────────────────────────────────────────────── */
.av-methodology { max-width: 900px; padding-top: 44px; padding-bottom: 72px; }
.av-methodology > header { margin-bottom: 24px; }
.av-methodology > header p { max-width: var(--av-mesure); color: var(--av-encre-2); font-size: 1.12rem; line-height: 1.72; }
.av-sommaire { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 28px; padding: 12px 0; border-top: 1px solid var(--av-filet); border-bottom: 1px solid var(--av-filet); color: var(--av-filet-fort); font-size: .95rem; }
.av-sommaire a { font-weight: 550; }
.av-method-grid { display: grid; grid-template-columns: 1fr; gap: 0 40px; }
@media (min-width: 760px) { .av-method-grid { grid-template-columns: 1fr 1fr; } }
.av-method-card { margin: 0; padding: 28px 0 8px; border-top: 2px solid var(--av-encre); scroll-margin-top: 16px; }
.av-method-card + .av-method-card, .av-method-grid + .av-method-card { margin-top: 28px; }
.av-method-card h2 { margin: 0 0 14px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; font-stretch: 84%; }
.av-method-card p, .av-method-card li, .av-method-card dd { max-width: var(--av-mesure); color: var(--av-encre-2); font-size: 1.06rem; line-height: 1.72; }
.av-method-card ol { padding-left: 1.3em; }
.av-method-card li { margin-bottom: 6px; }
.av-method-card dl { margin: 0; }
.av-method-card dt { margin-top: 16px; color: var(--av-encre); font-size: 1.05rem; font-weight: 650; }
.av-method-card dd { margin: 4px 0 0; }
.av-level-list { display: grid; gap: 8px; padding: 0 !important; list-style: none; }
.av-level-list li { display: flex; align-items: baseline; gap: 10px; }
.av-level { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; }
.av-level--green { background: var(--av-vert); }
.av-level--yellow { background: var(--av-jaune-vif); }
.av-level--orange { background: var(--av-orange); }
.av-level--red { background: var(--av-rouge); }
.av-level--unknown { background: var(--av-gris); }
.av-back { display: inline-flex; gap: 8px; margin-top: 28px; font-weight: 600; }

/* ── Climat : diagramme ombrothermique ────────────────────────────────── */
.av-climat-graphe figure { max-width: 900px; margin: 10px 0 0; padding: 18px 18px 14px; border: 1px solid var(--av-filet); border-radius: 12px; background: var(--av-surface); }
.av-climat-svg { display: block; width: 100%; height: auto; max-height: 380px; font-family: var(--av-titre); }
.av-climat-grille { stroke: #e3e8e4; stroke-width: 1; }
.av-climat-t, .av-climat-p, .av-climat-mois { font-size: 12px; fill: var(--av-discret); }
.av-climat-t { fill: #a4511a; }
.av-climat-p { fill: var(--av-pluie); }
.av-climat-barre { fill: var(--av-pluie); }
.av-climat-barre--sec { fill: #d9a75a; }
.av-climat-courbe { fill: none; stroke: #b6541a; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.av-climat-graphe figcaption { margin-top: 10px; color: var(--av-discret); font-family: var(--av-texte); font-size: .92rem; font-style: italic; line-height: 1.5; }
.av-climat-table { min-width: 700px; }
.av-climat-sec th { color: var(--av-ocre) !important; }
.av-climat-actions { margin-top: 18px; }
a.av-bouton, .av-outil-serie a.av-bouton { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 8px; color: #fff; background: var(--av-indigo); font-weight: 600; text-decoration: none; }
a.av-bouton:hover, a.av-bouton:focus-visible { color: #fff; background: var(--av-indigo-fonce); }
.av-citer .av-citation { word-break: break-word; }
@media (max-width: 600px) {
  .av-climat-graphe figure { padding: 10px 8px; }
  .av-climat-t, .av-climat-p, .av-climat-mois { font-size: 19px; }
}

/* ── Pied de page ─────────────────────────────────────────────────────── */
.av-footer { margin-top: 32px; padding: 40px 0 28px; color: #c9d3d8; background: #17222a; font-size: .95rem; }
.av-footer__grid { display: grid; grid-template-columns: 1fr; gap: 24px 48px; }
@media (min-width: 760px) { .av-footer__grid { grid-template-columns: 1fr 1fr; } }
.av-footer strong { color: #fff; font-weight: 650; }
.av-footer p { max-width: 62ch; margin: 6px 0 0; line-height: 1.6; }
.av-footer a { color: #b9c9ee; }
.av-footer a:hover { color: #fff; }
.av-footer__links { margin: 22px 0 0 !important; }
.av-footer__warning { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); color: #a9b5bc; }

/* ── Mouvement réduit ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .av-spinner { animation-duration: 2.4s; }
  .av-body * { scroll-behavior: auto !important; }
}

/* ── Impression : une fiche lisible, sans la carte ────────────────────── */
@media print {
  .av-site-header nav, .bntic-appbar, #av-map, .av-map-card, .av-search-panel, .av-footer,
  .bntic-facebook-follow, .av-dashboard__actions, .av-details-toggle { display: none !important; }
  .av-body { background: #fff; }
  .av-hero, .av-outil-tete { background-image: none; }
}

/* ── Téléphone : le filigrane recule derrière le titre, la fiche passe à deux colonnes ── */
@media (max-width: 759.98px) {
  .av-hero, .av-outil-tete { background-size: 620px auto; background-position: right -300px top -80px; }
  .av-hero::before, .av-outil-tete::before { background: linear-gradient(180deg, rgba(244, 246, 243, .55), var(--av-papier) 55%); }
}
@media (min-width: 360px) and (max-width: 619.98px) {
  .av-fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .av-fiche strong { font-size: 1rem; }
}

/* ── Texte réservé aux lecteurs d'écran ───────────────────────────────── */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ── Page de ville : l'essentiel pour s'organiser ─────────────────────── */
.av-essentiel, .av-annee, .av-bntic { padding-top: clamp(40px, 5vw, 64px); }
.av-essentiel h2, .av-annee h2, .av-bntic h2 { margin: 0 0 18px; font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 700; font-stretch: 84%; line-height: 1.12; }
.av-essentiel__grille { display: grid; grid-template-columns: 1fr; gap: 0 32px; margin: 0; border-top: 2px solid var(--av-encre); }
@media (min-width: 640px) { .av-essentiel__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .av-essentiel__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.av-essentiel__grille > div { padding: 14px 0 16px; border-bottom: 1px solid var(--av-filet); }
.av-essentiel__grille dt { color: var(--av-discret); font-size: .9rem; font-weight: 550; }
.av-essentiel__grille dd { margin: 4px 0 0; color: var(--av-encre-2); font-family: var(--av-texte); font-size: 1.05rem; line-height: 1.55; }
.av-essentiel__grille dd strong { color: var(--av-encre); font-family: var(--av-titre); font-weight: 650; }
.av-essentiel__source { margin: 12px 0 0; color: var(--av-discret); font-size: .86rem; }

/* L'année en douze colonnes : la pluie en barre, la chaleur en chiffre. */
.av-annee__intro { max-width: var(--av-mesure); margin: 0 0 18px; color: var(--av-encre-2); font-family: var(--av-texte); font-size: 1.05rem; line-height: 1.7; }
.av-annee__mois { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: 0 0 8px; padding: 0; list-style: none; }
.av-annee__mois li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 190px; padding: 8px 2px 6px; border-radius: 6px; background: var(--av-surface); border: 1px solid var(--av-filet); }
.av-annee__barre { display: block; width: 62%; height: calc(var(--h, 3) * 1.05px); max-height: 105px; min-height: 3px; margin-bottom: 8px; border-radius: 3px 3px 0 0; background: var(--av-pluie); }
.av-annee__sec .av-annee__barre { background: #d9a75a; }
.av-annee__mois b { color: var(--av-encre); font-size: 1.02rem; font-weight: 700; font-stretch: 85%; }
.av-annee__mois small { color: var(--av-discret); font-size: .72rem; white-space: nowrap; }
.av-annee__nom { margin-top: 6px; color: var(--av-encre-2); font-size: .8rem; font-weight: 550; }
.av-annee__courant { border: 2px solid var(--av-indigo) !important; }
.av-annee__courant .av-annee__nom { color: var(--av-indigo); font-weight: 700; }
@media (max-width: 759.98px) {
  .av-annee__mois { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .av-annee__mois li { min-height: 170px; }
}
.av-annee h3, .av-bntic h3 { margin: 30px 0 12px; font-size: 1.2rem; font-weight: 650; font-stretch: 92%; }
.av-reperes-pratiques { display: grid; grid-template-columns: 1fr; gap: 0 36px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--av-filet); }
@media (min-width: 900px) { .av-reperes-pratiques { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.av-reperes-pratiques li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--av-filet); }
.av-reperes-pratiques i { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--av-indigo); background: var(--av-indigo-voile); font-size: 1.05rem; }
.av-reperes-pratiques strong { display: block; font-size: 1.05rem; font-weight: 650; }
.av-reperes-pratiques p { margin: 4px 0 0; color: var(--av-encre-2); font-family: var(--av-texte); font-size: 1.02rem; line-height: 1.65; }
.av-reperes-pratiques a { font-family: var(--av-titre); font-size: .95rem; font-weight: 600; white-space: nowrap; }

/* Autour de la ville, ailleurs sur BNTIC News. */
.av-bntic__grille { display: grid; grid-template-columns: 1fr; gap: 8px 40px; }
@media (min-width: 900px) { .av-bntic__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.av-bntic__grille h3 { margin: 10px 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--av-encre); font-size: 1.12rem; }
.av-bntic__grille h3 i { margin-right: 6px; color: var(--av-indigo); }
.av-bntic__liste { margin: 0 0 18px; padding: 0; list-style: none; }
.av-bntic__liste li { padding: 10px 0; border-bottom: 1px solid var(--av-filet); }
.av-bntic__liste a, .av-bntic__liste strong { display: block; color: var(--av-encre); font-size: 1.02rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.av-bntic__liste a:hover { color: var(--av-indigo); text-decoration: underline; }
.av-bntic__liste span { display: block; margin-top: 3px; color: var(--av-discret); font-size: .88rem; }
.av-bntic__pays { margin-top: 26px !important; }
