/* MonOLD — feuille de style unique, mobile d'abord. */
:root {
  --encre: #1d2321;
  --encre-douce: #4b5552;
  --fond: #fbfaf7;
  --surface: #ffffff;
  --trait: #e3e0d8;
  --vert: #2f5d50;
  --vert-clair: #e7efe9;
  --orange: #e85d04;
  --orange-clair: #fdeee3;
  --bleu: #2f6fde;
  --bleu-clair: #e8effc;
  --alerte: #8a5a00;
  --alerte-fond: #fff6df;
  --rayon: 10px;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--police); color: var(--encre); background: var(--fond); }
/* Pied de page en bas de l'écran quand la page est courte : la page est une colonne, le contenu prend la place libre */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#contenu { flex: 1 0 auto; }
a { color: var(--vert); }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 1.6rem; margin: 0 0 .6rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conteneur { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.bandeau-dev { background: #3d3d3d; color: #fff; text-align: center; font-size: .8rem; padding: 2px 8px; }

/* En-tête */
.entete { background: var(--surface); border-bottom: 1px solid var(--trait); }
.entete__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--vert); text-decoration: none; font-size: 1.25rem; }
.logo img { display: block; height: 42px; width: auto; }
@media (max-width: 640px) { .logo img { height: 34px; } }
.logo strong { color: var(--orange); }
.nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--encre); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--vert); text-decoration: underline; }

/* Outil : carte + panneau */
.outil { display: flex; flex-direction: column; }
.outil__carte { position: relative; order: -1; height: 52vh; min-height: 300px; }
#carte { position: absolute; inset: 0; }
.outil__panneau { padding: 16px; background: var(--surface); }
.chapo { color: var(--encre-douce); font-size: 1.02rem; }
/* Accueil sur mobile : carte plus basse, titre plus petit et phrase courte, pour voir la saisie de l'adresse sans défiler */
.chapo--mobile { display: none; }
@media (max-width: 899px) {
  .outil__carte { height: 36vh; height: 36svh; min-height: 230px; }
  .outil__panneau { padding-top: 14px; }
  .outil__panneau h1 { font-size: 1.3rem; margin-bottom: .35rem; }
  .chapo--large { display: none; }
  .chapo--mobile { display: block; margin: 0; font-size: .95rem; }
  .outil .recherche { margin-top: 10px; }
}

@media (min-width: 900px) {
  /* En-tête sur toute la largeur de l'écran (le contenu des pages garde sa largeur maximale) */
  .entete__in { max-width: none; padding: 0 24px; }
  .outil { flex-direction: row; height: calc(100vh - 57px); min-height: 560px; }
  .outil__panneau { width: 430px; flex: none; overflow-y: auto; border-right: 1px solid var(--trait); padding: 22px; }
  .outil__carte { order: 0; flex: 1; height: auto; }
  h1 { font-size: 1.75rem; }
}

/* Recherche d'adresse */
.recherche { position: relative; margin: 14px 0 4px; }
.recherche input {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--vert);
  border-radius: var(--rayon); background: #fff; color: var(--encre);
}
.recherche input:focus { outline: 3px solid rgba(47, 93, 80, .25); }
/* Bouton « Me localiser » dans la zone de saisie (mobile seulement) */
.geoloc { display: none; }
@media (max-width: 899px) {
  .recherche input { padding-right: 54px; }
  .geoloc:not([hidden]) { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center;
    width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: var(--vert-clair); color: var(--vert); cursor: pointer; }
  .geoloc svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .geoloc.en-cours svg { animation: tourne 1.2s linear infinite; }
}
.point-geoloc { width: 18px; height: 18px; border-radius: 50%; background: #2f6fde; border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(47, 111, 222, .25), 0 1px 4px rgba(0, 0, 0, .3); }
.suggestions {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.suggestions li { padding: 9px 14px; cursor: pointer; }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: var(--vert-clair); }
.suggestions li.vide { color: var(--encre-douce); cursor: default; }
.suggestions li.autre { display: flex; flex-direction: column; border-top: 1px solid var(--trait); color: var(--vert); }
.suggestions li.autre small { color: var(--encre-douce); font-size: .82rem; }
.aide { font-size: .88rem; color: var(--encre-douce); margin: 4px 0 0; }

/* Légende */
.legende {
  position: absolute; left: 10px; bottom: 28px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 20px);
  background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 6px 10px; font-size: .78rem;
}
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legende__source { color: var(--encre-douce); font-size: .74rem; margin: 2px 0 0; }
/* Sources et arrêtés : repliés par défaut, ouverts par le bouton « Sources » */
.legende__plus { flex-basis: 100%; max-height: 30vh; overflow-y: auto; }
.legende__plus-bouton { font: inherit; font-size: .74rem; padding: 0; border: 0; background: none; color: var(--vert);
  text-decoration: underline; cursor: pointer; }
