/* =====================================================================
   SIG ProCaR – carte interactive (même langage que le portail et l'espace gestion)
   En-tête identique à celui du portail (bandeau vert, filets jaune et rouge, même menu) : un seul site.
   Sous l'en-tête, la carte occupe la scène ; le panneau porte la recherche et le choix du projet.
   ===================================================================== */
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --vert: #2B7B31; --vert-clair: #8CC63F; --vert-fonce: #1F5E24; --vert-pale: #EAF3E7;
  --jaune: #F6EA3B; --or: #D4B000; --rouge: #E74E3B;
  --texte: #24301F; --doux: #5D6A57; --gris: #8A9485; --ligne: #E1E6DB; --fond: #F2F4EF; --papier: #FFFFFF;
  --ombre: 0 1px 2px rgba(36, 48, 31, .10), 0 4px 14px rgba(36, 48, 31, .10);
  --r: 8px;
  --panneau: 344px;
  --entete: 67px;
  --blanc: #FFFFFF; --encre: #2F3A2B;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: "Public Sans", "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  font-size: 14px; color: var(--texte); background: var(--papier); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.ico { width: 1.15rem; height: 1.15rem; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reprise à l'identique de l'en-tête du portail (statique/css/portail.css) */
/* ---------- En-tête : bandeau vert, menu à sous-menus (Projets, Thématiques) ---------- */
.entete { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 1.25em; min-height: 64px; padding: 0 1.25em;
  background: linear-gradient(180deg, #2F8436 0%, #276F2C 100%); color: var(--blanc);
  border-bottom: 3px solid var(--jaune); box-shadow: 0 2px 0 var(--rouge), 0 8px 24px rgba(20, 45, 20, .10); }
.entete a { color: inherit; text-decoration: none; }
.marque { display: flex; align-items: center; gap: .7em; flex: none; }
.marque img { width: auto; height: 42px; border-radius: 8px; background: var(--blanc); padding: 3px; object-fit: contain;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.marque .nom { font-weight: 700; font-size: 1.05em; line-height: 1.15; letter-spacing: -.005em; }
.marque .nom small { display: block; font-weight: 400; font-size: .78em; opacity: .82; letter-spacing: 0; }
.nav-principale { margin-left: .5em; }
.nav-liste { display: flex; align-items: center; gap: .15em; margin: 0; padding: 0; list-style: none; }
.nav-liste > li { position: relative; }
.nav-lien { display: inline-flex; align-items: center; gap: .3em; padding: .5em .8em; border: 0; border-radius: 8px; background: none;
  color: rgba(255, 255, 255, .92); font: inherit; font-size: .95em; font-weight: 500; line-height: 1.2; cursor: pointer; position: relative;
  transition: background-color .15s, color .15s; white-space: nowrap; }
.nav-lien:hover, .nav-lien[aria-expanded="true"] { background: rgba(255, 255, 255, .13); color: #fff; }
.nav-lien[aria-current="page"], .nav-lien[data-courant] { background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; }
.nav-lien[aria-current="page"]::after, .nav-lien[data-courant]::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 18px; height: 3px;
  margin-left: -9px; border-radius: 3px; background: var(--jaune); }
.nav-lien:focus-visible, .acces-gestion:focus-visible, .bouton-menu:focus-visible { outline: 2px solid var(--jaune); outline-offset: 2px; }
.chevron { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-lien[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Sous-menus */
.sous-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 10; min-width: 330px; padding: .45em; border-radius: 12px;
  background: var(--blanc); color: var(--encre); border: 1px solid #E1E6DB; box-shadow: 0 16px 40px rgba(20, 40, 20, .20);
  visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .14s, transform .14s, visibility 0s .14s; }
.sous-menu::before { content: ""; position: absolute; top: -6px; left: 24px; width: 10px; height: 10px; background: var(--blanc);
  border-left: 1px solid #E1E6DB; border-top: 1px solid #E1E6DB; transform: rotate(45deg); }
.nav-lien[aria-expanded="true"] + .sous-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .14s, transform .14s; }
.sous-menu ul { margin: 0; padding: 0; list-style: none; }
.sous-menu a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75em; padding: .55em .7em; border-radius: 8px;
  color: var(--encre) !important; }
.sous-menu a:hover, .sous-menu a:focus-visible { background: #F1F6EE; outline: none; }
.sous-menu a[aria-current="page"] { background: #E8F1E3; }
.sm-pastille { width: 12px; height: 12px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.sm-barre { width: 4px; height: 28px; border-radius: 2px; }
.sm-programme { background: conic-gradient(#D4B000 0 33%, #2B7B31 0 66%, #E74E3B 0); border-radius: 50%; }
.sm-texte { display: flex; flex-direction: column; min-width: 0; }
.sm-texte strong { font-size: .93em; font-weight: 650; line-height: 1.25; }
.sm-texte small { font-size: .78em; color: var(--gris); line-height: 1.3; max-width: 290px; }
#sm-projets { min-width: 390px; }
.sm-nb { font-size: .75em; color: var(--gris); font-variant-numeric: tabular-nums; background: #F2F4EF; border-radius: 999px; padding: .1em .5em; white-space: nowrap; }
.sm-sep { margin-top: .3em; padding-top: .3em; border-top: 1px solid #E9EDE5; }

/* Espace gestion : bouton blanc */
.acces-gestion { margin-left: auto; display: inline-flex; align-items: center; gap: .5em; padding: .4em .95em .4em .45em; border-radius: 999px;
  background: var(--blanc); color: var(--vert-fonce) !important; font-size: .88em; font-weight: 600; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transition: background-color .15s; }
.acces-gestion:hover { background: #F1F6EE; }
.acces-gestion svg { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: #E6F1E2; fill: none; stroke: var(--vert); stroke-width: 1.8; stroke-linecap: round; }
.acces-gestion .avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--vert); color: #fff; font-size: .7em; font-weight: 700; }

/* Menu mobile */
.bouton-menu { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.bouton-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 1100px) {
  .marque .nom small { display: none; }
  .nav-lien { padding: .5em .6em; font-size: .9em; }
}
@media (max-width: 960px) {
  .entete { flex-wrap: wrap; padding: .5em 1em; gap: .5em 1em; }
  .bouton-menu { display: grid; place-items: center; }
  .acces-gestion { margin-left: auto; order: 2; }
  .acces-gestion span:last-child { display: none; }
  .acces-gestion { padding: .3em; }
  .bouton-menu { order: 3; margin-left: 0; }
  #sm-projets { min-width: 0; }
  .nav-principale { display: none; order: 4; width: 100%; margin: 0; padding: .25em 0 .5em; border-top: 1px solid rgba(255, 255, 255, .18); }
  .entete.menu-ouvert .nav-principale { display: block; }
  .nav-liste { flex-direction: column; align-items: stretch; gap: .1em; }
  .nav-lien { width: 100%; justify-content: space-between; padding: .7em .75em; font-size: 1em; }
  .nav-lien[aria-current="page"]::after, .nav-lien[data-courant]::after { display: none; }
  .sous-menu { position: static; min-width: 0; margin: .2em 0 .4em; box-shadow: none; display: none; visibility: visible; opacity: 1; transform: none; }
  .sous-menu::before { display: none; }
  .nav-lien[aria-expanded="true"] + .sous-menu { display: block; }
}

/* Spécifique à la carte interactive : hauteur fixe (la carte occupe le reste), bouton du panneau, menu mobile en surimpression */
.entete { position: relative; height: var(--entete); min-height: 0; padding: 0 1.25rem 0 .6rem; gap: 1rem; font-size: 16px; }   /* tailles en em = portail (base 16 px) */
.bouton-icone { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: var(--r); background: none; color: var(--doux); cursor: pointer; }
.bouton-icone:hover { background: var(--fond); color: var(--texte); }
.entete .bouton-icone { color: #fff; margin-right: -.4rem; }
.entete .bouton-icone:hover { background: rgba(255,255,255,.14); color: #fff; }
.entete .ico { width: 1.15rem; height: 1.15rem; }
@media (max-width: 960px) {
  .entete { flex-wrap: nowrap; padding: 0 .75rem 0 .4rem; }
  .entete .nav-principale { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; padding: .4rem .75rem .75rem;
    background: #276F2C; border-top: 3px solid var(--jaune); box-shadow: 0 12px 28px rgba(0,0,0,.25); max-height: calc(100vh - var(--entete)); overflow-y: auto; }
}

/* ---------- Tête du panneau : recherche de lieu et choix du projet ---------- */
.tete-panneau { display: grid; gap: 8px; padding: 12px 12px 0; }
/* Puces de projet : le choix du projet est l'action principale de la carte */
.projets-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; background: var(--fond); border-radius: 10px; }
.puce-pj { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; border: 0; border-radius: 7px; background: none;
  font-weight: 700; font-size: 12.5px; color: var(--doux); cursor: pointer; white-space: nowrap; }
.puce-pj::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; }
.puce-pj:hover { background: var(--papier); color: var(--texte); }
.puce-pj[aria-pressed="true"] { background: var(--papier); color: color-mix(in srgb, var(--c) 70%, black);
  box-shadow: 0 1px 2px rgba(36, 48, 31, .14), inset 0 -3px 0 var(--c); }
.puce-pj[data-projet=""]::before { background: conic-gradient(#D4B000 0 33%, #2B7B31 0 66%, #E74E3B 0); border-radius: 50%; }

.recherche { position: relative; width: 100%; }
.recherche .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--doux); pointer-events: none; }
.recherche input { width: 100%; padding: 9px 12px 9px 34px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--fond); }
.recherche input:focus { outline: 2px solid var(--vert-clair); outline-offset: 0; background: var(--papier); }
.suggestions { position: absolute; top: 44px; left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--papier);
  border: 1px solid var(--ligne); border-radius: 10px; box-shadow: var(--ombre); max-height: 320px; overflow: auto; display: none; }
.suggestions.ouvert { display: block; }
.suggestions li { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.suggestions li small { color: var(--gris); margin-left: 6px; }
.suggestions li:hover, .suggestions li.actif { background: var(--vert-pale); }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; gap: 6px; background: var(--vert); color: #fff; border: 1px solid var(--vert);
  border-radius: var(--r); padding: 8px 14px; font-weight: 600; cursor: pointer; }
.bouton:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.bouton:disabled { opacity: .45; cursor: default; }
.bouton-clair { background: var(--papier); color: var(--vert); border-color: #B9C2B2; }
.bouton-clair:hover { background: var(--vert-pale); border-color: var(--vert); }
.bouton-lien { border: 0; background: none; padding: 0; color: var(--vert); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.session-agent { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--doux); }
.session-agent .bouton-lien { margin-left: auto; font-size: 13px; }
.point-connecte { width: 8px; height: 8px; border-radius: 50%; background: var(--vert-clair); box-shadow: 0 0 0 3px var(--vert-pale); }
.connecte { background: var(--vert-pale); }

/* ---------- Disposition ---------- */
.corps { display: flex; height: calc(100% - var(--entete)); }
.panneau { width: var(--panneau); flex: 0 0 var(--panneau); display: flex; flex-direction: column; background: var(--papier);
  border-right: 1px solid var(--ligne); z-index: 10; }
.panneau.replie { margin-left: calc(-1 * var(--panneau)); }
.zone-carte { position: relative; flex: 1; min-width: 0; }
.carte { position: absolute; inset: 0; background: #EEF0EA; }

/* Onglets du panneau : contrôle segmenté */
.onglets { display: flex; gap: 3px; margin: 12px 12px 4px; padding: 3px; background: var(--fond); border-radius: 10px; }
.onglet { flex: 1; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 4px; border: 0; border-radius: 7px; background: none; cursor: pointer; color: var(--doux); font-weight: 600; font-size: 13px; }
.onglet:hover { color: var(--texte); }
.onglet.actif { background: var(--papier); color: var(--texte); box-shadow: 0 1px 2px rgba(36, 48, 31, .14); }
.pastille[hidden] { display: none; }
.pastille { display: inline-block; min-width: 18px; padding: 1px 5px; border-radius: 9px; background: var(--or); color: #fff; font-size: 11px; line-height: 1.4; }
.contenu { display: none; padding: 10px 14px 14px; overflow-y: auto; flex: 1; }
.contenu.actif { display: block; }
.aide { color: var(--doux); font-size: 12.5px; margin: 0 0 10px; line-height: 1.5; }
.intertitre { font-size: 13px; font-weight: 700; color: var(--texte); margin: 20px 0 8px; }

/* ---------- Arbre des couches ---------- */
.groupe { margin-bottom: 6px; }
.groupe > summary { list-style: none; cursor: pointer; padding: 8px 4px 6px; font-weight: 700; font-size: 13px; color: var(--texte);
  display: flex; align-items: center; gap: 8px; border-radius: 6px; }
.groupe > summary::-webkit-details-marker { display: none; }
.groupe > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--doux); border-bottom: 2px solid var(--doux);
  transform: rotate(-45deg); margin: 0 3px 0 2px; }
.groupe[open] > summary::before { transform: rotate(45deg); margin-top: -3px; }
.groupe > summary:hover { color: var(--vert); }
.couche { padding: 1px 0; border-radius: var(--r); }
.couche:hover { background: var(--fond); }
.couche-tete { display: flex; align-items: center; gap: 9px; padding: 6px 6px 6px 8px; }
.couche-tete label { flex: 1; cursor: pointer; line-height: 1.3; }
.couche-tete input[type=checkbox] { accent-color: var(--vert); width: 16px; height: 16px; flex: none; }
.lien-mini { display: grid; place-items: center; width: 28px; height: 28px; background: none; border: 0; border-radius: 6px; color: var(--gris); cursor: pointer; opacity: .75; }
.lien-mini .ico { width: 16px; height: 16px; }
.lien-mini:hover, .lien-mini[aria-expanded="true"] { color: var(--vert); background: var(--papier); opacity: 1; }
.couche-details { display: none; padding: 4px 10px 10px 33px; }
.couche.deplie { background: var(--fond); }
.couche.deplie .couche-details { display: block; }
.couche-details .aide { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.couche-details input[type=range] { flex: 1; accent-color: var(--vert); }
.legende img { max-width: 100%; display: block; margin-top: 4px; }
.hors-echelle label { color: var(--gris); }
.hors-echelle label::after { content: " – zoomer"; font-size: 11.5px; }
.couche-alerte { display: none; font-size: 11px; font-weight: 700; color: #A3361F; background: #FBE9E4; border-radius: 5px; padding: 1px 6px; }
.couche.en-erreur .couche-alerte { display: inline-block; }

.choix-fonds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.choix-fonds button { border: 1px solid var(--ligne); background: var(--papier); border-radius: var(--r); padding: 9px 8px; cursor: pointer; font-weight: 600; color: var(--doux); }
.choix-fonds button:hover { border-color: #B9C2B2; color: var(--texte); }
.choix-fonds button.actif { border-color: var(--vert); background: var(--vert-pale); color: var(--vert-fonce); box-shadow: inset 0 0 0 1px var(--vert); }

/* ---------- Formulaires ---------- */
.champ { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 12.5px; font-weight: 600; color: var(--doux); }
.champ input, .champ select { padding: 8px 10px; border: 1px solid #C9D0C2; border-radius: var(--r); background: var(--papier); color: var(--texte); font-weight: 400; font-size: 14px; }
.ligne-champs { display: flex; gap: 6px; }
.ligne-champs input { flex: 1; min-width: 0; }
.groupe-cases { border: 1px solid var(--ligne); border-radius: var(--r); margin: 0 0 12px; padding: 6px 10px 8px; }
.groupe-cases legend { font-size: 12.5px; font-weight: 600; color: var(--doux); padding: 0 4px; }
.groupe-cases label { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; cursor: pointer; }
.groupe-cases input { accent-color: var(--vert); }
.puce { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filtre-cql { font-size: 11.5px; color: var(--gris); word-break: break-all; }
.choix-outils { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.bouton-outil { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--ligne); background: var(--papier);
  border-radius: var(--r); padding: 9px 11px; cursor: pointer; font-weight: 600; color: var(--texte); }
.bouton-outil .ico { color: var(--doux); }
.bouton-outil:hover { border-color: #B9C2B2; }
.bouton-outil.actif { border-color: var(--vert); background: var(--vert-pale); color: var(--vert-fonce); box-shadow: inset 0 0 0 1px var(--vert); }
.bouton-outil.actif .ico { color: var(--vert); }
.resultat-mesure { font-size: 16px; font-weight: 700; color: var(--vert-fonce); }
.erreur { color: #A3361F; font-size: 12.5px; min-height: 1em; }

/* ---------- Résultats ---------- */
.synthese { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.carte-chiffre { background: var(--fond); border-radius: var(--r); padding: 9px 10px; }
.carte-chiffre b { display: block; font-size: 18px; color: var(--texte); font-variant-numeric: tabular-nums; }
.carte-chiffre span { font-size: 11.5px; color: var(--doux); }
.table-defilante { overflow: auto; max-height: 50vh; border: 1px solid var(--ligne); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
td:first-child { font-weight: 600; color: var(--texte); }
th { position: sticky; top: 0; background: #F8F9F6; text-align: left; padding: 7px 8px; color: var(--doux); font-weight: 600; border-bottom: 1px solid var(--ligne); }
td { padding: 6px 8px; border-top: 1px solid var(--ligne); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--vert-pale); }

.pied-panneau { border-top: 1px solid var(--ligne); padding: 10px 14px; font-size: 11.5px; line-height: 1.45; color: var(--gris); display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.pied-panneau a { color: var(--vert); white-space: nowrap; font-weight: 600; }

/* ---------- Carte : commandes flottantes ---------- */
.barre-carte { position: absolute; top: 102px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.bouton-carte, .ol-zoom button { display: grid !important; place-items: center; width: 36px !important; height: 36px !important; margin: 0 !important;
  border-radius: var(--r) !important; border: 0 !important; background: var(--papier) !important; color: var(--texte) !important;
  font-size: 18px !important; cursor: pointer; box-shadow: var(--ombre); }
.bouton-carte:hover, .ol-zoom button:hover { background: var(--vert-pale) !important; color: var(--vert) !important; }
.ol-zoom { top: 12px; left: 12px; background: none !important; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ol-scale-line { left: 12px; bottom: 12px; background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 3px 6px; }
.ol-scale-line-inner { color: var(--doux); border-color: var(--doux); font-size: 11px; }
.coordonnees { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .92);
  padding: 4px 10px; border-radius: 99px; font-size: 11.5px; color: var(--doux); font-variant-numeric: tabular-nums; box-shadow: var(--ombre); white-space: nowrap; }
.chargement { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--texte); color: #fff;
  padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; box-shadow: var(--ombre); }
.notification { position: absolute; top: 12px; right: 12px; max-width: 360px; background: var(--papier); border-left: 4px solid var(--or);
  padding: 10px 12px; box-shadow: var(--ombre); border-radius: var(--r); font-size: 13px; z-index: 30; }

/* Fenêtre d'information */
.popup { position: absolute; background: var(--papier); border-radius: 10px; box-shadow: 0 6px 24px rgba(36, 48, 31, .22); width: 320px; max-height: 380px;
  overflow: auto; transform: translate(-50%, calc(-100% - 14px)); }
.popup .fermer { position: sticky; float: right; top: 6px; margin: 6px 6px 0 0; width: 28px; height: 28px; border: 0; border-radius: 6px; background: var(--fond);
  font-size: 18px; line-height: 1; cursor: pointer; color: var(--doux); }
.popup .fermer:hover { color: var(--texte); }
.fiche { padding: 12px 14px; }
.fiche + .fiche { border-top: 1px solid var(--ligne); }
.fiche h4 { margin: 2px 0 4px; color: var(--texte); font-size: 15px; }
.fiche .couche-nom { font-size: 11.5px; font-weight: 600; color: var(--doux); }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 8px 0 0; font-size: 12.5px; }
.fiche dt { color: var(--doux); }
.fiche dd { margin: 0; font-variant-numeric: tabular-nums; }
.ol-attribution { font-size: 10.5px; }

/* ---------- Dialogues ---------- */
.dialogue { border: 0; border-radius: 14px; box-shadow: 0 10px 40px rgba(36, 48, 31, .28); width: min(420px, 92vw); padding: 0; overflow: hidden; }
.dialogue::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, #8CC63F 0 55%, #F6EA3B 55% 80%, #E74E3B 80%); }
.dialogue form { padding: 20px 22px; }
.dialogue h2 { margin: 0 0 8px; color: var(--texte); font-size: 19px; }
.dialogue::backdrop { background: rgba(36, 48, 31, .38); }
.sources { font-size: 13px; color: var(--doux); padding-left: 18px; line-height: 1.5; }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 860px) {
  .marque .nom small { display: none; }
}
@media (max-width: 760px) {
  :root { --panneau: 88vw; }
  .panneau { position: absolute; top: var(--entete); bottom: 0; left: 0; box-shadow: var(--ombre); }
  .popup { width: 260px; }
  .coordonnees { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .panneau { transition: margin-left .2s; }
  .puce-pj, .onglet, .lien-mini { transition: background-color .15s, color .15s; }
}
