/* ACCAAN Solutions · Réglementations EP — feuille de style
   Couleurs et typographie : charte graphique édition 1.0 (octobre 2026). */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/SourceSans3-Regular.00378b882198.woff") format("woff"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/SourceSans3-Semibold.708f2c1f6edf.woff") format("woff"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/SourceSans3-Bold.8d4dd64e1469.woff") format("woff"); }

:root {
  /* Charte */
  --bleu: #087CE8;          /* Bleu principal : contours, survols, focus */
  --bleu-profond: #0C4AA7;  /* Bleu profond : boutons, liens (contraste AA) */
  --vert: #08B47F;          /* Vert principal : conformité, accent positif */
  --vert-lumineux: #22CE68;
  --graphite: #56595D;      /* Gris graphite : libellés, texte secondaire */
  --blanc: #FFFFFF;
  /* Dérivés */
  --texte: #26292C;
  --fond: #F5F6F7;
  --bord: #E3E5E8;
  --bord-fort: #CDD1D6;
  --bleu-pale: #E6F0FC;
  --vert-texte: #067A57;
  --vert-pale: #E3F6EF;
  --rouge: #B42318;
  --rouge-pale: #FDECEA;
  --orange: #A8510A;
  --brun: #7A4A1E;
  --rayon: 16px;
  --rayon-petit: 10px;
  --ombre: 0 6px 24px rgba(38, 41, 44, 0.08);
  --police: "Source Sans 3", Corbel, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: var(--bleu-profond); }
a:hover { color: var(--bleu); }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.discret { color: var(--graphite); }

/* ---------- Boutons ---------- */
.bouton, .bouton-secondaire, .bouton-contour {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--rayon-petit);
  font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.bouton { border: 0; background: var(--bleu-profond); color: var(--blanc); }
.bouton:hover { background: var(--bleu); color: var(--blanc); }
.bouton:disabled { background: #9BB3D6; cursor: not-allowed; }
.bouton-secondaire { border: 1px solid var(--bord-fort); background: var(--blanc); color: var(--texte); }
.bouton-secondaire:hover { border-color: var(--bleu); color: var(--bleu-profond); }
.bouton-contour { border: 1px solid var(--bleu-profond); background: var(--blanc); color: var(--bleu-profond); }
.bouton-contour:hover { background: var(--bleu-pale); color: var(--bleu-profond); }
.petit { min-height: 40px; padding: 0 14px; font-size: 15px; }
.lien { border: 0; background: none; padding: 0; font: inherit; color: var(--bleu-profond); text-decoration: underline; cursor: pointer; }
.lien:hover { color: var(--bleu); }
.icone { width: 16px; height: 16px; flex: none; }

/* ---------- En-tête ---------- */
.entete {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  padding: 12px 32px; background: var(--blanc); border-bottom: 1px solid var(--bord);
  position: relative; z-index: 1000;
}
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); }
.marque img { width: 56px; height: 47px; object-fit: contain; }
.marque > span { display: flex; flex-direction: column; line-height: 1.15; }
.marque-gamme { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); font-weight: 600; }
.marque-nom { font-size: 19px; font-weight: 700; color: var(--graphite); }
.utilisateur { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.utilisateur form { margin: 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bleu-pale); color: var(--bleu-profond); font-size: 14px; font-weight: 700;
}

/* ---------- Recherche d'adresse ---------- */
.recherche { position: relative; display: flex; gap: 8px; }
.entete .recherche { flex: 1 1 420px; max-width: 720px; }
.champ {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px;
  border: 1px solid var(--bord-fort); border-radius: var(--rayon-petit);
  font: inherit; font-size: 16px; color: var(--texte); background: var(--blanc);
}
.champ:focus { outline: 2px solid var(--bleu); outline-offset: 1px; border-color: var(--bleu); }
.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 2000;
  margin: 0; padding: 6px; list-style: none;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px; box-shadow: var(--ombre);
}
.suggestions li {
  display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-align: left;
}
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--bleu-pale); }
.suggestions .s-libelle { font-weight: 600; }
.suggestions .s-contexte { font-size: 14px; color: var(--graphite); }

/* ---------- Pied de page ---------- */
.pied {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding: 12px 32px; margin-top: auto;
  background: var(--blanc); border-top: 1px solid var(--bord);
  font-size: 14px; color: var(--graphite);
}
.pied .lien-pied { margin-left: auto; color: var(--bleu-profond); font-weight: 600; text-decoration: none; }
.pied .lien-pied:hover { text-decoration: underline; }
.pied .lien-pied + .bouton-secondaire { margin-left: 0; }
.pied .bouton-secondaire { margin-left: auto; }

