/* AcqHome Tools — Cadastre : les zones de prospection (lot 3, L3-T3, 15/10/2026).
   Classes cz-*. Chargée avant /apihome.css (qui prime) : jetons et composants
   .ah-* en viennent. La teinte d'une zone est un indice 0-7 de la palette
   fermée des statuts (--st-0…7, posée par .st-cN d'apihome.css, design/CHARTE.md) :
   jamais seule — le nom de la zone est écrit sur la carte et dans la liste.
   Rayons des jetons, cibles de 44 px, aucune couleur en dur. */

/* ── Le panneau ─────────────────────────────────────────────────────────── */
.cz-sous{margin:var(--e-3) 0 var(--e-2);font-size:14px;font-weight:700;color:var(--encre)}
.cz-creer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--e-2)}
.cz-creer .ah-b{width:100%;min-width:0;padding:0 var(--e-1);white-space:normal;line-height:1.15;text-align:center}
.cz-indice{margin:var(--e-2) 0 0;font-size:12px;line-height:1.4;color:var(--encre-3)}
.cz-msg{margin:var(--e-2) 0 0;font-size:14px;line-height:1.4;color:var(--encre-2)}
.cz-msg:empty{display:none}
.cz-msg-erreur{color:var(--encre);border-left:3px solid var(--action);padding-left:var(--e-2)}
.cz-erreur{margin:var(--e-2) 0;font-size:14px;line-height:1.4}
.cz-erreur p{margin:0 0 var(--e-2)}
.cz-session{margin:0;padding:var(--e-2) var(--e-3);border:1px solid var(--trait-2);border-left:3px solid var(--action);
  border-radius:var(--r-2);font-size:14px;line-height:1.45}
.cz-session a{color:var(--action);font-weight:700}
.cz-vide{margin:0;font-size:14px;line-height:1.45;color:var(--encre-2)}
.cz-liste{list-style:none;margin:0;padding:0}
.cz-zone{padding:var(--e-2) 0 var(--e-3);border-top:1px solid var(--trait)}
.cz-zone:first-child{border-top:0}
.cz-tete{display:flex;align-items:flex-start;gap:var(--e-2)}
.cz-pastille{flex:none;display:inline-block;width:14px;height:14px;border-radius:50%;background:var(--st,var(--encre-3));
  box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--trait-2)}
.cz-tete .cz-pastille{margin-top:3px}
.cz-txt{flex:1;min-width:0;overflow-wrap:anywhere}
.cz-nom{display:block;font-size:14px;font-weight:700;line-height:1.35}
.cz-meta{display:block;font-size:12px;line-height:1.4;color:var(--encre-2)}
.cz-gestes{display:flex;flex-wrap:wrap;align-items:center;gap:var(--e-1) var(--e-2);margin-top:var(--e-1)}
.cz-gestes .ah-b{white-space:normal;text-align:left;line-height:1.2}
.cz-case{display:flex;align-items:center;gap:var(--e-2);min-height:var(--cible);font-size:14px;line-height:1.3;color:var(--encre);cursor:pointer}
.cz-case input{width:20px;height:20px;min-height:0;margin:0;flex:none;accent-color:var(--action);cursor:pointer}
.cz-gestes .cz-case{flex:1 1 100%}
/* au téléphone, la ligne courte : « Afficher » et « Utiliser comme périmètre » sur une rangée (cadastre-zones.js, ligne) */
.cz-court .cz-gestes .cz-case{flex:0 0 auto}
.cz-court .cz-plus{margin-top:0}
.cz-court .cz-plus>.cz-gestes{margin:0 0 var(--e-2)}
.cz-plus{margin-top:var(--e-1)}
.cz-plus summary{display:flex;align-items:center;width:fit-content;min-height:var(--cible);list-style:none;cursor:pointer;
  color:var(--action);font-size:14px;font-weight:500}
