/* Argos · site public. Direction visuelle : design/DESIGN.md (5 octobre 2026). */

/* IBM Plex, auto-hébergée : la CSP n'autorise que font-src 'self'. Licence SIL OFL : fonts/OFL-*.txt */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alumni Sans"; font-weight: 300; font-display: swap; src: url("fonts/alumni-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Alumni Sans"; font-weight: 500; font-display: swap; src: url("fonts/alumni-sans-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --fond-page: #f5f3ee;       /* papier */
  --surface: #ffffff;
  --surface-2: #efece6;
  --encre: #1d2125;           /* texte, boutons principaux, adresse choisie, rayon */
  --encre-2: #3f4349;
  --encre-3: #5c6066;
  --trait: #ddd9d0;
  --trait-fort: #cfcbc1;
  --anneau: rgba(29, 33, 37, .10);
  --pc: #c2410c;              /* une couleur par type d'autorisation, partout : badges, puces, fiche */
  --pa: #0b7285;
  --pd: #7048e8;
  --dp: #e0a100;              /* texte encre sur le jaune, pas blanc */
  --autorisation: #2a78d6;    /* carte : parcelles portant au moins une autorisation (une seule couleur) */
  --surlignage: #ffe600;      /* carte : autorisation cliquée dans la liste */
  --surlignage-fond: #fff4a8; /* liste : la même autorisation, en fond de ligne */
  --lien: var(--encre);
  --rayon: 8px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --titre: "Alumni Sans", "Arial Narrow", var(--sans);  /* grands titres seulement, étroite : corps plus grand */
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --fond-page: #141618;
    --surface: #1d2023;
    --surface-2: #26292d;
    --encre: #f1efea;
    --encre-2: #c9c6bf;
    --encre-3: #a3a19b;
    --trait: #33363a;
    --trait-fort: #4a4d52;
    --anneau: rgba(241, 239, 234, .10);
    --surlignage-fond: #4a4413;
  }
}
[data-type="PC"] { --t: var(--pc); --sur-t: #ffffff; }
[data-type="PA"] { --t: var(--pa); --sur-t: #ffffff; }
[data-type="PD"] { --t: var(--pd); --sur-t: #ffffff; }
[data-type="DP"] { --t: var(--dp); --sur-t: #1d2125; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--fond-page); color: var(--encre); }
.appli {  /* écran 2 : en-tête, filtres, puis liste et carte sur toute la hauteur */
  display: grid;
  grid-template-columns: minmax(0, 1fr);  /* sinon la largeur du canevas de la carte élargit la grille */
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100dvh;
}
a { color: var(--lien); }
strong, b { font-weight: 600; }
button, input, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--lien); outline-offset: 2px; }

/* Écran 2 · en-tête compact : logo, recherche, sélecteur d'affichage */
.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 12px clamp(16px, 3vw, 32px);
  background: var(--surface);
  border-bottom: 1px solid var(--trait);
  position: relative;
  z-index: 3;
}
.titre { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.logo { flex: none; }
.titre-texte { display: flex; flex-direction: column; min-width: 0; }
.marque { font-weight: 600; font-size: 20px; line-height: 1.1; letter-spacing: -.015em; }
.entete .sous-marque { display: none; color: var(--encre-2); font-size: .85rem; }  /* imprimée seulement */
.recherche { position: relative; flex: 1 1 380px; min-width: 0; max-width: 680px; }
.barre.barre-compacte { flex-wrap: nowrap; gap: 10px; padding: 4px 4px 4px 14px; border-radius: 12px; box-shadow: none; }
.barre.barre-compacte .epingle { margin-left: 0; }
.barre.barre-compacte input { flex: 1 1 auto; height: 44px; font-size: 16px; }
.barre.barre-compacte .bouton-principal { height: 40px; padding: 0 18px; border-radius: 8px; font-size: 15px; }
.affichage { margin-left: auto; }

/* Contrôle segmenté : affichage, rayon, tri */
.segmente { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--trait-fort); border-radius: 10px; background: var(--surface); }
.segmente button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.segmente button:hover { background: var(--surface-2); }
.segmente button[aria-pressed="true"] { background: var(--encre); color: var(--surface); }
.suggestions {
  position: absolute;
  inset: calc(100% + 4px) 0 auto;
  z-index: 5;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  box-shadow: 0 8px 24px rgba(29, 33, 37, .12);
}
.suggestions li { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--surface-2); }
.suggestions .aucune { color: var(--encre-2); cursor: default; }

/* Mise en page : liste (40 %) et carte (60 %), liste seule ou carte seule.
   Masquée, la carte reste rendue hors écran : son image accompagne le rapport imprimé. */
.contenu { position: relative; display: grid; grid-template-columns: minmax(360px, 2fr) minmax(0, 3fr); min-height: 0; }
.colonne-liste { min-height: 0; overflow-y: auto; }
.carte { position: relative; min-height: 0; background: #edeae3; border-left: 1px solid var(--trait); }
.vue-liste .contenu, .vue-carte .contenu { grid-template-columns: minmax(0, 1fr); }
.vue-liste .carte { position: absolute; left: -10000px; top: 0; width: 960px; height: 640px; visibility: hidden; }
.vue-carte .colonne-liste { display: none; }
.vue-carte .carte { border-left: 0; }

/* Barre de filtres : types, rayon, période, date des données */
.filtres {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 10px clamp(16px, 3vw, 32px);
  background: var(--fond-page);
  border-bottom: 1px solid var(--trait);
}
.filtre-rayon { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--encre-2); }
.filtre-rayon .segmente button { padding: 0 12px; font-family: var(--mono); font-size: 13px; font-weight: 400; }
.depuis { font-size: 14px; color: var(--encre-2); }
.depuis select { height: 40px; margin-left: 6px; padding: 0 10px; border: 1px solid var(--trait-fort); border-radius: 10px; background: var(--surface); }
.maj { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--encre-3); }

