/* =============================================================
   arbusteo — visuels produit (mockups navigateur / téléphone)
   Données fictives — Domaine de Bellefeuille. Charte v4.
   Tokens hérités de site.css (:root). Couleurs produit calées
   sur les maquettes de l'application.
   ============================================================= */

:root {
  --pv-bg:        #f7f7ec;   /* fond applicatif (cream un peu plus froid) */
  --pv-surface:   #ffffff;
  --pv-line:      #e6e7d6;
  --pv-ink:       #2b2e22;
  --pv-soft:      #5d614f;
  --pv-faint:     #8a8d79;
  --pv-good:      #4f9a57;
  --pv-good-bg:   #e3f0d8;
  --pv-warn:      #b3690a;
  --pv-warn-bg:   #fdedcf;
  --pv-alert:     #ba1b1b;
  --pv-alert-bg:  #ffe1da;
}

/* ----------------------------------------------------------------
   FRAME — navigateur
   ---------------------------------------------------------------- */
.bz {
  background: var(--pv-surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  width: 100%;
}
.bz-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--cream-light);
  border-bottom: 1px solid var(--line);
}
.bz-dots { display: flex; gap: 7px; flex: none; }
.bz-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--sage); }
.bz-dots i:nth-child(2) { background: #c9d3ad; }
.bz-dots i:nth-child(3) { background: #dfe4cb; }
.bz-url {
  flex: 1; min-width: 0;
  display: inline-flex; align-items: center; gap: 0;
  height: 28px; padding: 0 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--pv-soft);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.bz-url .material-symbols-outlined { font-size: 14px; color: var(--olive); margin-right: 7px; }
.bz-url b { color: var(--green-dark); font-weight: 600; }
.bz-act { flex: none; display: inline-flex; gap: 4px; color: var(--pv-faint); }
.bz-act .material-symbols-outlined { font-size: 18px; }
.bz-body { background: var(--pv-bg); }

/* ----------------------------------------------------------------
   FRAME — téléphone
   ---------------------------------------------------------------- */
.ph {
  width: 290px; max-width: 100%;
  background: #1f241a;
  border-radius: 42px;
  padding: 11px;
  box-shadow: var(--shadow-3), inset 0 0 0 2px #353b2c;
  margin: 0 auto;
}
.ph-screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: var(--pv-bg);
}
.ph-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 22px 7px;
  font-size: 12px; font-weight: 700; color: var(--green-title);
  background: var(--pv-surface);
}
.ph-status .ico { display: inline-flex; gap: 5px; }
.ph-status .ico .material-symbols-outlined { font-size: 15px; }
.ph-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; background: #1f241a; border-radius: 0 0 14px 14px; z-index: 3;
}