/* ---------- Messages ---------- */
.messages { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.message { padding: 12px 16px; border-radius: var(--rayon-petit); font-size: 15px; text-align: left; }
.message.error { background: var(--rouge-pale); color: var(--rouge); }
.message.success { background: var(--vert-pale); color: var(--vert-texte); }
.message.info, .message.warning { background: var(--bleu-pale); color: var(--bleu-profond); }

/* ---------- Connexion ---------- */
.page-connexion { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--blanc); }
.connexion-marque {
  flex: 1 1 480px; min-height: 360px; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 32px;
}
.connexion-marque .marque-gamme { align-self: flex-start; }
.connexion-marque img { width: 340px; height: auto; }
.connexion-marque p { font-size: 17px; color: var(--graphite); text-align: center; max-width: 380px; }
.connexion-formulaire {
  flex: 1 1 480px; display: flex; align-items: center; justify-content: center;
  padding: 48px 24px; background: var(--fond); border-left: 1px solid var(--bord);
}
.formulaire { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 20px; }
.formulaire h1 { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.groupe { display: flex; flex-direction: column; gap: 6px; }
.groupe label { font-size: 15px; font-weight: 600; }
.groupe .champ { height: 48px; font-size: 17px; }
.formulaire .bouton { height: 48px; font-size: 17px; margin-top: 4px; }

/* ---------- Accueil ---------- */
.accueil { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px 80px; background: var(--blanc); }
.accueil-centre { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.accueil-logo { width: 260px; height: auto; margin-bottom: 4px; }
.accueil-accroche { font-size: 20px; color: var(--graphite); max-width: 560px; margin-bottom: 12px; }
.accueil .recherche {
  width: 100%; flex-wrap: wrap; padding: 10px;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon);
  box-shadow: 0 12px 40px rgba(12, 74, 167, 0.10);
}
.accueil .champ { flex: 1 1 320px; height: 56px; border: 0; background: var(--fond); font-size: 18px; }
.accueil .bouton { height: 56px; padding: 0 30px; font-size: 17px; font-weight: 700; }
.recentes { font-size: 15px; color: var(--graphite); margin-top: 8px; }
.recentes a { margin: 0 4px; }

/* ---------- Fiche parcelle ---------- */
.fiche { flex: 1; display: flex; flex-wrap: wrap; gap: 24px; padding: 24px 32px; align-items: flex-start; }
.carte-zone {
  flex: 999 1 560px; min-width: 0; position: sticky; top: 24px;
  height: calc(100vh - 170px); min-height: 520px;
  border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bord); background: #EEF1F3;
}
#carte { position: absolute; inset: 0; }
.leaflet-container { font-family: var(--police); background: #EEF1F3; }
.leaflet-container .leaflet-control-attribution { font-size: 11px; }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 20px !important; color: var(--texte); }