/* Contenu de la liste */
#vue { padding: 24px clamp(16px, 3vw, 32px) 40px; }
#vue h2 { font-family: var(--titre); font-size: 1.9rem; font-weight: 500; line-height: 1.08; margin: 4px 0 6px; }
#vue h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin: 24px 0 8px; }
#vue p { margin: 0 0 10px; }
.chargement, .sous-titre, .note { color: var(--encre-2); }
.sous-titre { font-size: .9rem; }
.note { font-size: .88rem; }
.alerte { padding: 8px 10px; border-left: 3px solid var(--trait-fort); background: var(--surface-2); font-size: .88rem; }
.liste-communes { columns: 2 11rem; column-gap: 24px; margin: 0 0 20px; padding: 0; list-style: none; font-size: .92rem; }
.liste-communes li { break-inside: avoid; margin: 0 0 5px; }
.non-localisees { margin: 16px 0; font-size: .88rem; }
.non-localisees summary { cursor: pointer; }
.retour { align-self: flex-start; padding: 4px 0; border: 0; background: none; color: var(--lien); cursor: pointer; font-size: .88rem; }
.retour:hover { text-decoration: underline; }
.lien-periode {  /* historique complet, ou retour à la période par défaut */
  display: block;
  align-self: flex-start;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--lien);
  font-size: 14px;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lien-periode:hover { text-decoration-thickness: 2px; }
ul.dossiers + .lien-periode { margin-top: 10px; }
.mention { font-size: .8rem; color: var(--encre-3); }
#vue ul.simple { padding-left: 18px; margin: 0 0 10px; }
#vue ul.simple li { margin-bottom: 4px; }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.tuile { padding: 10px 12px; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--fond-page); }
.tuile .valeur { display: block; font-size: 1.45rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.tuile .libelle { display: block; font-size: .78rem; color: var(--encre-2); line-height: 1.3; margin-top: 2px; }
.precision-chiffres { font-size: .8rem; color: var(--encre-3); margin-top: 4px; }

/* Légende des sigles : à l'écran, elle sert aussi de filtre des types (un clic masque ou réaffiche) */
.sigles { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin: 10px 0 0; font-size: 13px; color: var(--encre-2); }
.sigles-titre { font-weight: 500; }
.sigles > span { display: inline-flex; align-items: center; gap: 6px; }
.sigles .badge { min-width: 30px; height: 22px; padding: 0 6px; font-size: 11.5px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.sigle { display: inline-flex; align-items: center; gap: 8px; padding: 3px 6px 3px 0; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.sigle:hover .nom { text-decoration: underline; }
.sigle[aria-pressed="false"] .badge { background: var(--trait); color: var(--encre-3); }
.sigle[aria-pressed="false"] .nom { color: var(--encre-3); text-decoration: line-through; }

/* Menu « Éditer un rapport » : PDF, tableau CSV, lien */
.menu-rapport { position: relative; margin: 14px 0 2px; }
.menu-rapport summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--encre);
  color: var(--surface);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.menu-rapport summary::-webkit-details-marker { display: none; }
.menu-rapport summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.menu-rapport[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.menu-rapport .menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  padding: 6px;
  border: 1px solid var(--trait-fort);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(29, 33, 37, .14);
}
.menu-rapport .menu button { padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 14px; cursor: pointer; }
.menu-rapport .menu button:hover { background: var(--surface-2); }

/* Actions : impression, tableau, lien */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.action {
  padding: 8px 14px;
  border: 1px solid var(--trait-fort);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.action:hover { border-color: var(--encre); }

/* Rapport : synthèse, blocs, tri, cartes de dossier */
.resume { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
#vue .resume p { margin: 0; }
.resume .retour { margin-bottom: 6px; }
.resume .surtitre { text-align: left; }
.synthese { margin: 0; font-family: var(--titre); font-size: clamp(36px, 4.2vw, 48px); line-height: 1.02; font-weight: 500; }
/* Mise en garde sous le chiffre clé : ce que les données ne disent pas, détaillé à la demande */
.limites-rapport { max-width: 62ch; font-size: 13.5px; line-height: 1.45; color: var(--encre-2); }
.limites-rapport summary { list-style: none; cursor: pointer; }
.limites-rapport summary::-webkit-details-marker { display: none; }
.limites-rapport .plus { color: var(--encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.limites-rapport summary:hover .plus { text-decoration-thickness: 2px; }
.limites-rapport p { margin: 0; }
.limites-rapport ul { margin: 6px 0 0; padding-left: 18px; }
.limites-rapport li { margin-bottom: 3px; }
.bloc { margin-top: 32px; }
#vue .bloc h2 { margin: 0 0 12px; font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.tri-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--trait); }
#vue .tri-barre h2 { margin: 0; }
.tri { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--encre-2); }
.tri .aide { flex-basis: 100%; font-size: 13px; }
.vide-bloc { padding: 24px; border: 1px dashed var(--trait-fort); border-radius: 14px; font-size: 15px; line-height: 1.5; color: var(--encre-2); }
.pied-rapport { margin-top: 32px !important; }
/* Liste compacte : une ligne par dossier, sur deux lignes de texte */
.liste-dossiers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.ligne-dossier {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px 12px;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-bottom: 1px solid var(--trait);
  background: transparent;
  text-align: left;
  cursor: pointer;
  scroll-margin: 16px;
}
.ligne-dossier:hover { background: var(--surface-2); }
.ligne-dossier.pointee { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--encre); }  /* parcelle survolée sur la carte */
.ligne-dossier[aria-pressed="true"] { background: var(--surlignage-fond); box-shadow: inset 0 0 0 1.5px var(--encre); }  /* jaune et contour encre, comme sur la carte */
.ligne-dossier .badge { grid-row: 1 / 3; align-self: start; min-width: 32px; height: 22px; margin-top: 1px; font-size: 11px; }
.ligne-dossier .l1 { font-size: 15px; line-height: 1.35; }
.ligne-dossier .titre-dossier { font-weight: 600; }
.ligne-dossier .detail { color: var(--encre-2); }
.ligne-dossier .droite { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--encre); white-space: nowrap; text-align: right; }
.ligne-dossier .l2 { font-size: 13px; line-height: 1.35; color: var(--encre-3); }
.ligne-dossier .droite-2 { font-size: 12.5px; line-height: 1.35; color: var(--encre-3); white-space: nowrap; text-align: right; }
.ligne-dossier .l3 { grid-column: 2 / 4; font-size: 12.5px; line-height: 1.35; color: var(--encre-3); }  /* déposée sous un ancien numéro de parcelle */
.ligne-dossier.annule .titre-dossier, .ligne-dossier.annule .detail { text-decoration: line-through; color: var(--encre-3); }
.groupe-adresse { margin-top: 18px; }
.groupe-adresse:first-of-type { margin-top: 0; }
#vue .groupe-adresse h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 6px 0;
  font-size: 14px;
}
.groupe-adresse h3 .distance { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--encre-2); white-space: nowrap; }
.version-imprimable { display: none; }

/* Contenu de la fiche */
.fiche-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fiche .badge { min-width: 38px; height: 26px; font-size: 12px; }
.fiche .type-fiche { font-size: 14px; color: var(--encre-2); }
.fiche .distance { font-family: var(--mono); font-size: 13px; color: var(--encre-2); }
.fiche .titre-dossier { font-size: 17px; font-weight: 600; line-height: 1.25; }
.fiche .titre-dossier.annule { text-decoration: line-through; color: var(--encre-3); }
.fiche .detail { font-size: 14px; line-height: 1.4; color: var(--encre-2); }
.fiche .adresse { font-size: 14px; line-height: 1.4; }
.fiche .quand { font-size: 13px; color: var(--encre-3); }
.fiche .bilan { margin-top: 4px; font-size: 14px; font-weight: 600; }  /* fiche de parcelle : nombre d'autorisations */
.fiche .registre {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--trait-fort);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--encre-3);
}