/* shared app chrome ---------------------------------------------- */
.pv-appbar {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px;
  background: var(--pv-surface);
  border-bottom: 1px solid var(--pv-line);
}
.pv-appbar .lead-ico {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--green-deep); color: var(--cream-light);
}
.pv-appbar .lead-ico .material-symbols-outlined { font-size: 19px; }
.pv-appbar .titles { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.pv-appbar .t1 { display: block; font-size: 13.5px; font-weight: 700; color: var(--green-title); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-appbar .t2 { display: block; font-size: 11px; line-height: 1.3; color: var(--pv-faint); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-appbar .ab-act { flex: none; display: inline-flex; gap: 6px; color: var(--pv-faint); }
.pv-appbar .ab-act .material-symbols-outlined { font-size: 19px; }
.pv-appbar .ab-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--olive-light); color: var(--green-deep);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}

.state-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.pill .material-symbols-outlined { font-size: 13px; }
.pill.good  { background: var(--pv-good-bg);  color: #2c5a32; }
.pill.warn  { background: var(--pv-warn-bg);  color: #6c3a00; }
.pill.alert { background: var(--pv-alert-bg); color: #8a1a08; }
.pill.neutral { background: var(--cream); color: var(--pv-soft); }
.pill.ai    { background: #f3ead9; color: #6c3a00; border: 1px dashed #cf9a5a; }

/* ================================================================
   VUE — CARTE DU DOMAINE  (hero + étape 1 secondaire)
   ================================================================ */
.pv-map { display: grid; grid-template-columns: 200px 1fr; height: 460px; }
.pv-map .map-rail {
  border-right: 1px solid var(--pv-line); background: var(--pv-surface);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; overflow: hidden;
}
.map-rail .rail-h {
  font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--pv-faint); margin: 10px 6px 6px;
}
.map-rail .rail-h:first-child { margin-top: 0; }
.layer {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px; border-radius: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--green-dark);
}
.layer.on { background: var(--olive-light); }
.layer .lk { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; color: #fff; }
.layer .lk .material-symbols-outlined { font-size: 14px; }
.layer .lname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer .lcount { font-size: 11px; font-weight: 700; color: var(--pv-faint); }
.layer.alert .lcount { color: var(--pv-alert); }

.pv-map .map-stage { position: relative; overflow: hidden; background: linear-gradient(165deg, #eef3df, #e6eed4); }
.map-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-toolbar {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.map-search {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 13px; background: var(--pv-surface);
  border: 1px solid var(--pv-line); border-radius: 999px;
  box-shadow: var(--shadow-1); font-size: 12px; color: var(--pv-faint);
}
.map-search .material-symbols-outlined { font-size: 16px; color: var(--olive); }
.map-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--pv-surface); border: 1px solid var(--pv-line);
  box-shadow: var(--shadow-1);
  font-size: 11.5px; font-weight: 700; color: var(--green-dark);
}
.map-chip .material-symbols-outlined { font-size: 14px; }
.map-chip .n { color: var(--pv-faint); }
.map-chip.active { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.map-chip.active .n { color: rgba(255,255,255,.7); }
.map-chip.warn { color: var(--pv-warn); }
.map-chip.warn .n { color: var(--pv-warn); }

.map-pinx {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  display: grid; place-items: center;
}
.map-pinx .dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-deep); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.map-pinx.lg .dot { width: 22px; height: 22px; }
.map-pinx.warn .dot { background: var(--pv-warn); }
.map-pinx.alert .dot { background: var(--pv-alert); }
.map-pinx.task .dot { background: var(--ocre-light); border-width: 2px; }
.map-pinx .ring {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--pv-warn); opacity: .5; animation: pvpulse 2.6s var(--ease) infinite;
}
.map-pinx.sel .dot { background: var(--ocre); width: 22px; height: 22px; }
@keyframes pvpulse { 0%{transform:scale(.5);opacity:.55} 100%{transform:scale(1.7);opacity:0} }
@media (prefers-reduced-motion: reduce){ .map-pinx .ring{ animation:none; } }

.map-zlabel {
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: rgba(70,82,40,.55); pointer-events: none; white-space: nowrap;
}

.map-fiche {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 232px;
  background: var(--pv-surface); border: 1px solid var(--pv-line);
  border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden;
}
.map-fiche .mf-illu {
  height: 74px; background: linear-gradient(155deg, #dcebbe, #c2da92);
  display: grid; place-items: center; position: relative;
}
.map-fiche .mf-illu .material-symbols-outlined { font-size: 40px; color: var(--green-deep); }
.map-fiche .mf-illu .mf-ref {
  position: absolute; top: 8px; left: 10px; font-size: 9.5px; font-weight: 700;
  color: var(--green-deep); background: rgba(255,255,255,.85); border-radius: 999px; padding: 2px 8px;
}
.map-fiche .mf-body { padding: 11px 13px 13px; }
.map-fiche .mf-name { font-size: 14px; font-weight: 700; color: var(--green-title); line-height: 1.2; }
.map-fiche .mf-sp { font-size: 11.5px; font-style: italic; color: var(--pv-soft); margin-top: 2px; }
.map-fiche .mf-attrs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.map-fiche .mf-attrs .a { font-size: 10px; font-weight: 600; color: var(--pv-soft);
  background: var(--cream); border-radius: 999px; padding: 2px 8px; }
.map-fiche .mf-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px;
  padding-top: 10px; border-top: 1px solid var(--pv-line); }
.map-fiche .mf-link { font-size: 11px; font-weight: 700; color: var(--green-deep);
  display: inline-flex; align-items: center; gap: 3px; }
.map-fiche .mf-link .material-symbols-outlined { font-size: 14px; }

/* responsive : on masque le rail et on recadre sur la carte + fiche */
@media (max-width: 760px) {
  .pv-map { grid-template-columns: 1fr; height: 380px; }
  .pv-map .map-rail { display: none; }
  .map-fiche { width: 200px; }
}

/* ================================================================
   VUE — INVENTAIRE  (étape 1)
   ================================================================ */
.pv-inv { padding: 14px 16px 16px; }
.pv-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pv-toolbar .pv-search {
  flex: 1; min-width: 120px;
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  background: var(--pv-surface); border: 1px solid var(--pv-line); border-radius: 999px;
  font-size: 12.5px; color: var(--pv-faint);
}
.pv-search .material-symbols-outlined { font-size: 16px; color: var(--olive); }
.fchip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: var(--green-dark);
  background: var(--pv-surface); border: 1px solid var(--pv-line);
}
.fchip.on { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.fchip .n { opacity: .65; }

.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inv-card {
  background: var(--pv-surface); border: 1px solid var(--pv-line); border-radius: 14px;
  padding: 11px; display: flex; flex-direction: column; gap: 9px;
}
.inv-card .ic-illu {
  height: 64px; border-radius: 10px; display: grid; place-items: center; position: relative;
  background: linear-gradient(155deg, #e7efd2, #cfe2a9); color: var(--green-deep);
}
.inv-card .ic-illu .material-symbols-outlined { font-size: 30px; }
.inv-card .ic-illu .ic-state { position: absolute; top: 7px; right: 7px; }
.inv-card .ic-name { font-size: 13px; font-weight: 700; color: var(--green-title); line-height: 1.25; }
.inv-card .ic-sp { font-size: 11px; font-style: italic; color: var(--pv-soft); margin-top: 1px; }
.inv-card .ic-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--pv-faint); margin-top: 2px; }
.inv-card .ic-meta .material-symbols-outlined { font-size: 13px; color: var(--olive); }

@media (max-width: 560px) { .inv-grid { grid-template-columns: repeat(2, 1fr); } }

/* ================================================================
   VUE — OBSERVATION  (étape 2, téléphone)
   ================================================================ */
.pv-obs { padding: 14px 15px 16px; }
.obs-elem { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.obs-elem .oe-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--olive-light); color: var(--green-deep); }
.obs-elem .oe-ic .material-symbols-outlined { font-size: 20px; }
.obs-elem .oe-name { font-size: 13px; font-weight: 700; color: var(--green-title); }
.obs-elem .oe-zone { font-size: 11px; color: var(--pv-faint); display: inline-flex; align-items: center; gap: 3px; }
.obs-elem .oe-zone .material-symbols-outlined { font-size: 12px; }

.obs-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.obs-meta .om-date { font-size: 11px; color: var(--pv-faint); margin-left: auto; }
.obs-card-title { font-size: 15px; font-weight: 700; color: var(--green-title); line-height: 1.3; }
.obs-photos { display: flex; gap: 7px; margin: 12px 0; }
.obs-photos .opx { flex: 1; height: 62px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, #dcebbe, #bcd58a); color: var(--green-deep); }
.obs-photos .opx .material-symbols-outlined { font-size: 22px; }
.obs-photos .opx.more { background: var(--cream); color: var(--pv-soft); font-size: 12px; font-weight: 700; }
.obs-body { font-size: 12.5px; line-height: 1.5; color: var(--pv-soft); }
.obs-by { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pv-faint); margin-top: 12px; }
.obs-by .av { width: 20px; height: 20px; border-radius: 50%; background: var(--olive-light);
  color: var(--green-deep); display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.obs-cta {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; height: 42px; border-radius: 999px;
  background: var(--green-deep); color: var(--cream-light);
  font-size: 13px; font-weight: 700;
}
.obs-cta .material-symbols-outlined { font-size: 18px; }

/* ================================================================
   VUE — TÂCHE RÉCURRENTE  (étape 3, navigateur)
   ================================================================ */
.pv-rec { padding: 16px 18px 18px; }
.rec-banner {
  background: var(--olive-light); border: 1px solid color-mix(in srgb, var(--olive) 35%, transparent);
  border-radius: 14px; padding: 13px 15px; display: flex; align-items: center; gap: 12px;
}
.rec-banner .rb-ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--green-deep); color: var(--cream-light); }
.rec-banner .rb-ic .material-symbols-outlined { font-size: 22px; }
.rec-banner .rb-ic + span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-banner .rb-title { display: block; font-size: 15px; font-weight: 700; color: var(--green-title); line-height: 1.2; }
.rec-banner .rb-rule { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--green-dark); margin-top: 1px; }
.rec-banner .rb-rule .material-symbols-outlined { font-size: 15px; color: var(--olive); }
.rec-banner .rb-auto { margin-left: auto; }

