/* france.greehill.fr/patrimoine : validation du patrimoine. Charte greehill (Inter, noir sur blanc, sauge pour les surtitres),
   carte en tête à gauche (elle reste visible pendant qu'on parcourt la liste), liste à droite ; sur téléphone, l'une sous l'autre. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
:root { --ink: #111511; --muted: #4d574f; --line: #dfe4dc; --soft: #f5f6f3; --green-ink: #4f6354; --sauge: #839788; --beige: #e9ddc6;
  --ok: #08795c; --ok-soft: #e3f5ef; --warn: #9a5800; --warn-soft: #fff1df; --terra: #9b4a2c; --terra-soft: #f7e7de;
  --g-nous: #08795c; --g-metropole: #2d5fa6; --g-partage: #138a9e; --g-aucun: #9b4a2c; --g-inconnu: #d98a1f;
  --radius: 15px; --haut: 76px; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2 { letter-spacing: -.02em; }
button { font: inherit; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- bandeau du haut, fixe ---------- */
.bandeau { position: sticky; top: 0; z-index: 1000; height: var(--haut); display: flex; align-items: center; gap: 22px; padding: 0 clamp(16px, 3vw, 32px);
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { width: 112px; flex: none; color: #000; }
.logo svg { width: 100%; height: auto; display: block; fill: currentColor; stroke: none; }
.titres { min-width: 0; flex: 1; }
.surtitre { margin: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bandeau h1 { margin: 0; font-size: 1.45rem; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.avance { width: 210px; flex: none; }
.avance-txt { font-size: .86rem; color: var(--muted); margin-bottom: 4px; } .avance-txt strong { color: var(--ink); font-size: 1rem; }
.barre { height: 8px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.barre span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sauge), var(--ok)); transition: width .3s; }
.avance.complet .avance-txt strong { color: var(--ok); }
.qui { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px 6px 8px; font-size: .88rem; font-weight: 600; max-width: 180px; }
.qui svg { width: 20px; height: 20px; flex: none; color: var(--green-ink); }
.qui span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- carte et liste ---------- */
.travail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); gap: 0; max-width: 1440px; margin: 0 auto; }
.travail.vide { display: block; max-width: 720px; padding: 40px 20px; }
.carte-zone { position: sticky; top: var(--haut); height: calc(100vh - var(--haut)); }
.carte { position: absolute; inset: 0; background: #e8ebe6; }
.legende { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: calc(100% - 24px);
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 12px; padding: 8px 12px; font-size: .78rem; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.legende span { display: inline-flex; align-items: center; gap: 6px; } .legende i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legende i.tirets { border: 1.5px dashed #555; background: transparent; }
.leaflet-tooltip.bulle { font: 600 12.5px/1.3 "Inter", system-ui, sans-serif; border-radius: 8px; padding: 4px 8px; }

.liste-zone { padding: 22px clamp(16px, 2.5vw, 30px) 30px; min-width: 0; }
.intro { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.chargement { color: var(--muted); }
.groupe, .autres { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 18px; padding: 16px 16px 8px;
  background: linear-gradient(154deg, rgba(233,221,198,.35), rgba(255,255,255,0) 55%); }
.g-tete { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.groupe h2, .autres h2 { margin: 0; font-size: 1.12rem; font-weight: 600; }
.g-n { font-size: .8rem; font-weight: 600; color: var(--green-ink); background: rgba(172,191,173,.38); border-radius: 99px; padding: 2px 8px; margin-left: 4px; vertical-align: 2px; }
.sous { margin: 2px 0 8px; color: var(--muted); font-size: .86rem; }
.g-act { display: flex; gap: 4px; flex: none; }
.ico { position: relative; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; color: var(--ink); padding: 0; }
.ico svg { width: 20px; height: 20px; } .ico:hover { background: var(--soft); border-color: var(--sauge); }
.ico.petit { width: 28px; height: 28px; border-radius: 8px; vertical-align: middle; margin-left: 6px; } .ico.petit svg { width: 16px; height: 16px; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; white-space: nowrap; background: #111; color: #fff;
  font-size: .76rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; pointer-events: none; }
.qui[data-tip] { position: relative; }

.ent { border-top: 1px solid var(--line); }
.ent-tete { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; padding: 9px 4px; border-radius: 10px; color: inherit; }
.ent-tete:hover { background: rgba(245,246,243,.9); }
.ent.sel > .ent-tete { background: var(--soft); }
.pastille { width: 12px; height: 12px; border-radius: 50%; flex: none; background: #8c958e; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.08); }
.ent-nom { flex: 1; min-width: 0; font-weight: 600; font-size: .93rem; line-height: 1.3; }
.ent-meta { display: block; font-weight: 400; font-size: .79rem; color: var(--muted); }
.ent-nom .ent-meta { margin-top: 1px; }
.ent-rep { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.puce { font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 2px 8px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.puce.g-nous { background: var(--ok-soft); color: var(--g-nous); } .puce.g-metropole { background: #e5edf8; color: var(--g-metropole); }
.puce.g-partage { background: #e0f2f5; color: var(--g-partage); } .puce.g-aucun { background: var(--terra-soft); color: var(--g-aucun); }
.puce.g-inconnu { background: var(--warn-soft); color: var(--warn); } .puce.out { background: #fff; border: 1px dashed #999; } .puce.in { background: #fff; border: 1px solid var(--line); color: var(--ink); }

.fiche { padding: 4px 4px 14px 26px; }
.info { margin: 2px 0 10px; font-size: .86rem; color: var(--muted); } .info strong { color: var(--ink); }
.q { display: block; margin: 0 0 10px; }
.q-lib { display: block; font-size: .8rem; font-weight: 700; color: var(--green-ink); margin-bottom: 5px; }
.segments { display: flex; flex-wrap: wrap; gap: 5px; }
.seg { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 11px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.seg:hover { border-color: var(--sauge); }
.seg.on { color: #fff; border-color: transparent; }
.seg.g-nous.on { background: var(--g-nous); } .seg.g-metropole.on { background: var(--g-metropole); } .seg.g-partage.on { background: var(--g-partage); }
.seg.g-aucun.on { background: var(--g-aucun); } .seg.g-inconnu.on { background: var(--g-inconnu); } .seg.i-oui.on { background: #111; } .seg.i-non.on { background: #6b6f6b; }
.segments.court .seg { min-width: 64px; }
textarea, input { font: inherit; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; color: #000; }
textarea { resize: vertical; min-height: 44px; font-size: .9rem; }
textarea:focus, input:focus { outline: 2px solid var(--green-ink); outline-offset: 1px; }

details.ilots { border-top: 1px solid var(--line); }
details.ilots > summary { cursor: pointer; padding: 10px 4px; font-weight: 600; font-size: .9rem; list-style: none; display: flex; align-items: center; gap: 8px; }
details.ilots > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--green-ink); border-bottom: 2px solid var(--green-ink); transform: rotate(-45deg); transition: transform .15s; margin: 0 4px; }
details.ilots[open] > summary::before { transform: rotate(45deg); }
details.ilots > summary::-webkit-details-marker { display: none; }
.couche { border-top: 1px solid var(--line); padding: 8px 0 0; }
.couche details.ilots { border: 0; } .couche details.ilots > summary { font-size: .82rem; color: var(--muted); padding: 4px 4px 8px 50px; }
.bascule { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.bascule input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur { width: 36px; height: 21px; border-radius: 99px; background: #cfd5cd; position: relative; flex: none; transition: background .15s; }
.interrupteur::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.bascule input:checked + .interrupteur { background: var(--ok); } .bascule input:checked + .interrupteur::after { transform: translateX(15px); }
.bascule input:focus-visible + .interrupteur { outline: 2px solid var(--green-ink); outline-offset: 2px; }

.fin { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; padding: 16px; border-radius: var(--radius); background: var(--soft); }
.fin .sous { flex: 1; min-width: 200px; margin: 0; }
.fin.envoye { background: var(--ok-soft); } .fin.envoye .sous { color: var(--ok); font-weight: 600; }
.b-dark, .b-clair { font-weight: 700; border: 0; border-radius: 10px 10px 0 0; padding: 11px 18px; }
.b-dark { background: #000; color: #fff; } .b-clair { background: #fff; color: #000; border: 1px solid var(--line); }
.msg { border-radius: 10px; padding: 12px 14px; } .msg.err { background: var(--warn-soft); color: var(--warn); } .msg.info { background: var(--soft); }

.dlg { border: 0; border-radius: var(--radius); padding: 22px 24px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dlg::backdrop { background: rgba(17,21,17,.35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dlg h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 600; }
.dlg label { display: block; font-weight: 600; font-size: .86rem; margin: 10px 0 0; } .dlg label input { margin-top: 4px; font-weight: 400; }
.dlg-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---------- explications en bas de page ---------- */
.explications { border-top: 1px solid var(--line); padding: 30px clamp(16px, 4vw, 48px) 20px; background: linear-gradient(273deg, rgba(233,221,198,.45), rgba(131,151,136,.18)); }
.explications .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1440px; margin: 0 auto; }
.explications h2 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-ink); margin: 0 0 8px; }
.explications p { margin: 0; font-size: .88rem; color: var(--muted); }
.pied { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1440px; margin: 24px auto 0 !important; font-size: .8rem !important; }

@media (max-width: 900px) {
  :root { --haut: 64px; }
  .bandeau { gap: 12px; } .logo { width: 84px; } .bandeau h1 { font-size: 1.1rem; }
  .avance { width: 96px; } .avance-txt span { display: none; } .qui span { display: none; } .qui { padding: 7px; }
  .travail { grid-template-columns: 1fr; }
  .carte-zone { position: relative; top: 0; height: 56vh; }
  .explications .cols { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 520px) { .titres .surtitre { display: none; } .ent-rep { max-width: 40%; } .fiche { padding-left: 4px; } .liste-zone { padding: 16px; } }
.q-lib .ent-meta { display: inline; font-weight: 400; margin-left: 4px; }
.fin[hidden] { display: none; }
/* couleurs : plein = réponse du client ; clair (anneau, fond pâle) = proposition de greehill à confirmer */
.pastille { background: var(--c, #8c958e); }
.pastille.clair { background: color-mix(in srgb, var(--c) 18%, #fff); box-shadow: inset 0 0 0 2.5px var(--c), 0 0 0 2px #fff; }
.legende i.clair { background: color-mix(in srgb, var(--c) 18%, #fff); box-shadow: inset 0 0 0 2px var(--c); }
.legende i.clair + i.clair { margin-left: -3px; }
.seg.g-nous:not(.on) { box-shadow: inset 3px 0 0 var(--g-nous); } .seg.g-metropole:not(.on) { box-shadow: inset 3px 0 0 var(--g-metropole); }
.seg.g-partage:not(.on) { box-shadow: inset 3px 0 0 var(--g-partage); } .seg.g-aucun:not(.on) { box-shadow: inset 3px 0 0 var(--g-aucun); }
.seg.g-inconnu:not(.on) { box-shadow: inset 3px 0 0 var(--g-inconnu); }

/* ---------- espace manquant : bouton sur la carte, barre d'aide pendant le dessin, dialogue ---------- */
.ajout-ctl { border: 0 !important; box-shadow: 0 2px 10px rgba(0,0,0,.18) !important; border-radius: 10px !important; overflow: visible; }
.ajout-ctl button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px;
  background: #fff; color: var(--ink); font: 600 13px/1 "Inter", system-ui, sans-serif; }
.ajout-ctl button svg { width: 19px; height: 19px; color: #c25b00; }
.ajout-ctl button:hover { background: var(--soft); }
.ajout-ctl button.actif { background: #c25b00; color: #fff; } .ajout-ctl button.actif svg { color: #fff; }
.ajout-ctl [data-tip]:hover::after { left: 0; right: auto; }
.barre-carte { position: absolute; z-index: 600; top: 12px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 140px)); display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 12px; padding: 10px 12px 10px 14px; font-size: .84rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); border-left: 4px solid #c25b00; }
.barre-carte[hidden] { display: none; }
.barre-carte .b-clair { flex: none; padding: 7px 12px; }
.dlg-large { width: min(560px, calc(100vw - 32px)); }
.dlg .q { margin-top: 12px; } .dlg textarea { margin-top: 4px; font-weight: 400; }
.ico.danger { color: #c23a37; }
@media (max-width: 900px) { .barre-carte { top: auto; bottom: 64px; width: calc(100% - 24px); } }
#a-types .seg.on { background: #111; color: #fff; }
.dlg label .ent-meta { display: inline; margin-left: 4px; font-weight: 400; }

.ajout-ctl [data-tip]:hover::after { top: 50%; left: calc(100% + 8px); right: auto; transform: translateY(-50%); }

/* fond de carte : deux icônes groupées (comme les plans de Sauvain), bulle au survol */
.fond-choix { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fond-choix button { position: relative; display: grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: 8px; background: none; color: #5d6460; padding: 0; }
.fond-choix button svg { width: 19px; height: 19px; }
.fond-choix button:hover { background: var(--soft); color: var(--ink); }
.fond-choix button[aria-pressed="true"] { background: var(--green-ink); color: #fff; }
.fond-choix [data-tip]:hover::after { top: calc(100% + 8px); right: 0; left: auto; }

/* Convention (comme au club) : le violet = visible de l'équipe greehill connectée seulement ; petit repère, détail au survol */
:root { --equipe: #7a4fd0; --equipe-soft: rgba(122,79,208,.12); --equipe-bord: rgba(122,79,208,.35); }
.marque-equipe { position: relative; flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--equipe-soft); border: 1px solid var(--equipe-bord); color: var(--equipe); text-decoration: none; }
.marque-equipe svg { width: 18px; height: 18px; }
.marque-equipe:hover, .marque-equipe:focus-visible { background: var(--equipe); color: #fff; }
.marque-equipe[data-tip]:hover::after { white-space: normal; width: 260px; line-height: 1.35; }

/* couvert forestier dense : encadré terracotta (information), petite puce dans la liste */
.alerte-foret { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--terra-soft); color: var(--terra); font-size: .85rem; line-height: 1.4; }
.alerte-foret svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.puce.foret { display: inline-grid; place-items: center; padding: 2px 5px; background: var(--terra-soft); color: var(--terra); }
.puce.foret svg { width: 14px; height: 14px; }

/* barre d'aide de la carte : boutons à droite ; violet quand c'est un outil de l'équipe greehill */
.barre-carte { width: min(680px, calc(100% - 140px)); }
.barre-carte #barre-txt { flex: 1; min-width: 0; }
.barre-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.barre-act button { padding: 7px 12px; font-size: .82rem; white-space: nowrap; }
.barre-carte.equipe { border-left-color: var(--equipe); }
.barre-carte.equipe .b-dark { background: var(--equipe); }
.fond-choix .sep { width: 1px; margin: 4px 2px; background: var(--line); }
.outils-equipe { display: flex; gap: 6px; margin: 0 0 10px; }
.equipe-btn { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--equipe-bord); background: var(--equipe-soft); color: var(--equipe); padding: 0; }
.equipe-btn svg { width: 17px; height: 17px; }
.equipe-btn:hover { background: var(--equipe); color: #fff; }
.equipe-btn[data-tip]:hover::after { left: 0; right: auto; }
.pop-parcelle .leaflet-popup-content { font: 400 13px/1.45 "Inter", system-ui, sans-serif; margin: 10px 14px; }
.pop-btn { margin-top: 8px; border: 0; border-radius: 8px 8px 0 0; padding: 6px 10px; background: #111; color: #fff; font: 600 12.5px "Inter", system-ui, sans-serif; }

/* =====================================================================================================================
   Charte greehill.com (pages publiques) : photo d'arbre en tête avec carte en verre sauge (titre blanc), barre blanche
   qui reste en haut, bouton de marque en dégradé (coins du haut arrondis, bas plat), titres serrés, pied en dégradé.
   Page utilitaire : en-tête compact, la carte et la liste arrivent tout de suite.
   ===================================================================================================================== */
:root { --haut: 62px; --verre: rgba(131,151,136,.55); --degrade: linear-gradient(273deg, #e9ddc6 6%, #839788 124%); }
.hero { position: relative; display: flex; align-items: flex-end; min-height: 210px; padding: 28px clamp(16px, 4vw, 48px);
  background: #6f7f72 url("/assets/patrimoine/bandeau-arbre.jpg") 30% 42% / cover no-repeat; }
.hero-verre { width: min(760px, 100%); padding: 20px 26px 22px; border-radius: 16px 16px 0 0; background: var(--verre); color: #fff;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.hero-verre .logo-blanc { display: inline-block; width: 104px; color: #fff; }
.hero-verre .logo-blanc svg { fill: currentColor; }
.hero-verre .surtitre { margin: 14px 0 0; color: rgba(255,255,255,.88); font-size: .74rem; letter-spacing: .08em; white-space: normal; }
.hero-verre h1 { margin: 6px 0 0; font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; color: #fff; }
.hero-verre .lead { margin: 10px 0 0; max-width: 62ch; font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.94); }

.barre-haut { position: sticky; top: 0; z-index: 1000; height: var(--haut); display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 3vw, 32px);
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.barre-haut .logo { width: 96px; flex: none; color: #000; }
.barre-haut .logo svg { width: 100%; height: auto; display: block; fill: currentColor; stroke: none; }
.barre-nom { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-marque { flex: none; border: 0; border-radius: 10px 10px 0 0; padding: 10px 22px; background: var(--degrade); color: #000; font-weight: 700; font-size: .9rem; }
.b-marque:hover { filter: brightness(1.04); }
.b-dark, .b-clair, .seg, .dlg-act button, .pop-btn { border-radius: 10px 10px 0 0; }

/* titres des groupes et du pied, serrés comme greehill.com */
.groupe h2, .autres h2 { font-weight: 600; letter-spacing: -.03em; font-size: 1.18rem; }
.groupe, .autres { border-radius: 16px; background: linear-gradient(154deg, rgba(233,221,198,.4), rgba(255,255,255,0) 60%); }

/* sur la photo aérienne : verre sauge à texte blanc (légende, barre d'aide, choix du fond) */
.legende { background: rgba(111,127,114,.78); color: #fff; box-shadow: none; }
.legende i.tirets { border-color: #fff; }
.barre-carte { background: rgba(111,127,114,.86); color: #fff; border-left-color: #e9ddc6; }
.barre-carte .b-clair { background: rgba(255,255,255,.92); border: 0; }
.barre-carte .b-dark { background: #fff; color: #000; }
.barre-carte.equipe .b-dark { background: var(--equipe); color: #fff; }
/* séparer un îlot : outil choisi (orange « à part », rouge « à retirer ») */
.barre-carte .outil.on { background: #c25b00; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.barre-carte .outil.retire.on { background: #b42318; }
path.morceau-sep { cursor: pointer; }

/* pied de page en dégradé de marque, encart Contact en verre */
.explications { display: none; }
.pied-page { background: var(--degrade); color: #000; padding: 36px clamp(16px, 4vw, 48px) 22px; }
.pied-col { max-width: 1440px; margin: 0 auto; display: grid; gap: 26px; }
.pied-marque .logo { display: block; width: 120px; color: #000; } .pied-marque .logo svg { width: 100%; height: auto; fill: currentColor; }
.pied-marque p { margin: 6px 0 0; font-size: .9rem; }
.pied-page .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pied-page h2 { margin: 0 0 6px; font-size: .9rem; font-weight: 700; letter-spacing: -.01em; }
.pied-page p { margin: 0; font-size: .86rem; line-height: 1.55; color: #1d231e; }
.pied-contact { justify-self: start; min-width: min(420px, 100%); padding: 16px 20px; border-radius: 16px; background: rgba(131,151,136,.35);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.pied-contact a { font-weight: 600; }
.pied-bas { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem !important; }

@media (max-width: 900px) {
  :root { --haut: 56px; }
  .hero { min-height: 160px; padding: 16px; }
  .hero-verre { padding: 14px 16px 16px; }
  .hero-verre .lead { display: none; }
  .barre-haut { gap: 10px; } .barre-haut .logo { width: 76px; } .barre-nom { display: none; }
  .b-marque { padding: 9px 12px; font-size: .82rem; }
  .pied-page .cols { grid-template-columns: 1fr; gap: 16px; }
}
.qui.fixe { cursor: default; }
#inviter span { font-weight: 600; } @media (max-width: 520px) { #inviter span { display: none; } }
/* barre blanche sans logo (déjà dans l'en-tête) : le nom de la collectivité ouvre la ligne */
.barre-haut .barre-nom { font-size: 1rem; }
@media (max-width: 900px) { .barre-haut .barre-nom { display: block; font-size: .85rem; } .barre-haut .avance { width: 78px; } }
@media (max-width: 520px) { .barre-haut .barre-nom { display: none; } .barre-haut { gap: 8px; } .b-marque { padding: 8px 10px; } }
.champ-nom { width: 100%; font: inherit; font-weight: 600; padding: 5px 8px; border: 1px solid var(--sauge); border-radius: 8px; }
.renommer-ligne { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.renommer-ligne .champ-nom { flex: 1 1 220px; }
.renommer-ligne button { padding: 7px 12px; font-size: .85rem; }
.ico.alerte { color: #c25b00; border-color: #e8c49e; background: #fff6ec; }

/* barre d'aide (dessin, contour, rattachement) : sous les contrôles de la carte, jamais par-dessus le zoom, l'ajout ou le choix du fond ;
   le texte prend la largeur, les boutons passent dessous quand la place manque (téléphone) */
.barre-carte { top: 58px; left: 60px; right: 12px; bottom: auto; width: auto; max-width: 720px; margin: 0 auto; transform: none; flex-wrap: wrap; row-gap: 8px; }
.barre-carte #barre-txt { flex: 1 1 260px; line-height: 1.4; }
.barre-act { margin-left: auto; flex-wrap: nowrap; }
@media (max-width: 900px) { .barre-carte { top: 58px; bottom: auto; width: auto; } }
@media (max-width: 480px) { .barre-carte { padding: 9px 10px 9px 12px; font-size: .8rem; } .barre-act button { padding: 6px 10px; } }

/* ---------- intercommunalité, missions déjà scannées (17/11/2026) ---------- */
.filtre-commune { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.filtre-commune label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-ink); }
.filtre-commune select { flex: 1; min-width: 0; font: inherit; font-size: .95rem; font-weight: 500; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.groupe.scannes { background: var(--soft); }
.alerte-scanne { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: .88rem; font-weight: 600; }

/* ---------- en-tête et pied compacts (Pascal, 17/11/2026 : « trop imposants ») ---------- */
.hero { min-height: 0; padding: 10px clamp(16px, 4vw, 48px); background-position: 30% 46%; }
.hero-verre { width: auto; max-width: 100%; display: flex; align-items: center; gap: 18px; padding: 10px 18px; border-radius: 12px 12px 0 0; }
.hero-verre .logo-blanc { width: 86px; flex: none; }
.hero-txt { min-width: 0; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.4); }
.hero-verre h1 { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.2; letter-spacing: -.03em; }
.hero-verre .lead { margin: 2px 0 0; font-size: .84rem; line-height: 1.35; }
.pied-page { padding: 14px clamp(16px, 4vw, 48px) 12px; }
.pied-col { gap: 8px; }
.pied-notes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px; font-size: .8rem; line-height: 1.4; color: #1d231e; }
.pied-bas { align-items: center; font-size: .76rem !important; color: #1d231e; }
.pied-bas .logo { display: inline-block; width: 64px; vertical-align: -3px; margin-right: 8px; color: #000; }
.pied-bas .logo svg { width: 100%; height: auto; fill: currentColor; }
.pied-bas a { font-weight: 600; color: #000; }
@media (max-width: 900px) {
  .hero { padding: 8px 12px; }
  .hero-verre { gap: 12px; padding: 8px 12px; }
  .hero-verre .logo-blanc { width: 70px; }
  .hero-txt { padding-left: 12px; }
  .pied-notes { grid-template-columns: 1fr; }
}

/* ---------- l'arbre du club en fond d'écran, tuiles en verre légèrement transparent (Pascal, 17/11/2026) ---------- */
body { background: #fff url("/assets/home/arbre-nuage.webp") 100% 45% / auto 108% no-repeat fixed; }
.hero { background: transparent; }
.barre-haut { background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
.liste-zone { background: transparent; }
.groupe, .autres { background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 40px rgba(0,0,0,.10);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
.groupe.scannes { background: rgba(245,246,243,.84); }
.filtre-commune select { background: rgba(255,255,255,.9); }
@media (max-width: 900px) {
  body { background: #fff url("/assets/home/arbre-nuage.webp") 50% 0 / 150% auto no-repeat scroll; }
}
.hero-verre { background: rgba(111,127,114,.86); }                              /* sauge plus dense : texte blanc lisible sur le fond clair */
.filtre-commune { padding: 8px 10px 8px 14px; border-radius: 14px; background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }

/* ---------- look du club : barre en verre blanc, logo noir, titre sur l'arbre ---------- */
.hero { display: none; }
.barre-haut { background: rgba(255,255,255,.62); border-bottom: 1px solid rgba(255,255,255,.85); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.barre-haut .marque { display: flex; align-items: center; flex: none; color: #000; padding-right: 16px; border-right: 1px solid rgba(0,0,0,.12); }
.barre-haut .marque .logo { width: 92px; }
.barre-nom { display: flex; flex-direction: column; line-height: 1.2; }
.barre-sur { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-ink); }
.entete-page { margin: 0 0 16px; }
.entete-page h1 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; line-height: 1.12; letter-spacing: -.04em; text-shadow: 0 0 6px #fff, 0 0 14px #fff; }
.entete-page .lead { margin: 6px 0 0; max-width: 60ch; font-size: .9rem; color: var(--muted); text-shadow: 0 0 6px #fff, 0 0 12px #fff; }
@media (max-width: 900px) {
  .barre-haut .marque { padding-right: 10px; } .barre-haut .marque .logo { width: 72px; }
  .barre-haut .barre-nom { display: none; }
}

/* ---------- deux vues : Accueil (comme le club) et Valider les espaces ---------- */
body:not([data-vue="validation"]) .travail { display: none; }
body[data-vue="validation"] .accueil { display: none; }
.onglets { display: flex; gap: 3px; flex: none; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.06); }
.onglets button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--ink); }
.onglets button:hover { background: rgba(255,255,255,.9); }
.onglets button[aria-selected="true"] { background: var(--degrade); }
.onglets .lib-court { display: none; }
.accueil { max-width: 1440px; margin: 0 auto; min-height: calc(100vh - var(--haut) - 100px); padding: 30px clamp(16px, 6vw, 96px) 30px;
  display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.acc-col { display: grid; gap: 16px; min-width: 0; }
.acc-sur { margin: 0; }
.accueil h1 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; text-shadow: 0 0 8px #fff, 0 0 16px #fff; }
.accueil .lead { margin: 0; max-width: 56ch; color: var(--muted); font-size: .98rem; text-shadow: 0 0 6px #fff, 0 0 12px #fff; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-actions .b-marque { padding: 12px 26px; font-size: .98rem; }
.acc-bloc, .acc-stats { background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.10);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); padding: 16px 20px; }
.acc-bloc h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.acc-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.acc-total b { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.acc-total span { color: var(--muted); font-size: .9rem; }
.acc-barre { height: 10px; border-radius: 99px; background: #eef0ec; overflow: hidden; margin: 8px 0 10px; box-shadow: inset 0 0 0 1px rgba(20,60,40,.08); }
.acc-barre span { display: block; height: 100%; background: linear-gradient(90deg, var(--sauge), var(--ok)); }
.acc-msg { margin: 0 0 10px; font-size: .92rem; }
.acc-groupes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acc-groupes button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 90px 72px; align-items: center; gap: 12px; text-align: left;
  border: 0; background: transparent; padding: 7px 8px; border-radius: 10px; font-size: .88rem; color: var(--ink); }
.acc-groupes button:hover { background: rgba(131,151,136,.14); }
.acc-groupes .mini { height: 6px; border-radius: 99px; background: #eef0ec; overflow: hidden; } .acc-groupes .mini span { display: block; height: 100%; background: var(--ok); }
.acc-groupes .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .82rem; }
.acc-qui { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.acc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-chips button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: rgba(255,255,255,.9); border-radius: 99px;
  padding: 4px 10px 4px 6px; font-size: .78rem; color: var(--ink); }
.acc-chips button:hover { border-color: var(--sauge); }
.acc-chips button.fini { background: var(--ok-soft); border-color: #b9dccd; }
.acc-chips .anneau { --p: 0; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--ok) calc(var(--p) * 1%), #e3e7e1 0); flex: none; }
.acc-chips small { color: var(--muted); font-variant-numeric: tabular-nums; }
.acc-stats { grid-column: 2; align-self: end; justify-self: end; width: min(760px, 100%); padding: 16px 22px 14px; }
.acc-stats .t { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-ink); margin-bottom: 8px; }
.acc-stats .g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acc-stats .g > div { padding: 0 14px; border-left: 1px solid rgba(20,60,40,.12); min-width: 0; } .acc-stats .g > div:first-child { padding-left: 0; border-left: 0; }
.acc-stats b { display: block; font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: linear-gradient(110deg, #4f6354, #839788); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acc-stats small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; margin-top: 4px; }
@media (max-width: 900px) {
  .onglets .lib-long { display: none; } .onglets .lib-court { display: inline; } .onglets button { padding: 6px 10px; }
  .accueil { grid-template-columns: 1fr; padding-top: min(62vw, 320px); min-height: 0; }
  .acc-stats { grid-column: 1; justify-self: stretch; }
  .acc-stats .g { grid-template-columns: 1fr 1fr; row-gap: 12px; } .acc-stats .g > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {                                                     /* téléphone : les onglets suffisent ; « J'ai terminé » reste en bas de la liste */
  .barre-haut .marque, #termine-haut { display: none; }
}

/* accueil : voile blanc à gauche comme le club (le texte reste lisible devant l'arbre), communes et chiffres à droite en bas */
body:not([data-vue="validation"]) { background: linear-gradient(90deg, #fff 0, rgba(255,255,255,.9) 22%, rgba(255,255,255,.55) 36%, rgba(255,255,255,0) 48%),
  #fff url("/assets/home/arbre-nuage.webp") 100% 45% / auto 108% no-repeat fixed; background-attachment: fixed; }
.acc-droite { grid-column: 2; align-self: end; justify-self: end; width: min(760px, 100%); display: grid; gap: 14px; }
.acc-droite .acc-stats { grid-column: auto; justify-self: stretch; width: auto; }
.acc-droite #acc-communes { background: rgba(255,255,255,.78); }
@media (max-width: 900px) {
  body:not([data-vue="validation"]) { background: #fff url("/assets/home/arbre-nuage.webp") 50% 0 / 150% auto no-repeat scroll; }
  .acc-droite { grid-column: 1; justify-self: stretch; width: auto; }
}
/* l'arbre seulement sur l'accueil : la validation garde un fond calme (Pascal, 17/11/2026) */
body[data-vue="validation"] { background: #f5f6f3; }

/* recherche dans un groupe (loupe) */
.g-recherche { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; }
.g-recherche[hidden] { display: none; }
.g-recherche input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: .92rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.g-recherche input:focus { outline: 2px solid var(--sauge); outline-offset: 1px; border-color: var(--sauge); }
.g-trouves { font-size: .8rem; color: var(--green-ink); font-weight: 600; }
.g-act .ico.on { background: var(--soft); border-color: var(--sauge); color: var(--green-ink); }
.groupe.en-recherche { border-color: var(--sauge); }
.ent[hidden] { display: none; }

/* déjà répondu : regroupé et replié en bas de la tuile */
details.repondus { border-top: 1px dashed var(--line); }
details.repondus > summary { color: var(--green-ink); }
details.repondus[hidden] { display: none; }

/* accueil : « Où vous en êtes » descend, aligné sur le bas des chiffres (Pascal, 17/11) */
@media (min-width: 901px) {
  .accueil { grid-template-rows: 1fr; }
  .acc-col { align-self: stretch; display: flex; flex-direction: column; gap: 16px; }
  .acc-col #acc-etat { margin-top: auto; }
}

/* validation sur grand écran : pas d'ascenseur de page, la carte ne bouge pas ; seule la liste défile dans sa colonne (Pascal, 17/11) */
@media (min-width: 901px) {
  body[data-vue="validation"] { height: 100vh; overflow: hidden; }
  body[data-vue="validation"] .pied-page { display: none; }
  body[data-vue="validation"] .travail { height: calc(100vh - var(--haut)); }
  body[data-vue="validation"] .carte-zone { position: relative; top: 0; height: 100%; }
  body[data-vue="validation"] .liste-zone { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(79,99,84,.35) transparent; }
}
/* la validation n'a pas de bas de page, à aucune taille : tout est sur l'accueil (Pascal, 17/11) */
body[data-vue="validation"] .pied-page { display: none; }
/* accueil : le bouton « Commencer / Reprendre la validation » descend avec « Où vous en êtes », juste au-dessus (Pascal, 17/11) */
@media (min-width: 901px) { .acc-col .acc-actions { margin-top: auto; } .acc-col #acc-etat { margin-top: 0; } }
.acc-stats b { font-size: clamp(1.3rem, 1.8vw, 1.7rem); white-space: nowrap; }

/* accueil : qui valide */
.acc-qui { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink); }
.acc-qui h3 { margin: 0 0 6px; font-size: .9rem; font-weight: 600; }
.vq { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vq li { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 12px; align-items: center; }
.vq-nom { min-width: 0; } .vq-nom small { display: block; color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vq-n { text-align: right; font-variant-numeric: tabular-nums; } .vq-d { text-align: right; color: var(--muted); font-size: .78rem; }
.vq-attente { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }

/* tuiles repliables (chevron) */
.groupe.plie > :not(.g-tete) { display: none; }
.groupe.plie { padding-bottom: 12px; } .groupe.plie .g-tete { margin-bottom: 0; }
.groupe.plie .g-act > :not(.chevron):not(.oeil):not([data-deposer]) { display: none; }   /* dépôt d'un calque : visible même repliée */
.chevron svg { transition: transform .15s; } .groupe.plie .chevron svg { transform: rotate(-90deg); }

.autres.plie > :not(.g-tete) { display: none; } .autres.plie { padding-bottom: 12px; } .autres.plie .g-tete { margin-bottom: 0; }
.autres .g-tete { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }

.bascule-missions { margin-top: 8px; font-size: .86rem; }

/* petite voiture équipée du scanner, dans la tuile « Déjà scannés » */
.titre-scan { display: inline-flex; vertical-align: -5px; margin-right: 8px; }
.ico-scan { width: 34px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-scan .tete { fill: #f5c400; stroke: var(--ink); }
.ico-scan .ondes { stroke: #e0a800; stroke-width: 1.3; }

/* accueil : petit mode d'emploi de la page de validation (cinq gestes numérotés) */
.acc-mode ol { margin: 0; padding: 0; list-style: none; counter-reset: geste; display: grid; gap: 8px; }
.acc-mode li { position: relative; padding-left: 34px; font-size: .9rem; line-height: 1.45; color: var(--ink); counter-increment: geste; }
.acc-mode li::before { content: counter(geste); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sauge); color: #fff; font-size: .75rem; font-weight: 700; }
.acc-mode li b { font-weight: 600; }
.mode-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 7px; background: #fff; vertical-align: -5px; }
.mode-ico svg { width: 15px; height: 15px; }
@media (max-height: 760px) { .acc-mode ol { gap: 5px; } .acc-mode li { font-size: .84rem; line-height: 1.38; } .acc-mode h2 { margin-bottom: 6px; } }
/* chiffres clés centrés dans leur cellule (Pascal, 17/11), libellé dessous */
.acc-stats .g > div, .acc-stats .g > div:first-child { text-align: center; padding: 0 12px; }
.acc-stats .t { text-align: left; }
/* écran moyen (portable étroit, volet) : la colonne de droite (mode d'emploi, communes, chiffres) passe sous la gauche, pleine largeur */
@media (min-width: 901px) and (max-width: 1180px) {
  .accueil { grid-template-columns: minmax(0, 1fr); }
  .acc-droite { grid-column: 1; justify-self: stretch; width: auto; align-self: start; }
  .acc-mode ol { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 24px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .barre-haut { gap: 12px; }
  #inviter span, .avance-txt #av-lib { display: none; }
  .barre-haut .avance { width: 120px; }
  .barre-haut .barre-nom { min-width: 0; max-width: 220px; }
  .onglets button { padding: 6px 12px; }
}
@media (min-width: 901px) and (max-width: 1180px) { .barre-haut .barre-nom { display: none; } }

/* vue « Mode d'emploi » : en-tête comme l'accueil, puis quatre cartes en verre blanc */
body:not([data-vue="mode"]) .mode-emploi { display: none; }
body[data-vue="mode"] .accueil { display: none; }
.mode-emploi { max-width: 1440px; margin: 0 auto; padding: 30px clamp(16px, 6vw, 96px) 36px; display: grid; gap: 20px; }
.mode-tete { display: grid; gap: 10px; max-width: 640px; }
.mode-emploi h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; text-shadow: 0 0 8px #fff, 0 0 16px #fff; }
.mode-emploi .lead { margin: 0; color: var(--muted); font-size: .98rem; text-shadow: 0 0 6px #fff, 0 0 12px #fff; }
.mode-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mode-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mode-liste li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.mode-liste li b { font-weight: 600; }
.mode-liste .mode-ico { flex: none; margin-top: 1px; vertical-align: 0; }
.mode-liste .pt { flex: none; width: 16px; height: 16px; border-radius: 5px; margin-top: 3px; background: var(--c); }
.mode-liste .pt.clair { background: color-mix(in srgb, var(--c) 18%, #fff); box-shadow: inset 0 0 0 2px var(--c); }
.mode-liste .pt.tirets { background: none; border: 1.5px dashed #555; }
.mode-liste.puces li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sauge); margin-top: 8px; }
@media (max-width: 900px) { .mode-grille { grid-template-columns: 1fr; } .mode-emploi { padding-top: 22px; } }
/* mode d'emploi : libellé et texte sur la même ligne, la pastille ou l'icône dans la marge */
.mode-liste li { display: block; position: relative; padding-left: 32px; }
.mode-liste .pt, .mode-liste .mode-ico { position: absolute; left: 0; top: 1px; margin: 0; }
.mode-liste .pt { top: 3px; }
.mode-liste.puces li { padding-left: 18px; } .mode-liste.puces li::before { position: absolute; left: 2px; top: 0; }
.lien-mode { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* barre du haut avec trois onglets : un peu plus serrée */
@media (max-width: 1500px) { .avance-txt #av-lib { display: none; } }
@media (min-width: 901px) and (max-width: 1180px) { .barre-haut .avance { width: 90px; } .barre-haut { gap: 10px; } }
@media (max-width: 520px) { .onglets button { padding: 6px 8px; } .barre-haut .avance { width: 64px; } }

/* mode d'emploi : tuiles de même hauteur par ligne */
.mode-grille { align-items: stretch; }
.mode-grille > .acc-bloc { height: 100%; box-sizing: border-box; }
/* « Ajouter un validant » : réservé à l'équipe greehill (aperçu administrateur), en violet */
.qui.equipe, .b-clair.equipe { color: var(--equipe); border-color: var(--equipe-bord); background: var(--equipe-soft); }
.qui.equipe svg { color: var(--equipe); }
.qui.equipe:hover, .b-clair.equipe:hover { background: var(--equipe); color: #fff; } .qui.equipe:hover svg { color: #fff; }
.dlg.equipe { border-top: 4px solid var(--equipe); }
.dlg.equipe .b-marque { background: var(--equipe); color: #fff; }
/* bulles des icônes de la fiche : elles s'ouvrent vers la droite, dans la colonne de la liste (qui défile à part et coupe ce qui dépasse à gauche) */
.fiche [data-tip]:hover::after, .fiche [data-tip]:focus-visible::after { right: 0; left: auto; }
/* bulles de la partie validation (Pascal, 17/11, liste collée au bord droit de l'écran) : alignées à droite de l'icône ;
   seulement si la place manque à gauche dans la colonne, elles partent vers la droite (classe posée au survol par patrimoine.js) */
.liste-zone [data-tip].tip-g:hover::after, .liste-zone [data-tip].tip-g:focus-visible::after { left: 0; right: auto; }

/* vue de validation sur toute la largeur (Pascal, 17/11 : pas de bandes blanches) : la carte prend la place, la liste s'élargit jusqu'à ~640 px */
@media (min-width: 901px) {
  body[data-vue="validation"] .travail { max-width: none; margin: 0; grid-template-columns: minmax(0, 1fr) clamp(400px, 34vw, 640px); }
}

/* mode d'emploi : repères de la liste (crayon du commentaire, arbre de la forêt) dans « Bon à savoir », avec leur pastille à la place du point */
.mode-liste.puces li.avec-ico { padding-left: 32px; } .mode-liste.puces li.avec-ico::before { display: none; }
.mode-liste li.avec-ico .puce { position: absolute; left: 0; top: 0; }
.liste-zone [data-tip].tip-w:hover::after, .liste-zone [data-tip].tip-w:focus-visible::after { white-space: normal; width: var(--tw); box-sizing: border-box; line-height: 1.35; }
/* arbres comptés (LiDAR HD de l'IGN) : pastille sauge dans la liste, ligne dans la fiche */
.puce.arbres { display: inline-flex; align-items: center; gap: 3px; background: var(--ok-soft); color: var(--g-nous); }
.puce.arbres svg { width: 13px; height: 13px; }
.puce.arbres.zero { background: #fff; border: 1px dashed #bbb; color: var(--muted); }
.arbres-info { display: flex; gap: 8px; align-items: flex-start; }
.arbres-info svg { width: 16px; height: 16px; flex: none; color: var(--g-nous); margin-top: 2px; }
/* compteur des arbres mis dans le scan, à côté de l'avancement */
.compteur-arbres { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--ok-soft); color: var(--g-nous); font-size: .85rem; white-space: nowrap; transition: transform .25s; }
.compteur-arbres svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.compteur-arbres strong { font-variant-numeric: tabular-nums; }
.compteur-arbres.monte { transform: scale(1.08); }
@media (max-width: 1180px) { .compteur-arbres .lib-long { display: none; } }
/* légende : « dans le scan » = trait épais */
.legende i.epais { display: inline-block; width: 14px; height: 10px; border: 3px solid var(--g-nous); border-radius: 2px; vertical-align: -1px; }
.mode-liste .pt.epais { background: none; border: 3px solid var(--g-nous); }
.mode-liste li.avec-ico .puce.arbres { font-size: .68rem; padding: 1px 5px; }
.compteur-arbres .ar-detail { color: var(--muted); font-size: .76rem; }
.compteur-arbres .ar-detail:empty { display: none; }
@media (max-width: 1500px) { .compteur-arbres .ar-detail { display: none; } }
.compteur-arbres[hidden] { display: none; }
@media (max-width: 700px) { .compteur-arbres { padding: 4px 7px; gap: 4px; font-size: .78rem; } .compteur-arbres svg { width: 13px; height: 13px; } }
@media (max-width: 520px) { .compteur-arbres { display: none; } }
/* voirie par rue : une ligne par voie, ses tronçons dessous ; réponses pour toute la voie */
details.voie { border-bottom: 1px solid var(--line); }
details.voie > summary { display: flex; align-items: center; gap: 10px; padding: 9px 4px; cursor: pointer; list-style: none; }
details.voie > summary::-webkit-details-marker { display: none; }
details.voie > summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; margin: 0 4px 0 2px; }
details.voie[open] > summary::before { transform: rotate(45deg); }
details.voie .voie-nom { flex: 1; min-width: 0; font-weight: 600; display: flex; flex-direction: column; }
details.voie .voie-nom .ent-meta { font-weight: 400; }
details.voie.fait .voie-nom { color: var(--muted); }
details.voie.fait > summary .ent-meta::after { content: " ✓"; color: var(--g-nous); }
.voie-act { padding: 4px 6px 10px 24px; display: grid; gap: 6px; }
.voie-act .segments { margin-bottom: 4px; }
.voie-troncons { padding-left: 18px; border-left: 2px solid var(--line); margin: 0 0 8px 8px; }
/* bosquet et arbre : même trait que les autres icônes */
.puce.arbres svg circle, .arbres-info svg circle, .compteur-arbres svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; }
.puce.arbres svg, .arbres-info svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compteur-arbres .ar-detail { display: inline-flex; align-items: center; gap: 3px; }
.compteur-arbres .ar-detail svg { width: 13px; height: 13px; margin-left: 4px; }
.legende .leg-arbres { display: inline-flex; align-items: center; gap: 4px; }
.legende .leg-arbres svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode-liste li.avec-ico .puce.arbres { display: inline-flex; align-items: center; gap: 2px; }
.mode-liste li.avec-ico .puce.arbres svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mode-liste li.avec-ico:has(.puce.arbres) { padding-left: 54px; }
/* arbres : creux = estimés, plein = à scanner (validés) */
.plein svg path, .plein svg circle, svg.plein path, svg.plein circle { fill: currentColor; }
.g-arbres { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 4px; font-size: .8rem; color: var(--g-nous); }
.g-arbres:empty { display: none; }
.g-arbres .arb { display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.g-arbres .arb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-arbres .arb.plein svg path, .g-arbres .arb.plein svg circle { fill: currentColor; }
.g-arbres .arb-lib { color: var(--muted); }
.g-arbres .arb-lib + .arb-lib, .g-arbres .arb + .arb-lib { margin-left: 6px; }
.compteur-arbres svg path, .compteur-arbres svg circle { fill: currentColor; }
/* arbres : estimé en orange (creux), validé en vert (plein) (Pascal, 18/11/2026) */
:root { --arb-est: #c26a00; --arb-est-soft: #fdf0e1; }
.puce.arbres { background: var(--arb-est-soft); color: var(--arb-est); }
.puce.arbres.plein { background: var(--ok-soft); color: var(--g-nous); }
.puce.arbres.zero { background: #fff; border: 1px dashed #d6b48a; color: var(--arb-est); }
.arbres-info, .arbres-info svg { color: var(--arb-est); }
.arbres-info.plein, .arbres-info.plein svg { color: var(--g-nous); }
.g-arbres .arb { color: var(--arb-est); }
.g-arbres .arb.plein { color: var(--g-nous); }
.legende .leg-arbres { color: inherit; }
.legende .leg-arbres svg { color: var(--arb-est); }
.legende .leg-arbres.plein svg { color: #7fd1b0; }
.mode-liste li.avec-ico .puce.arbres:not(.plein) { background: var(--arb-est-soft); color: var(--arb-est); }
/* en-tête de tuile : nombres et symboles sous les boutons, sans texte */
.g-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.g-droite .g-arbres { margin: 0; justify-content: flex-end; gap: 10px; }
.g-arbres .arb-groupe { display: inline-flex; align-items: center; gap: 6px; }
.g-arbres .arb-lib { display: none; }
/* en-tête de tuile étroite : le titre se réduit, les boutons et les nombres passent à la ligne au lieu de déborder */
.g-tete > div:first-child { min-width: 0; flex: 1 1 auto; }
.g-droite { flex: 0 1 auto; min-width: 0; max-width: 62%; }
.g-droite .g-act { flex-wrap: wrap; justify-content: flex-end; }
.g-droite .g-arbres { flex-wrap: wrap; row-gap: 2px; }
.g-arbres .arb-groupe { flex-wrap: wrap; justify-content: flex-end; }
/* l'icône d'alignement (deux arbres réduits) garde son épaisseur de trait : la règle générale ne doit pas l'écraser */
svg g[stroke-width] path { stroke-width: inherit; }
/* forêt dense : vrai rouge, bien distinct de l'orange des arbres estimés (Pascal, 18/11/2026) */
:root { --foret: #b42318; --foret-soft: #fde4e1; }
.puce.foret { background: var(--foret-soft); color: var(--foret); }
.alerte-foret { background: var(--foret-soft); color: var(--foret); }
.alerte-foret svg { color: var(--foret); }
/* mode d'emploi : pastille estimée et validée côte à côte */
.mode-liste li.avec-ico.duo { padding-left: 128px; min-height: 22px; }
.mode-liste li.avec-ico.duo .duo-puces { position: absolute; left: 0; top: 0; display: inline-flex; gap: 4px; }
.mode-liste li.avec-ico.duo .duo-puces .puce { position: static; }
.mode-liste li.avec-ico .puce.arbres.plein { background: var(--ok-soft); color: var(--g-nous); }
.mode-liste li.avec-ico .puce.arbres.plein svg path, .mode-liste li.avec-ico .puce.arbres.plein svg circle { fill: currentColor; }
.mode-liste.puces li.avec-ico.duo, .mode-liste li.avec-ico.duo:has(.puce.arbres) { padding-left: 100px; }
.mode-liste.puces li.avec-ico.duo::before { display: none; }
/* forêt dense vue du dessus : houppiers pleins, séparés par un liseré clair */
.puce.foret svg circle, .alerte-foret svg circle, .mode-liste .puce.foret svg circle { fill: currentColor; stroke: var(--foret-soft); stroke-width: 1.3; }
.puce.foret svg, .alerte-foret svg { stroke: none; }
.puce.foret svg { width: 15px; height: 15px; }
/* arbres et forêt : juste l'icône, le nombre et la couleur, sans pastille de fond (Pascal, 18/11/2026) */
.puce.arbres, .puce.arbres.plein, .puce.arbres.zero, .puce.foret, .mode-liste li.avec-ico .puce.arbres:not(.plein), .mode-liste li.avec-ico .puce.arbres.plein { background: none; border: 0; padding: 0 2px; }
.puce.arbres.zero { opacity: .75; }
/* forêt dense : houppiers festonnés vus du dessus, pleins, séparés par un liseré de la couleur du fond */
.puce.foret svg path, .mode-liste .puce.foret svg path { fill: currentColor; stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; }
.alerte-foret svg path { fill: currentColor; stroke: var(--foret-soft); stroke-width: 1.1; stroke-linejoin: round; }
/* forêt dense : couronnes jointives en plusieurs teintes (18/11/2026) */
.puce.foret svg path, .mode-liste .puce.foret svg path, .alerte-foret svg path { stroke-width: .6; }
.puce.foret svg, .mode-liste .puce.foret svg { width: 18px; height: 18px; }
/* icônes d'arbres et de forêt à la hauteur du texte qu'elles accompagnent, recadrées au plus près du dessin (Pascal, 18/11/2026) */
.puce.arbres svg, .mode-liste li.avec-ico .puce.arbres svg, .compteur-arbres svg, .compteur-arbres .ar-detail svg,
.legende .leg-arbres svg, .g-arbres .arb svg, .arbres-info svg,
.puce.foret svg, .mode-liste .puce.foret svg { height: 1.05em; width: auto; vertical-align: -.15em; margin: 0; flex: none; }
@media (max-width: 700px) { .compteur-arbres svg { height: 1.05em; width: auto; } }
.puce.arbres, .g-arbres .arb { gap: .3em; }
/* totaux d'arbres du groupe : une seule ligne, lisibles (le cœur du site, c'est compter les arbres) */
.g-droite .g-arbres, .g-arbres .arb-groupe { flex-wrap: nowrap; white-space: nowrap; }
.g-droite .g-arbres { font-size: .92rem; font-weight: 700; gap: 14px; }
.g-arbres .arb-groupe { gap: 10px; }
.mode-liste li.avec-ico .puce.arbres, .mode-liste li.avec-ico .puce.foret { font-size: 1em; }
/* totaux d'arbres du groupe : leur propre ligne sous l'en-tête, à droite, sans chevaucher l'explication */
.g-tete { flex-wrap: wrap; row-gap: 6px; }
.g-tete > .g-arbres { flex: 1 0 100%; order: 3; margin: 0; justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; font-size: .95rem; font-weight: 700; gap: 16px; }
/* icônes de la liste à la taille du texte de la ligne */
.ent .puce.arbres, .ent .puce.foret { font-size: .9rem; }
/* mode d'emploi : pastilles et texte côte à côte, sans chevauchement */
.mode-liste li.avec-ico.duo, .mode-liste.puces li.avec-ico.duo, .mode-liste li.avec-ico.duo:has(.puce.arbres) { display: flex; align-items: baseline; gap: 12px; padding-left: 0; }
.mode-liste li.avec-ico.duo .duo-puces { position: static; flex: none; gap: 10px; }
.mode-liste li.avec-ico.duo > span:not(.duo-puces) { flex: 1 1 auto; }
.g-tete > div:first-child { flex: 1 1 0; min-width: 0; } .g-tete > .g-droite { flex: none; }
/* alignement et parc : même arbre, même taille ; le cadre est grandi pour qu'un arbre ait la hauteur des chiffres */
.puce.arbres svg, .mode-liste li.avec-ico .puce.arbres svg, .g-arbres .arb svg, .legende .leg-arbres svg, .compteur-arbres .ar-detail svg { height: 1.2em; width: auto; vertical-align: baseline; }
/* texte posé sur le pied des arbres : bas de l'icône (le pied) sur la ligne de base du texte (Pascal, 18/11/2026) */
.puce.arbres svg, .mode-liste li.avec-ico .puce.arbres svg, .g-arbres .arb svg, .legende .leg-arbres svg, .compteur-arbres .ar-detail svg { vertical-align: baseline; }
.puce.arbres, .mode-liste li.avec-ico .puce.arbres, .g-arbres .arb, .legende .leg-arbres, .compteur-arbres .ar-detail { align-items: baseline; }
/* compteur du haut : les deux icônes définitives avec leur nombre, toujours visibles, puis le total qui monte (Pascal, 18/11/2026) */
.compteur-arbres .ar-detail, .compteur-arbres .ar-detail:empty { display: inline-flex; align-items: baseline; gap: 10px; color: inherit; font-size: inherit; font-weight: 700; padding-right: 9px; margin-right: 1px; border-right: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
@media (max-width: 1500px) { .compteur-arbres .ar-detail { display: inline-flex; } }
.compteur-arbres .ar-detail > span { display: inline-flex; align-items: baseline; gap: .3em; font-variant-numeric: tabular-nums; }
.compteur-arbres .ar-detail svg { margin: 0; }
.compteur-arbres { align-items: baseline; }
/* fiche d'un espace : même taille, posée sur le pied */
.arbres-info { align-items: baseline; }
.arbres-info svg { height: 1.2em; width: auto; margin: 0; vertical-align: baseline; }
@media (max-width: 1600px) { .compteur-arbres #ar-n, .compteur-arbres .lib-long { display: none; } .compteur-arbres .ar-detail { border-right: 0; padding-right: 0; } }

@media (min-width: 1181px) and (max-width: 1600px) { .barre-haut .avance { width: 112px; flex: none; } }
/* en-tête de tuile : le bouton plier/déplier ne bouge jamais, toujours en haut à droite ; les icônes de traitement apparaissent
   à sa gauche quand la tuile s'ouvre (Pascal, 18/11/2026 : sinon on cliquait la croix « Tout exclure » à sa place) */
.g-act, .g-droite .g-act { flex-direction: row-reverse; justify-content: flex-start; }
.g-act > .chevron { order: 0; }
.g-act > [data-inclure="non"] { order: 1; }
.g-act > [data-inclure="oui"] { order: 2; }
.g-act > [data-tout] { order: 3; }
.g-act > [data-chercher] { order: 4; }
.g-act > [data-deposer] { order: 5; }          /* dépôt d'un calque : à gauche, la flèche reste à droite (Pascal, 27/11/2026) */
.g-act > .chevron { margin-left: 10px; }
/* mode d'emploi : une icône au milieu d'une phrase (Plan IGN) */
.mode-liste .mode-ico.mode-ico-txt { position: static; vertical-align: -6px; margin: 0 2px; }

/* page d'exception : arbres de la Métropole à Marseille (Pascal, 18/11/2026) */
.leg-cour i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: -1px; box-shadow: 0 0 0 1.5px #fff; }
#cour-compte, #cour-aide { opacity: .8; font-style: italic; }
#cour-compte:empty { display: none; }
.pt-arbre { display: inline-block; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0,0,0,.15); vertical-align: 0; }
.pt-arbre.vert { background: #2f8f4e; } .pt-arbre.orange { background: #e8730c; }
.mode-arbres { margin-bottom: 18px; }
.q[hidden], #cour-aide[hidden] { display: none !important; }
.leg-cour i.carre { border-radius: 3px; }

/* lecture d'une parcelle au cadastre de l'IGN en cours (Pascal, 18/11/2026) */
.leaflet-container.lecture-cadastre, .leaflet-container.lecture-cadastre .leaflet-interactive { cursor: progress !important; }

/* vue de rue : bouton sous le zoom, au-dessus d'« Ajouter un espace manquant », curseur en croix pendant le choix du point et de la direction */
.rue-ctl button svg { color: #3d6fb6; }
.rue-ctl button.actif { background: #3d6fb6; } .rue-ctl button.actif svg { color: #fff; }
.leaflet-container.mode-rue, .leaflet-container.mode-rue .leaflet-interactive { cursor: crosshair; }

/* boutons de la carte (vue de rue, espace manquant) : même carré que le zoom de Leaflet (Pascal, 19/11/2026) :
   cadre 34 px, bord gris de 2 px, coins de 4 px, bouton blanc de 30 px, sans ombre */
.ajout-ctl { border: 2px solid rgba(0,0,0,.2) !important; box-shadow: none !important; border-radius: 4px !important; background-clip: padding-box; }
.ajout-ctl button { width: 30px; height: 30px; border-radius: 2px; display: flex; }
.ajout-ctl button svg { width: 18px; height: 18px; }
.ajout-ctl button:hover { background: #f4f4f4; }

/* panneau de la vue de rue, posé sur la carte : cadre fin et léger (Pascal, 19/11/2026) */
.rue-panneau { position: absolute; z-index: 650; top: 58px; right: 12px; width: min(560px, calc(100% - 84px)); height: min(380px, calc(100% - 150px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.rue-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 6px 5px 10px; font-size: .82rem; color: var(--ink); }
.rue-tete > span:first-child { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rue-tete svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rue-tete > span:first-child svg { color: #3d6fb6; }
.rue-cap { color: var(--muted, #6b726d); font-weight: 400; }
.rue-act { display: inline-flex; gap: 2px; flex: none; }
.rue-act .ico { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: #5d6460; padding: 0; cursor: pointer; }
.rue-act .ico:hover { background: var(--soft); color: var(--ink); }
.rue-act [data-tip]:hover::after { top: calc(100% + 6px); right: 0; left: auto; }
.rue-panneau iframe { flex: 1; width: 100%; border: 0; display: block; background: #111; }
.rue-pied { padding: 4px 10px; font-size: .74rem; color: var(--muted, #6b726d); }
@media (max-width: 700px) { .rue-panneau { left: 10px; right: 10px; width: auto; top: auto; bottom: 10px; height: 46%; } }

.rue-panneau .rue-vue { flex: 1; width: 100%; background: #111; }
.rue-panneau .rue-vue.vide { display: grid; place-items: center; color: #ddd; font-size: .85rem; padding: 20px; text-align: center; }

/* panneau de la vue de rue déplaçable par son en-tête */
.rue-tete.poignee { cursor: grab; user-select: none; touch-action: none; }
.rue-panneau.glisse .rue-tete { cursor: grabbing; }
.rue-panneau.glisse iframe, .rue-panneau.glisse .rue-vue { pointer-events: none; }
.rue-panneau.glisse { box-shadow: 0 14px 40px rgba(0,0,0,.3); }

/* légende : position et regard de la vue de rue (point orange et cône) */
.legende .leg-rue .cone-ico { width: 15px; height: 15px; flex: none; }
.mode-liste .pt.rue { background: none; display: grid; place-items: center; }
.mode-liste .pt.rue .cone-ico { width: 16px; height: 16px; }

/* relief marqué : même encadré que la forêt dense, teinte brun-gris de roche ; puce montagne dans la liste */
.alerte-relief { background: rgba(120,98,78,.12); color: #6b5440; }
.puce.relief { display: inline-grid; place-items: center; padding: 2px 5px; background: rgba(120,98,78,.14); color: #6b5440; }
.puce.relief svg { width: 14px; height: 14px; }

/* petite montagne du relief : même densité que la tache de la forêt (Pascal, 20/11/2026) : sans fond, à peine plus grande, traits épais, remplissage léger */
.puce.relief, .mode-liste li.avec-ico .puce.relief { background: none; border: 0; padding: 0 2px; color: #7a5c42; }
.puce.relief svg, .mode-liste .puce.relief svg { width: 19px; height: 19px; fill: currentColor; fill-opacity: .28; stroke: currentColor; stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; }
.puce.relief svg path + path, .alerte-relief svg path + path { fill: none; stroke-width: 1.8; }
.alerte-relief svg { fill: currentColor; fill-opacity: .28; stroke: currentColor; stroke-width: 2.1; stroke-linejoin: round; }
/* (Pascal, 20/11) dans l'encadré brun de la fiche, la version pleine se voyait à peine : traits seuls, comme dans la liste ; 2 px de plus partout */
.puce.relief svg, .mode-liste .puce.relief svg { width: 21px; height: 21px; }
.alerte-relief svg { width: 22px; height: 22px; fill: none; stroke-width: 2.2; }
.alerte-relief svg path + path { fill: none; stroke-width: 1.8; }
/* l'encadré du relief partage la classe de la forêt : ses règles (tache rouge pleine, sans trait) ne doivent pas s'appliquer à la montagne */
.alerte-foret.alerte-relief svg { color: #7a5c42; stroke: currentColor; fill: none; width: 22px; height: 22px; }
.alerte-foret.alerte-relief svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.alerte-foret.alerte-relief svg path + path { stroke-width: 1.8; }
/* 2 px de plus vers le haut seulement : le bas de la montagne reste où il était (Pascal, 20/11) */
.puce.relief svg, .mode-liste .puce.relief svg { margin-top: -2px; }
.alerte-foret.alerte-relief svg { margin-top: -1px; }

/* limite carte / liste réglable (Pascal, 20/11/2026) : poignée verticale entre les deux, sur ordinateur */
.separateur { display: none; }
@media (min-width: 901px) {
  body[data-vue="validation"] .travail { position: relative; grid-template-columns: minmax(0, 1fr) var(--liste-l, clamp(620px, 58vw, 720px)); }   /* assez large pour que la tête de la 1re tuile tienne comme sur la maquette de Pascal (21/11/2026) */
  body[data-vue="validation"] .separateur { display: block; position: absolute; top: 0; bottom: 0; width: 14px; margin-left: -7px; z-index: 700; cursor: col-resize; touch-action: none;
    left: calc(100% - var(--liste-l, clamp(620px, 58vw, 720px))); }
  .separateur::after { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
  .separateur::before { content: ""; position: absolute; left: 3px; top: 50%; width: 8px; height: 44px; margin-top: -22px; border-radius: 6px; background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,.28); z-index: 1; }
  .separateur:hover::after, .separateur.glisse::after { background: var(--sauge, #6f7f72); }
  .separateur:hover::before, .separateur.glisse::before { background: var(--sauge, #6f7f72); }
  body.glisse-separateur, body.glisse-separateur * { cursor: col-resize !important; user-select: none !important; }
  body.glisse-separateur .leaflet-container, body.glisse-separateur iframe { pointer-events: none; }
}

/* Teinte sauge douce à la place du blanc pur (Pascal, 20/11/2026 : « le blanc tue les yeux » ; mode clair seulement, jamais de sombre) */
:root { --sauge-fond: #e6ece4; --sauge-carte: #f4f7f2; --sauge-clair: #f9fbf8; --sauge-ligne: #d6ded3; --line: #d6ded3; --soft: #edf1ea; }
body[data-vue="validation"] { background: var(--sauge-fond); }
.groupe, .autres { background: rgba(244,247,242,.92); border-color: rgba(214,222,211,.9); }
.groupe.scannes { background: rgba(236,241,233,.92); }
.ent.sel > .ent-tete { background: #e9efe6; }
.acc-bloc, .acc-stats { background: rgba(244,247,242,.88); border-color: rgba(255,255,255,.75); }
.barre-haut { background: rgba(244,247,242,.80); }
.seg, .ico, .b-clair, .qui, textarea, input, .g-recherche input, .filtre-commune select, .puce.in { background: var(--sauge-clair); }
.rue-panneau, .sortie-liste, dialog.dlg { background: var(--sauge-carte); }
.rue-tete { background: var(--sauge-carte); }
.separateur::before { background: var(--sauge-clair); }
/* accueil, mode d'emploi, « Why France » : tuiles plus transparentes sur l'arbre (Pascal, 20/11/2026), flou gardé pour la lecture */
body:not([data-vue="validation"]) .acc-bloc, body:not([data-vue="validation"]) .acc-stats { background: rgba(244,247,242,.62); border-color: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); }

/* ---------- organisation du scan (Pascal, 20/11/2026) : questionnaire de la collectivité et accès de chaque espace ---------- */
body:not([data-vue="logistique"]) #logistique { display: none; }
body[data-vue="logistique"] #logistique { display: grid; }
body[data-vue="logistique"] .accueil { display: none; }
/* quatre onglets (organisation du scan) : un peu plus serrés, pour laisser le nom de la commune entier */
@media (max-width: 1400px) { .onglets button { padding: 7px 10px; } .barre-haut { gap: 12px; } }
@media (max-width: 1180px) { .onglets .lib-long { display: none; } .onglets .lib-court { display: inline; } }
/* téléphone : quatre onglets + avancement tiennent sans débordement (21/11/2026) */
@media (max-width: 520px) { .onglets { gap: 1px; padding: 2px; } .onglets button { padding: 6px 7px; font-size: .8rem; } .barre-haut .avance { width: 52px; } .barre-haut { padding: 0 12px; gap: 6px; } .barre-haut .marque-equipe, .barre-haut .qui.equipe, .barre-haut .sortie-menu { display: none; } }
.logistique .lg-grille { align-items: start; }
.lg-bloc h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1.05rem; }
.lg-ico { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(79,99,84,.12); color: var(--green-ink); }
.lg-ico svg, .acces-bloc summary svg, .puce.acces-puce svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-ico svg { width: 19px; height: 19px; }
.lg-bloc .sous { margin: 0 0 10px; color: var(--muted); font-size: .88rem; }
.lg-q { display: block; margin: 0 0 12px; }
.lg-lib { display: block; font-size: .84rem; font-weight: 600; color: var(--green-ink); margin: 0 0 5px; }
.lg-q .segments { gap: 6px; }
.lg-q input, .lg-q textarea { font-size: .92rem; }
.lg-avance { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: .86rem; color: var(--muted); }
.lg-avance .barre { width: 180px; flex: none; }
.lg-etat { color: var(--ok); font-weight: 600; }
.acces-bloc { margin: 12px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.5); padding: 0 12px; }
.acces-bloc[open] { padding-bottom: 8px; }
.acces-bloc summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-weight: 600; font-size: .9rem; color: var(--green-ink); cursor: pointer; list-style: none; }
.acces-bloc summary::-webkit-details-marker { display: none; }
.acces-bloc summary svg { width: 18px; height: 18px; }
.acces-bloc summary .ent-meta { margin-left: auto; font-weight: 400; }
.acces-bloc summary .puce { margin-left: auto; }
.acces-cases { gap: 6px; margin: 6px 0 10px; }
.acces-cases .seg { font-size: .8rem; padding: 6px 9px; }
.acces-cases .seg.on { background: var(--green-ink); color: #fff; border-color: transparent; }
.lg-q .seg.on { background: var(--green-ink); color: #fff; border-color: transparent; }
.acces-champs .lg-q { margin-bottom: 8px; }
.puce.acces-puce { display: inline-grid; place-items: center; background: none; border: 0; padding: 0 2px; color: var(--green-ink); }
.puce.acces-puce svg { width: 19px; height: 19px; margin-top: -1px; }
.lg-adr { position: relative; }
.lg-adr label { display: block; }
.lg-adr-l { display: flex; gap: 6px; align-items: center; }
.lg-adr-l input { flex: 1; min-width: 0; }
.lg-plan { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--green-ink); }
.lg-plan:hover { background: var(--green-ink); color: #fff; border-color: transparent; }
.lg-plan.vide { opacity: .35; pointer-events: none; }
.lg-plan svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-sugg { position: absolute; left: 0; right: 46px; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.lg-sugg li { padding: 7px 9px; border-radius: 7px; font-size: .88rem; cursor: pointer; }
.lg-sugg li:hover, .lg-sugg li.on { background: rgba(120,150,120,.16); }
@media (max-width: 900px) { .logistique .lg-grille { grid-template-columns: 1fr; } }

/* fiche ouverte calée en haut, sous la barre */
.ent { scroll-margin-top: 50px; }

/* légende : points de la couche « Arbres estimés » et chevrons de surévaluation (21/11/2026) */
.legende .leg-points svg { width: 16px; height: 16px; flex: none; }
.legende .chev { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: #fff; color: var(--green-ink); margin-right: -2px; }
.legende .chev:last-of-type { margin-right: 2px; }
.legende .chev svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* légende sous la carte, plus par-dessus (Pascal, 21/11/2026 : cliquer plus facilement sur les petits points des arbres) */
.carte-zone { display: flex; flex-direction: column; }
.carte-zone .carte { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; }
.carte-zone .legende { position: static; flex: none; max-width: none; margin: 0; border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; background: #6f7f72; color: #fff; padding: 7px 14px; }
/* téléphone : les totaux d'arbres d'une tuile passent à la ligne plutôt que de dépasser */
@media (max-width: 520px) { .g-droite .g-arbres, .g-arbres .arb-groupe { flex-wrap: wrap; white-space: normal; } }
/* arbre visé par le pointeur (couche « Arbres estimés ») : c'est lui que retire le clic droit */
.arbre-vise { position: absolute; z-index: 650; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px #c0392b, 0 1px 4px rgba(0,0,0,.4); pointer-events: none; }
.arbre-vise[hidden] { display: none; }
.leaflet-container.vise-arbre { cursor: context-menu; }

/* téléchargement des calques (21/11/2026) : icône seule ; masquée sur téléphone (la barre déborderait), le fichier sert sur un ordinateur */
nav a.qui[data-calques]{padding:7px}
@media(max-width:760px){nav a.qui[data-calques]{display:none}}

/* tuile « Ce que vous obtenez » en bas du mode d'emploi, toute largeur (une tuile comme les autres), avec le symbole de la Fabrique greehill (Pascal, 21/11/2026) */
.mode-resultat{grid-column:1/-1}
.res-tete{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.res-sur{margin:0;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#4f7a5c}
.mode-resultat h2{margin:1px 0 0;font-size:1.25rem;font-weight:300;letter-spacing:-.01em;color:#1f2a24}
.res-tuiles{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.res-tuile{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:12px;background:rgba(47,79,58,.05)}
.res-tuile b{font-size:.9rem;color:#1f2a24}.res-tuile span:not(.res-ico){font-size:.8rem;line-height:1.4;color:#5b645e}
.res-ico{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#2f4f3a;color:#f2b44b}
.res-ico svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1100px){.res-tuiles{grid-template-columns:repeat(3,1fr)}}@media(max-width:900px){.res-tuiles{grid-template-columns:1fr 1fr}}@media(max-width:520px){.res-tuiles{grid-template-columns:1fr}}

/* La Fabrique greehill dans l'en-tête et l'accueil de la page de validation (Pascal, 21/11/2026) */
.barre-fabrique{flex:none;display:inline-grid;place-items:center;margin-right:-4px;color:#2f4f3a}
.barre-fabrique svg{display:block}
.acc-fabrique{display:inline-flex;align-items:center;gap:6px;color:#2f4f3a}.acc-fabrique svg{flex:none;margin:-4px 0}
@media(max-width:900px){.barre-fabrique{display:none}}

/* barre du haut sur deux rangées (Pascal, 21/11/2026) : en haut toutes les informations (logo, Fabrique, organisation, avancement,
   compteurs, personne, actions) ; en dessous une rangée de boutons de menu très fins */
:root { --haut: 88px; }
.barre-haut { flex-wrap: wrap; align-content: center; row-gap: 2px; column-gap: 14px; }
.barre-haut .onglets { order: 99; flex: 1 0 100%; justify-content: flex-start; gap: 2px; padding: 0 0 0 2px; margin-top: -2px;
  background: none; border: 0; border-radius: 0; }
.barre-haut .onglets button { padding: 2px 12px; font-size: .78rem; line-height: 1.6; border-radius: 99px; }
.barre-haut .barre-nom { flex: 1 1 auto; }
@media (max-width: 700px) { :root { --haut: 84px; } }
/* logo greehill centré sur les deux rangées ; le menu démarre sous la Fabrique, rien sous le logo (Pascal, 21/11/2026) */
.barre-haut { --marque: 124px; padding-left: calc(clamp(16px, 3vw, 32px) + var(--marque)); }
.barre-haut .marque { position: absolute; left: clamp(16px, 3vw, 32px); top: 0; bottom: 0; width: calc(var(--marque) - 14px); box-sizing: border-box; }
.barre-haut .onglets { padding-left: 0; margin-left: -6px; }
@media (max-width: 1200px) { .barre-haut { --marque: 100px; } }
@media (max-width: 700px) { .barre-haut .marque { display: none; } .barre-haut { padding-left: clamp(16px, 3vw, 32px); } }

/* menu en icônes et libellés, sans pastilles (Pascal, 21/11/2026 : « pas les boutons ovales, soyez inventifs, jolies icônes ») :
   l'onglet ouvert est souligné d'un trait dégradé sauge → ambre, son icône passe en couleur */
.barre-haut .onglets { gap: 18px; margin-left: -2px; }
.barre-haut .onglets button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 1px 5px; border-radius: 0;
  background: none !important; font-size: .8rem; font-weight: 600; color: #5b645e; letter-spacing: .005em; transition: color .15s; }
.barre-haut .onglets button .og-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; transition: transform .2s, opacity .15s; }
.barre-haut .onglets button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #2f6b4f, #e2a93e); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.barre-haut .onglets button:hover { color: #1f2a24; }
.barre-haut .onglets button:hover .og-ico { opacity: 1; transform: translateY(-1px); }
.barre-haut .onglets button[aria-selected="true"] { color: #1f2a24; }
.barre-haut .onglets button[aria-selected="true"] .og-ico { opacity: 1; color: #2f6b4f; }
.barre-haut .onglets button[aria-selected="true"]::after { transform: scaleX(1); }
@media (max-width: 700px) { .barre-haut .onglets { gap: 12px; } }
/* « La Fabrique greehill » n'existe qu'en France : très fin liseré bleu blanc rouge dessous (Pascal, 21/11/2026) */
.barre-haut .barre-sur, .acc-fabrique { position: relative; }
.barre-haut .barre-sur::after, .acc-fabrique::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; border-radius: 1px;
  background: linear-gradient(90deg, #002395 0 33.3%, #fff 33.3% 66.6%, #ED2939 66.6%); box-shadow: 0 0 0 .4px rgba(0,0,0,.12); }
.acc-fabrique::after { left: 28px; }
.barre-haut .barre-nom .barre-sur { display: block; width: fit-content; }
/* un peu d'air entre « La Fabrique greehill » et le nom de la commune (Pascal, 21/11/2026) */
.barre-haut .barre-nom .barre-sur { margin-bottom: 5px; }
:root { --haut: 96px; } .barre-haut { row-gap: 6px; }
@media (max-width: 700px) { :root { --haut: 88px; } }

/* (Pascal, 21/11/2026) en haut : logos, avancement, compteurs et boutons violets de l'équipe ; les autres actions (vous, inviter,
   télécharger, J'ai terminé) descendent à droite de la rangée du menu, en petit */
.barre-haut .barre-saut { order: 98; flex: 0 0 100%; height: 0; }
.barre-haut .onglets { order: 99; flex: 0 1 auto; margin-right: auto; }
.barre-haut > #qui:not(.equipe), .barre-haut > #inviter:not(.equipe), .barre-haut > a.qui[data-calques]:not(.equipe), .barre-haut > #termine-haut { order: 100; }
.barre-haut > #qui:not(.equipe), .barre-haut > #inviter:not(.equipe), .barre-haut > a.qui[data-calques]:not(.equipe) { padding: 2px 9px; min-height: 0; height: 26px; font-size: .78rem; }
.barre-haut > #termine-haut { padding: 3px 12px; height: 26px; font-size: .78rem; border-radius: 8px; }
.barre-haut > #qui svg, .barre-haut > #inviter:not(.equipe) svg, .barre-haut > a.qui[data-calques] svg { width: 15px; height: 15px; }
/* logo greehill centré dans son espace à gauche (Pascal, 21/11/2026) */
.barre-haut .marque { justify-content: center; padding-right: 0; }
/* le « rectangle » du logo va du bord gauche de la page au trait vertical : le logo y est centré */
.barre-haut .marque { left: 0; width: calc(clamp(16px, 3vw, 32px) + var(--marque) - 14px); }

/* bulles des arbres sur la carte : courtes et sur plusieurs lignes (Pascal, 21/11/2026 : « sur une ligne immense ») */
[data-couche="arbres"][data-tip]:hover::after, .leg-points[data-tip]:hover::after { white-space: normal; width: 230px; line-height: 1.35; text-align: left; }

/* ---------- animations de l'aide (Pascal, 22/11/2026) : icône vidéo en haut à gauche de la tuile, fenêtre de lecture ---------- */
.acc-bloc.avec-anim { position: relative; }
.acc-bloc.avec-anim > h2 { padding-right: 36px; }   /* icône vidéo en haut à droite de la tuile (Pascal, 22/11/2026) */
.anim-btn { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ok); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .15s, background .15s, color .15s; }
.anim-btn svg, .anim-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.anim-btn:hover, .anim-btn:focus-visible { background: var(--ok); color: #fff; transform: scale(1.06); }
.anim-btn { background: var(--ok); color: #fff; border-color: var(--ok); animation: anim-bouge 3.2s ease-in-out 1.2s infinite; }
.anim-btn::after { content: ""; position: absolute; inset: -4px; border-radius: 12px; border: 2px solid var(--ok); opacity: 0; animation: anim-appel 1.6s ease-out .6s infinite; pointer-events: none; }
.anim-btn svg path { animation: anim-play 3.2s ease-in-out 1.2s infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes anim-bouge { 0%, 70%, 100% { transform: none; } 76% { transform: scale(1.14) rotate(-6deg); } 84% { transform: scale(1.14) rotate(5deg); } 92% { transform: scale(1.06); } }
@keyframes anim-play { 0%, 70%, 100% { transform: none; } 80% { transform: scaleX(1.35); } }
/* animation déjà ouverte par ce visiteur : l'icône se calme (Pascal, 22/11/2026) */
.anim-btn.vue, .anim-btn.vue svg path, .anim-btn.vue::after { animation: none; }
.anim-btn.vue { background: #fff; color: var(--ok); border-color: var(--line); }
@keyframes anim-appel { 0% { opacity: .55; transform: scale(.85); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.dlg-anim { width: min(720px, calc(100vw - 32px)); padding: 16px 18px 14px; overflow: hidden;   /* jamais de barre de défilement : le curseur de l'animation la faisait apparaître et l'écran bougeait (Pascal) */ background: rgba(255,255,255,.96); }
.anim-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.anim-tete h2 { flex: 1; margin: 0; font-size: 1.1rem; }
.anim-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.anim-x, .anim-rejouer { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.anim-x:hover, .anim-rejouer:hover { background: var(--soft); color: var(--ink); }
.anim-x svg, .anim-rejouer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.anim-scene { border-radius: 12px; overflow: hidden; background: var(--sauge-clair, #f9fbf8); border: 1px solid var(--line); }
.anim-scene svg { display: block; width: 100%; height: auto; overflow: hidden; font: 500 9px "Inter", system-ui, sans-serif; stroke: none; stroke-width: 1; fill: none; }
:where(.anim-scene svg) text { fill: var(--ink); stroke: none; }
.anim-rejouer[hidden] { display: none; }
.anim-pied { display: flex; align-items: center; gap: 10px; height: calc(2.8em + 8px); margin-top: 10px; }   /* hauteur fixe : une légende sur 2 lignes ne fait plus bouger la fenêtre */
.anim-num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: .8rem; font-weight: 700; }
.anim-num:empty { visibility: hidden; }
.anim-leg { flex: 1; margin: 0; font-size: .95rem; line-height: 1.4; color: var(--ink); }

/* dessin de la scène */
.an-barre { fill: #fff; stroke: var(--line); }
.an-onglet rect { fill: transparent; transition: fill .3s; } .an-onglet text { fill: var(--muted); transition: fill .3s; }
.an-onglet.on rect { fill: var(--ok-soft); } .an-onglet.on text { fill: var(--ok); font-weight: 700; }
.an-bouton-ico rect { fill: #fff; stroke: var(--line); } .an-bouton-ico path { fill: none; stroke: var(--ok); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.an-termine rect { fill: #000; transition: fill .3s; } .an-termine text { fill: #fff; font-weight: 700; }
.an-termine.ok rect { fill: var(--ok); }
.an-ecran { opacity: .18; transition: opacity .5s; } .an-ecran.on { opacity: 1; } .an-ecran.on.pale { opacity: .35; }
.an-fond { fill: #6f7d62; } .an-rue { stroke: #d9d3c4; stroke-width: 7; opacity: .55; fill: none; }
.an-liste { fill: #fff; stroke: var(--line); }
.an-tuile { fill: var(--soft); } .an-tuile-t { font-weight: 700; fill: var(--ink); font-size: 10px; }
.an-ligne rect { fill: #fff; stroke: var(--line); } .an-ligne text { fill: var(--ink); }
.an-pt { transition: fill .35s, stroke .35s; } .an-pt.prop { fill: #bfe3d6; stroke: var(--ok); stroke-width: 1.2; } .an-pt.rep { fill: var(--ok); stroke: var(--ok); }
.an-fiche { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.an-fiche.on { opacity: 1; transform: none; }
.an-fiche > rect { fill: #fff; stroke: var(--ok); stroke-width: 1.2; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }
.an-fiche-t { font-weight: 700; font-size: 10px; fill: var(--ink); } .an-petit { fill: var(--muted); font-size: 8px; }
.an-chip rect { fill: #fff; stroke: var(--line); transition: fill .3s, stroke .3s; } .an-chip text { fill: var(--ink); transition: fill .3s; }
.an-chip.on rect { fill: var(--ok); stroke: var(--ok); } .an-chip.on text { fill: #fff; font-weight: 700; }
.an-esp { stroke-width: 1.5; transition: fill .45s, stroke .45s, stroke-width .45s, opacity .45s; stroke-linejoin: round; }
.an-esp.cache { opacity: 0; }
.an-esp.prop-vous { fill: rgba(8,121,92,.32); stroke: #8fd1bb; }
.an-esp.prop-autre { fill: rgba(45,95,166,.3); stroke: #9db7df; }
.an-esp.gris { fill: rgba(140,149,142,.45); stroke: #c5cbc6; }
.an-esp.rep-vous { fill: var(--g-nous); stroke: #e9fff6; fill-opacity: .82; }
.an-esp.rep-autre { fill: var(--g-metropole); stroke: #e8f0ff; fill-opacity: .82; }
.an-esp.rep-partage { fill: var(--g-partage); stroke: #e5fbff; fill-opacity: .82; }
.an-esp.rep-aucun { fill: var(--g-aucun); stroke: #fff0e8; fill-opacity: .82; }
.an-esp.rep-inconnu { fill: var(--g-inconnu); stroke: #fff4e3; fill-opacity: .82; }
.an-esp.scan { stroke-width: 4; }
.an-esp.horscan { stroke-dasharray: 5 4; stroke-width: 2; fill-opacity: .55; }
.an-esp.pulse { animation: an-pulse 1s ease-in-out 2; }
@keyframes an-pulse { 50% { stroke-width: 4; fill-opacity: .8; } }
.an-sommet { fill: #fff; stroke: var(--ok); stroke-width: 2; transition: r .2s, opacity .3s, transform .3s; transform-box: fill-box; transform-origin: center; }
.an-sommet.retire { opacity: 0; transform: scale(2); stroke: #c25b00; }
.an-fichier { opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .4s; }
.an-fichiers.on .an-fichier { opacity: 1; transform: translateY(100px); }
.an-fichier path { fill: #fff; stroke: var(--ok); stroke-width: 1.4; } .an-fichier text { fill: var(--ok); font-weight: 700; font-size: 8px; }
.an-curseur { transition: opacity .3s; pointer-events: none; }
.an-fleche { fill: #111; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.an-onde { fill: rgba(8,121,92,.35); }
.an-onde.go { animation: an-onde .45s ease-out; }
@keyframes an-onde { from { r: 2; opacity: 1; } to { r: 16; opacity: 0; } }
.an-leg-item { opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .4s; } .an-leg-item.on { opacity: 1; transform: none; }
.an-leg-item text { fill: var(--ink); font-size: 9.5px; }
.an-trait-epais { stroke: var(--g-nous); stroke-width: 4; } .an-trait-tirets { stroke: var(--g-aucun); stroke-width: 2; stroke-dasharray: 5 4; }
.an-cone { fill: rgba(232,115,12,.4); } .an-cone-pt { fill: #e8730c; stroke: #fff; stroke-width: 1.5; }
.an-vue { opacity: 0; transition: opacity .4s, transform 1.4s cubic-bezier(.5,0,.2,1); } .an-vue.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .anim-btn::after { animation: none; } }
.an-cone.fort { fill: rgba(232,115,12,.62); stroke: #fff; stroke-width: 1; }
/* animations de l'aide : scènes 3 à 6 */
.an-onde.droit { fill: rgba(194,91,0,.4); }
.an-bouton-ico { transition: transform .2s; } .an-bouton-ico rect { transition: fill .25s, stroke .25s; } .an-bouton-ico path { transition: stroke .25s; }
.an-bouton-ico.on rect { fill: var(--ok); stroke: var(--ok); } .an-bouton-ico.on path { stroke: #fff; }
.an-bouton-ico.tourne path { transform-box: fill-box; transform-origin: center; }
.an-sep { stroke: #fff; stroke-width: 1.4; stroke-dasharray: 3 3; fill: none; opacity: 0; transition: opacity .3s; } .an-sep.on { opacity: 1; }
.an-esp.a-part { fill: rgba(140,149,142,.55); stroke: #fff; stroke-dasharray: 4 3; stroke-width: 2; }
.an-fiche-t.saisie { fill: var(--ok); }
.an-info { fill: var(--ok); font-weight: 600; }
.an-outils-tuile { opacity: 0; transform: translateX(14px); transition: opacity .35s, transform .35s; } .an-outils-tuile.on { opacity: 1; transform: none; }
.an-pli { opacity: 0; transition: opacity .3s, transform .4s; } .an-pli.on { opacity: 1; } .an-pli.on.filtre { opacity: 0; }
.an-recherche { opacity: 0; transition: opacity .3s; } .an-recherche.on { opacity: 1; }
.an-recherche rect { fill: #fff; stroke: var(--ok); }
.an-case { fill: #fff; stroke: var(--line); stroke-width: 1.2; transition: fill .25s, stroke .25s; }
.an-case.oui { fill: var(--ok); stroke: var(--ok); } .an-case.non { fill: #fff; stroke: var(--terra); stroke-dasharray: 3 2; }
:where(.anim-scene svg) .an-puce { fill: var(--arb-est, #c26a00); font-weight: 700; font-size: 9px; }
:where(.anim-scene svg) .an-puce.plein { fill: var(--ok); }
:where(.anim-scene svg) .an-compte { fill: var(--arb-est, #c26a00); font-weight: 700; } :where(.anim-scene svg) .an-compte.ok, :where(.anim-scene svg) .an-ok { fill: var(--ok); }
.an-plan-cadre .an-fond { transition: fill .6s; } .an-plan-cadre .an-rue { transition: stroke .6s, opacity .6s; }
.an-plan-cadre.plan .an-fond { fill: #f1efe8; } .an-plan-cadre.plan .an-rue { stroke: #fff; opacity: 1; }
.an-plan-cadre.plan .an-esp.rep-vous { fill-opacity: .7; }
.an-cadastre { opacity: 0; transition: opacity .5s; } .an-cadastre.on { opacity: 1; }
.an-parcelle { fill: none; stroke: #e2584c; stroke-width: 1; }
.an-arbres { opacity: 0; transition: opacity .5s; } .an-arbres.on { opacity: 1; }
.an-arbre { stroke: #123; stroke-width: .8; transition: transform .3s, opacity .3s; transform-box: fill-box; transform-origin: center; } .an-arbre.v { fill: #5be39a; } .an-arbre.o { fill: #e8730c; } .an-arbre.j { fill: #e8c20c; }
.an-arbre.retire { opacity: 0; transform: scale(2.2); }
.an-arbre.ajoute { opacity: 0; transform: scale(.2); } .an-arbre.ajoute.on { opacity: 1; transform: none; }
.an-zoom { transition: transform .9s cubic-bezier(.5,0,.2,1); transform-origin: 220px 120px; } .an-zoom.zoome { transform: scale(1.5); }
.an-bulle { opacity: 0; transition: opacity .3s; } .an-bulle.on { opacity: 1; }
.an-bulle rect { fill: #fff; stroke: var(--line); filter: drop-shadow(0 3px 8px rgba(0,0,0,.18)); }
:where(.anim-scene svg) .an-lien { fill: var(--ok); font-weight: 600; }
.an-photo { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; } .an-photo.on { opacity: 1; transform: none; }
.an-photo-cadre { fill: #fff; stroke: var(--line); filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.an-photo-ciel { fill: #cfe3f2; } .an-photo-sol { fill: #9a9a92; } .an-photo-arbre { fill: #4f7d4a; }
.an-trace { fill: none; stroke: var(--g-inconnu); stroke-width: 2; stroke-dasharray: 4 3; }
.an-sources { opacity: 0; transition: opacity .5s; } .an-sources.on { opacity: 1; }
.an-marque { opacity: 0; transition: opacity .4s; } .an-marque.on { opacity: 1; }
.an-marque.foret circle { fill: var(--foret, #b42318); fill-opacity: .7; } .an-marque.relief path { fill: #8a6d3b; }
:where(.anim-scene svg) .an-marque.com text { fill: var(--ok); font-size: 12px; }
.an-inviter rect { fill: #fff; stroke: var(--line); } :where(.anim-scene svg) .an-inviter text { fill: var(--ink); }
.an-enveloppe { opacity: 0; transition: opacity .3s, transform 1.2s cubic-bezier(.5,0,.2,1); } .an-enveloppe.on { opacity: 1; }
.an-enveloppe rect { fill: #fff; stroke: var(--ok); stroke-width: 1.4; } .an-enveloppe path { fill: none; stroke: var(--ok); stroke-width: 1.4; }
.an-avatar { opacity: 0; transition: opacity .4s; } .an-avatar.on { opacity: 1; }
.an-avatar circle, .an-avatar path { fill: #fff; } :where(.anim-scene svg) .an-blanc { fill: #fff; font-weight: 600; }

.an-milieu { fill: rgba(255,255,255,.55); stroke: var(--ok); stroke-width: 1.2; stroke-opacity: .7; transform-box: fill-box; transform-origin: center; }
.an-milieu.pulse-m { animation: an-pulse-m .7s ease-in-out 2; }
@keyframes an-pulse-m { 50% { transform: scale(1.8); fill: #fff; } }

.an-rouge { opacity: 0; transition: opacity .25s; } .an-rouge.on { opacity: 1; animation: an-rouge .5s ease-in-out .25s 2; }
.an-rouge polyline { fill: none; stroke: #e0321f; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.an-rouge circle { fill: #e0321f; stroke: #fff; stroke-width: 2; }
@keyframes an-rouge { 50% { opacity: .65; } }

/* fond réel des animations (Six-Fours) : plan cadastral ou photo IGN */
.an-carte .an-fond { fill: #e4e0d6; }
.an-parc { fill: #fbf8f1; stroke: #cdbda3; stroke-width: .6; }
.an-bati { fill: #dcd4c5; stroke: #bcae97; stroke-width: .4; }
.an-ortho { opacity: 0; transition: opacity .6s; } .an-plan { transition: opacity .6s; }
.an-carte.photo .an-ortho { opacity: 1; } .an-carte.photo .an-plan { opacity: 0; }
.an-carte.photo .an-fond { fill: #5d6b52; }
.an-zoom { transition: transform .9s cubic-bezier(.5,0,.2,1); transform-origin: 285px 76px; } .an-zoom.zoome { transform: scale(1.6); }
.an-cible { fill: none; stroke: #e8730c; stroke-width: 1.6; stroke-dasharray: 4 3; opacity: .95; animation: an-cible 1s ease-in-out infinite; }
.an-cible.fini { animation: none; opacity: 0; transition: opacity .5s; }
@keyframes an-cible { 50% { opacity: .35; } }
.an-photo-mur { fill: #e8dcc6; } .an-photo-mur2 { fill: #d9cbb2; } .an-photo-ligne { stroke: #fff; stroke-width: 1.2; stroke-dasharray: 4 4; }
.an-photo-tronc { stroke: #6b5a45; stroke-width: 2; } .an-photo-arbre { fill: #5f8f55; }
.an-avatar-fond { fill: rgba(17,21,17,.55); }
/* barre d'avancement des animations */
.anim-points { display: flex; gap: 5px; align-items: center; margin-right: 4px; }   /* en haut, à côté de la croix (Pascal) */
.anim-points i { width: 18px; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s; }
.anim-points i.on { background: var(--ok); }
/* accès et contraintes dans la fiche */
.an-acces { opacity: 0; transition: opacity .4s; } .an-acces.on { opacity: 1; }
.an-acces-tete rect { fill: var(--soft); stroke: var(--line); } .an-maison { fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.an-acces-corps { opacity: 0; transition: opacity .4s; } .an-acces-corps.on { opacity: 1; }
:where(.anim-scene svg) .an-chip-t { font-size: 7.6px; }
.an-champ { fill: #fff; stroke: var(--line); }

/* pastilles d'arbres des animations (comme la liste) */
.an-puce-arb rect { fill: #fff; stroke: var(--arb-est, #c26a00); stroke-width: 1.1; transition: fill .3s, stroke .3s; }
:where(.anim-scene svg) .an-puce-t { fill: var(--arb-est, #c26a00); font-size: 8.5px; font-weight: 700; transition: fill .3s; }
.an-puce-ico { overflow: visible; } .an-puce-ico g, .an-puce-ico path { fill: none; stroke: var(--arb-est, #c26a00); stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.an-puce-arb.plein rect { fill: var(--ok); stroke: var(--ok); }
:where(.anim-scene svg) .an-puce-arb.plein .an-puce-t { fill: #fff; } .an-puce-arb.plein .an-puce-ico path { stroke: #fff; }
.an-ico-ok g, .an-ico-ok path { stroke: var(--ok); }

/* contours foncés sur le plan clair : trait épais et tirets bien visibles (tour final, 22/11/2026) */
.an-esp.rep-vous { stroke: #034c39; } .an-esp.rep-autre { stroke: #1b3c6b; } .an-esp.rep-partage { stroke: #0b5864; }
.an-esp.rep-aucun { stroke: #5e2b19; } .an-esp.rep-inconnu { stroke: #8a5410; }
.an-esp.horscan { stroke-width: 2.4; stroke-dasharray: 6 4; fill-opacity: .45; }
.an-carte.photo .an-esp.rep-vous { stroke: #e9fff6; }
.an-esp.ajoute-esp { fill: rgba(194,91,0,.35); stroke: #c25b00; stroke-width: 2.2; }
.an-pop { animation: anim-pop .35s ease-out; }
@keyframes anim-pop { from { opacity: 0; } to { opacity: 1; } }
.an-qui-ico { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.an-souligne { text-decoration: underline; }
.an-form { opacity: 0; transition: opacity .35s; } .an-form.on { opacity: 1; }
.an-voile { fill: rgba(17,21,17,.3); } .an-form-cadre { fill: #fff; stroke: var(--line); filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); }

/* « Ce que vous obtenez » : frise dans le titre, la voiture greehill scanne en boucle entre les arbres (Pascal, 22/11/2026) */
.res-tete > div { flex: 1; min-width: 0; }
#t-resultat { display: flex; align-items: center; gap: 16px; }
.frise-scan { flex: 1; min-width: 0; height: 32px; overflow: hidden; }
@media (max-width: 700px) { .frise-scan { display: none; } }   /* trop étroit sur téléphone */
.frise-scan svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.frise-route { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 6 5; fill: none; }
.frise-auto { animation: frise-auto 12s linear infinite; }
@keyframes frise-auto { from { transform: translateX(-30px); } to { transform: translateX(930px); } }
.frise-corps { fill: #fff; stroke: #111; stroke-width: 1; } .frise-vitre { fill: #2c3a33; } .frise-lidar { fill: var(--ok); stroke: #fff; stroke-width: .8; }
.frise-faisceau { fill: rgba(91,227,154,.5); transform-origin: 0 0; animation: frise-faisceau 1s linear infinite; }
@keyframes frise-faisceau { to { transform: rotate(360deg); } }
.frise-onde { fill: none; stroke: rgba(8,121,92,.5); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: frise-onde 1.3s ease-out infinite; }
@keyframes frise-onde { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .frise-auto, .frise-arbre, .frise-arbre *, .frise-faisceau, .frise-onde { animation: none; } }
/* frise et clés calées sur un seul cycle de 12 s (Pascal) : rien n'est visible devant la voiture ; à son passage les arbres passent au vert, les symboles des clés apparaissent, leur tuile s'allume ; tout reste jusqu'à la fin de la boucle */
.frise-arbre * { fill: #fff; stroke: var(--arb-est, #c26a00); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: 12s linear infinite; }
.frise-pop { transform-box: fill-box; transform-origin: center; animation: 12s linear infinite; }   /* l'apparition anime ce groupe, pas celui qui place le symbole */
.frise-cle g * { fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mode-resultat .res-tuile { animation: 12s linear infinite; } .mode-resultat .res-tuile .res-ico { animation: 12s linear infinite; }
.frise-a1 * { animation-name: fa1; } @keyframes fa1 { 0%, 4.3% { fill: #fff; stroke: var(--arb-est, #c26a00); } 4.6%, 95% { fill: #5be39a; stroke: var(--ok); } 98%, 100% { fill: #fff; stroke: var(--arb-est, #c26a00); } }
.frise-a2 * { animation-name: fa2; } @keyframes fa2 { 0%, 22.0% { fill: #fff; stroke: var(--arb-est, #c26a00); } 22.3%, 95% { fill: #5be39a; stroke: var(--ok); } 98%, 100% { fill: #fff; stroke: var(--arb-est, #c26a00); } }
.frise-a3 * { animation-name: fa3; } @keyframes fa3 { 0%, 40.2% { fill: #fff; stroke: var(--arb-est, #c26a00); } 40.5%, 95% { fill: #5be39a; stroke: var(--ok); } 98%, 100% { fill: #fff; stroke: var(--arb-est, #c26a00); } }
.frise-a4 * { animation-name: fa4; } @keyframes fa4 { 0%, 58.5% { fill: #fff; stroke: var(--arb-est, #c26a00); } 58.8%, 95% { fill: #5be39a; stroke: var(--ok); } 98%, 100% { fill: #fff; stroke: var(--arb-est, #c26a00); } }
.frise-a5 * { animation-name: fa5; } @keyframes fa5 { 0%, 76.7% { fill: #fff; stroke: var(--arb-est, #c26a00); } 77.0%, 95% { fill: #5be39a; stroke: var(--ok); } 98%, 100% { fill: #fff; stroke: var(--arb-est, #c26a00); } }
.frise-a6 * { animation-name: fa6; } @keyframes fa6 { 0%, 93.9% { fill: #fff; stroke: var(--arb-est, #c26a00); } 94.2%, 95% { fill: #5be39a; stroke: var(--ok); } 98%, 100% { fill: #fff; stroke: var(--arb-est, #c26a00); } }
.frise-c1 .frise-pop { animation-name: fc1; } @keyframes fc1 { 0%, 12.9% { opacity: 0; transform: scale(.3); } 14.7% { opacity: 1; transform: scale(1.3); } 17.2%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.mode-resultat .res-tuile:nth-child(1) { animation-name: rt1; } .mode-resultat .res-tuile:nth-child(1) .res-ico { animation-name: ri1; }
@keyframes rt1 { 0%, 12.9% { background: rgba(47,79,58,.05); box-shadow: 0 0 0 1px transparent; transform: none; } 14.7% { background: #fff; box-shadow: 0 0 0 1.5px #138a9e, 0 6px 18px rgba(19,138,158,.35); transform: translateY(-2px); } 19.2%, 95% { background: #dff3f6; box-shadow: 0 0 0 1px rgba(19,138,158,.35); transform: none; } 98%, 100% { background: rgba(47,79,58,.05); box-shadow: 0 0 0 1px transparent; } }
@keyframes ri1 { 0%, 12.9% { background: #2f4f3a; } 13.2%, 95% { background: #138a9e; } 98%, 100% { background: #2f4f3a; } }
.frise-c2 .frise-pop { animation-name: fc2; } @keyframes fc2 { 0%, 31.2% { opacity: 0; transform: scale(.3); } 33.0% { opacity: 1; transform: scale(1.3); } 35.5%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.mode-resultat .res-tuile:nth-child(2) { animation-name: rt2; } .mode-resultat .res-tuile:nth-child(2) .res-ico { animation-name: ri2; }
@keyframes rt2 { 0%, 31.2% { background: rgba(47,79,58,.05); box-shadow: 0 0 0 1px transparent; transform: none; } 33.0% { background: #fff; box-shadow: 0 0 0 1.5px #2d5fa6, 0 6px 18px rgba(45,95,166,.35); transform: translateY(-2px); } 37.5%, 95% { background: #e4ecf8; box-shadow: 0 0 0 1px rgba(45,95,166,.35); transform: none; } 98%, 100% { background: rgba(47,79,58,.05); box-shadow: 0 0 0 1px transparent; } }
@keyframes ri2 { 0%, 31.2% { background: #2f4f3a; } 31.5%, 95% { background: #2d5fa6; } 98%, 100% { background: #2f4f3a; } }
.frise-c3 .frise-pop { animation-name: fc3; } @keyframes fc3 { 0%, 49.4% { opacity: 0; transform: scale(.3); } 51.2% { opacity: 1; transform: scale(1.3); } 53.7%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.mode-resultat .res-tuile:nth-child(3) { animation-name: rt3; } .mode-resultat .res-tuile:nth-child(3) .res-ico { animation-name: ri3; }
@keyframes rt3 { 0%, 49.4% { background: rgba(47,79,58,.05); box-shadow: 0 0 0 1px transparent; transform: none; } 51.2% { background: #fff; box-shadow: 0 0 0 1.5px #08795c, 0 6px 18px rgba(8,121,92,.35); transform: translateY(-2px); } 55.7%, 95% { background: #e3f5ef; box-shadow: 0 0 0 1px rgba(8,121,92,.35); transform: none; } 98%, 100% { background: rgba(47,79,58,.05); box-shadow: 0 0 0 1px transparent; } }
@keyframes ri3 { 0%, 49.4% { background: #2f4f3a; } 49.7%, 95% { background: #08795c; } 98%, 100% { background: #2f4f3a; } }
.frise-c4 .frise-pop { animation-name: fc4; } @keyframes fc4 { 0%, 67.6% { opacity: 0; transform: scale(.3); } 69.4% { opacity: 1; transform: scale(1.3); } 71.9%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.mode-resultat .res-tuile:nth-child(4) { animation-name: rt4; } .mode-resultat .res-tuile:nth-child(4) .res-ico { animation-name: ri4; }
@keyframes rt4 { 0%, 67.6% { background: rgba(47,79,58,.05); box-shadow: 0 0 0 1px transparent; transform: none; } 69.4% { background: #fff; box-shadow: 0 0 0 1.5px #9b4a2c, 0 6px 18px rgba(155,74,44,.35); transform: translateY(-2px); } 73.9%, 95% { background: #f7e7de; box-shadow: 0 0 0 1px rgba(155,74,44,.35); transform: none; } 98%, 100% { background: rgba(47,79,58,.05); box-shadow: 0 0 0 1px transparent; } }
@keyframes ri4 { 0%, 67.6% { background: #2f4f3a; } 67.9%, 95% { background: #9b4a2c; } 98%, 100% { background: #2f4f3a; } }
.frise-c5 .frise-pop { animation-name: fc5; } @keyframes fc5 { 0%, 85.8% { opacity: 0; transform: scale(.3); } 90.1% { opacity: 1; transform: scale(1.3); } 87.6%, 95% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.mode-resultat .res-tuile:nth-child(5) { animation-name: rt5; } .mode-resultat .res-tuile:nth-child(5) .res-ico { animation-name: ri5; }
@keyframes rt5 { 0%, 85.8% { background: rgba(47,79,58,.05); box-shadow: 0 0 0 1px transparent; transform: none; } 87.6% { background: #fff; box-shadow: 0 0 0 1.5px #d98a1f, 0 6px 18px rgba(217,138,31,.4); transform: translateY(-2px); } 92.1%, 95% { background: #fdf0e1; box-shadow: 0 0 0 1px rgba(217,138,31,.4); transform: none; } 98%, 100% { background: rgba(47,79,58,.05); box-shadow: 0 0 0 1px transparent; } }
@keyframes ri5 { 0%, 85.8% { background: #2f4f3a; } 86.1%, 95% { background: #d98a1f; } 98%, 100% { background: #2f4f3a; } }
@media (prefers-reduced-motion: reduce) { .frise-arbre *, .frise-pop, .mode-resultat .res-tuile, .mode-resultat .res-tuile .res-ico { animation: none; } }
/* chaque clé sa couleur (Pascal) : les couleurs de la carte ; la tuile s'allume de la même couleur, fond éclairci */
.frise-c1 g * { stroke: #138a9e; }
.frise-c2 g * { stroke: #2d5fa6; }
.frise-c3 g * { stroke: #08795c; }
.frise-c4 g * { stroke: #9b4a2c; }
.frise-c5 g * { stroke: #d98a1f; }
/* accès en quad, en véhicule (Pascal, 22/11/2026) */
.acces-engins { display: grid; gap: 6px; margin: 8px 0 10px; }
.acces-engin { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.acces-engin .lg-lib { font-weight: 600; font-size: .86rem; }
.acces-quad { display: flex; align-items: center; gap: 6px; margin: 0; }
.acces-quad svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--green-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* missions déjà réalisées : liste nommée comme dans Columbus, pour information (24/11/2026) */
.missions-liste { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 14px; font-size: .84rem; }
.missions-liste li { padding: 2px 0; }

/* petit œil de chaque tuile : ses espaces affichés ou masqués sur la carte (25/11/2026) ; barré et pâle quand masqué */
.g-act .ico.oeil.off { color: var(--muted, #8a948d); opacity: .75; }

/* animation « Les boutons des tuiles » : l'œil et sa petite carte (25/11/2026) */
.an-minicarte { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; } .an-minicarte.on { opacity: 1; transform: none; }
.an-mini-fond { fill: #e9efe6; stroke: var(--line, #d8ddd9); filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.an-mini-esp { fill: rgba(232,115,12,.3); stroke: #e8730c; stroke-width: 1.5; transition: opacity .35s; } .an-mini-esp.cache { opacity: 0; }
.an-bouton-ico.off path { stroke: var(--muted, #8a948d); }
/* pastille jaune dans le texte de la tuile des missions : une vraie pastille ronde dans la ligne (25/11/2026) */
.groupe .sous .pastille { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 4px; }
/* œil à la couleur de sa couche (25/11/2026) ; masqué : gris pâle, comme les autres */
.g-act .ico.oeil[style*="--oeil"]:not(.off) { color: var(--oeil); border-color: color-mix(in srgb, var(--oeil) 45%, transparent); }
/* iris de l'œil plein, de la couleur de la couche (Pascal, 25/11/2026) ; vide quand la tuile est masquée */
.g-act .ico.oeil:not(.off) svg circle { fill: var(--oeil, currentColor); }
/* le contour de l'œil garde la couleur de sa couche, affichée ou masquée (Pascal, 25/11/2026) : masquée = œil barré, iris vide */
.g-act .ico.oeil.off[style*="--oeil"] { color: var(--oeil); border-color: color-mix(in srgb, var(--oeil) 45%, transparent); opacity: 1; }

/* dépôt d'une couche du client (27/11/2026) : deux choix côte à côte, listes comme le filtre des communes */
.dlg select { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: .9rem; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--sauge-clair, #fff); color: var(--ink); }
.dlg .c-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .dlg .c-deux { grid-template-columns: 1fr; } }
.dlg .c-apercu { margin-top: 6px; }
.dlg .c-apercu b { font-weight: 600; color: var(--ink); }
.fiche .c-champs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .8rem; }
.fiche .c-champs em { font-style: normal; color: var(--muted); margin-right: 3px; }
.ent-nom .ent-paren { font-weight: 400; font-size: .8em; color: var(--muted); letter-spacing: 0; }

/* roue crantée (Pascal, 27/11/2026) : ce que le client prépare, couleurs des calques, affichage */
.qui.rg-roue, .qui.rg-roue:hover { border: 0; background: transparent !important; box-shadow: none; padding: 0 4px; border-radius: 0; }
.qui.rg-roue svg { width: 26px; height: 26px; stroke-width: 1.7; transition: transform .3s; } .qui.rg-roue:hover svg { transform: rotate(45deg); }
#dlg-reglages { width: min(620px, calc(100vw - 32px)); }
.rg-bloc { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
.rg-bloc > summary { cursor: pointer; font-weight: 600; font-size: .95rem; list-style: none; display: flex; align-items: center; gap: 6px; }
.rg-bloc > summary::-webkit-details-marker { display: none; }
.rg-bloc > summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border: solid var(--muted, #6b6f6b); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.rg-bloc[open] > summary::after { transform: rotate(-135deg); }
.rg-usages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.rg-usage { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.rg-usage:hover { border-color: var(--sauge); }
.rg-usage.on { border-color: var(--g-nous); box-shadow: inset 0 0 0 1px var(--g-nous); }
.rg-usage strong { display: block; font-size: .9rem; } .rg-usage small { display: block; color: var(--muted, #6b6f6b); font-size: .78rem; line-height: 1.35; margin-top: 2px; }
.rg-ico svg { width: 30px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-usage.on .rg-ico { color: var(--g-nous); }
.seg.rg-on { background: #111; color: #fff; }
.rg-couleurs { margin-top: 8px; display: grid; gap: 4px; }
.rg-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto 88px; align-items: center; gap: 10px; font-size: .84rem; }
.rg-nom { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-nom i { flex: none; width: 12px; height: 12px; border-radius: 4px; }
.rg-pal { display: flex; gap: 3px; align-items: center; }
.rg-pas { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; cursor: pointer; }
.rg-pas.on { box-shadow: 0 0 0 2px #111; }
.dlg label.rg-libre { margin: 0 0 0 3px; display: inline-flex; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: conic-gradient(#e44, #ec4, #4c4, #4ce, #44e, #e4e, #e44); cursor: pointer; }
.dlg label.rg-libre input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dlg label.rg-opa { margin: 0; } .rg-opa input { width: 100%; accent-color: var(--g-nous); }
.rg-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 0; }
@media (max-width: 560px) { .rg-usages { grid-template-columns: 1fr; } .rg-ligne { grid-template-columns: 1fr 70px; } .rg-pal { grid-column: 1 / -1; grid-row: 2; } }
/* « Plans pour greehill Trees » : pas de questions de scan */
.usage-plans [data-inclure], .usage-plans .q-scan, .usage-plans .onglets [data-vue="logistique"], .usage-plans #arbres-scan { display: none !important; }

/* légende repliée derrière une icône, la liste au survol (Pascal, 27/11/2026) */
.legende-boite { position: absolute; left: 12px; bottom: 12px; z-index: 500; }
.leg-btn { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 4px 18px rgba(0,0,0,.15); color: var(--ink); cursor: help; }
.leg-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.legende-boite .legende { position: absolute; left: 0; bottom: 46px; display: none; flex-direction: column; flex-wrap: nowrap; gap: 5px; width: max-content; max-width: min(320px, 80vw);
  background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 10px 14px; font-size: .8rem; }
.legende-boite:hover .legende, .legende-boite:focus-within .legende, .legende-boite.ouverte .legende { display: flex; }
.legende-boite .legende i.tirets { border-color: #555; }
.legende .leg-titre { font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }

/* « Qui gère » sur une ligne : icônes colorées quand choisies (Pascal, 27/11/2026) */
.qg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qg-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 40px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; position: relative; }
.qg-b span:empty { display: none; }
.qg-b svg, .qg-l svg, .g-ico svg, .rg-ic svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qg-b:hover { border-color: var(--qg); color: var(--qg); }
.qg-b.on { background: var(--qg); border-color: var(--qg); color: #fff; }
.qg-plus { position: relative; }
.qg-menu { position: absolute; z-index: 50; top: 40px; left: 0; display: flex; flex-direction: column; min-width: 240px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.qg-menu[hidden] { display: none; }
.qg-l { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: .84rem; text-align: left; color: var(--ink); cursor: pointer; }
.qg-l svg { color: var(--qg); } .qg-l:hover { background: var(--soft); } .qg-l.on { background: var(--qg); color: #fff; } .qg-l.on svg { color: #fff; }
.qg-sep { display: block; height: 1px; background: var(--line); margin: 4px 2px; }
/* icône devant le titre de chaque tuile, de la couleur de la tuile */
.g-ico { display: inline-flex; vertical-align: -3px; margin-right: 8px; color: var(--tuile, #5a6470); }
.g-ico svg { width: 22px; height: 22px; }
.rg-ic { display: inline-flex; color: var(--qg); } .rg-ic svg { width: 18px; height: 18px; }
/* tuiles fournies (missions, calques et dessins du client) : fond chaud, liseré à gauche ; les tuiles estimées gardent le verre */
.groupe.fournie, .groupe.scannes { background: linear-gradient(135deg, rgba(246,238,222,.95), rgba(255,255,255,.9)); border-left: 4px solid #b89a5e; }

.qg { flex-wrap: nowrap; } .qg-choix { margin-left: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* icônes seules, sans cadre (Pascal, 27/11/2026) : grises, de la couleur du gestionnaire au survol, pleines de sa couleur quand choisies */
.qg { gap: 4px; }
.qg .qg-b, .qg .qg-b:hover, .qg .qg-b.on { width: 34px; height: 34px; border: 0; background: transparent !important; box-shadow: none; border-radius: 8px; color: #9aa39c; }
.qg .qg-b svg { width: 24px; height: 24px; }
.qg .qg-b:hover { color: var(--qg); }
.qg .qg-b.on { color: var(--qg); }
.qg .qg-b.on svg { fill: color-mix(in srgb, var(--qg) 22%, transparent); stroke-width: 2.1; }
.qg .qg-b.on::before { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--qg); }
.qg-voiture { display: inline-flex; margin-left: 8px; color: var(--ink); position: relative; } .qg-voiture svg { width: 30px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* les boutons « seg » devenus icônes (fenêtres d'ajout et de dépôt, voirie) : pas de cadre ni de liseré */
.qg .seg.qg-b, .qg .seg.qg-b:not(.on) { border: 0 !important; box-shadow: none !important; background: transparent !important; min-width: 0; }
/* mode en cours à côté de la roue crantée : icône et mot court, sans cadre */
.rg-mode { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0 2px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--green-ink); cursor: pointer; position: relative; white-space: nowrap; }
.rg-mode svg { width: 26px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-mode:hover { color: var(--ink); }
@media (max-width: 900px) { .rg-mode span { display: none; } }
/* fenêtre des réglages : jamais d'ascenseur (Pascal, 27/11/2026) : une partie ouverte à la fois, lignes serrées */
#dlg-reglages { overflow: hidden; padding: 18px 22px; }
#dlg-reglages .rg-couleurs { gap: 2px; }
#dlg-reglages .rg-ligne { min-height: 26px; }
#dlg-reglages .rg-pas { width: 16px; height: 16px; }
#dlg-reglages label.rg-libre { width: 18px; height: 18px; }
#dlg-reglages .rg-opa input { margin: 0; display: block; }
#dlg-reglages .dlg-act { margin-top: 12px; }
/* remplissage : 4 petits carrés (contour seul, léger, moyen, plein) au lieu d'une réglette (Pascal, 27/11/2026) */
.rg-ligne { grid-template-columns: minmax(0, 1fr) auto auto; }
.rg-opa { display: inline-flex; gap: 3px; }
.rg-o { width: 16px; height: 16px; padding: 0; border-radius: 4px; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) calc(var(--o) * 100%), #fff); cursor: pointer; }
.rg-o.on { outline: 2px solid #111; outline-offset: 1px; }
/* molette de remplissage (potentiomètre) : le disque se remplit de la couleur, le repère tourne de -135° à +135° */
.rg-molette { position: relative; display: inline-block; width: 24px; height: 24px; border-radius: 50%; cursor: grab; touch-action: none;
  border: 2px solid var(--c); background: color-mix(in srgb, var(--c) calc(var(--o) * 100%), #fff); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.rg-molette:active { cursor: grabbing; } .rg-molette:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.rg-molette i { position: absolute; left: 50%; top: 50%; width: 2.5px; height: 9px; margin-left: -1.25px; border-radius: 2px; background: #111; box-shadow: 0 0 0 1px #fff;
  transform-origin: 50% 0; transform: rotate(calc(var(--a) + 180deg)); }
/* molette parlante : arc gradué autour (niveau atteint dans la couleur), valeur écrite à côté */
.rg-ligne { grid-template-columns: minmax(0, 1fr) auto 26px 52px; }
.rg-molette { width: 26px; height: 26px; border: 0; box-shadow: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) calc(var(--o) * 100%), #fff) 0 52%, transparent 53%),
              conic-gradient(from -135deg, var(--c) calc(var(--p) * 2.7deg), #dfe4dc 0 270deg, transparent 0); }
.rg-molette i { height: 8px; }
.rg-val { font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .rg-ligne { grid-template-columns: 1fr 26px 52px; } }
/* couleur et remplissage sur un seul bouton : le bouton montre la couleur, l'arc autour le remplissage ; il ouvre le disque */
.rg-ligne { grid-template-columns: minmax(0, 1fr) 30px 56px; }
.rg-disque { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) calc(var(--o) * 100%), #fff) 0 55%, transparent 56%),
              conic-gradient(from -135deg, var(--c) calc(var(--p) * 2.7deg), #dfe4dc 0 270deg, transparent 0);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.rg-disque:hover { transform: scale(1.08); }
.rg-pop { position: absolute; z-index: 30; width: 168px; padding: 10px 10px 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.2); text-align: center; }
.rg-pop[hidden] { display: none; }
.rg-pop svg { width: 148px; height: 148px; display: block; margin: 0 auto; touch-action: none; cursor: crosshair; }
.rg-pop path { stroke-width: .8; } .rg-pop path:hover { stroke-width: 2; }
.rg-pop path.on, .rg-pop .rg-centre.on { stroke: #111 !important; stroke-width: 2.6; }
.rg-pop .rg-centre { fill: #fff; stroke-width: 2.2; stroke-dasharray: 3 2.5; }
.rg-pop-lib { margin: 6px 0 4px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.dlg .rg-pop label.rg-libre { margin: 0 auto; display: flex; }
@media (max-width: 560px) { .rg-ligne { grid-template-columns: 1fr 30px 56px; } }
/* bouton de couleur sobre (Pascal, 27/11/2026) : une pastille ronde, bord de la couleur, remplie selon l'intensité */
.rg-disque { width: 22px; height: 22px; margin: 0 auto; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) calc(var(--o) * 100%), #fff);
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.18); transition: transform .12s; }
.rg-disque:hover { transform: scale(1.15); }
/* disque de choix seul, sans cadre (Pascal, 27/11/2026) */
.rg-pop { width: auto; padding: 0; background: none; border: 0; box-shadow: none; }
.rg-pop svg { width: 150px; height: 150px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.28)); }
/* retour aux couleurs greehill : une petite icône, sans cadre (Pascal, 27/11/2026) */
.rg-raz { position: relative; display: inline-flex; border: 0; background: none; padding: 2px; color: var(--muted); cursor: pointer; }
.rg-raz svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.rg-raz:hover { color: var(--ink); } .rg-raz:hover svg { transform: rotate(-60deg); }
.rg-raz[data-tip]:hover::after { top: auto; bottom: calc(100% + 6px); }
/* choix de la fenêtre des réglages en icônes seules (Pascal, 27/11/2026) */
#dlg-reglages h2 { padding-right: 32px; }
.rg-fermer { position: absolute; top: 14px; right: 14px; border: 0; background: none; padding: 4px; color: var(--muted); cursor: pointer; }
.rg-fermer svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.rg-fermer:hover { color: var(--ink); } .rg-fermer[data-tip]:hover::after { right: 0; }
#dlg-reglages .segments { gap: 4px; }
.rg-choix { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 34px; padding: 0 6px; border: 0; background: none; border-radius: 8px; color: #9aa39c; cursor: pointer; }
.rg-choix svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rg-choix:hover { color: var(--ink); }
.rg-choix.on { color: var(--ink); } .rg-choix.on::before { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--ink); }
.rg-txt { font-size: .9rem; font-weight: 700; } .rg-txt small { font-size: .72rem; font-weight: 500; opacity: .7; }
#dlg-reglages .q { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; } #dlg-reglages .q-lib { margin: 0; }
/* chevron des parties de la fenêtre : le même trait que les tuiles */
.rg-bloc > summary::after { width: 16px; height: 16px; border: 0; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d574f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .15s; }
.rg-bloc[open] > summary::after { transform: rotate(180deg); }
#dlg-reglages { box-sizing: border-box; }
/* « Colorer selon » : un interrupteur avec un mot de chaque côté */
#rg-colorer { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.rg-mot { border: 0; background: none; padding: 0; font: inherit; font-size: .84rem; color: var(--muted); cursor: pointer; }
.rg-mot.on { color: var(--ink); font-weight: 700; }
.rg-inter { position: relative; width: 38px; height: 22px; border: 0; border-radius: 11px; background: #cfd6cc; cursor: pointer; padding: 0; transition: background .15s; }
.rg-inter.droite { background: var(--g-nous); }
.rg-inter i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.rg-inter.droite i { left: 19px; }
/* tout ouvert, sans dépliage (Pascal, 27/11/2026) : trois parties titrées, serrées */
.rg-bloc { margin-top: 10px; padding-top: 8px; }
.rg-bloc h3 { margin: 0; font-size: .92rem; font-weight: 600; }
#dlg-reglages .rg-usages { margin-top: 8px; }
#dlg-reglages .rg-usage { padding: 8px 10px; }
#dlg-reglages .sous { margin: 2px 0 0; }
/* roue devant « Réglages » ; « Affichage » ramassé sur une ligne (Pascal, 27/11/2026) */
.rg-h2-ico { width: 22px; height: 22px; vertical-align: -4px; margin-right: 8px; fill: none; stroke: var(--green-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#rg-b-affichage { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
#rg-b-affichage h3 { margin-right: auto; }
#rg-b-affichage .q { margin: 0 !important; gap: 6px !important; }
#rg-b-affichage .q-lib { font-size: .78rem; color: var(--muted); font-weight: 500; }
#rg-b-affichage .rg-choix { height: 28px; min-width: 30px; } #rg-b-affichage .rg-choix svg { width: 20px; height: 20px; }
/* moins de place sous chaque trait (Pascal, 27/11/2026) */
#dlg-reglages .rg-bloc { margin-top: 8px; padding-top: 4px; }
#dlg-reglages .rg-bloc h3 { line-height: 1.25; }
#dlg-reglages .rg-usages { margin-top: 5px; }
#dlg-reglages #rg-b-couleurs .q { margin-top: 2px; }
#dlg-reglages .rg-couleurs { margin-top: 4px; }
#dlg-reglages .rg-pied { margin-top: 6px; }

/* mode d'emploi en livre (Pascal, 27/11/2026) : une page par partie, pleine hauteur, onglets sur la tranche droite */
.livre { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: start; }
.mode-grille.livre-pages { display: block; }
.livre-pages > .acc-bloc { display: none; height: auto !important; min-height: calc(100vh - 190px); box-sizing: border-box; padding: 26px 32px 18px;
  flex-direction: column; border-radius: 18px 4px 4px 18px; background: rgba(255,255,255,.93); box-shadow: 0 18px 50px rgba(0,0,0,.12), inset -10px 0 14px -12px rgba(0,0,0,.18); }
.livre-pages > .acc-bloc.livre-active { display: flex; }
.livre-pages > .acc-bloc > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.livre-ico { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: var(--sauge-clair, #eef2ec); color: var(--green-ink); flex: none; }
.livre-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.livre-pages .mode-liste, .livre-pages ol { font-size: 1rem; line-height: 1.55; max-width: 980px; }
.livre-pied { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.livre-tour { border: 0; background: none; font: inherit; font-weight: 600; font-size: .9rem; color: var(--green-ink); cursor: pointer; padding: 4px 2px; }
.livre-tour:hover { color: var(--ink); }
.livre-n { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
/* onglets de classeur sur la tranche : décalés, la couleur du papier pour l'onglet ouvert, qui se colle à la page */
.livre-onglets { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; padding-top: 22px; margin-left: -2px; }
.livre-onglet { display: flex; align-items: center; gap: 8px; width: 140px; height: 42px; padding: 0 12px 0 14px; border: 0; border-radius: 0 12px 12px 0; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 600; text-align: left; color: #fff; transition: transform .15s, width .15s;
  background: color-mix(in srgb, #4f6354 calc(100% - var(--i) * 8%), #a9b9a8); box-shadow: inset 6px 0 8px -6px rgba(0,0,0,.35), 2px 2px 6px rgba(0,0,0,.08); transform: translateX(-8px); }
.livre-onglet svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.livre-onglet:hover { transform: translateX(-2px); }
.livre-onglet.on { background: rgba(255,255,255,.96); color: var(--ink); transform: translateX(-12px); width: 150px; box-shadow: 4px 3px 10px rgba(0,0,0,.10); }
.livre-onglet.on svg { color: var(--green-ink); }
@media (max-width: 900px) {
  .livre { grid-template-columns: 1fr; }
  .livre-onglets { position: static; flex-direction: row; overflow: hidden; flex-wrap: wrap; order: -1; padding: 0 0 6px; margin: 0; gap: 4px; }
  .livre-onglet { width: auto; height: 38px; border-radius: 10px 10px 0 0; transform: none !important; padding: 0 10px; } .livre-onglet span { display: none; }
  .livre-pages > .acc-bloc { min-height: 0; padding: 20px; border-radius: 4px 4px 16px 16px; }
}

/* onglets en haut, look cahier (Pascal, 27/11/2026) : intercalaires arrondis, l'ouvert de la couleur de la page et collé à elle */
.livre { grid-template-columns: 1fr; }
.livre-onglets { position: relative; top: 0; flex-direction: row; flex-wrap: nowrap; gap: 3px; padding: 0 18px; margin: 0; z-index: 1; overflow-x: hidden; }
.livre-onglet { width: auto; height: 40px; padding: 0 14px; border-radius: 12px 12px 0 0; transform: translateY(6px);
  background: color-mix(in srgb, #4f6354 calc(100% - var(--i) * 8%), #a9b9a8); box-shadow: inset 0 -7px 8px -6px rgba(0,0,0,.3); white-space: nowrap; }
.livre-onglet:hover { transform: translateY(2px); }
.livre-onglet.on { width: auto; transform: translateY(1px); background: rgba(255,255,255,.93); box-shadow: 0 -3px 8px rgba(0,0,0,.06); }
.livre-pages > .acc-bloc { border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.12); min-height: calc(100vh - 230px); }
@media (max-width: 900px) { .livre-onglets { flex-wrap: wrap; padding: 0 8px; } .livre-onglet { height: 36px; } }
/* cahier à la taille de son contenu (la plus longue des parties), pas de la fenêtre */
.livre-pages > .acc-bloc { min-height: 0; }
/* cahier à la largeur de ses onglets, une couleur par onglet (Pascal, 27/11/2026) */
.livre { display: grid; width: max-content; max-width: 100%; margin: 0 auto; }
.livre-pages { width: 0; min-width: 100%; }
.livre-onglet { background: color-mix(in srgb, var(--lc) 82%, #fff); box-shadow: inset 0 -7px 8px -6px rgba(0,0,0,.28); }
.livre-onglet.on { background: #fff; color: var(--ink); box-shadow: inset 0 3px 0 var(--lc), 0 -3px 8px rgba(0,0,0,.06); }
.livre-onglet.on svg { color: var(--lc); }
.livre-pages > .acc-bloc { border-top: 4px solid var(--lc); background: #fff; }
.livre-pages .livre-ico { background: color-mix(in srgb, var(--lc) 14%, #fff); color: var(--lc); }
.livre-pages .livre-tour { color: var(--lc); }
/* « Bon à savoir » en bas de chaque onglet, dans la couleur de l'onglet */
.livre-savoir { margin-top: 16px; padding: 10px 14px 4px; border-radius: 12px; background: color-mix(in srgb, var(--lc) 7%, #fff); border-left: 3px solid var(--lc); }
.livre-savoir h3 { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lc); }
.livre-savoir .mode-liste { gap: 6px; } .livre-savoir .mode-liste li { font-size: .86rem; }
.livre-savoir .mode-liste.puces li::before { background: var(--lc); }
/* les onglets s'étirent : le cahier garde une largeur confortable à lire (texte moins tassé, pages moins hautes) */
.livre { min-width: min(1060px, 100%); }
.livre-onglets { justify-content: stretch; } .livre-onglet { flex: 1 1 auto; justify-content: center; }
/* pas d'ascenseur sur la rangée d'onglets (les onglets descendent de quelques pixels) */
.livre-onglets { overflow: visible !important; }
/* page d'aide « Vos réglages » : quatre cartes aérées (Pascal, 27/11/2026) */
.rg-aide-intro { margin: 0 0 18px; font-size: 1rem; color: var(--muted); max-width: 760px; }
.rg-aide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rg-carte { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--lc) 6%, #fff); border: 1px solid color-mix(in srgb, var(--lc) 18%, #fff); }
.rg-carte > b { font-size: 1rem; color: var(--lc); align-self: center; }
.rg-carte p { grid-column: 2; margin: 4px 0 0; font-size: .9rem; line-height: 1.5; }
.rg-carte-ico { grid-row: span 2; display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center; background: color-mix(in srgb, var(--lc) 14%, #fff); color: var(--lc); }
.rg-carte-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-carte-disque::before { content: ''; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 26%, transparent 27%), conic-gradient(#08795c 0 45deg, #2d5fa6 0 90deg, #138a9e 0 135deg, #9b4a2c 0 180deg, #d98a1f 0 225deg, #5a6470 0 270deg, #7f8f2a 0 315deg, #c0504d 0); }
@media (max-width: 760px) { .rg-aide { grid-template-columns: 1fr; } }
/* pages du cahier en cartes aérées, qui remplissent la hauteur de la page (Pascal, 27/11/2026) */
.livre-pages > .acc-bloc.livre-en-cartes .livre-cartes { flex: 1; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; max-width: none; margin: 4px 0 0; }
.livre-cartes > li { position: relative; margin: 0 !important; padding: 14px 16px 14px 52px !important; border-radius: 14px; font-size: .92rem !important; line-height: 1.5;
  background: color-mix(in srgb, var(--lc) 6%, #fff); border: 1px solid color-mix(in srgb, var(--lc) 16%, #fff); display: flex !important; flex-direction: column; justify-content: center; }
.livre-cartes > li > b:first-of-type { color: var(--lc); }
.livre-cartes > li > .mode-ico, .livre-cartes > li > .pt { position: absolute !important; left: 16px !important; top: 50% !important; transform: translateY(-50%); }
.livre-cartes .mode-ico { width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--lc) 14%, #fff); color: var(--lc); display: inline-flex; align-items: center; justify-content: center; }
.livre-cartes .mode-ico svg { width: 17px; height: 17px; }
.livre-cartes > li .mode-ico.mode-ico-txt { position: static !important; transform: none; width: 20px; height: 20px; vertical-align: -5px; }
.livre-cartes .pt { width: 20px !important; height: 20px !important; }
/* gestes numérotés : le numéro dans un rond de la couleur de l'onglet */
ol.livre-cartes > li::before { left: 16px !important; top: 50% !important; transform: translateY(-50%); width: 26px !important; height: 26px !important; background: var(--lc) !important; color: #fff !important; display: flex; align-items: center; justify-content: center; }
.livre-pages > .acc-bloc.livre-en-cartes .livre-savoir { margin-top: 14px; }
@media (max-width: 760px) { .livre-pages > .acc-bloc.livre-en-cartes .livre-cartes { grid-template-columns: 1fr; grid-auto-rows: auto; } }
/* correctif : texte des cartes d'un seul tenant, lignes de grille à la taille du contenu puis étirées pour remplir la page */
.livre-pages > .acc-bloc.livre-en-cartes .livre-cartes { grid-auto-rows: auto; align-content: stretch; }
.livre-cartes > li { display: block !important; }
.livre-cartes > li > .mode-ico, .livre-cartes > li > .pt { top: 15px !important; transform: none; }
ol.livre-cartes > li::before { top: 13px !important; transform: none; }
/* gestes : les petites icônes dans le texte restent dans le texte (le numéro garde sa place) */
ol.livre-cartes > li > .mode-ico { position: static !important; transform: none !important; display: inline-flex; width: 20px; height: 20px; vertical-align: -5px; margin: 0 2px; }
/* vidéo de chaque page du cahier : un gros bouton rond de la couleur de l'onglet, avec un triangle de lecture (Pascal, 27/11/2026) */
.livre-pages .anim-btn { top: 22px; right: 26px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--lc); color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--lc) 45%, transparent); z-index: 2; }
.livre-pages .anim-btn::after { inset: -6px; border-radius: 50%; border-color: var(--lc); }
.livre-pages .anim-btn svg { display: none; }
.livre-pages .anim-btn::before { content: ''; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.livre-pages .anim-btn.vue { background: var(--lc); color: #fff; opacity: .9; }
.livre-pages .anim-btn:hover { transform: scale(1.1); background: var(--lc); }
.livre-pages .anim-btn[data-tip]:hover::after { inset: auto; top: calc(100% + 8px); right: 0; border: 0; border-radius: 6px; opacity: 1; animation: none; }
.livre-pages > .acc-bloc > h2 { padding-right: 70px; }
/* « Résultat » : tuiles aérées qui remplissent la page, la frise en grand en bas (Pascal, 27/11/2026) */
.livre-pages .mode-resultat .res-tuiles { flex: 1; align-content: stretch; gap: 14px; margin-top: 6px; }
.livre-pages .mode-resultat .res-tuile { padding: 18px 16px; gap: 10px; justify-content: flex-start; border-radius: 14px; }
.livre-pages .mode-resultat .res-tuile b { font-size: 1rem; } .livre-pages .mode-resultat .res-tuile span:not(.res-ico) { font-size: .88rem; line-height: 1.5; }
.livre-pages .mode-resultat .res-ico { width: 46px; height: 46px; border-radius: 13px; } .livre-pages .mode-resultat .res-ico svg { width: 25px; height: 25px; }
.res-frise-bas { margin-top: 18px; height: 110px; }
.res-frise-bas .frise-scan { display: block; height: 100%; }
@media (max-width: 700px) { .res-frise-bas { display: none; } }
.res-frise-bas .frise-auto { animation-name: frise-auto-court; }
@keyframes frise-auto-court { from { transform: translateX(-9px); } to { transform: translateX(269px); } }
.res-frise-bas { height: 130px; } .res-frise-bas .frise-scan, .res-frise-bas .frise-scan svg { overflow: visible; }
/* listes à puces passées en cartes : pas de puce (l'icône ou la carte suffit) */
.livre-cartes.puces > li::before { display: none !important; }
.livre-cartes.puces > li { padding-left: 18px !important; }
.livre-cartes.puces > li.avec-ico { padding-left: 52px !important; }
/* accueil : « Vous préparez » en une ligne, deux pastilles (Pascal, 27/11/2026) */
.acc-usages { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 4px 0 16px; }
.acc-usages-t { font-size: .84rem; font-weight: 600; color: var(--muted); margin-right: 2px; }
.acc-usage { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 10px; border: 1.5px solid transparent; border-radius: 99px;
  background: rgba(255,255,255,.55); font: inherit; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.acc-usage svg { width: 24px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-usage:hover { color: var(--ink); background: rgba(255,255,255,.85); }
.acc-usage.on { background: #fff; color: var(--g-nous); border-color: var(--g-nous); cursor: default; box-shadow: 0 3px 10px rgba(8,121,92,.14); }
/* aide : onglet « Deux usages » */
.usages-deux { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: stretch; }
.usage-carte { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 16px; background: color-mix(in srgb, var(--lc) 6%, #fff); border: 1px solid color-mix(in srgb, var(--lc) 18%, #fff); }
.usage-carte > b { font-size: 1.15rem; color: var(--lc); }
.usage-carte p { margin: 0; font-size: .95rem; line-height: 1.5; } .usage-carte em { font-style: normal; font-weight: 700; color: var(--lc); }
.usage-carte .rg-carte-ico { margin-bottom: 4px; }
@media (max-width: 760px) { .usages-deux { grid-template-columns: 1fr; } }
/* « Vous préparez » reste collé aux boutons : c'est lui qui descend en bas de la colonne */
@media (min-width: 901px) { .acc-col .acc-usages { margin-top: auto; margin-bottom: 0; } .acc-col .acc-usages + .acc-actions { margin-top: 0; } }
/* logo du client (rogné) en haut à droite de la tuile « Où vous en êtes » (Pascal, 27/11/2026) */
#acc-etat { position: relative; }
#acc-etat .acc-logo-client { position: absolute; top: 12px; right: 16px; height: 58px; width: auto; max-width: 190px; object-fit: contain; }