/* Fiche du dossier sélectionné : sur la carte, ou flottante quand la carte est masquée */
.fiche {
  position: absolute;
  right: 16px;
  bottom: 32px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(440px, calc(60% - 32px));
  max-height: calc(100% - 96px);
  overflow: auto;
  padding: 14px 18px 16px;
  border: 1px solid var(--encre);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(29, 33, 37, .18);
}
.vue-carte .fiche { width: min(440px, calc(100% - 32px)); }
.vue-liste .fiche { position: fixed; width: min(440px, calc(100% - 32px)); }
.fiche p { margin: 0; }
.fiche .fermer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -6px -8px 0 auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.fiche .fermer:hover { background: var(--surface-2); }
.fiche summary { margin-top: 4px; font-size: 14px; color: var(--encre-2); cursor: pointer; }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 8px 0 0; font-size: 13px; }
.fiche dt { color: var(--encre-2); }
.fiche dd { margin: 0; }
.fiche .action { align-self: flex-start; margin-top: 6px; }

/* Liste des autorisations */
ul.dossiers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.dossier { border-bottom: 1px solid var(--trait); }
.dossier summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2px 8px;
  padding: 9px 2px;
  cursor: pointer;
  list-style: none;
}
.dossier summary::-webkit-details-marker { display: none; }
.dossier summary:hover { background: var(--surface-2); }
.dossier .type {
  grid-row: span 3;
  align-self: start;
  min-width: 34px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--t, var(--surface-2));
  color: var(--sur-t, var(--encre));
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  text-align: center;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.dossier .ligne1 { font-size: .85rem; color: var(--encre-2); }
.dossier .distance { font-family: var(--mono); font-size: .8rem; color: var(--encre-2); white-space: nowrap; text-align: right; }
.dossier .adresse { grid-column: 2 / 4; font-weight: 600; font-size: .92rem; }
.dossier .projet { grid-column: 2 / 4; font-size: .88rem; color: var(--encre-2); }
.dossier.annule .adresse, .dossier.annule .projet { text-decoration: line-through; color: var(--encre-3); }
.dossier .origine { grid-column: 2 / 4; font-size: .8rem; color: var(--encre-3); }
.dossier dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 12px 46px; font-size: .85rem; }
.dossier dt { color: var(--encre-2); }
.dossier dd { margin: 0; }
.vide { color: var(--encre-2); font-size: .9rem; }