.rec-cols { display: grid; grid-template-columns: 1fr 240px; gap: 16px; margin-top: 15px; }
.occ-list { display: flex; flex-direction: column; gap: 8px; }
.occ-h { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--pv-faint); }
.occ {
  display: flex; align-items: center; gap: 12px; padding: 10px 13px;
  border: 1px solid var(--pv-line); border-radius: 12px; background: var(--pv-surface);
}
.occ .o-date { font-size: 11.5px; font-weight: 700; color: var(--green-deep); width: 56px; flex: none; }
.occ .o-what { font-size: 12.5px; color: var(--pv-ink); flex: 1; }
.occ .o-st { font-size: 19px; flex: none; }
.occ.done .o-st { color: var(--pv-good); font-variation-settings: "FILL" 1; }
.occ.skip { background: var(--cream-light); }
.occ.skip .o-st { color: var(--pv-warn); }
.occ.skip .o-what { color: var(--pv-faint); }
.occ.next { border-color: var(--olive); border-width: 1.5px; background: #f3f7e6; }
.occ.next .o-st { color: var(--olive); }
.occ.next .o-what { font-weight: 700; color: var(--green-deep); }
.occ.future { opacity: .62; }
.occ.future .o-st { color: var(--pv-faint); }

.rec-side { display: flex; flex-direction: column; gap: 10px; }
.rec-stat { background: var(--pv-surface); border: 1px solid var(--pv-line); border-radius: 12px; padding: 12px 13px; }
.rec-stat .rs-k { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--pv-faint); }
.rec-stat .rs-v { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700;
  color: var(--green-title); margin-top: 5px; }