.couches {
  position: absolute; top: 16px; left: 16px; z-index: 800; width: 288px;
  margin: 0; padding: 12px 14px 8px; border: 1px solid var(--bord); border-radius: 12px;
  background: rgba(255, 255, 255, 0.97); box-shadow: var(--ombre);
}
.couches legend { float: left; width: 100%; padding: 0 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); font-weight: 600; }
.couches-replier { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; border-radius: 8px; color: var(--graphite); display: none; }
.couche { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; cursor: pointer; clear: both; }
.couche input { width: 18px; height: 18px; margin: 0; accent-color: var(--bleu-profond); flex: none; }
.couche .pastille { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.couche.indisponible { color: #8A8E93; }
.couche.indisponible::after { content: "indisponible"; margin-left: auto; padding-left: 8px; font-size: 11px; color: #8A8E93; white-space: nowrap; }
.pastille-cadastre { border: 2px solid #9AA2AB; background: var(--blanc); }
.pastille-ppri { background: rgba(8, 124, 232, .55); }
.pastille-cavites { border: 2px solid var(--brun); background: repeating-linear-gradient(45deg, rgba(122, 74, 30, .45) 0 2px, transparent 2px 5px); }
.pastille-argiles { background: rgba(214, 120, 30, .55); }
.pastille-sage { border: 2px dashed var(--vert); }
.couches-groupe { clear: both; margin: 8px 0 2px; padding-top: 8px; border-top: 1px solid var(--bord); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); font-weight: 600; }
.pastille-courbes { height: 0 !important; border-top: 2px solid #8A5A2B; border-radius: 0 !important; }
.pastille-cotes { width: 8px !important; height: 8px !important; border-radius: 50% !important; background: #26292C; margin: 0 3px; }
.pastille-courbes-ign { height: 0 !important; border-top: 2px dashed #B98A5E; border-radius: 0 !important; }
.pastille-ombrage { background: linear-gradient(135deg, #F4F4F4, #8F9499); }
.leaflet-tooltip.etiquette-courbe { background: none; border: 0; box-shadow: none; padding: 0; color: #6B4422; font: 600 11px var(--police); text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.leaflet-tooltip.etiquette-courbe::before { display: none; }
.cote-ngf { display: flex; align-items: center; gap: 3px; white-space: nowrap; font: 600 11px var(--police); color: var(--texte); text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.cote-ngf::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--texte); flex: none; }
.cote-extreme { padding: 3px 8px; border-radius: 6px; color: var(--blanc); font: 600 12px var(--police); white-space: nowrap; box-shadow: var(--ombre); }
.cote-extreme.haut { background: var(--graphite); }
.cote-extreme.bas { background: var(--vert-texte); }
.fonds { display: flex; gap: 4px; margin: 6px 0 4px; padding: 3px; background: var(--fond); border-radius: 8px; clear: both; }
.fonds button { flex: 1; min-height: 32px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--graphite); cursor: pointer; }
.fonds button[aria-pressed="true"] { background: var(--blanc); color: var(--bleu-profond); box-shadow: 0 1px 3px rgba(38, 41, 44, .12); }
.astuce-carte {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 800;
  padding: 8px 14px; border-radius: 999px; background: rgba(38, 41, 44, .82); color: var(--blanc);
  font-size: 14px; white-space: nowrap; pointer-events: none;
}
.leaflet-tooltip.etiquette-parcelle {
  background: var(--bleu-profond); color: var(--blanc); border: 0; border-radius: 8px;
  padding: 5px 10px; font-family: var(--police); font-size: 13px; font-weight: 600; box-shadow: var(--ombre);
}
.leaflet-tooltip.etiquette-parcelle::before { border-top-color: var(--bleu-profond) !important; }

.panneau { flex: 1 1 450px; max-width: 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bloc { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px 24px; }
.bloc-titre {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); font-weight: 600;
}
.bloc-titre .source { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 400; font-size: 12px; }
.adresse { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 18px; }
.donnees { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.donnees dt { font-size: 13px; color: var(--graphite); }
.donnees dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.liens .bouton-contour, .liens .bouton-secondaire { min-height: 40px; padding: 0 14px; font-size: 15px; }

.risque { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid #EEF0F2; }
.risque:first-of-type { border-top: 0; padding-top: 4px; }
.badge {
  flex: none; align-self: flex-start; margin-top: 2px; padding: 2px 10px; border-radius: 999px;
  color: var(--blanc); font-size: 13px; font-weight: 600; line-height: 18px; min-width: 64px; text-align: center;
}
.badge-ppri { background: var(--bleu-profond); }
.badge-cavites { background: var(--brun); }
.badge-argiles { background: var(--orange); }
.badge-neutre { background: #8A8E93; }
.risque-corps { min-width: 0; flex: 1; }
.risque-titre { font-size: 16px; font-weight: 600; }
.risque-detail { margin-top: 2px; font-size: 14px; color: var(--graphite); }
.risque-liste { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.risque-liste li { color: var(--texte); }
.risque-liste small { display: block; color: var(--graphite); font-size: 13px; }
.echelle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.echelle span { height: 6px; border-radius: 3px; background: #EEF0F2; }
.echelle.n1 span:nth-child(-n+1), .echelle.n2 span:nth-child(-n+2), .echelle.n3 span:nth-child(-n+3) { background: var(--orange); }
.echelle.n1 span:nth-child(1) { background: #E8A55E; }
.echelle.n2 span:nth-child(1), .echelle.n3 span:nth-child(1) { background: #F2C99B; }
.echelle.n2 span:nth-child(2), .echelle.n3 span:nth-child(2) { background: #E8A55E; }
.echelle-legende { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 4px; font-size: 12px; color: var(--graphite); }
.indisponible-texte { font-size: 14px; color: var(--graphite); font-style: italic; }

.sage-nom { font-size: 21px; font-weight: 700; line-height: 1.25; }
.sage-etat { margin-top: 2px; font-size: 14px; color: var(--graphite); }
.sage-etat strong { color: var(--vert-texte); font-weight: 600; }
.sage + .sage { margin-top: 16px; padding-top: 16px; border-top: 1px solid #EEF0F2; }

.avertissement { font-size: 13px; color: var(--graphite); padding: 0 4px; }

/* ---------- Chargement ---------- */
.chargement {
  position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center;
  background: rgba(245, 246, 247, 0.82); backdrop-filter: blur(2px);
}
.chargement-boite { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 36px; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); text-align: center; }
.chargement-boite p:first-of-type { font-size: 18px; font-weight: 600; }
.chargement-boite p.discret { font-size: 14px; }
.roue { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--bleu-pale); border-top-color: var(--bleu); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .roue { animation-duration: 2.4s; } }

/* ---------- Mise à jour ---------- */
.maj { flex: 1; display: flex; justify-content: center; padding: 48px 24px; }
.maj-colonne { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.maj h1 { font-size: 32px; font-weight: 700; }
.maj-intro { margin-top: 6px; font-size: 17px; color: var(--graphite); }
.depot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 210px; padding: 28px; text-align: center; cursor: pointer;
  border: 2px dashed #8DB8EE; border-radius: var(--rayon); background: var(--blanc);
  transition: border-color .15s, background-color .15s;
}
.depot:hover, .depot.survol { border-color: var(--bleu); background: #F5F9FE; }
.depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.depot-icone { width: 56px; height: 56px; border-radius: 14px; background: var(--bleu-pale); display: flex; align-items: center; justify-content: center; }
.depot-titre { font-size: 19px; font-weight: 600; }
.depot-aide { font-size: 15px; color: var(--graphite); }
.fichier-choisi { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px; }
.fichier-choisi p { font-weight: 600; overflow-wrap: anywhere; }
.fichier-choisi small { color: var(--graphite); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .bouton, .actions .bouton-secondaire { flex: 1 1 220px; height: 48px; }
.resultat { display: flex; gap: 12px; padding: 14px 18px; border-radius: 14px; font-size: 15px; }
.resultat.ok { background: var(--vert-pale); color: var(--vert-texte); }
.resultat.ko { background: var(--rouge-pale); color: var(--rouge); }
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th { text-align: left; font-size: 13px; font-weight: 600; color: var(--graphite); padding: 8px 0; border-bottom: 1px solid var(--bord); }
.tableau td { padding: 10px 0; border-bottom: 1px solid #EEF0F2; }
.progression { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 24px; text-align: center; }
.progression h1 { font-size: 28px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 760px) {
  .entete { padding: 10px 16px; gap: 10px 16px; }
  .entete .recherche { order: 3; flex-basis: 100%; }
  .fiche { padding: 16px; }
  .carte-zone { position: relative; top: 0; height: 64vh; min-height: 420px; }
  .couches { width: auto; right: 64px; left: 12px; top: 12px; }
  .marque img { width: 44px; height: 37px; }
  .marque-nom { font-size: 17px; }
  .marque-gamme { font-size: 11px; }
  .utilisateur { gap: 8px; }
  .couches.replie .couche, .couches.replie .fonds { display: none; }
  .couches-replier { display: block; }
  .pied { padding: 12px 16px; }
  .pied .bouton-secondaire { margin-left: 0; }
  .connexion-marque { padding: 32px 24px; min-height: 0; }
  .connexion-marque img { width: 240px; }
  .connexion-formulaire { border-left: 0; border-top: 1px solid var(--bord); }
  .astuce-carte { display: none; }
}

/* ---------- v1.2 : environnement, outils, profil en long ---------- */
.couches { max-height: calc(100% - 32px); overflow-y: auto; }
.pastille-bati { background: rgba(158, 163, 168, .55); border: 1px solid #56595D; }
.pastille-voirie { height: 0 !important; border-top: 3px solid #7A7F85; border-radius: 0 !important; }
.pastille-hydro { background: rgba(8, 124, 232, .3); border: 2px solid var(--bleu); }
.outils-carte { position: absolute; top: 16px; right: 64px; z-index: 800; display: flex; gap: 8px; }
.outil {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--bord); border-radius: 10px; background: var(--blanc); box-shadow: var(--ombre);
  font: inherit; font-size: 15px; font-weight: 600; color: var(--texte); cursor: pointer;
}
.outil:hover { border-color: var(--bleu); color: var(--bleu-profond); }
.outil[aria-pressed="true"] { background: var(--bleu-profond); border-color: var(--bleu-profond); color: var(--blanc); }
.mode-trace, .mode-trace .leaflet-interactive { cursor: crosshair !important; }
.profil {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1001;
  padding: 14px 16px 10px; background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px; box-shadow: var(--ombre);
}
.profil-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 6px; }
.profil-entete h2 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); font-weight: 600; }
.profil-chiffres { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; }
.profil-chiffres div { display: flex; gap: 6px; align-items: baseline; }
.profil-chiffres dt { font-size: 13px; color: var(--graphite); }
.profil-chiffres dd { margin: 0; font-size: 15px; font-weight: 600; }
.profil-actions { display: flex; gap: 6px; margin-left: auto; }
.profil-actions .bouton-secondaire { min-height: 34px; padding: 0 12px; font-size: 14px; }
.profil-actions .bouton-secondaire:disabled { opacity: .5; cursor: not-allowed; }
.profil-graphique { position: relative; min-height: 20px; }
.profil-graphique svg { display: block; width: 100%; height: auto; }
.profil-bulle {
  position: absolute; pointer-events: none; padding: 4px 8px; border-radius: 6px;
  background: var(--texte); color: var(--blanc); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.profil-etat { font-size: 14px; color: var(--graphite); }
.profil-etat:empty { display: none; }
@media (max-width: 760px) {
  .outils-carte { top: auto; bottom: 12px; right: 12px; }
  .profil { left: 8px; right: 8px; bottom: 8px; }
  .profil-actions { margin-left: 0; }
}

/* ---------- v1.3 : territoire, règles pluviales ---------- */
.docs-liste { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.docs-liste small { display: block; color: var(--graphite); font-size: 13px; }
.roue.petite { width: 18px; height: 18px; border-width: 2px; display: inline-block; vertical-align: -4px; margin-right: 10px; }
.regles-attente { font-size: 15px; color: var(--graphite); }
.regles { margin: 0; display: flex; flex-direction: column; }
.regle { padding: 12px 0; border-top: 1px solid #EEF0F2; }
.regle:first-child { border-top: 0; padding-top: 0; }
.regle dt { font-size: 13px; color: var(--graphite); }
.regle dd { margin: 2px 0 0; }
.regle-valeur { font-size: 18px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-ocr { font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px;
  background: var(--bleu-pale); color: var(--bleu-profond); cursor: help; }
.badge-ocr.a-verifier { background: #FFF1E0; color: var(--orange); }
.regle-source { font-size: 13px; color: var(--graphite); margin-top: 2px; }
.regle-autres { font-size: 13px; color: var(--graphite); margin-top: 2px; }
.regle-note { font-size: 13px; color: var(--vert-texte); margin-top: 2px; }
details.citation { margin-top: 6px; font-size: 14px; }
details.citation summary { cursor: pointer; color: var(--bleu-profond); font-weight: 600; min-height: 28px; }
details.citation blockquote { margin: 6px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--fond); color: var(--texte); font-size: 14px; line-height: 1.45; }
.docs-etat { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--bord); display: flex; flex-direction: column; gap: 10px; }
.docs-etat li { font-size: 14px; }
.docs-etat a { font-weight: 600; }
.puce { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; vertical-align: 1px; }
.puce.lu { background: var(--vert-pale); color: var(--vert-texte); }
.puce.erreur { background: var(--rouge-pale); color: var(--rouge); }
.puce.attente { background: var(--bleu-pale); color: var(--bleu-profond); }
.docs-etat small { display: block; color: var(--graphite); font-size: 13px; }

/* --- Diagnostic --------------------------------------------------------- */
.diag .maj-colonne { max-width: 860px; }
.diag-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.diag-attente { color: var(--graphite); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.diag-attente::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bleu-pale); border-top-color: var(--bleu); animation: diag-tour .8s linear infinite; }
@keyframes diag-tour { to { transform: rotate(360deg); } }
.diag-bilan { display: flex; gap: 12px; align-items: baseline; padding: 14px 18px; border-radius: 14px; font-size: 16px; font-weight: 600; }
.diag-bilan.ok { background: var(--vert-pale); color: var(--vert-texte); }
.diag-bilan.ko { background: var(--rouge-pale); color: var(--rouge); }
.diag-bilan small { font-weight: 400; opacity: .85; }
.diag-liste { list-style: none; margin: 0; padding: 0; }
.diag-ligne { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid #EEF0F2; align-items: start; }
.diag-ligne:last-child { border-bottom: 0; }
.diag-etat { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.diag-etat.ok { background: var(--vert); }
.diag-etat.ko { background: var(--rouge); }
.diag-nom { font-size: 15px; font-weight: 600; color: var(--texte); min-width: 0; overflow-wrap: anywhere; }
.diag-duree { font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; white-space: nowrap; }
.diag-detail { grid-column: 2 / 4; font-size: 14px; color: var(--graphite); overflow-wrap: anywhere; }
.diag-ligne.ko .diag-detail { color: var(--rouge); }
.diag-ligne.lent .diag-duree { color: var(--orange); font-weight: 600; }

/* --- Note réglementaire PDF --------------------------------------------- */
.bloc-note { border-color: #CFE2F9; background: linear-gradient(180deg, #F4F9FF 0%, #FFFFFF 70%); }
.bloc-note .bouton { display: inline-flex; align-items: center; gap: 8px; }
.bloc-note .bouton.occupe { opacity: .75; pointer-events: none; }

/* --- Renvois du PLU vers un règlement inconnu ------------------------------- */
.renvoi { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: #FFF1E0; border: 1px solid #F3D3AE; }
.renvoi-titre { margin: 0 0 6px; font-weight: 700; color: var(--orange); font-size: 15px; }
.renvoi blockquote { margin: 0 0 4px; font-size: 14px; color: var(--texte); }
.renvoi .bouton-secondaire { margin-top: 8px; display: inline-flex; }
.renvoi-aide { margin: 6px 0 0; font-size: 13px; color: var(--graphite); }

/* --- Sol et infiltration (géologie BRGM) / zonage de Paris --------------------- */
.niveau-sol { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-top: 4px; }
.niveau-sol.favorable { background: var(--vert-pale); color: var(--vert-texte); }
.niveau-sol.moyen, .niveau-sol.conditions { background: var(--bleu-pale); color: var(--bleu-profond); }
.niveau-sol.defavorable { background: var(--rouge-pale); color: var(--rouge); }
.niveau-sol.inconnu, .niveau-sol.indetermine { background: #EEF0F2; color: var(--graphite); }
.badge-geologie { background: #8A6A3F; }
.badge-paris { background: var(--bleu-profond); }
.pastille-geologie { background: linear-gradient(135deg, #E9C46A 0 33%, #9CC5A1 33% 66%, #D9A6A6 66%); }
.puce.neutre { background: #EEF0F2; color: var(--graphite); }

/* ===== v1.7 : tableau de bord des projets ===================================== */
.tableau-de-bord { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 28px; }
.tb-nouvelle { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; box-shadow: var(--ombre); }
.tb-nouvelle h1 { font-size: 26px; font-weight: 700; }
.tb-nouvelle p { margin-top: 6px; color: var(--graphite); font-size: 15px; }
.tb-nouvelle .recherche { display: flex; gap: 10px; position: relative; }
.tb-nouvelle .champ { flex: 1; height: 50px; font-size: 16px; }
.tb-nouvelle .bouton { height: 50px; padding: 0 24px; }
.tb-barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tb-barre h2, .tb-recentes h2 { font-size: 20px; font-weight: 700; }
.tb-compte { display: inline-block; min-width: 26px; padding: 1px 8px; margin-left: 6px; border-radius: 999px; background: var(--bleu-pale); color: var(--bleu-profond); font-size: 14px; text-align: center; vertical-align: 2px; }
.tb-filtres .champ { width: min(360px, 80vw); }
.champ.petit { height: 38px; font-size: 14px; padding: 0 10px; }
.tb-onglets { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 14px; }
.tb-onglets a { padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--graphite); text-decoration: none; border: 1px solid var(--bord); background: var(--blanc); }
.tb-onglets a span { color: var(--graphite); opacity: .75; margin-left: 2px; }
.tb-onglets a[aria-current="true"] { background: var(--bleu-profond); border-color: var(--bleu-profond); color: var(--blanc); }
.tb-onglets a[aria-current="true"] span { color: var(--blanc); }
.tb-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tb-projet { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "statut nom commune" "statut details details"; gap: 4px 14px; align-items: center; padding: 16px 20px; background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px; text-decoration: none; color: var(--texte); transition: border-color .15s, box-shadow .15s; }
.tb-projet:hover { border-color: var(--bleu); box-shadow: var(--ombre); }
.tb-statut { grid-area: statut; align-self: start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tb-nom { grid-area: nom; font-size: 17px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.tb-commune { grid-area: commune; font-size: 14px; color: var(--graphite); text-align: right; }
.tb-details { grid-area: details; font-size: 13.5px; color: var(--graphite); }
.s-etude { background: var(--bleu-pale); color: var(--bleu-profond); }
.s-en_cours { background: #FFF1E0; color: var(--orange); }
.s-termine { background: var(--vert-pale); color: var(--vert-texte); }
.s-archive { background: #EEF0F2; color: var(--graphite); }
.tb-vide { padding: 28px; text-align: center; color: var(--graphite); background: var(--blanc); border: 1px dashed var(--bord-fort); border-radius: 14px; }
.tb-recentes ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.tb-recentes li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EEF0F2; flex-wrap: wrap; }
.tb-recentes li a { font-weight: 600; color: var(--bleu-profond); }
.tb-recentes small { color: var(--graphite); }
.tb-recentes form { margin-left: auto; }
@media (max-width: 760px) {
  .tb-nouvelle { grid-template-columns: 1fr; padding: 20px; }
  .tb-projet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "statut" "nom" "commune" "details"; }
  .tb-commune { text-align: left; }
  .tb-recentes form { margin-left: 0; }
}

/* ===== v1.7 : projet dans la fiche ============================================ */
.bloc-projet { border-color: #CFE2F9; }
.projet-entete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.projet-entete .discret { font-size: 14px; color: var(--bleu-profond); }
.projet-nom { font-size: 24px; font-weight: 700; margin-top: 10px; overflow-wrap: anywhere; }
.projet-infos { color: var(--graphite); font-size: 15px; margin-top: 2px; }
.projet-notes { margin-top: 10px; padding: 10px 12px; background: var(--fond); border-radius: 10px; font-size: 14.5px; white-space: normal; }
.projet-modifier { margin-top: 12px; }
.projet-modifier summary { list-style: none; display: inline-flex; cursor: pointer; }
.projet-modifier summary::-webkit-details-marker { display: none; }
.formulaire { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.formulaire label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--graphite); }
.formulaire .champ { height: 42px; font-size: 15px; font-weight: 400; color: var(--texte); }
.formulaire textarea.champ { height: auto; padding: 10px 12px; resize: vertical; font-family: inherit; }
.formulaire-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formulaire-actions { display: flex; justify-content: flex-end; }
.projet-actions { display: flex; gap: 18px; margin-top: 12px; font-size: 14px; }
.lien.danger { color: var(--rouge); }
.bloc-brouillon { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #FFFBF4; border-color: #F3D3AE; padding: 14px 18px; }
.bloc-brouillon p { font-size: 14.5px; color: var(--texte); flex: 1 1 220px; }
.tableau-parcelles { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 14px; }
.tableau-parcelles th, .tableau-parcelles td { padding: 7px 6px; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: top; }
.tableau-parcelles thead th { color: var(--graphite); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tableau-parcelles tbody tr:nth-child(even) { background: #F6F8FA; }
.tableau-parcelles .nombre { text-align: right; white-space: nowrap; }
.tableau-parcelles tfoot th, .tableau-parcelles tfoot td { padding-top: 10px; border-bottom: 0; font-size: 14px; }

/* ===== v1.7 : sélection de parcelles sur la carte ============================== */
.barre-selection { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 900; width: min(760px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px; box-shadow: 0 10px 30px rgba(38,41,44,.18); }
.barre-selection-texte { display: flex; flex-direction: column; font-size: 15px; }
.barre-selection-texte small { color: var(--graphite); font-size: 12.5px; }
.barre-selection-texte small.alerte { color: var(--rouge); font-weight: 600; }
.barre-selection-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.barre-selection-actions form { display: contents; }
.barre-selection .bouton, .barre-selection .bouton-secondaire { height: 40px; padding: 0 16px; font-size: 14px; }
#carte.mode-selection { cursor: copy; }
#carte.attente { cursor: progress; }
.leaflet-tooltip.etiquette-selection { background: #E8780C; color: #fff; border: 0; border-radius: 6px; font: 700 12px var(--police); padding: 2px 6px; box-shadow: none; }
.leaflet-tooltip.etiquette-selection::before { display: none; }

/* ===== v1.7 : réglages topographiques ========================================== */
.reglages-topo { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--bord); border-radius: 12px; background: var(--fond); }
.reglages-titre { font-size: 13px; font-weight: 700; color: var(--graphite); text-transform: uppercase; letter-spacing: .04em; }
.reglages-grille { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.reglages-grille label { display: grid; grid-template-columns: 1fr minmax(0, 190px); align-items: center; gap: 10px; font-size: 14px; }
.reglages-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.reglages-etat { font-size: 13px; color: var(--graphite); }
.cote-ngf.dense { font-size: 9.5px; }
.cotes-sans-texte .cote-ngf { font-size: 0; gap: 0; text-shadow: none; }
.cotes-sans-texte .cote-ngf::before { width: 3px; height: 3px; opacity: .7; }

/* ===== v1.8 : sous-sol (nappe, sondages) ======================================= */
.badge-nappe { background: #087CE8; }
.pastille-sous-sol { background: #087CE8; transform: rotate(45deg) scale(.7); border-radius: 2px; }
.repere-piezo { display: block; width: 12px; height: 12px; margin: 1px; background: #087CE8; border: 2px solid #fff; transform: rotate(45deg); box-shadow: 0 0 0 1px rgba(12,74,167,.5); cursor: pointer; }
.repere-sondage { display: block; width: 10px; height: 10px; margin: 2px; background: #7A4A1E; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(122,74,30,.5); cursor: pointer; }

/* ===== v1.8 : comparatif des règles ============================================ */
.regle-divergence { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: #FFF1E0; color: #A8510A; font-size: 12px; font-weight: 600; cursor: help; }
.comparatif-titre .regle-divergence { margin: 0 0 0 8px; }
.comparatif { margin-top: 18px; border: 1px solid var(--bord); border-radius: 12px; padding: 4px 14px; }
.comparatif > summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--bleu-profond); }
.comparatif-regle { padding: 10px 0 12px; border-top: 1px solid var(--bord); }
.comparatif-titre { margin: 0 0 6px; font-weight: 600; font-size: 14px; }
.comparatif-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.comparatif-table td { padding: 6px 4px; vertical-align: top; border-bottom: 1px solid #EEF0F2; }
.comparatif-table td small { display: block; color: var(--graphite); font-size: 12px; }
.comparatif-valeur { width: 38%; font-weight: 600; text-align: right; }
.comparatif-table tr.exigeant td { background: #E8F7F1; }
.comparatif-table tr.exigeant .comparatif-valeur { color: #067A57; }

/* ===== v1.9 : remontées de nappe, zones humides, équipe ========================= */
.badge-milieux { background: #0C4AA7; }
.pastille-remontees { background: rgba(12, 74, 167, .35); border: 1px solid #0C4AA7; }
.pastille-zh { background: rgba(8, 180, 127, .4); border: 1px solid #067A57; }
.lien-entete { color: var(--bleu-profond); font-weight: 600; text-decoration: none; font-size: 15px; }
.lien-entete:hover { text-decoration: underline; }
a.avatar { text-decoration: none; }
.tb-responsable { color: var(--graphite); }
.equipe { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 24px; }
.equipe-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.equipe-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--graphite); padding: 8px 6px; border-bottom: 1px solid var(--bord); }
.equipe-table td { padding: 10px 6px; border-bottom: 1px solid #EEF0F2; vertical-align: middle; }
.equipe-table tr.inactif td { color: #8A8E93; }
.equipe-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.equipe-actions form { margin: 0; display: flex; gap: 6px; align-items: center; }
.provisoire { background: #E8F7F1; border: 1px solid #08B47F; border-radius: 12px; padding: 14px 16px; }
.provisoire code { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.role { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #EEF3FB; color: var(--bleu-profond); }
.role.admin { background: #0C4AA7; color: #fff; }
.role.lecture { background: #F1F2F3; color: var(--graphite); }
@media (max-width: 760px) { .equipe-table thead { display: none; } .equipe-table td { display: block; border: 0; padding: 4px 0; } .equipe-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--bord); } }
.formulaire.large { max-width: none; gap: 14px; }
.formulaire.large .champ { padding: 10px 12px; border-radius: 10px; font-size: 15px; height: auto; }

/* ===== v1.9.1 : sélection multiple, corbeille, historique ======================== */
.tb-ligne { display: flex; align-items: stretch; gap: 10px; }
.tb-ligne .tb-projet { flex: 1; min-width: 0; }
.tb-coche { display: flex; align-items: center; padding: 0 2px 0 4px; cursor: pointer; }
.tb-coche input { width: 18px; height: 18px; accent-color: var(--bleu-profond); cursor: pointer; }
.tb-ligne.coche .tb-projet { border-color: var(--bleu-profond); background: #F3F8FE; }
.tb-lot { position: sticky; top: 8px; z-index: 50; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; background: var(--blanc); border: 1px solid var(--bleu-profond); border-radius: 12px; box-shadow: var(--ombre); }
.tb-lot[hidden] { display: none; }
.tb-lot #lot-nombre { font-weight: 600; margin-right: auto; }
.bouton-secondaire.danger { color: var(--rouge); border-color: #F1C5C0; }
.tb-corbeille-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; background: #FFF6EC; border: 1px solid #F3D9B8; border-radius: 12px; font-size: 14px; }
.tb-corbeille-info p { margin: 0; }
.onglet-corbeille { margin-left: auto; }
.tb-retirer { margin: 0 0 0 auto; }
.tb-recentes li form:not(.tb-retirer) { margin: 0; }
.lien.discret { color: var(--graphite); font-size: 13px; }

/* ===== v2.0 : fiche repensée — « En un coup d'œil », onglets, légende ============== */
.coup-oeil { padding: 20px 22px; border-color: var(--bleu-pale); background: linear-gradient(180deg, #F7FAFE 0%, var(--blanc) 60%); }
.coup-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.coup-titre { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; }
.coup-adresse { margin: 2px 0 0; color: var(--graphite); font-size: 14.5px; }
.puce-zone { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bleu-profond); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }

.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tuile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 11px 46px; min-height: 86px; border-radius: 12px; background: var(--blanc); border: 1px solid var(--bord); transition: border-color .2s, transform .2s; }
.tuile:hover { transform: translateY(-1px); border-color: var(--bord-fort); }
.tuile-icone { position: absolute; left: 12px; top: 13px; width: 26px; height: 26px; color: var(--bleu); }
.tuile-icone svg { width: 26px; height: 26px; }
.tuile-titre { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--graphite); }
.tuile-valeur { font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--texte); }
.tuile-source { font-size: 12px; color: var(--graphite); line-height: 1.3; }
.tuile.ok { border-color: #BFE8D9; }
.tuile.alerte { border-color: #F3C9A0; background: #FFFAF4; }
.tuile.alerte .tuile-icone { color: var(--orange); }
.tuile.vide .tuile-valeur { color: var(--graphite); font-weight: 600; font-size: 16px; }
.tuile-infiltration { padding-left: 46px; }
.feu { position: absolute; left: 13px; top: 12px; display: flex; flex-direction: column; gap: 3px; padding: 4px; border-radius: 8px; background: #2F3236; }
.feu i { width: 12px; height: 12px; border-radius: 50%; background: #4A4E53; transition: background .3s, box-shadow .3s; }
.tuile-infiltration.defavorable .feu .rouge { background: #F04438; box-shadow: 0 0 8px #F04438; }
.tuile-infiltration.conditions .feu .orange, .tuile-infiltration.inconnu .feu .orange { background: #F79009; box-shadow: 0 0 8px #F79009; }
.tuile-infiltration.favorable .feu .vert { background: #22CE68; box-shadow: 0 0 8px #22CE68; }
.tuile-infiltration.defavorable { border-color: #F5C2BC; background: #FFF8F7; }
.tuile-infiltration.conditions, .tuile-infiltration.inconnu { border-color: #F3D9B8; background: #FFFBF5; }
.tuile-infiltration.favorable { border-color: #BFE8D9; background: #F6FCF9; }

.vigilance { margin-top: 16px; }
.vigilance-titre { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--graphite); }
.puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.puce { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: filter .15s, transform .15s; }
.puce::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.puce:hover { transform: translateY(-1px); filter: brightness(.97); }
.puce.fort { background: var(--rouge-pale); color: var(--rouge); border-color: #F5C2BC; }
.puce.moyen { background: #FFF1E0; color: var(--orange); border-color: #F3D9B8; }
.puce.info { background: var(--bleu-pale); color: var(--bleu-profond); border-color: #C9DDF7; }
.vigilance-rien { margin: 14px 0 0; color: var(--vert-texte); font-weight: 600; }
.coup-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.coup-actions #note-attente { flex-basis: 100%; margin: 0 !important; }

.onglets { position: sticky; top: 0; z-index: 30; display: flex; gap: 4px; padding: 6px; margin: 0; overflow-x: auto; background: rgba(245, 246, 247, .96); backdrop-filter: blur(6px); border: 1px solid var(--bord); border-radius: 14px; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets a { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 7px; border-radius: 10px; color: var(--graphite); font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.onglets a:hover { background: var(--blanc); color: var(--texte); }
.onglets a[aria-selected="true"] { background: var(--blanc); color: var(--bleu-profond); box-shadow: 0 1px 4px rgba(38, 41, 44, .12); }
.onglet-icone svg { width: 15px; height: 15px; display: block; }
.pastille-compte { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 11.5px; font-weight: 700; }
.onglet-panneau { display: flex; flex-direction: column; gap: 16px; }
.avec-onglets .onglet-panneau { animation: apparaitre .25s ease; }
.onglet-panneau[hidden] { display: none; }
@keyframes apparaitre { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.legende { position: absolute; right: 16px; bottom: 34px; z-index: 790; width: 310px; max-height: min(62%, 520px); display: flex; flex-direction: column; background: rgba(255, 255, 255, .98); border: 1px solid var(--bord); border-radius: 12px; box-shadow: var(--ombre); }
.legende[hidden] { display: none; }
.legende-entete { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--bord); }
.legende-entete span { color: var(--graphite); font-size: 12.5px; }
.legende-fermer { margin-left: auto; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--graphite); cursor: pointer; }
.legende-contenu { overflow-y: auto; padding: 4px 12px 10px; }
.legende-couche { padding: 8px 0; border-bottom: 1px solid #EEF0F2; }
.legende-couche:last-child { border-bottom: 0; }
.legende-couche h3 { margin: 0 0 3px; font-size: 13.5px; font-weight: 700; }
.legende-couche p { margin: 0 0 5px; font-size: 12.5px; line-height: 1.4; color: var(--graphite); }
.legende-couche ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.legende-couche li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sym { flex: none; display: inline-grid; place-items: center; width: 22px; height: 14px; }
.sym.surface { border-radius: 3px; }
.sym.trait { height: 0; width: 22px; }
.sym.point { width: 9px; height: 9px; border-radius: 50%; margin: 0 6.5px; }
.legende-image { display: block; max-width: 100%; margin-top: 4px; }
.leaflet-sage-wms { filter: saturate(2.2) contrast(1.4); }
@media (max-width: 760px) {
  .tuiles { grid-template-columns: 1fr; }
  .legende { left: 12px; right: 12px; width: auto; bottom: 64px; }
  .onglets a .onglet-texte { display: none; }
}
.tuile-source { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tuile-infiltration .tuile-source { -webkit-line-clamp: 3; }

/* ===== v2.1 : échelles uniformisées ============================================ */
.echelle-texte { margin: 0 0 4px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 600; color: var(--texte); }
.couche.hors-echelle { opacity: .5; }
.couche.hors-echelle::after { content: "zoomez"; margin-left: auto; font-size: 11px; color: var(--orange); }
.avis-echelle { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 820; max-width: 520px; margin: 0; padding: 8px 14px; border-radius: 10px; background: #FFF1E0; border: 1px solid #F3D9B8; color: var(--orange); font-size: 13.5px; font-weight: 600; box-shadow: var(--ombre); text-align: center; }
.avis-echelle[hidden] { display: none; }