/* Carte : légende en haut à gauche (la carte reste claire en mode sombre : couleurs fixes) */
.legende {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - 80px);
  padding: 10px 12px;
  background: rgba(255, 255, 255, .95);
  color: #1d2125;
  border: 1px solid #ddd9d0;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.3;
}
.legende p { display: flex; align-items: center; gap: 8px; margin: 0; }
.legende i { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.legende .autorisee i { background: var(--autorisation); opacity: .8; }
.legende .rayon i { border: 1.5px dashed #1d2125; border-radius: 50%; }
.legende .surlignee i { background: var(--surlignage); box-shadow: inset 0 0 0 1.5px #1d2125; }
.legende .choix i { border: 2.5px solid #1d2125; }
.legende .ancienne i { border: 1.5px dashed #3f4349; }

/* Rapport : autorisations groupées par adresse */
.groupe { margin-top: 12px; }
.groupe h4 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 6px 0;
  font-size: .9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--trait-fort);
}
.groupe h4 .distance { font-family: var(--mono); font-size: .8rem; font-weight: 400; color: var(--encre-2); white-space: nowrap; }
.groupe ul.dossiers { border-top: 0; }
.groupe .dossier .adresse { display: none; }
.dossier.surlignee summary { background: var(--surlignage-fond); box-shadow: inset 0 0 0 1.5px var(--encre); }
.dossier.pointee summary { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--encre); }  /* parcelle survolée sur la carte */

/* Petit écran : la liste d'abord, la carte en plein écran par le sélecteur */
@media (max-width: 820px) {
  .appli { display: block; height: auto; }
  .appli.vue-carte { display: grid; height: 100dvh; }
  .entete { gap: 10px 12px; padding: 10px 16px; }
  .recherche { order: 3; flex-basis: 100%; max-width: none; }
  .affichage [data-affichage="split"] { display: none; }
  .contenu { display: block; }
  .vue-carte .contenu { display: grid; }
  .vue-split .carte { position: absolute; left: -10000px; top: 0; width: 960px; height: 640px; visibility: hidden; }
  .colonne-liste { overflow: visible; }
  .filtres { gap: 8px 16px; padding: 10px 16px; }
  .maj { display: none; }
  .fiche, .vue-carte .fiche, .vue-liste .fiche { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 70dvh; }
  .legende { gap: 4px; padding: 8px 10px; font-size: 11.5px; }
  /* cibles tactiles de 44 px */
  .segmente button, .depuis select, .menu-rapport summary, .barre.barre-compacte .bouton-principal { height: 44px; }
  .fiche .fermer { width: 44px; height: 44px; }
  .sigle { min-height: 44px; }
}

/* Contrôles de la carte */
.maplibregl-map { font-family: var(--sans); color: #1d2125; }  /* contrôles blancs, y compris en mode sombre */
.fonds button { width: auto !important; padding: 0 8px; font-size: .78rem; }
.fonds button[aria-pressed="true"] { font-weight: 600; }
.maplibregl-popup-content { font: .82rem/1.35 var(--sans); color: #1d2125; padding: 6px 9px; }

/* Écran 1 · Accueil, sans carte */
.accueil { min-height: 100dvh; display: flex; flex-direction: column; }
.accueil main { flex: 1 0 auto; }
.accueil-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--trait);
}
.accueil-entete .marque { font-size: 21px; }
.accueil-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 15px; }
.accueil-nav a { color: var(--encre); text-decoration: none; }
.accueil-nav a:hover { text-decoration: underline; }
.pastille { padding: 6px 12px; border: 1px solid var(--trait-fort); border-radius: 999px; font-family: var(--mono); font-size: 12px; color: var(--encre-3); }

.hero { padding: clamp(40px, 7vw, 104px) clamp(16px, 4vw, 48px) clamp(56px, 8vw, 112px); border-bottom: 1px solid var(--trait); }
.hero-grille {  /* texte d'abord dans le code (titre et recherche en tête au clavier), carré à gauche à l'écran */
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
}
.hero-grille .scene { grid-column: 1; grid-row: 1; }
.hero-texte { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.surtitre { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); }
.hero h1 { margin: 0; font-family: var(--titre); font-size: clamp(54px, 6.4vw, 90px); line-height: .98; font-weight: 300; letter-spacing: -.005em; text-wrap: balance; }
.chapo { margin: 0; max-width: 56ch; font-size: 18px; line-height: 1.55; color: var(--encre-2); }
@media (max-width: 1080px) {  /* une colonne : la recherche d'abord, le carré ensuite */
  .hero-grille { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-grille .scene, .hero-texte { grid-column: 1; grid-row: auto; }
  .hero-grille .scene { justify-self: center; width: min(100%, 680px); }
  .hero-texte { max-width: 680px; }
}

/* Accueil · avant / après (repris d'impeccable.style). Le bloc .preuve est généré par design/accueil_preuve.py :
   un carré de plan, des questions or accolées à son bord gauche, « Avant » / « Après » en arc aux coins, une
   couture de 2 px et sa capsule. Couleurs fixes dans le carré : comme la carte du site, il reste clair. */
@property --position { syntax: "<percentage>"; inherits: true; initial-value: 62%; }
.scene {
  --cote: min(460px, 100cqw - 200px);             /* côté du carré ; 200 px à sa gauche pour les questions */
  container: scene / inline-size;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}
.preuve {
  --or: oklch(84% .19 80.46);
  --encre-or: oklch(4% .004 95);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --doux: cubic-bezier(.4, 0, .2, 1);              /* départ et arrivée en douceur */
  position: relative;
  width: var(--cote);
  height: var(--cote);
  margin: 0;
  color: #1d2125;
  -webkit-user-select: none;
  user-select: none;
}
.couche { position: absolute; inset: 0; overflow: visible; }
.couche.avant { z-index: 1; }
.couche.apres { z-index: 2; clip-path: inset(-48px -48px -48px var(--position)); }
.plan { position: absolute; inset: 0; }
.plan-carte { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(29, 33, 37, .1); }
.avant .plan-carte { border-radius: 8px; border-color: rgba(120, 104, 80, .3); }
.apres .plan-carte { border-radius: 2px; box-shadow: 0 24px 48px -24px rgba(29, 33, 37, .25); }

.mention { position: absolute; z-index: 3; width: 80px; height: 80px; overflow: visible; pointer-events: none; }
.mention text { fill: var(--encre-3); font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.mention-avant { top: -40px; left: -40px; }
.mention-apres { right: -40px; bottom: -40px; }

/* Une question, puis sa réponse quand la couture la dépasse vers la gauche : la question passe en neutre avec
   une coche (traitée, sans jugement), la réponse apparaît dessous, en bleu comme les parcelles autorisées. */
.paire {
  --pas: 70ms;
  --delai: calc(var(--rang, 0) * var(--pas));
  position: absolute;
  top: var(--haut);
  right: calc(100% + 16px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  transform: translateY(-22px);                   /* le milieu de la question (deux lignes) sur la hauteur voulue */
  pointer-events: none;
}
.question, .reponse { display: block; border-radius: 2px; white-space: nowrap; }  /* lignes coupées à la main */
.question {
  position: relative;
  padding: 4px 8px 5px;
  border: 1px solid var(--or);
  background: var(--or);
  color: var(--encre-or);
  font: 500 12.5px/1.35 var(--mono);
  transition: opacity .26s var(--ease) var(--delai), filter .3s var(--ease) var(--delai),
    transform .34s var(--ease) var(--delai), visibility .34s var(--delai),
    background-color .9s var(--doux), border-color .9s var(--doux), color .9s var(--doux);
}
.question::before {  /* la coche (dessinée), à gauche de l'étiquette : elle grossit sans rien déplacer */
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 6px);
  width: 12px;
  height: 12px;
  background: var(--encre);                        /* hors du carré : suit le thème */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.5L10 3.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.5L10 3.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  opacity: 0;
  transform: translateY(-50%) scale(.4);
  transition: opacity .6s var(--doux), transform .7s var(--doux);
}
.question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 17px;
  height: 1px;
  background: var(--or);
  transform-origin: 0 50%;
  transition: transform .3s var(--ease) calc(var(--delai) + .13s), background-color .9s var(--doux);
}
.reponse {
  padding: 4px 8px 5px;
  background: #2a78d6;
  box-shadow: 0 4px 12px rgba(29, 33, 37, .22);
  color: #ffffff;
  font: 600 13px/1.3 var(--sans);
  opacity: 0;
  visibility: hidden;
  filter: blur(4px);
  transform: translateY(-4px);
  transition: opacity .35s var(--doux), filter .35s var(--doux), transform .35s var(--doux), visibility .35s;
}
.paire.repondue .question { border-color: #1d2125; background: #ffffff; color: #1d2125; }
.paire.repondue .question::before { opacity: 1; transform: translateY(-50%) scale(1); }
.paire.repondue .question::after { background: var(--encre); }  /* hors du carré : suit le thème */
.paire.repondue .reponse {  /* apparaît après le début du changement de couleur, plus lentement qu'elle ne part */
  opacity: 1;
  visibility: visible;
  filter: none;
  transform: none;
  transition: opacity 1s var(--doux) .25s, filter 1s var(--doux) .25s, transform 1s var(--doux) .25s, visibility 0s .25s;
}
.paire.cachee .question { opacity: 0; visibility: hidden; filter: blur(6px); transform: translateX(10px); transition-delay: 0s; }
.paire.cachee .question::after { transform: scaleX(0); transition-delay: 0s; }

.projet {  /* autorisations nommées, côté après, reliées à leur parcelle par une tige */
  position: absolute;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 3px;
  background: #1d2125;
  box-shadow: 0 4px 12px rgba(29, 33, 37, .25);
  color: #ffffff;
  font: 600 12.5px/1.25 var(--sans);
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  pointer-events: none;
}
.projet::after { content: ""; position: absolute; top: 100%; left: 50%; width: 1.5px; height: 12px; background: #1d2125; transform: translateX(-50%); }

.adresse-plan {  /* l'adresse, au-dessus des deux états */
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 16px;
  height: 16px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #1d2125;
  box-shadow: 0 0 0 1.5px #1d2125, 0 4px 10px rgba(29, 33, 37, .3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.adresse-plan span {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 4px 10px;
  border-radius: 999px;
  background: #1d2125;
  color: #ffffff;
  font: 600 12px/1.2 var(--sans);
  white-space: nowrap;
  transform: translateX(-50%);
}

.couture {
  position: absolute;
  top: -18px;
  bottom: -18px;
  left: var(--position);
  z-index: 7;
  width: 2px;
  background: var(--or);
  transform: translateX(-50%);
  pointer-events: none;
}
.couture::after {  /* capsule : trois traits de prise, liseré papier, anneau or */
  --anneau-or: 0 0 0 2px var(--fond-page), 0 0 0 4px var(--or);
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 20px;
  border-radius: 5px;
  background: #fdfdfd repeating-linear-gradient(90deg, transparent 0 3px, rgba(29, 33, 37, .3) 3px 4px) center / 12px 9px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 0 rgba(29, 33, 37, .14), 0 2px 3px rgba(29, 33, 37, .08), var(--anneau-or);
  transform: translate(-50%, -50%);
}
.preuve:focus-within .couture::after { --anneau-or: 0 0 0 2px var(--fond-page), 0 0 0 5px var(--or); }
.preuve.glisse .couture::after { box-shadow: inset 0 1px 2px rgba(29, 33, 37, .14), var(--anneau-or); }

@keyframes guetter {  /* va-et-vient tant qu'on n'a pas touché au curseur */
  0%, 62%, 100% { --position: 62%; }
  18% { --position: 74%; }
  44% { --position: 56%; }
}
.preuve.guette { animation: guetter 5.2s cubic-bezier(.45, 0, .2, 1) infinite; }

.curseur {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  clip-path: inset(0);                            /* la poignée (2 000 px de haut) ne capte la souris que dans le carré */
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}
.curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 2000px; }
.curseur::-moz-range-thumb { width: 40px; height: 2000px; border: 0; background: transparent; }
.preuve-legende { margin: 0; width: var(--cote); font: 12px/1.5 var(--mono); color: var(--encre-3); }

@container scene (max-width: 600px) {  /* étroit : les questions se posent dans le carré, sans trait */
  .preuve, .plan-attente, .preuve-legende { --cote: min(460px, 100cqw); }
  .paire { top: var(--haut-etroit); right: auto; left: 10px; align-items: flex-start; gap: 4px; transform: translateY(-18px); }
  .question, .reponse { padding: 3px 6px; font-size: 11px; }
  .paire.cachee .question { transform: translateX(-10px); }
  .question::after { display: none; }
  .mention-avant { top: -34px; left: -6px; }
  .mention-apres { right: -6px; bottom: -34px; }
}
@media (prefers-reduced-motion: reduce) {
  .preuve.guette { animation: none; }
  .question, .question::before, .question::after, .reponse { transition: none; }
}

.grande-recherche { width: 100%; max-width: 640px; margin-top: 10px; text-align: left; }
.grande-recherche label { display: block; margin: 0 0 8px 4px; font-size: 14px; font-weight: 500; color: var(--encre-2); }
.zone-barre { position: relative; }
.barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border: 1.5px solid var(--encre);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(29, 33, 37, .10);
}
.barre:focus-within { outline: 2px solid var(--encre); outline-offset: 2px; }
.barre .epingle { flex: none; margin-left: 10px; color: var(--encre-3); }
.barre input { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 4px; border: 0; background: transparent; font-size: 19px; }
.barre input:focus-visible { outline: none; }
.barre input::placeholder { color: var(--encre-3); }
.bouton-principal {
  flex: 0 0 auto;
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--encre);
  color: var(--surface);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.grande-recherche .suggestions li { padding: 10px 12px; font-size: 16px; }
.exemples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding-left: 4px; font-size: 14px; color: var(--encre-3); }
.exemples button {
  padding: 7px 11px;
  background: var(--surface);
  border: 1px solid var(--trait-fort);
  border-radius: 8px;
  color: var(--encre);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
}
.exemples button:hover { border-color: var(--encre); }
.explorer { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 4px; font-size: 16px; font-weight: 500; color: var(--encre); }

/* Écran 3 · Avant l'ouverture : la grille du hero de l'accueil. À gauche, le plan réel de l'adresse, flouté, avec les
   questions or auxquelles Argos répondra ; à droite, l'aperçu (nombre, types, plus grands projets) et l'inscription. */
.attente { min-height: 100dvh; display: flex; flex-direction: column; }
.attente-contenu { flex: 1 0 auto; padding: clamp(32px, 6vw, 88px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 104px); }
.attente-grille {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
}
.attente-grille .scene { grid-column: 1; grid-row: 1; }
.attente-grille .apercu { grid-column: 2; }
.attente-grille:has(> .scene[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 680px; }  /* commune entière : pas de plan */
.attente-grille:has(> .scene[hidden]) .apercu { grid-column: 1; }
@media (max-width: 1080px) {  /* une colonne : l'aperçu et l'inscription d'abord, le plan ensuite */
  .attente-grille { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .attente-grille .scene, .attente-grille .apercu { grid-column: 1; grid-row: auto; }
  .attente-grille .scene { justify-self: center; width: min(100%, 680px); }
  .attente-grille .apercu { justify-self: center; width: min(100%, 680px); }
}
.apercu { display: flex; flex-direction: column; gap: 26px; }
.apercu-resume { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.apercu h1 { margin: 0; font-family: var(--titre); font-size: clamp(48px, 5.4vw, 78px); font-weight: 300; line-height: .98; letter-spacing: -.005em; text-wrap: balance; }
.apercu h1:focus { outline: none; }
.apercu-lieu { margin: 0; font-size: 18px; line-height: 1.5; color: var(--encre-2); }
.apercu-types { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 0; padding: 0; list-style: none; }
.apercu-types li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.apercu-types .badge { min-width: 36px; height: 24px; font-size: 12px; }
.apercu-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--encre-3); }
.apercu-extraits { align-self: stretch; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--trait); }
.apercu-extraits p { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); }
.apercu-extraits ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.apercu-extraits li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.4; }
.apercu-extraits .badge { flex: none; min-width: 36px; height: 22px; font-size: 11px; transform: translateY(-1px); }