.rec-stat .rs-v .material-symbols-outlined { font-size: 17px; color: var(--olive); }
.rec-stat .rs-team { display: flex; align-items: center; gap: -6px; margin-top: 7px; }
.rec-stat .rs-team .av { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--pv-surface);
  background: var(--olive-light); color: var(--green-deep); display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700; margin-left: -6px; }
.rec-stat .rs-team .av:first-child { margin-left: 0; }

@media (max-width: 720px) { .rec-cols { grid-template-columns: 1fr; } .rec-banner .rb-auto { display: none; } }

/* ================================================================
   VUE — COMPTE RENDU  (étape 4, téléphone)
   ================================================================ */
.pv-report { padding: 14px 15px 16px; }
.rep-task { font-size: 14.5px; font-weight: 700; color: var(--green-title); line-height: 1.3; }
.rep-sub { font-size: 11.5px; color: var(--pv-faint); display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; }
.rep-sub .material-symbols-outlined { font-size: 13px; color: var(--olive); }
.rep-prog { display: flex; align-items: center; gap: 9px; margin: 13px 0 11px; }
.rep-prog .bar { flex: 1; height: 7px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.rep-prog .bar span { display: block; height: 100%; border-radius: 999px; background: var(--pv-good); }
.rep-prog .pct { font-size: 11.5px; font-weight: 700; color: var(--pv-good); }
.rep-ops { display: flex; flex-direction: column; gap: 7px; }
.rep-op {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 11px; background: var(--pv-surface); border: 1px solid var(--pv-line);
  font-size: 12.5px; color: var(--pv-ink);
}
.rep-op .material-symbols-outlined { font-size: 20px; flex: none; }
.rep-op.done { background: #f1f7ea; border-color: #d6e6c2; }
.rep-op.done .material-symbols-outlined { color: var(--pv-good); font-variation-settings: "FILL" 1; }
.rep-op.done .ro-name { font-weight: 600; color: var(--green-dark); }
.rep-op.todo .material-symbols-outlined { color: var(--pv-faint); }
.rep-op .ro-name { flex: 1; }
.rep-op .ro-n { font-size: 10.5px; color: var(--pv-faint); }
.rep-foot { display: flex; align-items: center; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.rep-foot .rf-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  color: var(--green-dark); background: var(--cream); border-radius: 999px; padding: 5px 11px; }
.rep-foot .rf-chip .material-symbols-outlined { font-size: 15px; color: var(--olive); }
.rep-auto { display: flex; align-items: center; gap: 6px; margin-top: 11px;
  font-size: 11px; font-style: italic; color: var(--ocre); }
.rep-auto .material-symbols-outlined { font-size: 15px; }
.rep-cta {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 13px; height: 42px; border-radius: 999px;
  background: var(--green-deep); color: var(--cream-light); font-size: 13px; font-weight: 700;
}
.rep-cta .material-symbols-outlined { font-size: 18px; }

/* ================================================================
   VUE — DIAGNOSTIC / NOTATION  (étape 5, navigateur)
   ================================================================ */
.pv-diag { padding: 16px 18px 18px; }
.diag-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.diag-head .dh-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--olive-light); color: var(--green-deep); }
.diag-head .dh-ic .material-symbols-outlined { font-size: 21px; }
.diag-head .dh-name { font-size: 14px; font-weight: 700; color: var(--green-title); }
.diag-head .dh-grid { font-size: 11px; color: var(--pv-faint); }
.diag-head .dh-right { margin-left: auto; text-align: right; }