.zone-info { font-size: .9rem; margin: 10px 0 0; }
.l-massif { background: rgba(217, 130, 43, .5); }
.l-zone { background: rgba(244, 162, 89, .35); border: 1.5px solid rgba(180, 80, 11, .85); }
.l-charge { background: rgba(232, 93, 4, .7); }
.l-voisins { background: rgba(47, 111, 222, .6); }
.l-parcelle { border: 2.5px solid #111; }
.l-bande { border: 2.5px dashed #c2410c; }
.l-bande-voisin { border: 1.5px dashed #2f6fde; }
/* Parcelle coupée par la limite de la zone urbaine du PLU : deux règles, deux couleurs (carte et panneau) */
/* Parcelle coupée par le PLU : mêmes couleurs que la carte (carte.js : COULEUR_U, COULEURS_HORS_U) */
.l-zu { background: rgba(214, 40, 40, .1); border: 3px solid #d62828; }
.l-zn { background: repeating-linear-gradient(-45deg, #1f7a35 0 2px, rgba(31, 122, 53, .12) 2px 5px); border: 2px solid #1f7a35; }
.l-za { background: repeating-linear-gradient(-45deg, #a8860c 0 2px, rgba(168, 134, 12, .14) 2px 5px); border: 2px solid #a8860c; }
.l-zau { background: repeating-linear-gradient(-45deg, #c4620f 0 2px, rgba(196, 98, 15, .14) 2px 5px); border: 2px solid #c4620f; }
.plu-bloc { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 8px; background: #fbfaf6;
  font-size: .9rem; }
.plu-bloc__titre { font-weight: 700; margin: 0 0 6px; }
.plu-bloc p { margin: 0 0 6px; }
.plu-bloc p:last-child { margin-bottom: 0; }
.plu-bloc i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.plu-bloc .note { font-size: .8rem; color: var(--encre-douce); }

/* Mobile : légende repliable, menu resserré, cibles tactiles plus grandes */
.legende-bouton { display: none; }
/* Indicateur de chargement des tuiles, en haut au centre de la carte */
.carte-chargement { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex;
  align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15); font-size: .9rem; color: var(--vert); font-weight: 600; pointer-events: none; }
.carte-chargement[hidden] { display: none; }
.carte-chargement .roue { width: 16px; height: 16px; border: 2.5px solid var(--vert-clair); border-top-color: var(--vert);
  border-radius: 50%; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (max-width: 899px) {
  /* Bouton calé en bas de la carte ; la légende ouverte s'affiche juste au-dessus */
  .legende-bouton { display: block; position: absolute; left: 10px; bottom: 10px; z-index: 3; font: inherit; font-size: .82rem;
    font-weight: 600; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--vert);
    box-shadow: 0 1px 4px rgba(0,0,0,.2); }
  .legende { display: none; bottom: 48px; }
  .legende.ouverte { display: flex; }
}
@media (pointer: coarse) {
  .a-moi-bouton { font-size: .85rem; padding: 6px 12px; margin: 4px 0 0; }
  .lien-bouton, .menu-compte nav a { padding-top: 10px; padding-bottom: 10px; }
}

/* Résultat */
.resultat { margin-top: 18px; }
.resultat__message { color: var(--encre-douce); }
.resultat__tete { border-top: 1px solid var(--trait); padding-top: 14px; }
.resultat__commune { margin: 0; font-size: .9rem; color: var(--encre-douce); }
.resultat__adresse { margin: 4px 0 0; font-weight: 600; }
.resultat__proprio { margin: 2px 0 0; font-size: .88rem; color: var(--encre-douce); }
small.proprio { display: block; font-size: .78rem; color: var(--encre-douce); }
.resultat__adresse:not(:empty)::before { content: "📍 "; }
.statut { display: inline-block; margin: 6px 0 0; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.statut--obligee { background: var(--orange-clair); color: #9a3c02; }
.statut--recoit_obligations_voisins { background: var(--bleu-clair); color: #1d4ea6; }
.statut--zone_old_sans_obligation { background: var(--vert-clair); color: var(--vert); }
.statut--hors_zone { background: #eee; color: #444; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 4px;
  padding: 12px 14px; background: var(--orange-clair); border-radius: var(--rayon); }
.total strong { font-size: 1.5rem; color: #9a3c02; white-space: nowrap; }
.motifs, .voisins, .alertes { list-style: none; margin: 0; padding: 0; }
.motifs li, .voisins li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--trait); }
/* État du Dossier OLD d'un bien (Mes biens) */
.badge { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; font-size: .88rem;
  background: #f1efe9; color: var(--encre-douce); }
.badge--ok { background: var(--vert-clair); color: var(--vert); font-weight: 600; }

/* Textes d'annonce prêts à copier (module vente) */
.annonce__texte { border: 1px solid var(--trait); border-radius: 6px; padding: 10px 14px; margin: 12px 0; background: #fff; }
.annonce__texte h3 { margin: 0 0 6px; font-size: 1rem; }
.annonce__texte p { margin: 0 0 10px; user-select: all; }
.lien-annonce { margin: 12px 0; font-size: .95rem; }
/* Ligne de voisin reliée à la carte : survol = parcelle surlignée en jaune */
.voisins li[data-ref] { cursor: pointer; border-radius: 4px; }
.voisins li[data-ref]:hover, .voisins li[data-ref]:focus { background: #fdf3c4; outline: none; }
.motifs strong, .voisins strong { white-space: nowrap; }
.voisins em { color: var(--encre-douce); font-style: normal; font-size: .85rem; }
.voisins--chez-moi strong { color: #1d4ea6; }
.conseil { font-size: .88rem; color: var(--encre-douce); background: var(--fond); border-left: 3px solid var(--vert); padding: 8px 10px; margin: 8px 0 0; }
.variante { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; background: var(--alerte-fond); border-radius: var(--rayon); font-size: .92rem; cursor: pointer; }
.variante input { margin-top: 1px; }
.alertes { margin-top: 12px; }
.alertes li { font-size: .88rem; color: var(--alerte); background: var(--alerte-fond); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.sources { font-size: .8rem; color: var(--encre-douce); margin-top: 16px; }
.avertissement-court { font-size: .8rem; color: var(--encre-douce); font-style: italic; }

/* Pages de contenu */
.bloc { padding-top: 8px; padding-bottom: 32px; }
.page { padding-top: 24px; padding-bottom: 40px; max-width: 960px; }
.page--etroite { max-width: 420px; }
.etapes { padding-left: 1.2rem; }
.etapes li { margin-bottom: .6rem; }
.note { font-size: .9rem; color: var(--encre-douce); }
.fil { font-size: .88rem; color: var(--encre-douce); margin-bottom: 8px; }
.grille-regles { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grille-regles { grid-template-columns: 1fr 1fr; } }
.grille-regles section { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px 14px; }
.grille-regles h3 { margin-top: 0; color: var(--vert); }
.grille-regles p { margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 10px 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; }
ul.sources { padding-left: 1.1rem; font-size: .9rem; }
.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; }
@media (min-width: 720px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffres div { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px; }
.chiffres strong { display: block; font-size: 1.4rem; color: var(--vert); }
.chiffres span { font-size: .85rem; color: var(--encre-douce); }
.bouton { display: inline-block; background: var(--vert); color: #fff; text-decoration: none; padding: 11px 18px; border-radius: var(--rayon); font-weight: 600; border: 0; font: inherit; cursor: pointer; }
.bouton:hover { background: #244a40; }
.filtre { display: block; margin: 12px 0; font-size: .9rem; }
.filtre input, .formulaire input { display: block; width: 100%; max-width: 420px; font: inherit; padding: 9px 12px; margin-top: 4px; border: 1px solid #bbb; border-radius: 8px; }
.formulaire { display: grid; gap: 12px; }
/* Boutons à leur taille naturelle, calés à gauche (la grille les étirerait sur toute la largeur) */
.formulaire > button, .formulaire > .bouton, .formulaire > p > button { justify-self: start; width: auto; }
.tableau { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .95rem; }
.tableau th, .tableau td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--trait); }
.tableau th { background: var(--vert-clair); }
.tableau td:nth-child(n+2), .tableau th:nth-child(n+2) { text-align: right; }
.erreur { color: #a11; }
.page--moyenne { max-width: 640px; }
.nav { align-items: center; }
.nav .nav__compte { font-weight: 600; color: var(--vert); border: 1.5px solid var(--vert); border-radius: 999px;
  padding: 5px 14px; margin-left: 6px; text-decoration: none; white-space: nowrap; }
.nav .nav__compte:hover { background: var(--vert-clair); text-decoration: none; }

/* Mobile : carte en vignette en haut à droite pendant la lecture du résultat (carte.js) ; l'emplacement garde sa hauteur */
.carte-retour[hidden] { display: none; }
@media (max-width: 899px) {
  .outil.carte-flottante #carte, .outil.carte-flottante .carte-retour {
    position: fixed; inset: auto; top: 10px; right: 10px; width: min(54vw, 280px); height: min(44vw, 230px);
    border-radius: 12px; z-index: 12; }
  .outil.carte-flottante #carte { overflow: hidden; border: 2px solid #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, .3); }
  .outil.carte-flottante .carte-retour { display: block; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 13; }
  .outil.carte-flottante .maplibregl-control-container, .outil.carte-flottante .legende-bouton,
  .outil.carte-flottante .legende, .outil.carte-flottante .carte-chargement { display: none; }
}

/* Version intégrée de l'outil (/widget, iframe chez une mairie) : l'outil occupe toute la hauteur de l'iframe */
.pied-integre { margin: 0; padding: 8px 16px; font-size: .78rem; color: var(--encre-douce); background: var(--surface);
  border-top: 1px solid var(--trait); }
body.integre .outil__panneau h1 { font-size: 1.25rem; }
@media (min-width: 900px) {
  body.integre .outil { height: calc(100vh - 34px); min-height: 480px; }
  body.integre .outil__panneau { width: 380px; }
}
@media (max-width: 899px) {
  /* Iframe étroite : carte en haut, qui prend toute la hauteur laissée libre par la recherche (pas de vide en bas) */
  body.integre #contenu { display: flex; flex-direction: column; }
  body.integre .outil { flex: 1 0 auto; }
  body.integre .outil__carte { flex: 1 0 280px; height: auto; min-height: 280px; }
}

/* Kit mairies (/mairies) */
.mairies-commune { display: flex; flex-direction: column; gap: 6px; font-weight: 600; max-width: 420px; }
.mairies-commune input { font: inherit; font-weight: 400; padding: 10px 12px; border: 2px solid var(--vert); border-radius: 10px; }
.mairies-code { white-space: pre-wrap; word-break: break-all; padding: 12px; border-radius: 10px; background: #1f2a26; color: #e8f1ec;
  font-size: .85rem; }
.mairies-apercu { display: block; width: 100%; height: 720px; border: 1px dashed var(--trait); border-radius: 12px;
  background: var(--fond); }
.mairies-texte { white-space: pre-line; padding: 14px; border-radius: 10px; background: var(--fond); border: 1px solid var(--trait);
  font-size: .95rem; }

/* Encart « Informer les habitants » des pages communes */
.carte-bloc.encart-mairie { background: var(--vert-clair); border-color: #cfe0d5; }
.encart-mairie h3 { margin-top: 6px; }
.encart-mairie__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Inscription des partenaires (/partenaires) */
.form-partenaire fieldset { margin: 6px 0; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 10px; }
.form-partenaire legend { padding: 0 6px; font-weight: 600; }
.form-partenaire fieldset .case { margin: 4px 0; }
.form-partenaire #commune-ajout { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid #b9c2be; border-radius: 8px; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.puce { font: inherit; font-size: .88rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--vert); background: var(--vert-clair);
  color: var(--vert); cursor: pointer; }

/* Affiche A4 (/mairies/affiche) : à l'écran, une feuille ; à l'impression, la feuille seule */
.affiche-outils { padding-top: 16px; }
.affiche-outils .bouton[disabled] { opacity: .6; cursor: wait; }
.affiche-outils .affiche-actions { margin: 12px 0 18px; }
.affiche-cadre { width: calc(100% - 32px); max-width: 210mm; margin: 0 auto 32px; overflow: hidden; }
.affiche { box-sizing: border-box; width: 210mm; height: 297mm; margin: 0; padding: 0 0 9mm; transform-origin: top left;
  background: #fff; border: 1px solid var(--trait); box-shadow: 0 6px 24px rgba(0, 0, 0, .08); display: flex; flex-direction: column;
  overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.affiche > *:not(.affiche__bandeau) { margin-left: 13mm; margin-right: 13mm; }
.affiche__bandeau { display: flex; align-items: center; gap: 7mm; padding: 9mm 13mm 8mm;
  background: linear-gradient(135deg, #2f5d50 0%, #244a40 100%); color: #fff; }
.affiche__panneau { flex: none; height: 34mm; width: auto; filter: drop-shadow(0 1.5mm 2.5mm rgba(0, 0, 0, .35)); }
.affiche__haut { margin: 0 0 3mm; font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f9c58f; }
.affiche h1 { margin: 0; font-size: 2.15rem; line-height: 1.1; color: #fff; }
.affiche__chapo { margin: 9mm 0 7mm; font-size: 1.25rem; }
/* Carte de la commune */
.affiche__carte { position: relative; margin-top: 7mm; border-radius: 10px; overflow: hidden; border: 1px solid var(--trait); }
#affiche-carte { height: 95mm; background: #f3f3f1; }
.affiche__legende { position: absolute; left: 3mm; bottom: 3mm; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 2mm 4mm;
  padding: 2mm 3mm; border-radius: 6px; background: rgba(255, 255, 255, .92); font-size: .74rem; }
.affiche__legende i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.affiche__legende .l-commune { border: 2.5px solid #2f5d50; border-radius: 0; }
/* Chiffres clés de la commune */
.affiche__chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; margin-top: 5mm; }
.affiche__chiffres div { display: flex; flex-direction: column; padding: 3.5mm 4mm; border-radius: 10px; background: #fdeee3; }
.affiche__chiffres strong { font-size: 1.85rem; line-height: 1.1; color: #9a3c02; }
.affiche__chiffres span { font-size: .82rem; line-height: 1.3; color: #5b3a1e; }
/* Règles essentielles */
.affiche__regles { margin-top: 5mm; margin-bottom: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.affiche__regles li { display: flex; align-items: center; gap: 3mm; padding: 3mm 4mm; border: 1px solid var(--trait); border-radius: 10px;
  font-size: .95rem; line-height: 1.3; }
.affiche__regles svg { flex: none; width: 9mm; height: 9mm; padding: 1.6mm; border-radius: 50%; background: #e85d04; fill: none;
  stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.affiche:not(.affiche--commune) .affiche__regles { grid-template-columns: 1fr; gap: 4mm; }
.affiche:not(.affiche--commune) .affiche__regles li { font-size: 1.15rem; padding: 4mm 5mm; }
/* QR code */
.affiche__qr { display: flex; align-items: center; gap: 7mm; margin-top: 6mm; padding: 5mm 6mm; border: 2px solid var(--vert);
  border-radius: 12px; background: var(--vert-clair); }
.affiche__code { flex: none; width: 38mm; height: 38mm; padding: 2mm; background: #fff; border-radius: 6px; }
.affiche:not(.affiche--commune) .affiche__code { width: 52mm; height: 52mm; }
.affiche__code svg { width: 100%; height: 100%; }
.affiche__qr p { margin: 0 0 2mm; font-size: 1rem; }
.affiche__appel { font-size: 1.45rem !important; font-weight: 700; color: var(--vert); }
.affiche__petit { font-size: .88rem !important; color: var(--encre-douce); }
.affiche__pied { margin-top: auto !important; padding-top: 5mm; display: flex; justify-content: space-between; align-items: flex-end; gap: 8mm;
  font-size: .72rem; line-height: 1.35; color: var(--encre-douce); }
.affiche__pied img { flex: none; height: 11mm; width: auto; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .bandeau-dev, .entete, .voile, .pied, .affiche-outils, .pied-integre { display: none !important; }
  .affiche { margin: 0; border: 0; box-shadow: none; width: 210mm; height: 297mm; transform: none !important; }
  .affiche-cadre { width: auto; max-width: none; height: auto !important; margin: 0; overflow: visible; }
}

/* Administration (/gestion) */
.gestion { max-width: 1240px; }
.gestion-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.gestion-nav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--trait); background: var(--surface);
  color: var(--encre); text-decoration: none; font-size: .92rem; }
.gestion-nav a.actif { background: var(--vert); border-color: var(--vert); color: #fff; font-weight: 600; }
.gestion-chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 18px; }
.gestion-chiffres div { display: flex; flex-direction: column; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--trait); border-radius: var(--rayon); }
.gestion-chiffres span { font-size: .85rem; color: var(--encre-douce); }
.gestion-chiffres strong { font-size: 1.6rem; color: var(--vert); line-height: 1.3; }
.gestion-chiffres small { font-size: .8rem; color: var(--encre-douce); }
.gestion-liste { list-style: none; margin: 0; padding: 0; }
.gestion-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--trait);
  font-size: .92rem; overflow-wrap: anywhere; }
.gestion-liste small { color: var(--encre-douce); white-space: nowrap; }
.gestion-defile { overflow-x: auto; }
.gestion-defile .tableau td, .gestion-defile .tableau th { text-align: left; vertical-align: top; }
.gestion-recherche { display: flex; gap: 8px; margin: 0 0 8px; }
.gestion-recherche input { flex: 1; font: inherit; padding: 9px 12px; border: 1px solid #b9c2be; border-radius: 8px; }
/* Briefing d'une commune (/gestion/voies/<insee>/briefing, briefing.md) */
.briefing { max-width: 860px; }
.briefing h2 { font-size: 1.45rem; margin: 0 0 10px; }
.briefing h3 { font-size: 1.2rem; margin: 28px 0 8px; color: var(--vert); }
.briefing h4 { font-size: 1.02rem; margin: 20px 0 6px; }
.briefing ul, .briefing ol { margin: 6px 0 12px; padding-left: 22px; }
.briefing li { margin: 4px 0; }
.briefing li > ul, .briefing li > ol { margin: 4px 0 6px; }
.briefing hr { border: 0; border-top: 1px solid var(--trait); margin: 24px 0; }
.briefing .tableau { margin: 6px 0 14px; }
.briefing code { font-size: .88em; overflow-wrap: anywhere; }
.briefing-coche { color: var(--vert); }

/* Liste des départements (accueil, « Lire les règles dans ») : deux colonnes dès qu'il y a la place */
.liste-deps { margin: 0; padding-left: 1.2em; columns: 2 220px; column-gap: 32px; }
.liste-deps li { margin: 0 0 6px; break-inside: avoid; }
.liste-deps span { color: var(--encre-douce); font-size: .9rem; }

/* Menu burger (mobile et tablette) : logo à gauche, bouton à droite, liens dans un panneau sous l'en-tête */
.burger { display: none; }
@media (max-width: 899px) {
  .entete { position: relative; z-index: 20; }
  .entete__in { flex-wrap: nowrap; min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
    margin-right: -8px; padding: 10px; border: 0; background: none; cursor: pointer; }
  .burger span { display: block; height: 2px; border-radius: 2px; background: var(--encre); transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Panneau étroit, accroché à droite sous le bouton, items alignés à droite */
  .nav { display: none; position: absolute; top: 100%; right: 12px; width: min(280px, calc(100% - 24px));
    flex-direction: column; align-items: stretch; gap: 0; padding: 4px 18px 16px; background: var(--surface);
    border: 1px solid var(--trait); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    font-size: 1rem; text-align: right; }
  .nav.ouverte { display: flex; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--trait); }
  .nav .nav__compte { align-self: flex-end; margin: 14px 0 0; padding: 8px 18px; border-bottom: 1.5px solid var(--vert); }
}
/* Voile sombre sous le menu ouvert (l'en-tête reste au-dessus) ; un clic le referme */
.voile { position: fixed; inset: 0; z-index: 15; background: rgba(20, 28, 25, .45); }
.voile[hidden] { display: none; }
@media (min-width: 900px) { .voile { display: none; } }
.carte-bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 4px 16px 16px; margin: 14px 0; }
.carte-bloc h2 { font-size: 1.1rem; margin-top: 14px; }
.alerte-bloc { color: var(--alerte); background: var(--alerte-fond); border-radius: 8px; padding: 8px 10px; }
.bouton--secondaire { background: #fff; color: var(--vert); border: 1.5px solid var(--vert); }
.bouton--secondaire:hover { background: var(--vert-clair); }
.bouton--danger { background: #a11; }
.bouton--danger:hover { background: #800; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--vert); text-decoration: underline; cursor: pointer; }
.case { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.case input { width: auto; margin-top: 2px; }

/* Cases à cocher maison : bord vert arrondi, coche blanche animée sur fond vert, halo au survol.
   Sélecteur renforcé pour passer devant « .formulaire input » (largeur 100 %, marges des champs texte). */
input[type="checkbox"], .formulaire input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-content: center;
  width: 22px; height: 22px; padding: 0; margin: 0; vertical-align: -5px;
  border: 2px solid #8fa79f; border-radius: 7px; background: #fff; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
input[type="checkbox"]::before {
  content: ""; width: 12px; height: 12px; background: #fff; transform: scale(0); transition: transform .15s ease-out;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
input[type="checkbox"]:checked { background: var(--vert); border-color: var(--vert); }
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:hover { border-color: var(--vert); box-shadow: 0 0 0 4px var(--vert-clair); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* Interrupteur on/off (réglages) ; les cases d'accord (CGV, renonciation, consentement) restent des cases à cocher */
input[type="checkbox"].interrupteur, .formulaire input[type="checkbox"].interrupteur {
  width: 44px; height: 24px; padding: 0 3px; border: 0; border-radius: 999px; background: #c5cfcb;
  display: inline-flex; align-items: center; justify-content: flex-start; vertical-align: -7px;
}
input[type="checkbox"].interrupteur::before {
  width: 18px; height: 18px; border-radius: 50%; clip-path: none; background: #fff; transform: translateX(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s ease-out;
}
input[type="checkbox"].interrupteur:checked { background: var(--vert); }
input[type="checkbox"].interrupteur:checked::before { transform: translateX(20px); }
.suppression { margin-top: 14px; }
.suppression summary { cursor: pointer; color: #a11; }
p.erreurs { padding-left: 12px; }
.bouton-google { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border: 1px solid #c7c7c7;
  border-radius: var(--rayon); background: #fff; color: #1f1f1f; text-decoration: none; font-weight: 600; margin: 16px 0 0; }
.bouton-google:hover { background: #f6f6f6; }
.mdp { position: relative; display: block; margin-top: 4px; }
.mdp input { margin-top: 0 !important; padding-right: 86px !important; }
.mdp__voir { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: inherit; font-size: .82rem; font-weight: 600;
  padding: 4px 10px; border: 0; border-radius: 6px; background: var(--vert-clair); color: var(--vert); cursor: pointer; }
/* Espace « Mon compte » : menu latéral, déconnexion en bas */
.espace-compte { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 20px; padding-bottom: 40px; }
@media (min-width: 860px) { .espace-compte { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; } }
.espace-compte__contenu { min-width: 0; }
.espace-compte__contenu h1 { margin-top: 0; }
.menu-compte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 10px; align-self: start; }
@media (min-width: 860px) { .menu-compte { position: sticky; top: 16px; display: flex; flex-direction: column; min-height: 300px; } }
.menu-compte__qui { margin: 4px 8px 10px; font-weight: 600; font-size: .9rem; color: var(--encre-douce); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-compte nav { display: flex; gap: 4px; flex-wrap: wrap; }
@media (min-width: 860px) { .menu-compte nav { flex-direction: column; } }
.menu-compte nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--encre); text-decoration: none; }
.menu-compte nav a:hover { background: var(--fond); }
.menu-compte nav a.actif { background: var(--vert-clair); color: var(--vert); font-weight: 600; }
.menu-compte__retractation { display: block; margin-top: 10px; padding: 8px 12px; font-size: .85rem; color: var(--encre-douce); }
.menu-compte__sortie { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--trait); }
@media (min-width: 860px) { .menu-compte__sortie { margin-top: auto; } }
.menu-compte__sortie button { width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 8px; background: none;
  font: inherit; color: #a11; cursor: pointer; }
.menu-compte__sortie button:hover { background: #fdecec; }

/* Accueil du compte : liste d'entrées (icône, titre, sous-titre, flèche) ; bouton retour des sous-pages sur mobile */
.compte-qui { margin: 0 0 18px; color: var(--encre-douce); overflow-wrap: anywhere; }
.compte-qui strong { color: var(--encre); font-size: 1.05rem; }
.compte-entrees { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--trait);
  border-radius: 14px; overflow: hidden; }
.compte-entrees a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--encre); text-decoration: none;
  border-bottom: 1px solid var(--trait); }
.compte-entrees a:last-child { border-bottom: 0; }
.compte-entrees a:hover { background: var(--fond); }
.compte-entrees a::after { content: "›"; margin-left: auto; font-size: 1.5rem; line-height: 1; color: #a8b3ae; }
.compte-entrees__icone { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--vert-clair); }
.compte-entrees__icone svg { width: 22px; height: 22px; fill: none; stroke: var(--vert); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.compte-entrees__texte { display: flex; flex-direction: column; min-width: 0; }
.compte-entrees__texte small { color: var(--encre-douce); font-size: .86rem; }
.compte-sortie { margin: 18px 0 0; }
.compte-sortie button { width: 100%; padding: 13px 16px; font: inherit; font-weight: 600; color: #a11; background: var(--surface);
  border: 1px solid var(--trait); border-radius: 14px; cursor: pointer; }
.compte-sortie button:hover { background: #fdecec; }
.retour-compte { display: none; }
@media (max-width: 859px) {
  /* Mobile : pas de menu en colonne (l'accueil du compte le remplace), bouton retour en haut des sous-pages */
  .menu-compte { display: none; }
  .espace-compte { padding-top: 12px; }
  .retour-compte { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 14px 8px 10px;
    border-radius: 999px; background: var(--surface); border: 1px solid var(--trait); color: var(--vert); font-weight: 600;
    text-decoration: none; font-size: .95rem; }
  .retour-compte span { font-size: 1.1rem; }
}
@media (min-width: 860px) { .compte-sortie { display: none; } }
.bien-resume h2 a { color: var(--encre); text-decoration: none; }
.bien-resume h2 a:hover { color: var(--vert); text-decoration: underline; }
/* Achat du Dossier OLD */
.achat { border-color: var(--vert); }
.achat__liste { padding-left: 0; list-style: none; }
.achat__liste li { padding: 4px 0 4px 26px; position: relative; }
.achat__liste li::before { content: "✓"; position: absolute; left: 4px; color: var(--vert); font-weight: 700; }
.achat__prix { font-size: 1.05rem; margin: 14px 0; }
.achat__prix strong { font-size: 1.4rem; color: var(--vert); }

/* Onglets d'un bien */
/* Trait de base en ombre intérieure : le soulignement de l'onglet actif le recouvre sans déborder
   (un débord crée un ascenseur vertical, overflow-x: auto rendant aussi l'axe vertical défilable) */
/* Pages d'un bien : en-tête (commune, nom du bien) et onglets en pastilles, défilant au doigt sans barre visible */
.entete-bien { margin: 0 0 12px; }
.entete-bien__lieu { margin: 0 0 2px; font-size: .9rem; color: var(--encre-douce); }
.entete-bien h1 { margin: 0; font-size: 1.5rem; }
.titre-onglet { margin-top: 4px; }
.entete-bien__titre { display: flex; align-items: center; gap: 8px; }
.bouton-icone { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--trait);
  border-radius: 50%; background: var(--surface); color: var(--encre-douce); cursor: pointer; }
.bouton-icone:hover { color: var(--vert); border-color: var(--vert); }
.bouton-icone svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; }
.renommer { margin: 10px 0 4px; padding: 12px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); }
.renommer input[type="text"] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b9c2be; border-radius: 8px; }
.renommer__actions { display: flex; gap: 8px; margin-top: 10px; }
.renommer__actions .bouton { flex: 1; text-align: center; padding: 9px 12px; }
.onglets { display: flex; gap: 8px; margin: 0 0 18px; padding: 2px 0 4px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.onglets::-webkit-scrollbar { display: none; }
.onglets a { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--trait); background: var(--surface);
  color: var(--encre); text-decoration: none; white-space: nowrap; font-size: .95rem; }
.onglets a:hover { border-color: var(--vert); color: var(--vert); }
.onglets a.actif { background: var(--vert); border-color: var(--vert); color: #fff; font-weight: 600; }
.onglets__icone, .onglets__court { display: none; }
@media (max-width: 859px) {
  /* Mobile : barre d'onglets fixée en bas de l'écran (icône + libellé court), toujours à portée du pouce */
  .onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 0; margin: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); overflow: visible; background: var(--surface);
    border-top: 1px solid var(--trait); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); }
  .onglets a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; border: 0;
    border-radius: 12px; background: none; color: var(--encre-douce); font-size: .72rem; font-weight: 500; }
  .onglets a:hover { color: var(--vert); }
  .onglets a.actif { background: none; color: var(--vert); font-weight: 700; }
  .onglets__long { display: none; }
  .onglets__court { display: block; }
  .onglets__icone { display: block; width: 44px; height: 30px; padding: 4px 11px; border-radius: 999px; fill: none;
    stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .onglets a.actif .onglets__icone { background: var(--vert-clair); }
  /* Place pour la barre en bas de page (sous le pied de page) */
  body:has(.onglets) .pied { padding-bottom: 80px; }
}

/* Coffre de preuves */
.preuves { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.preuve { margin: 0; border: 1px solid var(--trait); border-radius: 8px; overflow: hidden; background: var(--fond); font-size: .82rem; }
.preuve img { display: block; width: 100%; height: 130px; object-fit: cover; }
.preuve__pdf { display: flex; align-items: center; justify-content: center; height: 130px; font-weight: 700; color: #a11; background: #fff; }
.preuve figcaption { padding: 8px 10px; line-height: 1.4; }
input[type="file"] { display: block; margin-top: 6px; font: inherit; }

/* Suivi des lettres aux voisins */
.suivi { border: 1px solid var(--trait); border-left: 4px solid #9aa39f; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.suivi--attente { border-left-color: #d9a400; }
.suivi--alerte { border-left-color: #c2410c; background: var(--orange-clair); }
.suivi--ok { border-left-color: var(--vert); }
.suivi summary { cursor: pointer; }
.suivi__etat { display: block; font-size: .88rem; color: var(--encre-douce); margin-top: 2px; }
.suivi--alerte .suivi__etat { color: #9a3c02; font-weight: 600; }
.suivi__form { margin-top: 10px; }
.grille-2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .grille-2 { grid-template-columns: 1fr 1fr; } }
#carte-dossier { height: min(560px, 75vh); border-radius: 8px; overflow: hidden; border: 1px solid var(--trait); }
fieldset.voisin { border: 1px solid var(--trait); border-radius: 8px; padding: 8px 12px 12px; margin: 10px 0; display: grid; gap: 8px; }
fieldset.voisin legend { font-weight: 600; padding: 0 4px; }
.bloc-bien { margin: 14px 0 0; padding: 10px 12px; border: 1px dashed var(--vert); border-radius: var(--rayon); font-size: .92rem; }
.bloc-bien .note { display: block; margin-top: 6px; font-size: .84rem; }
.bouton--plein { display: block; width: 100%; text-align: center; }
/* Groupe de boutons d'action : empilés en pleine largeur sur mobile, côte à côte ensuite */
.actions { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.actions .bouton { width: 100%; text-align: center; margin: 0; }
@media (min-width: 640px) {
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .actions .bouton { width: auto; }
}
.bloc-bien--ok { border-style: solid; background: var(--vert-clair); }
.bloc-bien__dossier { display: inline-block; margin-top: 10px; }
/* Gros bouton d'action (mise en relation avec un pro) */
.bouton--grand { font-size: 1.08rem; padding: 15px 26px; border-radius: 12px; box-shadow: 0 3px 10px rgba(47, 93, 80, .25); }
.form-pro .bouton--grand { justify-self: stretch; text-align: center; }
@media (min-width: 640px) { .form-pro .bouton--grand { justify-self: start; } }
.engagement-pro ul { margin: 0; padding-left: 20px; }
.engagement-pro li { margin: 6px 0; }
.demande-pro { border-color: var(--vert); background: var(--vert-clair); }

/* Page des communes : recherche par nom et une entrée par département */
.recherche-communes { position: relative; max-width: 560px; margin: 8px 0 28px; }
.recherche-communes label { display: block; font-weight: 600; margin-bottom: 6px; }
.recherche-communes input { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1.5px solid var(--vert);
  border-radius: var(--rayon); }
.resultats-communes { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--trait); border-radius: var(--rayon);
  background: #fff; position: absolute; left: 0; right: 0; z-index: 5; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.resultats-communes a { display: block; padding: 9px 14px; text-decoration: none; color: var(--encre); }
.resultats-communes a:hover, .resultats-communes a:focus { background: var(--vert-clair); }
.resultats-communes span { color: var(--encre-douce); font-size: .85rem; }
.resultats-communes .vide { padding: 9px 14px; color: var(--encre-douce); }
.departements { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.departement { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--trait); border-radius: var(--rayon);
  background: #fff; text-decoration: none; color: var(--encre); }
.departement:hover { border-color: var(--vert); background: var(--vert-clair); }
.departement strong { font-size: 1.15rem; color: var(--vert); }
.departement strong span, .departement > span { color: var(--encre-douce); font-weight: 400; font-size: .9rem; }

/* Appel à créer un compte, sous le total : bien visible */
.bloc-bien--appel { display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--vert); background: var(--vert-clair);
  padding: 14px 16px; font-size: .95rem; }
.bloc-bien__titre { font-size: 1.08rem; color: var(--vert); }
.bloc-bien__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bloc-bien__actions .bouton { padding: 9px 16px; }
.a-moi { font-size: .78rem; color: var(--vert); font-weight: 600; }
.a-moi-bouton { font: inherit; font-size: .76rem; padding: 1px 8px; margin-left: 4px; border: 1px solid var(--vert); border-radius: 999px;
  background: #fff; color: var(--vert); cursor: pointer; }
.a-moi-bouton:hover { background: var(--vert-clair); }
.en-ligne { display: inline; margin-left: 8px; }
.separateur { text-align: center; color: var(--encre-douce); font-size: .88rem; margin: 14px 0; }
.formulaire label { display: block; font-weight: 600; font-size: .95rem; }
.formulaire select, .formulaire textarea { display: block; width: 100%; font: inherit; padding: 9px 12px; margin-top: 4px; border: 1px solid #bbb; border-radius: 8px; background: #fff; }
.formulaire input { max-width: none; }
.facultatif { font-weight: 400; color: var(--encre-douce); font-size: .85rem; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erreurs { color: #a11; background: #fdecec; border-radius: var(--rayon); padding: 10px 10px 10px 28px; }
.succes { background: var(--vert-clair); color: var(--vert); border-radius: var(--rayon); padding: 12px 14px; font-weight: 600; }
.a-completer { color: #a11; }

.chiffres--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .chiffres--3 { grid-template-columns: repeat(3, 1fr); } }
.tableau--texte td:nth-child(n+2), .tableau--texte th:nth-child(n+2) { text-align: left; }
@media (max-width: 640px) { .tableau--texte { font-size: .85rem; } .tableau--texte td, .tableau--texte th { padding: 6px; } }
.schema { margin: 1.4rem 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px; }
.schema img { display: block; width: 100%; height: auto; }
.schema figcaption { font-size: .88rem; color: var(--encre-douce); margin-top: 6px; text-align: center; }
/* Espace presse (/presse) */
.presse-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.presse-communique__date { margin: 14px 0 0; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--encre-douce); }
.carte-bloc.presse-communique h2 { font-size: 1.3rem; line-height: 1.3; margin-top: 6px; }
.presse-communique__chapeau { font-weight: 600; }
.presse-tableau { overflow-x: auto; }
.presse-tableau .tableau { min-width: 560px; }
.presse-ressources { list-style: none; padding: 0; display: grid; gap: 10px; }
.presse-ressources li { display: flex; align-items: center; gap: 14px; padding: 10px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); }
.presse-ressources img, .presse-ressources__vide { flex: none; width: 120px; height: auto; padding: 6px; border-radius: 6px; background: #fff; border: 1px solid var(--trait); box-sizing: border-box; }
.presse-ressources__vide { height: 63px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--vert); }
.carte-bloc.presse-contact { background: var(--vert-clair); border-color: #cfe0d5; }
.presse-citation { margin: 1rem 0; padding: 12px 16px; border-left: 4px solid #e8833a; background: #fbf3ec; border-radius: 0 8px 8px 0; font-style: italic; }
.presse-citation p { margin: 0; }
.presse-citation footer { margin-top: 8px; font-style: normal; font-weight: 600; font-size: .9rem; color: var(--encre-douce); }
.presse-captures { display: grid; gap: 14px; margin: 12px 0; }
.presse-captures--large { grid-template-columns: 1fr; }
.presse-captures--mobile { grid-template-columns: repeat(2, minmax(0, 240px)); }
@media (min-width: 720px) { .presse-captures--large { grid-template-columns: 1fr 1fr; } }
.presse-captures figure { margin: 0; }
.presse-captures img { display: block; width: 100%; height: auto; border: 1px solid var(--trait); border-radius: 8px; background: #fff; }
.presse-captures figcaption { margin-top: 6px; font-size: .85rem; color: var(--encre-douce); }

.guides { margin-top: 2.5rem; border-top: 1px solid var(--trait); }
.guides ul { padding-left: 1.1rem; }
.guides li { margin: .3rem 0; }

/* Pied de page */
.pied { border-top: 1px solid var(--trait); background: var(--surface); padding: 20px 0 28px; font-size: .88rem; color: var(--encre-douce); }
.pied .avertissement { margin-top: 0; }
.pied__liens { display: flex; gap: 16px; flex-wrap: wrap; }
.pied__editeur { margin-bottom: 0; }

/* Espace pro des communes (pro.monold.fr, D31) */
.entete--pro { border-bottom: 3px solid var(--vert); }
.logo-pro { margin-left: 2px; padding: 2px 8px; border-radius: 6px; background: var(--vert); color: #fff; font-size: .8rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nav--pro { align-items: center; }
.nav--pro form { margin: 0; }
.nav--pro button.nav__compte { background: none; font: inherit; font-size: .95rem; cursor: pointer; }
.nav-pro-compte { color: var(--encre-douce); font-size: .85rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bouton-lien { background: none; border: 0; padding: 0; font: inherit; color: #a11; text-decoration: underline; cursor: pointer; }
.pro-etroit { margin: 0 auto; }
.pro-fil { margin: 0 0 4px; font-size: .9rem; }
.pro-fil a { color: var(--encre-douce); text-decoration: none; }
.pro-fil a:hover { color: var(--vert); text-decoration: underline; }
.pro-titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.pro-titre h1 { margin: 0; }
.pro-titre .badge { margin: 0; }
.pro-surtitre { margin: 0; font-size: .85rem; color: var(--encre-douce); text-transform: uppercase; letter-spacing: .05em; }
.pro-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.pro-tuile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--rayon); color: inherit; text-decoration: none; }
a.pro-tuile:hover { border-color: var(--vert); box-shadow: 0 2px 10px rgba(47, 93, 80, .12); }
.pro-tuile strong { font-size: 1.08rem; color: var(--vert); }
.pro-tuile span { font-size: .92rem; color: var(--encre-douce); }
.pro-tuile em { margin-top: auto; font-style: normal; font-weight: 600; color: var(--vert); font-size: .92rem; }
.pro-tuile--principale { background: var(--vert-clair); border-color: #cfe0d5; }
.pro-tuile--bientot { border-style: dashed; opacity: .75; }
.pro-lien { width: 100%; margin-top: 8px; font: inherit; font-size: .85rem; font-weight: 400; padding: 7px 10px; border: 1px solid #b9c2be; border-radius: 8px; }
.pro-roles { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pro-roles legend { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.pro-role { display: grid !important; grid-template-columns: auto 1fr; column-gap: 10px; padding: 10px 12px; border: 1px solid var(--trait);
  border-radius: 8px; font-weight: 400 !important; cursor: pointer; }
.pro-role input { grid-row: span 2; margin-top: 3px; }
.pro-role span { font-size: .88rem; color: var(--encre-douce); }
.pro-role:has(input:checked) { border-color: var(--vert); background: var(--vert-clair); }
.pro-liste-roles { padding-left: 1.1rem; }
.pro-accueil { max-width: 760px; margin: 10px auto 30px; }
.pro-accueil h1 small { display: block; font-size: 1.05rem; font-weight: 400; color: var(--encre-douce); }
.pro-chapeau { font-size: 1.08rem; }
.pro-points { padding-left: 1.1rem; }
.pro-points li { margin: .4rem 0; }

/* Courriers aux propriétaires (espace pro) : riverains d'une voie ou propriétaires d'une zone ; [data-type] : élément
   propre à une sorte de courriers, caché pour l'autre (courriers.js) */
[data-type][hidden] { display: none !important; }
.courriers-confidentiel { background: #fbf3ec; border-left: 4px solid #c9853f; border-radius: 6px; padding: 10px 14px; font-size: .95rem; }
.courriers-mode { padding-left: 1.2rem; font-size: .95rem; }
.courriers-mode li { margin: .3rem 0; }
.courriers-depot { display: block; position: relative; padding: 22px 16px; border: 2px dashed #b9c2be; border-radius: var(--rayon);
  text-align: center; cursor: pointer; color: var(--encre-douce); }
.courriers-depot:hover, .courriers-depot.survol { border-color: var(--vert); background: var(--vert-clair); color: var(--vert); }
.courriers-depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.courriers-defile { max-height: 22rem; overflow: auto; border: 1px solid var(--trait); border-radius: 8px; margin: 10px 0; }
.courriers-defile .tableau { font-size: .86rem; }
.courriers-defile .tableau th { position: sticky; top: 0; background: #f4f2ec; z-index: 1; }
.courriers-defile .tableau td, .courriers-defile .tableau th { text-align: left; vertical-align: top; padding: 5px 8px; }
.courriers-defile tr.ecartee td { color: #8a9692; }
.courriers-etat { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.courriers-etat--ok { background: var(--vert-clair); color: var(--vert); }
.courriers-etat--non { background: #fdecec; color: #a11; }
.courriers-etat--attention { background: #fbf3ec; color: #9a5a1b; }
.courriers-champs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.courriers-champs .courriers-large { grid-column: 1 / -1; }
.courriers-champs input { display: block; width: 100%; font: inherit; padding: 9px 12px; margin-top: 4px; border: 1px solid #bbb; border-radius: 8px; }
.courriers-situations th, .courriers-situations td { text-align: left; }
.courriers-situations select { font: inherit; padding: 5px 8px; border: 1px solid #bbb; border-radius: 6px; }
.courriers-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.courriers-lien { background: none; border: 0; padding: 0; font: inherit; color: var(--vert); text-decoration: underline; cursor: pointer; }
.courriers-debut { width: 4.5em; font: inherit; padding: 2px 6px; }
.courriers-plan label { font-weight: 600; margin-right: 10px; }
.courriers-plan select { font: inherit; padding: 5px 8px; margin-left: 6px; border: 1px solid #bbb; border-radius: 6px; }
.courriers-plan .note { display: block; margin-top: 4px; }
.courriers-progression { font-weight: 600; color: var(--vert); }
.courriers-onglets { display: flex; gap: 4px; border-bottom: 2px solid var(--trait); margin: 18px 0 4px; }
.courriers-onglets button { font: inherit; font-weight: 600; padding: 9px 16px; border: 1px solid transparent; border-bottom: 0;
  border-radius: 8px 8px 0 0; background: none; color: var(--encre-douce); cursor: pointer; margin-bottom: -2px; }
.courriers-onglets button.actif { background: var(--surface); border-color: var(--trait); border-bottom: 2px solid var(--surface); color: var(--vert); }
.courriers-editeur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .courriers-editeur { grid-template-columns: minmax(0, 1fr); } }
.courriers-editeur input, .courriers-editeur textarea { display: block; width: 100%; font: inherit; padding: 8px 10px; margin-top: 4px;
  border: 1px solid #bbb; border-radius: 8px; }
.courriers-editeur textarea { font-size: .92rem; line-height: 1.45; }
.courriers-insertion { display: flex; flex-wrap: wrap; gap: 6px; }
.courriers-insertion button { font: inherit; font-size: .82rem; padding: 4px 9px; border: 1px solid #cfd8d3; border-radius: 14px;
  background: var(--vert-clair); color: var(--vert); cursor: pointer; }
.courriers-insertion button:hover { border-color: var(--vert); }
.courriers-apercu-titre { font-weight: 600; margin: 0 0 6px; }
.lettre-apercu { background: #fff; border: 1px solid var(--trait); border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  padding: 26px 30px; font-size: .84rem; line-height: 1.42; color: #1f2a26; position: sticky; top: 12px; max-height: 92vh; overflow: auto; }
.lettre-apercu p { margin: 0 0 .7em; }
.lettre-entete { display: flex; gap: 10px; align-items: flex-start; font-size: .76rem; color: #4b5552; }
.lettre-entete img { max-width: 90px; max-height: 64px; }
.lettre-entete strong { color: #1f2a26; font-size: .86rem; }
.lettre-adresse { margin: 22px 0 22px 50%; }
.lettre-date { margin-left: 50% !important; }
.lettre-signature { margin: 1.4em 0 0 50% !important; }
.lettre-mention { margin-top: 2em !important; font-size: .7rem; color: #6b7773; }
.lettre-retire { color: #9aa3a0; text-decoration: line-through; }
.lettre-retire small { display: block; text-decoration: none; font-style: italic; }
.champ-rempli { background: #e7efe9; border-radius: 3px; }
mark.champ-vide { background: #eee; color: #777; }
mark.champ-inconnu { background: #fdecec; color: #a11; font-weight: 600; }
.courriers-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.courriers-logo-titre { font-weight: 600; font-size: .95rem; width: 100%; }
.courriers-logo img { max-width: 160px; max-height: 80px; border: 1px solid var(--trait); padding: 4px; background: #fff; }
.courriers-logo .bouton { font-size: .9rem; padding: 7px 12px; }
.courriers-logo input[type=file] { display: none; }
.courriers-logo .note { width: 100%; }
.lettre-signature img { max-width: 160px; max-height: 56px; margin: 4px 0; }
.courriers-modeles summary { cursor: pointer; font-weight: 600; color: var(--vert); margin-top: 12px; }
.courriers-modele { border-left: 3px solid var(--trait); padding: 2px 12px; margin: 10px 0; font-size: .92rem; }
.courriers-modele mark { background: #fff2b3; padding: 0 2px; border-radius: 3px; }
#courriers-cadre { width: 100%; height: 80vh; border: 1px solid var(--trait); border-radius: 8px; margin-top: 10px; }