.plan-attente {  /* couleurs fixes, comme le carré de l'accueil : le plan reste clair en mode sombre */
  --or: oklch(84% .19 80.46);
  --encre-or: oklch(4% .004 95);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --doux: cubic-bezier(.4, 0, .2, 1);
  position: relative;
  width: var(--cote);
  height: var(--cote);
  margin: 0;
  color: #1d2125;
}
.plan-attente svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fbfaf7;
  border: 1px solid rgba(29, 33, 37, .1);
  border-radius: 2px;
  box-shadow: 0 24px 48px -24px rgba(29, 33, 37, .25);
}
.plan-attente .parcelles path { fill: #f1eee7; stroke: #a9a49a; stroke-width: .9; vector-effect: non-scaling-stroke; }
.plan-attente .parcelles path.autorisee { fill: #2a78d6; stroke: #2a78d6; }
.plan-attente .limites path { fill: none; stroke: #5c6066; stroke-width: 1.2; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.plan-attente .cercle { fill: #1d2125; fill-opacity: .03; stroke: #1d2125; stroke-width: 1.6; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.plan-attente .point { display: none; }  /* l'adresse : pastille .adresse-plan, nette au-dessus du flou */

.liste-attente, .code-beta { display: flex; flex-direction: column; gap: 8px; }
.liste-attente { gap: 12px; }
.apercu .liste-attente { padding-top: 22px; border-top: 1.5px solid var(--encre); }
.liste-attente label { max-width: 52ch; font-size: 16px; line-height: 1.5; color: var(--encre-2); }
.liste-attente label strong { font-weight: 600; color: var(--encre); }
.barre-courriel input { font-size: 18px; }
@media (max-width: 520px) { .barre-courriel .bouton-principal { flex-basis: 100%; } }  /* téléphone : bouton sous le champ, pleine largeur */
.code-beta label { font-size: 14px; font-weight: 500; color: var(--encre-2); }
.ligne-champ { display: flex; flex-wrap: wrap; gap: 8px; }
.ligne-champ input {
  flex: 1 1 200px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--trait-fort);
  border-radius: 10px;
  background: var(--surface);
  color: var(--encre);
  font-size: 16px;
}
.ligne-champ input::placeholder { color: var(--encre-3); }
.ligne-champ input:focus-visible { border-color: var(--encre); outline: 2px solid var(--encre); outline-offset: 1px; }
.ligne-champ .bouton-principal { height: 48px; padding: 0 22px; font-size: 16px; }
.bouton-secondaire {
  height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--encre);
  border-radius: 10px;
  background: transparent;
  color: var(--encre);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.bouton-secondaire:hover { background: var(--surface-2); }
.note-liste { margin: 0; font-size: 13px; line-height: 1.45; color: var(--encre-3); }
.statut { margin: 0; font-size: 14px; color: var(--encre); }
.statut:empty { display: none; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }  /* champ pour robots, laissé vide */
.beta summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--encre);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}
.beta summary::-webkit-details-marker { display: none; }
.beta summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.beta[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.beta .code-beta { margin-top: 6px; }

.demo, .donnees { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px); }
.largeur { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.demo h2 { margin: 0; font-family: var(--titre); font-size: 40px; font-weight: 500; line-height: 1.05; }

/* Accueil · démonstration sur de vraies adresses : commandes et résultat à gauche, plan réel à droite */
.demo-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: clamp(28px, 5vw, 72px); }
.demo-texte { display: flex; flex-direction: column; gap: 22px; }
.demo-chapo { margin: -6px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.55; color: var(--encre-2); }
.demo-adresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-adresses button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  color: var(--encre);
  font: 500 14px/1.3 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out;
}
.demo-adresses button span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--encre-3); transition: color .2s ease-out; }
.demo-adresses button:hover { border-color: var(--encre); }
.demo-adresses button[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--surface); }
.demo-adresses button[aria-pressed="true"] span { color: var(--trait-fort); }
.demo-rayon { display: grid; grid-template-columns: auto minmax(0, 1fr) 4.5em; align-items: center; column-gap: 14px; row-gap: 2px; }
.demo-rayon label { font-size: 14px; font-weight: 600; }
.demo-rayon input { width: 100%; margin: 0; accent-color: var(--encre); cursor: pointer; }
.demo-rayon output { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.demo-rayon .graduations { grid-column: 2; display: flex; justify-content: space-between; padding: 0 2px; font-family: var(--mono); font-size: 11px; color: var(--encre-3); }
.demo-resultat { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 250px; padding-top: 20px; border-top: 1.5px solid var(--encre); }
.demo-resultat[aria-busy="true"] { opacity: .55; transition: opacity .2s ease-out; }
.demo-nombre { margin: 0; font-family: var(--titre); font-size: clamp(34px, 3.4vw, 46px); font-weight: 500; line-height: 1.02; text-wrap: balance; }
.demo-nombre .valeur { font-variant-numeric: tabular-nums; }
.demo-projets { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.demo-projets li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.4; }
.demo-projets .badge { flex: none; min-width: 36px; height: 22px; font-size: 11px; transform: translateY(-1px); }
.demo-attente { margin: 0; font-size: 15px; color: var(--encre-2); }
.demo-lien { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 16px; font-weight: 500; color: var(--encre); text-underline-offset: 4px; }
.demo-lien:hover { text-decoration-thickness: 2px; }
.demo-plan { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.demo-plan svg { display: block; width: 100%; aspect-ratio: 1; background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; }
.demo-plan .parcelles path { fill: transparent; stroke: var(--trait-fort); stroke-width: .6; vector-effect: non-scaling-stroke; transition: fill .45s ease-out; }
.demo-plan .parcelles path.autorisee { fill: var(--autorisation); fill-opacity: .78; }
.demo-plan .limites path { fill: none; stroke: var(--encre-3); stroke-width: 1.2; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.demo-plan .cercle { fill: var(--encre); fill-opacity: .035; stroke: var(--encre); stroke-width: 1.6; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.demo-plan .point { fill: var(--encre); stroke: var(--surface); stroke-width: 3; vector-effect: non-scaling-stroke; }
.demo-plan figcaption { max-width: 60ch; font-size: 13px; line-height: 1.45; color: var(--encre-3); }
@media (max-width: 860px) {
  .demo-grille { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .demo-plan { order: 1; }  /* téléphone : commandes, puis plan, puis résultat */
  .demo-texte { display: contents; }
  .demo-texte > h2, .demo-chapo, .demo-adresses, .demo-rayon { order: 0; }
  .demo-resultat { order: 2; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-adresses button, .demo-adresses button span, .demo-plan .parcelles path { transition: none; }
}

.donnees { background: var(--surface); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.donnees .largeur { gap: 32px; }
.badge {  /* sigle du type, dans sa couleur */
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--t);
  color: var(--sur-t);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--trait); }
.meta dt { font-size: 13px; color: var(--encre-3); }
.meta dd { margin: 4px 0 0; font-family: var(--mono); font-size: 14px; }
.limites { max-width: 760px; }
.limites h2 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.limites ul { margin: 0 0 12px; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--encre-2); }
.limites li { margin-bottom: 6px; }
.limites summary { cursor: pointer; font-size: 14px; color: var(--encre-2); }
.sources { margin: 0; max-width: 760px; font-size: 13px; line-height: 1.5; color: var(--encre-3); }
.pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px clamp(16px, 4vw, 48px); font-size: 14px; color: var(--encre-3); }
.pied .mono { font-size: 13px; }
@media (max-width: 520px) {
  .grande-recherche .bouton-principal { flex: 1 1 100%; }
}

/* Page de lancement (lancement.html, quiconstruit.fr) : l'accueil sans recherche, la liste d'attente en tête et en
   pied, des explications entre les deux. */
.marque .tld { font-weight: 400; color: var(--encre-3); }
.accueil-nav .nav-inscription { padding: 8px 16px; border-radius: 999px; background: var(--encre); color: var(--surface); font-weight: 600; }
.accueil-nav .nav-inscription:hover { text-decoration: none; opacity: .88; }
.hero .liste-attente { width: 100%; max-width: 640px; margin-top: 6px; }
.liste-intro { max-width: 52ch; margin: 0 0 0 4px; font-size: 15px; line-height: 1.5; color: var(--encre-2); }
.barre-inscription { flex-wrap: nowrap; gap: 0; padding: 6px; }  /* commune et e-mail dans une même barre, libellés visibles */
.barre-inscription .champ { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px 16px; }
.barre-inscription .champ + .champ { border-left: 1px solid var(--trait); }
.barre-inscription label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); }
.barre-inscription .champ:focus-within label { color: var(--encre); }
.barre-inscription input { flex: none; width: 100%; height: 30px; padding: 0; font-size: 17px; }
.barre-inscription .bouton-principal { margin-left: 6px; }
.suggestions li span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--encre-3); }
@media (max-width: 620px) {  /* téléphone : les deux champs l'un sous l'autre, bouton pleine largeur */
  .barre-inscription { flex-wrap: wrap; }
  .barre-inscription .champ { flex: 1 1 100%; padding: 8px 10px; }
  .barre-inscription .champ + .champ { border-left: 0; border-top: 1px solid var(--trait); }
  .barre-inscription .bouton-principal { flex: 1 1 100%; margin: 6px 0 0; }
}
.lancement .explorer { margin-top: 0; }

