/* municipal — la mairie et vous. Feuille de la section : tokens de la charte
   uniquement (--paper*, --ink*, --navy*, --wax, --line*, --display/--text/--ui).
   Aucune couleur nouvelle, aucune police nouvelle. Le vermillon ne sert qu'à
   trois choses : le filet de la loi, la démarche qui ne se fait PAS ici, et le
   soulignement d'un lien qu'on survole. Partout ailleurs, l'encre. */

.mun { display: grid; gap: 30px; }
.mun .eyebrow.mun-sur { margin-top: 22px; }

/* ── I. qui décide ─────────────────────────────────────────────────────── */

/* Le nom du maire est le seul mot de la section qui mérite le grand corps :
   c'est la réponse à la question qu'on se pose en arrivant. */
.mun-maire {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.12;
  margin: 0 0 4px;
  max-width: none;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 14;
}
.mun-maire-sous {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 3px;
  max-width: none;
}
.mun-csp {
  font-family: var(--ui);
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: none;
}
.mun-caption {
  font-family: var(--ui);
  font-size: 11px;
  color: var(--muted);
  text-align: left;
  padding: 0 0 8px;
  /* la légende sert au lecteur d'écran ; à l'œil, le titre de l'encart suffit */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.mun-liste { font-size: 14.5px; line-height: 1.4; }
.mun-liste .lg { display: block; font-family: var(--ui); font-size: 12px; color: var(--muted); margin-top: 2px; }
/* la liste qui a emporté le conseil se lit d'un coup d'œil : un filet, pas un fond */
.mun-gagnante td { border-bottom-color: var(--ink); }
.mun-gagnante .mun-liste { font-weight: 600; }
.mun-gagnante .mun-liste::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: .95em;
  margin-right: 8px;
  vertical-align: -1px;
  background: var(--wax);
}

/* ── II. assister au conseil ───────────────────────────────────────────── */

.mun-conseil-vie { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .mun-conseil-vie { grid-template-columns: 1fr; } }

/* Le bloc de la loi : pas un encart de plus, un placard. Filet vermillon à
   gauche, fond de papier profond, comme un avis affiché sur la porte. */
.mun-loi {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--wax);
  padding: 24px 26px 20px;
}
.mun-loi-titre {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.14;
  margin: 0 0 18px;
  max-width: none;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 14;
}
.mun-regles { margin: 0; display: grid; gap: 14px; }
.mun-regles > div { border-top: 1px solid var(--line); padding-top: 11px; }
.mun-regles dt {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 3px;
}
.mun-regles dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.mun-encart-pubs .note:first-child { margin-top: 0; }
.mun-pubs { list-style: none; margin: 6px 0 0; padding: 0; }
.mun-pubs li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  line-height: 1.45;
}
.mun-quoi {
  display: inline-block;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
  vertical-align: 1px;
}
.mun-date { display: block; font-family: var(--ui); font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ── III. vos démarches ────────────────────────────────────────────────── */

/* Le registre. Une colonne étroite pour l'intitulé en capitales, une colonne
   large pour la réponse : l'œil descend la marge et s'arrête sur sa ligne. */
.mun-demarches { border-top: 1px solid var(--ink); }
.mun-dem {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  /* le filet vermillon existe sur toutes les lignes, transparent sauf une :
     la ligne signalée s'aligne alors sur les autres au lieu de se décaler */
  border-left: 3px solid transparent;
  padding: 20px 0 18px 17px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 780px) { .mun-dem { grid-template-columns: 1fr; gap: 8px; } }

.mun-dem-titre {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.5;
  margin: 2px 0 0;
}
.mun-dem.alerte { border-left-color: var(--wax); }
.mun-dem.alerte .mun-dem-titre { color: var(--wax); }

.mun-ou { font-size: 16.5px; line-height: 1.55; margin: 0 0 6px; max-width: 66ch; }
.mun-ou b { font-weight: 600; }
.mun-quoi-txt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 70ch;
}
.mun-liens { margin: 9px 0 0; max-width: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mun-note-courte { margin-top: 8px; }

/* ── IV. les accès ─────────────────────────────────────────────────────── */

.mun-acces-grille { align-items: start; }
.mun-adr { font-size: 17px; line-height: 1.45; margin: 0 0 14px; max-width: none; }

.mun-horaires { width: 100%; border-collapse: collapse; min-width: 0; }
.mun-horaires th {
  text-align: left;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--ink-soft);
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 12px 8px 0;
  white-space: nowrap;
  vertical-align: top;
}
.mun-horaires td {
  font-family: var(--data);
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
}
.mun-hcom {
  display: block;
  font-family: var(--ui);
  font-size: 12px;
  font-variant-numeric: normal;
  color: var(--wax);
  line-height: 1.4;
  margin-top: 2px;
}

.mun-contact { margin: 14px 0 0; display: grid; gap: 8px; }
.mun-contact > div { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.mun-contact dt {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.mun-contact dd { margin: 0; font-family: var(--data); font-size: 16px; text-align: right; word-break: break-word; }
/* sur un écran étroit, une adresse électronique alignée à droite se coupe en
   plein milieu : le libellé passe au-dessus, la valeur reprend toute la ligne */
@media (max-width: 520px) {
  .mun-contact > div { display: block; }
  .mun-contact dd { text-align: left; margin-top: 2px; }
}

.mun-acces { list-style: none; margin: 0; padding: 0; }
.mun-acces li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mun-url {
  display: block;
  font-family: var(--ui);
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  word-break: break-all;
}

.mun-fs { font-size: 15.5px; margin: 0; max-width: none; }
.mun-fs b { font-weight: 600; display: block; }
.mun-fs span { font-family: var(--ui); font-size: 13px; color: var(--muted); }
.mun-eau { border-top: 1px solid var(--line); padding-top: 12px; }

/* ── les liens ─────────────────────────────────────────────────────────── */

/* Un lien se voit sans la couleur — le soulignement est là avant le survol —
   et se distingue au clavier par le même trait que partout dans le journal. */
.mun-lien {
  font-family: var(--ui);
  font-size: 13.5px;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.mun-lien:hover, .mun-lien:focus-visible { text-decoration-color: var(--wax); text-decoration-thickness: 2px; }
.mun-acces .mun-lien, .mun-pubs .mun-lien { font-size: 15px; }
.mun-lien-note { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .mun-lien { transition: none; }
}

/* ── impression : la page qu'on met en favori finit souvent sur papier ──── */
@media print {
  .mun-loi { border-left-color: var(--ink); background: none; }
  .mun-dem { break-inside: avoid; }
  .mun-lien::after { content: " (" attr(href) ")"; font-size: 10px; word-break: break-all; }
}