.diag-cols { display: grid; grid-template-columns: 1fr 232px; gap: 16px; }
.crit-list { display: flex; flex-direction: column; gap: 11px; }
.crit { }
.crit .c-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.crit .c-label { font-size: 12.5px; font-weight: 700; color: var(--green-dark); }
.crit .c-val { font-size: 12px; font-weight: 700; margin-left: auto; }
.crit .c-val.good { color: var(--pv-good); }
.crit .c-val.warn { color: var(--pv-warn); }
.crit .c-val.alert { color: var(--pv-alert); }
.scale { display: flex; gap: 4px; }
.scale .seg { flex: 1; height: 8px; border-radius: 4px; background: var(--cream); }
.scale.good .seg.on { background: var(--pv-good); }
.scale.warn .seg.on { background: var(--pv-warn); }
.scale.alert .seg.on { background: var(--pv-alert); }
.crit .c-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700;
  color: var(--pv-alert); margin-top: 5px; }
.crit .c-flag .material-symbols-outlined { font-size: 13px; }

.diag-side { display: flex; flex-direction: column; gap: 12px; }
.trend-card { background: var(--pv-surface); border: 1px solid var(--pv-line); border-radius: 13px; padding: 13px; }
.trend-card .tc-h { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--pv-faint); margin-bottom: 9px; }
.trend-card .tc-chart { height: 90px; position: relative; }
.trend-card .tc-chart svg { width: 100%; height: 100%; overflow: visible; }
.trend-card .tc-years { display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 9.5px; color: var(--pv-faint); }
.diag-alert {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px;
  background: var(--pv-warn-bg); border: 1px solid #f0d49a; border-radius: 12px;
}
.diag-alert .material-symbols-outlined { font-size: 19px; color: var(--pv-warn); flex: none; }
/* titre + corps sur deux lignes (le wrapper est un span neutre dans le markup) */
.diag-alert > span:not(.material-symbols-outlined) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.diag-alert .da-t { display: block; }
.diag-alert .da-p { display: block; }
.diag-alert .da-t { font-size: 11.5px; font-weight: 700; color: #6c3a00; }
.diag-alert .da-p { font-size: 10.5px; color: #7a5320; margin-top: 2px; line-height: 1.4; }

@media (max-width: 720px) { .diag-cols { grid-template-columns: 1fr; } }

/* ================================================================
   VUE — IA : proposé → validé  (section IA, navigateur)
   ================================================================ */
.pv-ai { padding: 18px; display: grid; grid-template-columns: 1fr 44px 1fr; gap: 8px; align-items: center; }
.ai-card {
  background: var(--pv-surface); border-radius: 15px; padding: 15px;
  border: 1px solid var(--pv-line);
}
.ai-card.proposed { border: 1.5px dashed #cf9a5a; background: #fffaf1; }
.ai-card.validated { border: 1.5px solid var(--olive); background: #f3f7e6; }
.ai-c-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.ai-c-head .material-symbols-outlined { font-size: 18px; }
.ai-card.proposed .ai-c-head .material-symbols-outlined { color: var(--ocre); }
.ai-card.validated .ai-c-head .material-symbols-outlined { color: #3f7a45; font-variation-settings: "FILL" 1; }
.ai-c-tag { font-size: 11px; font-weight: 700; }
.ai-card.proposed .ai-c-tag { color: var(--ocre); }
.ai-card.validated .ai-c-tag { color: var(--green-deep); }
.ai-c-conf { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; }
.ai-c-conf i { width: 6px; height: 6px; border-radius: 50%; background: #e0d3b8; }
.ai-c-conf i.on { background: var(--ocre); }
.ai-title { font-size: 13.5px; font-weight: 700; color: var(--green-title); line-height: 1.3; }
.ai-target { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--pv-soft); margin-top: 6px; }
.ai-target .material-symbols-outlined { font-size: 14px; color: var(--olive); }
.ai-why { font-size: 11.5px; line-height: 1.5; color: var(--pv-soft); margin-top: 9px;
  padding-top: 9px; border-top: 1px solid var(--pv-line); }
.ai-actions { display: flex; gap: 8px; margin-top: 12px; }
.ai-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 34px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ai-btn .material-symbols-outlined { font-size: 16px; }
.ai-btn.accept { background: var(--green-deep); color: var(--cream-light); }
.ai-btn.refuse { background: transparent; color: var(--pv-soft); border: 1px solid var(--pv-line); }
.ai-valid-stamp { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 11px; font-weight: 600; color: var(--green-deep); }
.ai-valid-stamp .av { width: 20px; height: 20px; border-radius: 50%; background: var(--olive-light);
  color: var(--green-deep); display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.pv-ai .ai-arrow { display: grid; place-items: center; color: var(--olive); }
.pv-ai .ai-arrow .material-symbols-outlined { font-size: 26px; }

@media (max-width: 640px) {
  .pv-ai { grid-template-columns: 1fr; }
  .pv-ai .ai-arrow { transform: rotate(90deg); height: 30px; }
}

/* ================================================================
   ENVELOPPES DE SECTION (hero band + légendes)
   ================================================================ */
.product-band { background: var(--cream-light); padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.product-band .pb-head { text-align: center; max-width: 640px; margin: 0 auto clamp(26px, 3vw, 40px); }
.product-band .pb-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--green-dark); /* A2 : 6:1 */
}
.product-band .pb-title { font-size: clamp(24px, 3vw, 34px); font-weight: 600; color: var(--green-title);
  letter-spacing: -.4px; margin-top: 10px; line-height: 1.12; text-wrap: balance; }
.product-band .pb-sub { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.55; color: var(--ink-soft);
  margin: 12px auto 0; max-width: 50ch; }
.product-band .pb-frame { max-width: 1040px; margin: 0 auto; }
.pb-cap {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 16px; font-size: 12.5px; color: var(--ink-soft); /* A2 : légende réelle, 6:1 */
}
.pb-cap .material-symbols-outlined { font-size: 16px; color: var(--olive); }

/* phone caption used inside step visuals */
.step-visual .frame-cap {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; font-size: 12px; color: var(--ink-soft); /* A2 : légende réelle, 6:1 */
}
.step-visual .frame-cap .material-symbols-outlined { font-size: 15px; color: var(--olive); }
.step-visual .ph { margin-top: 2px; }

/* the visual column may now hold real frames — keep them from overflowing */
.step-visual .bz, .step-visual .ph { max-width: 100%; }

/* ================================================================
   VUE — CARTE (photo aérienne réelle + chrome flottant, style P1)
   ================================================================ */
.pv-map2 { position: relative; width: 100%; aspect-ratio: 3 / 2; background: #6c8054; overflow: hidden; }
.pv-map2 .map-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-map2 .map-vec { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.pv-map2 .vec-zlabels text { font-family: var(--font); font-weight: 700; font-size: 15px; letter-spacing: 1px; }

/* recherche — haut gauche */
.m2-search {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 6px 0 14px; background: var(--paper); border-radius: 999px;
  box-shadow: var(--shadow-2); font-size: 13px; color: var(--pv-faint); max-width: 320px;
}
.m2-search > .material-symbols-outlined { font-size: 18px; color: var(--olive); }
.m2-search .loc { width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--olive-light); color: var(--green-deep); }
.m2-search .loc .material-symbols-outlined { font-size: 16px; }
.m2-search .m2-search-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* sélecteur de fond — haut droite */
.m2-basemap {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; background: var(--paper); border-radius: 12px;
  box-shadow: var(--shadow-2); font-size: 12.5px; font-weight: 700; color: var(--green-dark);
}
.m2-basemap > .material-symbols-outlined { font-size: 18px; color: var(--olive); }
.m2-basemap .chev { font-size: 18px; color: var(--pv-faint); }
.m2-compass {
  position: absolute; top: 64px; right: 14px; z-index: 4;
  width: 38px; height: 38px; border-radius: 50%; background: var(--paper);
  box-shadow: var(--shadow-2); display: grid; place-items: center; color: var(--pv-alert);
}
.m2-compass .material-symbols-outlined { font-size: 20px; }

/* panneau calques — gauche */
.m2-layers {
  position: absolute; top: 66px; left: 14px; z-index: 4; width: 206px;
  background: var(--paper); border-radius: 16px; box-shadow: var(--shadow-3); padding: 12px;
}
.m2-layers .ml-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  color: var(--green-title); margin-bottom: 6px; }
.m2-layers .ml-h .material-symbols-outlined { font-size: 17px; color: var(--olive); }
.m2-fam { font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--pv-faint); margin: 9px 4px 5px; }
.m2-type { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--green-dark); }
.m2-type .sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.m2-type .nm { flex: 1; }
.m2-type .ct { font-size: 10.5px; color: var(--pv-faint); font-weight: 700; }
.m2-type .tg { width: 30px; height: 17px; border-radius: 999px; background: var(--olive);
  position: relative; flex: none; transition: background .2s; }
.m2-type .tg::after { content: ""; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; }
.m2-type.off { color: var(--pv-faint); }
.m2-type.off .tg { background: #cdd0bf; }
.m2-type.off .tg::after { right: auto; left: 2px; }

/* échelle + attribution — bas gauche */
.m2-scale { position: absolute; left: 14px; bottom: 14px; z-index: 4; display: flex; flex-direction: column; gap: 5px; }
.m2-scalebar { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.m2-scalebar .bar { width: 54px; height: 6px; border: 1.5px solid #fff; border-top: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.m2-attrib { font-size: 9.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); opacity: .92; }

/* panneau de sélection — bas droite */
.m2-fiche { position: absolute; right: 14px; bottom: 14px; z-index: 5; width: 250px;
  background: var(--paper); border: 1px solid var(--pv-line); border-radius: 16px;
  box-shadow: var(--shadow-3); overflow: hidden; }
.m2-fiche .mf-illu { height: 78px; background: linear-gradient(155deg, #dcebbe, #c2da92);
  display: grid; place-items: center; position: relative; }
.m2-fiche .mf-illu > .material-symbols-outlined { font-size: 42px; color: var(--green-deep); }
.m2-fiche .mf-ref { position: absolute; top: 8px; left: 10px; font-size: 9.5px; font-weight: 700;
  color: var(--green-deep); background: rgba(255,255,255,.85); border-radius: 999px; padding: 2px 8px; }
.m2-fiche .mf-vedette { position: absolute; top: 8px; right: 10px; display: inline-flex; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: 700; color: #6c3a00; background: rgba(255,236,193,.95);
  border-radius: 999px; padding: 2px 8px; }
.m2-fiche .mf-vedette .material-symbols-outlined { font-size: 12px; font-variation-settings: "FILL" 1; color: #cf9a5a; }
.m2-fiche .mf-body { padding: 11px 13px 13px; }
.m2-fiche .mf-name { font-size: 14px; font-weight: 700; color: var(--green-title); line-height: 1.2; }
.m2-fiche .mf-sp { font-size: 11.5px; font-style: italic; color: var(--pv-soft); margin-top: 2px; }
.m2-fiche .mf-attrs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.m2-fiche .mf-attrs .a { font-size: 10px; font-weight: 600; color: var(--pv-soft);
  background: var(--cream); border-radius: 999px; padding: 2px 8px; }
.m2-fiche .mf-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px;
  padding-top: 10px; border-top: 1px solid var(--pv-line); }
.m2-fiche .mf-link { font-size: 11px; font-weight: 700; color: var(--green-deep);
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.m2-fiche .mf-link .material-symbols-outlined { font-size: 14px; }

/* responsive : on garde la photo lisible (recadrée), on masque les panneaux secondaires */
@media (max-width: 820px) {
  .pv-map2 { aspect-ratio: 4 / 3; }
  .m2-layers, .m2-compass, .m2-basemap { display: none; }
  .m2-fiche { width: 200px; right: 10px; bottom: 10px; }
  .m2-search { max-width: 190px; }
  .m2-search .m2-search-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 480px) {
  .pv-map2 { aspect-ratio: 1 / 1; }
  .m2-fiche { width: 170px; }
}