.outil, .questions { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); border-top: 1px solid var(--trait); }
.outil { background: var(--surface); }  /* papier et blanc alternent jusqu'à l'encre de l'inscription */
.outil h2, .questions h2, .inscription h2 {
  max-width: 24ch;
  margin: 0;
  font-family: var(--titre);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}
.savoirs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--encre); }
.savoirs li { display: flex; flex-direction: column; gap: 10px; padding: 22px 28px 0 0; }
.savoirs li + li { padding-left: 24px; border-left: 1px solid var(--trait); }
.savoirs .rang { font-family: var(--mono); font-size: 12px; color: var(--encre-3); }
.savoirs h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.savoirs p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--encre-2); }
@media (max-width: 960px) {
  .savoirs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .savoirs li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .savoirs { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .savoirs li, .savoirs li + li { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--trait); }
  .savoirs li:first-child { border-top: 1.5px solid var(--encre); }
}

.savoirs-limite { max-width: 76ch; margin: 0; padding-top: 20px; border-top: 1px solid var(--trait); font-size: 15px; line-height: 1.6; color: var(--encre-2); }
.savoirs-limite strong { font-weight: 600; color: var(--encre); }

.questions {  /* les questions or du carré de l'accueil, ici sans couture : chacune a son public et sa réponse */
  --or: oklch(84% .19 80.46);
  --encre-or: oklch(4% .004 95);
}
.questions-liste { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.questions-liste li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; gap: 14px 48px; padding: 26px 0; border-top: 1px solid var(--trait); }
.questions-liste li:last-child { border-bottom: 1px solid var(--trait); }
.questions-liste .question { justify-self: start; padding: 6px 10px 7px; font-size: 14.5px; }
.questions-liste .question::after { display: none; }
.questions-liste p { max-width: 58ch; margin: 0; font-size: 17px; line-height: 1.55; color: var(--encre-2); }
.questions-liste strong { font-weight: 600; color: var(--encre); }
@media (max-width: 720px) { .questions-liste li { grid-template-columns: minmax(0, 1fr); } }

