/* Akvido — feuille de style unique.
   Palette : bleu ciel sur fond clair.
   Les couleurs de qualité reprennent la sémantique européenne
   (Excellent / Bonne / Suffisante / Insuffisante). */

:root {
  --bg:        #F1F7FC;
  --surface:   #FFFFFF;
  --surface-2: #E3EFF9;
  --ink:       #0E1A20;
  --muted:     #4C606B;
  --faint:     #7B8D97;
  --line:      #D2E3F1;
  /* Bleu ciel soutenu : assez lumineux pour évoquer l'eau, assez dense
     pour rester lisible en blanc sur bouton et en lien sur le fond. */
  --accent:      #0B65B4;
  --accent-2:    #094F94;   /* survol : on fonce, pour ne pas perdre le contraste */
  --accent-light:#7CC4F2;   /* décoratif uniquement, jamais sous du texte */
  --accent-sk:   #0B65B414;
  --on-accent:   #FFFFFF;

  --q-exc:  #1F6FB2;
  --q-good: #2E7D52;
  --q-suff: #8F6A14;
  --q-poor: #A03A2B;
  --q-none: #7B8D97;
  /* Variante foncée du « non classé », réservée aux pastilles qui portent
     un chiffre en blanc : #7B8D97 ne tient que 3,4:1, insuffisant pour du
     texte. Bleu-gris, jamais verdâtre. */
  --q-none-d: #5E7079;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(14,26,32,.05), 0 12px 30px -20px rgba(14,26,32,.35);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

/* Thème clair assumé et unique : le sujet, c'est l'eau claire.
   Aucun bloc sombre — toutes les couleurs sont peintes explicitement
   pour que la page tienne quel que soit le réglage du visiteur. */
:root { color-scheme: light; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.017em; text-wrap: balance; margin: 0; }
p { margin: 0; }

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

.sr, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
  padding: 8px 14px; background: var(--accent); color: var(--on-accent); z-index: 50;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- en-tête ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: 1080px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 16px; height: 16px; border-radius: 50% 50% 50% 2px;
  transform: rotate(45deg);
  background: linear-gradient(140deg, #8ACBF5, #0B65B4);
}
.brand-name { font-weight: 680; letter-spacing: -.02em; font-size: 18px; }
.nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.langs { display: flex; gap: 4px; }
.lang {
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 4px 7px; border-radius: 2px;
  border: 1px solid var(--line);
}
.lang.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* ---------- héros ----------
   Dégradé vertical bleu ciel → blanc, qui se fond dans le fond de page.
   Le texte reste foncé : sur un fond clair on gagne beaucoup en lisibilité
   (8:1 en haut du dégradé, 13:1 en bas) et la page respire davantage. */
.hero {
  padding: 84px 0 64px;
  background: linear-gradient(180deg, #93CDF2 0%, #C4E4F7 42%, #E8F3FA 74%, var(--bg) 100%);
  color: #0A2B45;
}
.hero .eyebrow { color: #0B5AA0; }
.hero h1 { color: #08243B; }
.hero .lede { color: #16456B; }
.hero .micro { color: #3D6A8C; }
.hero .stats b { color: #08243B; }
.hero .stats span { color: #3D6A8C; }
.hero .btn-ghost { background: rgba(255, 255, 255, .78); border-color: #A9D3EE; }
.hero .btn-ghost:hover { border-color: var(--accent); background: #fff; }
.hero-in { display: flex; flex-direction: column; gap: 18px; }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
h1 { font-size: clamp(31px, 5.4vw, 50px); font-weight: 660; max-width: 17ch; }
.lede { font-size: 18.5px; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.micro { font-size: 13.5px; color: var(--faint); }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 580; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s;
}
/* Dégradé bleu franc. Le point le plus clair (#1B84DC) garde 4,6:1
   avec le texte blanc : au-delà, le libellé du bouton devient illisible
   en plein soleil. */
.btn-primary {
  color: var(--on-accent);
  background: var(--accent);
  background-image: linear-gradient(150deg, #1B84DC 0%, #1176CB 42%, #0A5AA8 100%);
}
.btn-primary:hover {
  background-image: linear-gradient(150deg, #1176CB 0%, #0A5AA8 45%, #084A8C 100%);
}
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

.stats { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13.5px; color: var(--faint); }

/* ---------- outil de recherche ---------- */
.tool { padding: 8px 0 60px; }
.panes { display: grid; gap: 18px; }
@media (min-width: 820px) { .panes { grid-template-columns: 1fr 1fr; } }
.pane {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.pane h2 { font-size: 20px; font-weight: 640; }
.hint { font-size: 14.5px; color: var(--muted); }
.find { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.find input {
  width: 100%; min-width: 0; padding: 11px 13px; font: inherit; font-size: 15px;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.find input::placeholder { color: var(--faint); }

/* ---------- autocomplétion des communes ---------- */
.ac { position: relative; flex: 1 1 210px; min-width: 0; }
.suggest {
  position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; right: 0;
  margin: 0; padding: 4px; list-style: none; max-height: 274px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.suggest[hidden] { display: none; }
.suggest li {
  padding: 8px 10px; border-radius: 2px; cursor: pointer;
  display: flex; align-items: baseline; gap: 8px; font-size: 14.5px;
}
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--accent-sk); }
.suggest li[aria-selected="true"] { outline: 1px solid var(--accent); outline-offset: -1px; }
.suggest .s-nom { font-weight: 570; color: var(--ink); }
.suggest .s-dep { color: var(--muted); font-size: 13px; }
.suggest .s-cp {
  margin-left: auto; font-family: var(--mono); font-size: 12px;
  color: var(--faint); font-variant-numeric: tabular-nums;
}
.suggest .s-vide { color: var(--faint); cursor: default; }
.suggest .s-vide:hover { background: none; }
.find .micro { flex-basis: 100%; }
.out:empty { display: none; }
.out { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }

.res {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 6px;
}
.res-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res-name { font-weight: 620; }
.res-meta { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.res-params { font-size: 13.5px; color: var(--muted); }
.msg { font-size: 14.5px; color: var(--muted); }
.msg.err { color: var(--q-poor); }

.q {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 2px; white-space: nowrap; text-transform: uppercase;
}
.q-exc  { color: var(--q-exc);  background: color-mix(in srgb, var(--q-exc) 12%, transparent); }
.q-good { color: var(--q-good); background: color-mix(in srgb, var(--q-good) 12%, transparent); }
.q-suff { color: var(--q-suff); background: color-mix(in srgb, var(--q-suff) 14%, transparent); }
.q-poor { color: var(--q-poor); background: color-mix(in srgb, var(--q-poor) 12%, transparent); }
.q-none { color: var(--q-none); background: color-mix(in srgb, var(--q-none) 14%, transparent); }

.spark { display: inline-flex; gap: 2px; align-items: flex-end; }
.spark i { width: 5px; height: 12px; border-radius: 1px; display: block; background: var(--q-none); }
.spark i.q-exc  { background: var(--q-exc); }
.spark i.q-good { background: var(--q-good); }
.spark i.q-suff { background: var(--q-suff); }
.spark i.q-poor { background: var(--q-poor); }

/* ---------- carte dépliable ---------- */
.res-click { padding: 0; overflow: hidden; }
.res-toggle {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
}
.res-toggle:hover { background: var(--accent-sk); }
.res-head { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chev {
  flex: none; width: 10px; height: 10px; margin-top: 6px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .18s;
}
.res-click.open .chev { transform: rotate(-135deg); }
.res-detail {
  padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 18px;
  border-top: 1px solid var(--line);
}
/* Sans cette règle, le « display: flex » ci-dessus l'emporte sur l'attribut
   hidden (spécificité de classe > règle du navigateur) et le panneau vide
   laisse une bande grise sous chaque carte. */
.res-detail[hidden] { display: none; }

.conf-bloc { display: flex; flex-direction: column; gap: 7px; }
.conf-bloc h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--faint); margin: 0; font-weight: 500;
}
.conf-help { font-size: 13.5px; color: var(--muted); }
.conf-row { display: flex; gap: 8px; flex-wrap: wrap; }
.conf-chip {
  display: flex; flex-direction: column; gap: 1px; padding: 7px 11px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; min-width: 128px;
}
.conf-chip b { font-weight: 600; font-size: 12.5px; }
.conf-chip.is-ok  { border-color: color-mix(in srgb, var(--q-good) 45%, var(--line)); }
.conf-chip.is-ok  span { color: var(--q-good); font-weight: 600; }
.conf-chip.is-no  { border-color: color-mix(in srgb, var(--q-poor) 45%, var(--line)); }
.conf-chip.is-no  span { color: var(--q-poor); font-weight: 600; }
.conf-chip.is-unk span { color: var(--faint); }
.conf-quote {
  font-size: 14px; color: var(--ink); background: var(--surface);
  border-left: 2px solid var(--line); padding: 9px 13px; border-radius: 0 2px 2px 0;
}
.reassure {
  font-size: 14px; color: var(--q-good); background: color-mix(in srgb, var(--q-good) 8%, transparent);
  border-radius: var(--radius); padding: 11px 14px;
}

table.params { min-width: 460px; font-size: 13.5px; }
table.params th, table.params td { padding: 8px 11px; }
table.params thead th {
  font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; background: var(--surface-2);
}
table.params tbody th { font-weight: 500; }
table.params tr.hors th, table.params tr.hors td { background: color-mix(in srgb, var(--q-suff) 10%, transparent); }
.flag {
  display: inline-block; margin-left: 7px; font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--q-suff);
  border: 1px solid color-mix(in srgb, var(--q-suff) 40%, transparent);
  border-radius: 2px; padding: 0 5px;
}

/* ---------- fiche fournisseur, surveillance, courbes ---------- */
.fiche {
  margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 5px 16px;
  font-size: 14px;
}
.fiche dt { color: var(--faint); }
.fiche dd { margin: 0; color: var(--ink); font-weight: 540; }

.compteur { display: flex; align-items: baseline; gap: 8px; }
.compteur b {
  font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.compteur span { font-size: 14px; color: var(--muted); }

.serie { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; }
.serie-tete { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.serie-tete b { font-weight: 570; }
.serie-val {
  margin-left: auto; font-family: var(--mono); font-size: 13px;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.courbe { width: 100%; height: 46px; display: block; overflow: visible; }
.c-line { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.c-pt { fill: var(--accent); }
.c-lim { stroke: var(--q-suff); stroke-width: 1; stroke-dasharray: 3 3; opacity: .75; }
.serie-pied {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.serie-lim { color: var(--q-suff); }

.lieu {
  margin-left: 7px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--faint); border: 1px solid var(--line);
  border-radius: 2px; padding: 0 4px; white-space: nowrap; font-weight: 400;
}

.rapports { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rapports li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font-size: 13.5px;
}
.rapports li.ici { border-color: var(--accent); background: var(--accent-sk); }
.r-date {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.r-lieu { font-weight: 545; flex: 1; min-width: 0; }
.r-lieu em {
  font-style: normal; margin-left: 7px; font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--accent);
}

.obs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.obs li {
  display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px 10px; background: var(--surface); font-size: 13px;
}
.obs b { font-weight: 570; font-size: 12.5px; }
.obs span { color: var(--muted); }

.annees { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.annees li {
  display: flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 5px 9px; background: var(--surface);
}
.annees b { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.profil { font-size: 14px; align-self: flex-start; }

/* ---------- bandes ---------- */
.band { padding: 62px 0; }
.band.alt { background: var(--surface-2); }
.band.tail { padding: 56px 0 72px; }
.h-sec { font-size: clamp(22px, 3.1vw, 30px); font-weight: 650; }
.sub { color: var(--muted); max-width: 62ch; margin-top: 10px; font-size: 17px; }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.step-n {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-sk); width: 28px; height: 24px; border-radius: 2px;
  display: grid; place-items: center;
}
.steps h3 { font-size: 17.5px; font-weight: 630; }
.steps p { color: var(--muted); font-size: 15.5px; }

.grid { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 9px;
}
.card h3 { font-size: 17px; font-weight: 630; }
.card p { color: var(--muted); font-size: 15px; }
.ic {
  width: 22px; height: 22px; background: var(--accent);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.ic-score { -webkit-mask-image: var(--i-score); mask-image: var(--i-score); }
.ic-map   { -webkit-mask-image: var(--i-map);   mask-image: var(--i-map); }
.ic-history { -webkit-mask-image: var(--i-hist); mask-image: var(--i-hist); }
.ic-alert { -webkit-mask-image: var(--i-alert); mask-image: var(--i-alert); }
.ic-pfas  { -webkit-mask-image: var(--i-drop);  mask-image: var(--i-drop); }
.ic-book  { -webkit-mask-image: var(--i-book);  mask-image: var(--i-book); }
:root {
  --i-score: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9'/%3E%3C/svg%3E");
  --i-map:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 10-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  --i-hist:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.5l3.5 2'/%3E%3C/svg%3E");
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 15V10a6 6 0 10-12 0v5l-1.5 2.5h15L18 15z'/%3E%3Cpath d='M10 20a2 2 0 004 0'/%3E%3C/svg%3E");
  --i-drop:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 6.6 6 10.5A6 6 0 016 13.5C6 9.6 12 3 12 3z'/%3E%3C/svg%3E");
  --i-book:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 016.5 3H19v15H6.5A2.5 2.5 0 004 20.5z'/%3E%3Cpath d='M19 18v3H6.5'/%3E%3C/svg%3E");
}

.checks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 15px; height: 15px;
  background: var(--accent); -webkit-mask-image: var(--i-score); mask-image: var(--i-score);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

.note {
  margin-top: 30px; border-left: 3px solid var(--accent); padding: 4px 0 4px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.note h3 { font-size: 16px; font-weight: 640; }
.note p { color: var(--muted); font-size: 15.5px; }

/* ---------- tarifs ---------- */
.page-head { padding: 62px 0 12px; }
.page-head h1 { max-width: 22ch; }
.plans { display: grid; gap: 18px; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
.plan:nth-child(2) { border-color: var(--accent); border-width: 2px; }
.plan h2 { font-size: 20px; font-weight: 660; }
.plan-tag { color: var(--muted); font-size: 14.5px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0; }
.plan-price b { font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.plan-price span { color: var(--faint); font-size: 14px; }
.plan .checks { margin-top: 4px; flex: 1; }
.plan .checks li { font-size: 15px; }
.plan .btn { text-align: center; margin-top: 6px; }
.micro.center { margin-top: 22px; }

.faq { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 590; list-style: none;
  display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 16px; color: var(--muted); max-width: 68ch; }

/* ---------- comprendre ---------- */
.scale { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.scale li { display: flex; gap: 16px; align-items: flex-start; }
.grade {
  flex: none; width: 36px; height: 36px; border-radius: var(--radius);
  display: grid; place-items: center; font-weight: 750; font-size: 17px; color: #fff;
}
.g-A { background: var(--q-exc); }
.g-B { background: var(--q-good); }
.g-C { background: var(--q-suff); }
.g-D { background: #B4703A; }
.g-E { background: var(--q-poor); }
.scale p { color: var(--muted); font-size: 15.5px; }

.tscroll { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { font-weight: 600; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.muted { color: var(--faint); font-size: 14px; }

.sources { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.sources li { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); padding-left: 16px; }
.sources b { font-size: 16px; }
.sources span { color: var(--muted); font-size: 14.5px; }
.sources em { color: var(--faint); font-size: 13.5px; font-style: normal; font-family: var(--mono); }

/* ---------- pied ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 42px 0; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 0 22px; display: flex; flex-direction: column; gap: 18px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-nav a:hover { color: var(--ink); }
.foot-legal { color: var(--faint); font-size: 13px; }

/* ---------- comparatif réseau / département ---------- */
.cmp { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.cmp-tete { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.cmp-tete b { font-weight: 570; }
.cmp-tete span {
  margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.cmp-barre {
  display: flex; height: 12px; border-radius: 6px; overflow: hidden;
  background: var(--surface-2);
}
.cmp-barre .seg { display: block; height: 100%; }
.seg.s-ok  { background: var(--q-good); }
.seg.s-ref { background: var(--q-suff); }
.seg.s-bad { background: var(--q-poor); }
.cmp-lg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; }
.cmp-lg .lg { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.cmp-lg .lg::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; display: inline-block;
}
.cmp-lg .s-ok::before  { background: var(--q-good); }
.cmp-lg .s-ref::before { background: var(--q-suff); }
.cmp-lg .s-bad::before { background: var(--q-poor); }

/* ---------- carte interactive ----------
   Leaflet est chargé à la demande : ces règles ne servent qu'une fois
   la carte ouverte, mais elles pèsent quelques centaines d'octets et
   évitent une seconde feuille de style à télécharger. */
.map-sec { padding-top: 0; }
.btn-sm { padding: 7px 13px; font-size: 14px; }

.map-shell { display: flex; flex-direction: column; gap: 12px; }
.map-shell[hidden] { display: none; }

.map-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.map-legend { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12.5px; color: var(--muted); }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i {
  width: 11px; height: 11px; border-radius: 50%; display: inline-block;
  border: 1px solid rgba(255, 255, 255, .9); background: var(--q-none);
}
.map-legend i.m-exc  { background: var(--q-exc); }
.map-legend i.m-good { background: var(--q-good); }
.map-legend i.m-suff { background: var(--q-suff); }
.map-legend i.m-poor { background: var(--q-poor); }
.map-legend i.m-none { background: var(--q-none); }

/* z-index nul + isolation : sans cela les panneaux internes de Leaflet
   (400 à 1000) passeraient au-dessus de l'en-tête collant du site,
   qui ne monte qu'à 30. */
.map-canvas {
  height: clamp(320px, 56vh, 560px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2);
  position: relative; z-index: 0; isolation: isolate;
}
.map-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.leaflet-container { font: inherit; font-size: 13px; background: var(--surface-2); }
.leaflet-container a { color: var(--accent); }
.leaflet-control-attribution {
  background: rgba(255, 255, 255, .88) !important; color: var(--muted);
  font-size: 11.5px; padding: 1px 6px;
}
.leaflet-bar a {
  color: var(--ink); background: var(--surface); border-bottom-color: var(--line);
}
.leaflet-bar a:hover { background: var(--surface-2); }

.map-status { font-size: 13.5px; color: var(--muted); min-height: 1.4em; }
.map-status.err { color: var(--q-poor); }

/* ---------- marqueurs ---------- */
.mk-wrap { background: none; border: 0; }
/* La pastille porte désormais un pictogramme : la couleur dit la qualité de
   l'eau, le dessin dit la nature du lieu — mer, lac, rivière, estuaire. Sans
   lui, deux pastilles bleues de nature différente étaient indiscernables, et
   se confondaient même avec la position de l'utilisateur. */
.mk {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin: 1px; border-radius: 50%;
  border: 2px solid #fff; background: var(--q-none);
  box-shadow: 0 1px 3px rgba(14, 26, 32, .45);
}
/* Les pictogrammes sont des SVG au trait : ils portent déjà leur couleur
   (blanc) et n'ont donc plus besoin d'être éclaircis après coup, ce qui
   dépendait du rendu des emoji par chaque système. */
.mk > svg { display: block; }
.mk.m-exc  { background: var(--q-exc); }
.mk.m-good { background: var(--q-good); }
.mk.m-suff { background: var(--q-suff); }
.mk.m-poor { background: var(--q-poor); }
.mk.m-none { background: var(--q-none); }
/* Sélection : un anneau, pas un agrandissement — le point resterait
   sinon décalé de son ancrage géographique. */
.mk.on { box-shadow: 0 0 0 3px var(--accent), 0 1px 3px rgba(14, 26, 32, .45); }

.mk-grappe {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50%; border: 2px solid #fff; color: #fff;
  font-weight: 700; font-size: 12.5px; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--q-none-d); box-shadow: 0 1px 4px rgba(14, 26, 32, .45);
}
.mk-grappe.m-exc  { background: var(--q-exc); }
.mk-grappe.m-good { background: var(--q-good); }
.mk-grappe.m-suff { background: var(--q-suff); }
.mk-grappe.m-poor { background: var(--q-poor); }
.mk-grappe.m-none { background: var(--q-none-d); }

/* ---------- fiche du site sélectionné ---------- */
.map-detail[hidden] { display: none; }
/* Cible de focus programmatique, hors du parcours de tabulation :
   l'anneau bleu autour de toute la fiche n'apprendrait rien. */
.map-detail:focus { outline: none; }
.map-fiche { padding: 0; overflow: hidden; }
.map-fiche-top { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.map-close {
  flex: none; width: 30px; height: 30px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
}
.map-close:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- liste des sites affichés ---------- */
.map-list {
  list-style: none; margin: 0; padding: 5px; max-height: 240px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.map-list:empty { display: none; }
.map-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  font: inherit; font-size: 14px; color: inherit; background: none; border: 0;
  border-radius: 2px; padding: 7px 9px; cursor: pointer;
}
.map-item:hover { background: var(--accent-sk); }
.map-item[aria-current="true"] {
  background: var(--accent-sk); outline: 1px solid var(--accent); outline-offset: -1px;
}
.map-item-nom { flex: 1; min-width: 0; font-weight: 545; }
.map-item-plus { padding: 7px 9px; font-size: 13px; color: var(--faint); }
.mk-pt {
  flex: none; width: 11px; height: 11px; border-radius: 50%;
  background: var(--q-none); border: 1px solid var(--line);
}
.mk-pt.m-exc  { background: var(--q-exc); }
.mk-pt.m-good { background: var(--q-good); }
.mk-pt.m-suff { background: var(--q-suff); }
.mk-pt.m-poor { background: var(--q-poor); }
.mk-pt.m-none { background: var(--q-none); }

/* ---------- lecture façon bilan biologique ---------- */
.resume-normes {
  font-size: 13.5px; margin-bottom: 8px; display: inline-flex; align-items: center;
  gap: 7px; padding: 5px 11px; border-radius: var(--radius);
}
.resume-normes.sans { color: var(--q-good); background: color-mix(in srgb, var(--q-good) 9%, transparent); }
.resume-normes.avec { color: var(--q-suff); background: color-mix(in srgb, var(--q-suff) 11%, transparent); }

/* La valeur hors norme ressort en gras, avec le sens de l'écart. */
.val-hors { font-weight: 700; color: var(--q-suff); white-space: nowrap; }
.val-hors .fleche { margin-left: 5px; font-size: 10px; vertical-align: 1px; }
tr.hors-limite .val-hors { color: var(--q-poor); }
tr.hors-limite th, tr.hors-limite td {
  background: color-mix(in srgb, var(--q-poor) 9%, transparent) !important;
}

/* ---------- paramètres sensibles ---------- */
.sensibles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.sensibles li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font-size: 14px;
}
.sensibles li.absent { background: var(--surface-2); }
.sensibles b { font-weight: 600; min-width: 132px; }
.sens-val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; }
.sens-val.hors { font-weight: 700; color: var(--q-poor); }
.sens-etat {
  margin-left: auto; font-size: 12px; padding: 1px 8px; border-radius: 2px; white-space: nowrap;
}
.sens-etat.q-exc  { color: var(--q-good); background: color-mix(in srgb, var(--q-good) 11%, transparent); }
.sens-etat.q-poor { color: var(--q-poor); background: color-mix(in srgb, var(--q-poor) 11%, transparent); }
.sens-etat.q-none { color: var(--faint); background: color-mix(in srgb, var(--faint) 12%, transparent); }
.sens-hist { flex-basis: 100%; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Ligne d'un paramètre non recherché : présent dans le tableau, mais
   visiblement distinct d'une valeur mesurée. */
tr.non-mesure th, tr.non-mesure td { background: var(--surface-2); }
tr.non-mesure th { font-weight: 620; }
.nc {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em;
  color: var(--faint); border: 1px dashed var(--line); border-radius: 2px;
  padding: 1px 7px; cursor: help;
}
td.derniere {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 12.5px; white-space: nowrap;
}
tr.non-mesure td.derniere { color: var(--ink); }

/* --- Provenance de la donnée ---------------------------------------------
   Le collecteur ORobNat republie les analyses des ARS quelques jours après
   le prélèvement, quand Hub'Eau met deux à trois mois. Quand c'est lui qui
   parle, le visiteur doit pouvoir le voir sans déplier quoi que ce soit :
   d'où une pastille discrète mais présente dès l'en-tête, puis le détail
   complet dans le bloc « D'où vient cette analyse ».
   Bleu de la charte, jamais de vert ni de turquoise : ce n'est pas un
   verdict de qualité, seulement une origine. */
.res-src {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin: 0;
}
.src-tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  color: var(--accent); background: var(--accent-sk);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 2px; padding: 1px 6px;
}

/* Dépassement d'une LIMITE de qualité relevé sur un prélèvement antérieur
   du réseau — le plomb, typiquement, absent du contrôle courant.
   Réservé aux limites sanitaires : un simple écart de référence n'a pas
   d'incidence sur la potabilité et ne se peint pas en rouge. */
.sens-alerte { color: var(--q-poor); font-weight: 700; }


/* Marqueur « ma position » : une épingle, qui ne ressemble à aucune pastille
   de site. Ombre portée pour qu'elle se détache du fond de carte. */
.pos-wrap { background: none; border: 0; }
.pos-pin {
  display: block; font-size: 26px; line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(14, 26, 32, .5));
}