.cz-plus summary::-webkit-details-marker{display:none}
.cz-plus summary::after{content:"";width:6px;height:6px;margin:0 2px 0 8px;border:solid currentColor;border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg);transition:transform var(--duree)}
.cz-plus[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.cz-form{margin:var(--e-1) 0 var(--e-2)}
.cz-form label{display:block;font-size:12px;color:var(--encre-2);margin-bottom:2px}
.cz-rangee{display:flex;gap:var(--e-2)}
.cz-rangee input{flex:1;min-width:0;min-height:var(--cible);padding:0 var(--e-3);border:1px solid var(--trait-champ);
  border-radius:var(--r-2);background:var(--surface);color:var(--encre);font-size:16px}
.cz-rangee input:focus-visible{outline:none;border-color:var(--action);box-shadow:0 0 0 2px var(--action-f)}
.cz-teintes{margin:0 0 var(--e-2);padding:0;border:0;min-width:0}
.cz-teintes legend{padding:0;margin-bottom:2px;font-size:12px;color:var(--encre-2)}
.cz-teintes-l{display:flex;flex-wrap:wrap;gap:2px}
.cz-teinte{position:relative;display:grid;place-items:center;width:var(--cible);height:var(--cible);border-radius:var(--r-2);cursor:pointer}
.cz-teinte input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cz-teinte .cz-pastille{width:22px;height:22px}
.cz-teinte input:checked+.cz-pastille{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--encre)}
.cz-teinte input:focus-visible+.cz-pastille{outline:2px solid var(--focus);outline-offset:4px}
@media(hover:hover){.cz-teinte:hover{background:var(--brume)}}
.cz-plus .ah-b--danger{margin-left:auto}
.cz-nommer .cz-intro{margin:0 0 var(--e-3);font-size:14px;line-height:1.45;color:var(--encre-2)}
@media(max-width:380px){.cz-creer{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ── Les zones sur la carte (volet czZones, sous les parcelles) ───────────── */
.cz-halo{stroke:var(--des-halo,var(--surface));stroke-width:6;fill:none;stroke-linejoin:round}
.cz-trait{stroke:var(--st,var(--encre-2));stroke-width:2.5;fill:var(--st,var(--encre-2));fill-opacity:.08;stroke-linejoin:round}
.cz-trait.cz-perimetre{stroke-width:4;fill-opacity:.14}
.cz-trait.cz-vif{stroke-width:4;fill-opacity:.22}
.cz-etiq{width:0;height:0}
.cz-etiq span{position:absolute;left:0;top:0;transform:translate(-50%,-50%);display:inline-block;white-space:nowrap;
  padding:1px 7px;border:2px solid var(--st,var(--encre-2));border-radius:var(--r-1);background:var(--surface);color:var(--encre);
  font:700 12px/1.35 var(--sans);box-shadow:var(--ombre-flottant)}

/* ── Le dessin en cours ─────────────────────────────────────────────────── */
/* .cz-dessin, .cz-dessin-l, .cz-fermeture et .cz-sommet (le dessin de
   window.TRACE) vivent dans trace-polygone.css, commune au Cadastre et à la
   Carte (27/10/2026) ; seule la forme pleine du Cadastre reste ici. */
.cz-dessin.cz-plein{stroke-dasharray:none;fill-opacity:.18}
.cz-choix{stroke:var(--encre-2);stroke-width:1.5;fill:var(--encre-2);fill-opacity:.06;cursor:pointer}
.cz-choix.cz-choisi{stroke:var(--action);stroke-width:3;fill:var(--action);fill-opacity:.24}
.cz-poignee{box-sizing:border-box;border-radius:50%;border:3px solid var(--surface);background:var(--action);
  box-shadow:0 1px 3px rgba(0,0,0,.35);cursor:move}
/* une cible de 44 px au doigt autour de la poignée de 22 px */
@media(pointer:coarse){.cz-poignee::after{content:"";position:absolute;inset:-11px}}

/* Pendant un tracé, le toucher pose un sommet : les autres tracés de la carte
   (parcelles, gisement, résultats, zonage) le laissent passer — seuls les
   quartiers à choisir et les poignées le prennent. */
#carte.cz-mode,#carte.cz-mode .leaflet-grab{cursor:crosshair}
/* les volets sont les enfants directs du volet de la carte : la règle les vise
   eux, jamais un ancêtre (sinon les poignées elles-mêmes perdaient le toucher) */
#carte.cz-mode .leaflet-map-pane>.leaflet-pane:not(.leaflet-czChoix-pane):not(.leaflet-czPoignees-pane) .leaflet-interactive{pointer-events:none!important}
#carte.cz-mode .leaflet-czChoix-pane .leaflet-interactive{cursor:pointer}

/* ── Le cadre du geste en cours, sur la carte ───────────────────────────── */
.cz-cadre{position:absolute;left:var(--e-3);bottom:76px;z-index:905;width:min(340px,calc(100% - 2*var(--e-3)));
  max-height:calc(100% - 96px);overflow:auto;overscroll-behavior:contain;padding:var(--e-3);
  background:var(--surface);color:var(--encre);border:1px solid var(--trait-2);border-radius:var(--r-2);box-shadow:var(--ombre-flottant)}
.cz-cadre[hidden]{display:none}
.cz-cadre-t{margin:0 0 var(--e-1);font-size:16px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.cz-cadre-p{margin:0 0 var(--e-2);font-size:14px;line-height:1.45;color:var(--encre-2)}
.cz-cadre-err{margin:0 0 var(--e-2);padding-left:var(--e-2);border-left:3px solid var(--action);font-size:14px;line-height:1.45;color:var(--encre)}
.cz-cadre-err[hidden]{display:none}
.cz-mes{margin:0 0 var(--e-2);font-size:14px;color:var(--encre-2);font-variant-numeric:tabular-nums}
.cz-mes b{color:var(--encre)}
.cz-cadre-g{display:flex;flex-wrap:wrap;gap:var(--e-2)}
.cz-cadre-g .ah-b{flex:1 1 auto;white-space:normal;line-height:1.2}
.cz-iris{list-style:none;margin:0 0 var(--e-2);padding:0;max-height:220px;overflow:auto;overscroll-behavior:contain;
  border-top:1px solid var(--trait);border-bottom:1px solid var(--trait)}
.cz-iris li{border-top:1px solid var(--trait)}
.cz-iris li:first-child{border-top:0}
/* pendant un tracé, le cadre des mesures se retire (il reviendra) */
html.cz-mode #mesureInfo{display:none}
@media(max-width:759px){
  .cz-cadre{left:8px;right:8px;bottom:8px;width:auto;max-height:55%;padding:var(--e-2) var(--e-3)}
  html.cz-mode .cc-fonds,html.cz-mode .cc-legende{visibility:hidden}
  .cz-iris{max-height:96px}
}
@media(prefers-reduced-motion:reduce){.cz-plus summary::after{transition:none}}
@media print{.cz-cadre{display:none!important}}

/* ── Les statistiques de la zone (lot 3, L3-T4) : sous la zone, dans le
   panneau ; un tableau à trois colonnes qui tient à 375 px, chiffres en
   tabular-nums, sources en 12 px ; aucune couleur en dur (les étiquettes DPE
   viennent de cadastre-recherches.css, palette réglementaire). ── */
.cz-stats{margin:var(--e-2) 0 0;padding:var(--e-2) var(--e-3) var(--e-3);border:1px solid var(--trait);border-radius:var(--r-2);
  background:var(--papier);min-width:0}
.cz-stats[hidden]{display:none}
.cz-stats-t{margin:0;font-size:14px;font-weight:700;line-height:1.35;color:var(--encre)}
.cz-stats-quand{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--e-2);margin:0;font-size:12px;line-height:1.4;color:var(--encre-3)}
.cz-st-bloc{margin-top:var(--e-2);padding-top:var(--e-2);border-top:1px solid var(--trait)}
.cz-st-t{margin:0 0 var(--e-1);font-size:14px;font-weight:700;line-height:1.35;color:var(--encre)}
.cz-st-ligne{margin:0 0 var(--e-1);font-size:14px;line-height:1.45;color:var(--encre);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cz-st-indispo{margin:0 0 var(--e-1);font-size:14px;line-height:1.45;color:var(--encre-2)}
.cz-st-table{width:100%;border-collapse:collapse;margin:var(--e-1) 0;font-size:14px;line-height:1.35;font-variant-numeric:tabular-nums}
.cz-st-table th,.cz-st-table td{padding:4px 0 4px var(--e-2);border-bottom:1px solid var(--trait);text-align:right;vertical-align:top}
.cz-st-table th:first-child,.cz-st-table td:first-child{padding-left:0;text-align:left}
.cz-st-table thead th{font-size:12px;font-weight:500;color:var(--encre-2)}
.cz-st-table tbody th{font-weight:700}
.cz-st-pt{display:block;font-size:12px;font-weight:400;line-height:1.3;color:var(--encre-3)}
.cz-st-avert{margin:var(--e-1) 0;padding-left:var(--e-2);border-left:3px solid var(--trait-2);font-size:12px;line-height:1.4;color:var(--encre-2)}
.cz-st-src{margin:var(--e-1) 0 var(--e-1);font-size:12px;line-height:1.4;color:var(--encre-3);overflow-wrap:anywhere}
.cz-st-dpe{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;list-style:none;margin:var(--e-1) 0;padding:0}
.cz-st-dpe li{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;font-variant-numeric:tabular-nums;color:var(--encre)}
.cz-st-statuts{list-style:none;margin:var(--e-1) 0;padding:0}
.cz-st-statuts li{display:flex;align-items:center;gap:var(--e-2);min-height:32px;border-bottom:1px solid var(--trait);font-size:14px}
.cz-st-statuts .cz-pastille{width:12px;height:12px}
.cz-st-lib{flex:1;min-width:0;overflow-wrap:anywhere}
.cz-st-statuts b{font-variant-numeric:tabular-nums}
.cz-stats .cc-roue{margin-right:6px}

/* >>> charte-v4 >>> L'habillage d'AcqHome (charte v4, 04/11/2026) : le cadre du
   geste, blanc, ombré, arrondi à 20 px ; les messages de session au rayon 10. */
.cz-cadre{border:0;border-radius:var(--r-3);box-shadow:var(--ombre-pop)}
.cz-session{border-color:var(--trait);border-radius:var(--r-1)}
.cz-etiq span{box-shadow:var(--ombre-carte)}
/* <<< charte-v4 <<< */