.inscription {  /* l'encre en pleine largeur : le dernier appel, après les données */
  padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px);
  background: var(--encre);
  color: var(--fond-page);
}
.inscription .largeur { gap: 22px; }
.inscription-chapo { max-width: 60ch; margin: 0; font-size: 18px; line-height: 1.55; opacity: .82; }
.inscription .liste-attente { width: 100%; max-width: 640px; margin-top: 10px; }
.inscription .liste-intro { color: inherit; opacity: .82; }
.inscription .barre { border-color: transparent; box-shadow: none; }
.inscription .barre:focus-within { outline-color: oklch(84% .19 80.46); }
.inscription .note-liste, .inscription .statut { color: inherit; opacity: .72; }
.inscription .statut { opacity: 1; }

.note-liste a, .pied a { color: inherit; text-underline-offset: 3px; }
.texte-legal { width: 100%; max-width: 68ch; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 16px; font-size: 16px; line-height: 1.6; color: var(--encre-2); }
.texte-legal h1 { margin: 0 0 18px; font-family: var(--titre); font-size: clamp(44px, 5vw, 64px); font-weight: 300; line-height: 1; color: var(--encre); }
.texte-legal h2 { margin: 36px 0 8px; font-size: 18px; font-weight: 600; color: var(--encre); }
.texte-legal p, .texte-legal ul { margin: 0 0 12px; }
.texte-legal ul { padding-left: 20px; }
.texte-legal a { color: var(--encre); text-underline-offset: 3px; }
.retour-lancement { margin-top: 40px !important; }

.impression-seule { display: none; }

@media print {  /* le rapport imprimé garde sa forme : groupé par adresse, avec l'extrait de carte */
  body { background: #fff; color: #000; }
  .appli { display: block; height: auto; }
  .entete .recherche, .affichage, .filtres, .carte, .fiche, .actions, .retour, .ecran-seul { display: none !important; }
  .entete .sous-marque { display: block; }
  .version-imprimable { display: block !important; }
  .contenu { display: block; }
  .colonne-liste { overflow: visible; }
  .impression-seule { display: block; width: 100%; max-height: 110mm; object-fit: cover; border: 1px solid #ccc; margin: 8px 0; }
  .dossier summary { padding: 5px 0; break-inside: avoid; }
  .dossier details:not([open]) dl { display: none; }
  .tuile { border-color: #ccc; }
  a { color: inherit; }
}
