/* ============================================================
   HYDREVAL — Page Industriels (refonte)
   Découpage en blocs nets, fond apaisé, cartes solides & lisibles.
   Scopé sous body.page-clean pour ne pas affecter les autres pages.
   ============================================================ */

/* ---- Fond apaisé pour la lisibilité (l'aurora reste, en sourdine) ---- */
body.page-clean .aurora { opacity: .42; }
body.page-clean .grain  { opacity: .025; }

/* ---- Bascule secteur : un seul panneau visible à la fois ---- */
[hidden] { display: none !important; }

/* Sélecteur de secteur (façon onglets de la référence) */
.sector-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 100px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 12px 32px -16px rgba(12,18,48,.45); }
.sector-tab { font-family: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; border: 0;
  background: transparent; color: var(--ink-soft); padding: 10px 20px; border-radius: 100px;
  transition: color .25s, background .25s, box-shadow .25s; white-space: nowrap; }
.sector-tab:hover { color: var(--ink); }
.sector-tab[aria-selected="true"] { color: #fff; background: var(--brand-grad); box-shadow: 0 8px 20px -10px rgba(70,20,255,.6); }
.hero-switch { display: flex; justify-content: flex-end; margin-bottom: 8px; }
@media (max-width: 600px) { .hero-switch { justify-content: flex-start; } .sector-switch { width: 100%; } .sector-tab { flex: 1; padding: 10px 8px; } }

/* ---- Espacement de section un peu plus contenu (moins de scroll, même air) ---- */
body.page-clean .section-pad { padding-block: clamp(108px, 13vw, 200px); }

/* ---- Eyebrow façon référence : pastille losange + libellé ---- */
.eyebrow-dot { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--magenta); }
.eyebrow-dot::before { content: ""; width: 9px; height: 9px; background: var(--magenta); border-radius: 2px; transform: rotate(45deg); }

/* ---- Carte nette (solide, hairline border) : remplace le glass lourd ---- */
.card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(12,18,48,.08);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 44px -30px rgba(12,18,48,.4);
}

/* ============================================================
   HERO — bloc de présentation clair
   ============================================================ */
.hero-clean { padding-top: clamp(132px, 15vw, 196px); }
.hero-clean .back-link { display: inline-flex; margin-bottom: 18px; }
.hero-tag-row { margin-bottom: 18px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-clean h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); margin: 18px 0 20px; }
.hero-clean .lead { max-width: 36ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Visuel hero : panneau dégradé doux + anneaux concentriques (géométrie simple) */
.ring-panel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 380px; display: grid; place-items: stretch center; padding: 34px;
  background:
    radial-gradient(120% 90% at 75% 12%, rgba(249,21,255,.16), transparent 55%),
    radial-gradient(120% 100% at 15% 95%, rgba(0,0,255,.14), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.5));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 26px 60px -34px rgba(70,20,255,.5);
}
.rings { position: relative; width: 230px; height: 230px; display: grid; place-items: center; }
.rings i { position: absolute; border-radius: 50%; }
.rings .r1 { width: 230px; height: 230px; border: 2px solid rgba(106,43,255,.30); }
.rings .r2 { width: 150px; height: 150px; border: 2px solid rgba(106,43,255,.48); }
.rings .core { width: 56px; height: 56px; background: var(--brand-grad); box-shadow: 0 12px 34px -8px rgba(106,43,255,.65), inset 0 2px 6px rgba(255,255,255,.5); }
.rings .r1, .rings .r2 { animation: ringPulse 5.5s var(--ease) infinite; }
.rings .r2 { animation-delay: .6s; }
@keyframes ringPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: .7; } }
.ring-cap {
  position: absolute; left: 18px; bottom: 18px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .72rem; letter-spacing: .04em;
  color: var(--ink-soft); background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9);
  padding: 7px 13px; border-radius: 100px;
}

/* Bandeau de stats intégré au hero (remplace la section Constat) */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 40px; border-top: 1px solid var(--line);
}
.stat-strip .s strong { display: block; font-size: clamp(2.3rem, 3.6vw, 3.1rem); font-weight: 700; line-height: 1; }
.stat-strip .s p { margin: 12px 0 0; color: var(--ink-soft); font-size: .96rem; max-width: 30ch; }

/* ============================================================
   BLOC-PHARE — « Ce que nous faisons » (recréation référence)
   panneau visuel + 4 cartes numérotées + ligne de process
   ============================================================ */
.svc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px 44px; margin-bottom: 40px; flex-wrap: wrap; }
.svc-head h2 { max-width: 16ch; margin-top: 14px; }
.svc-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.svc-head-side .svc-intro { margin: 0; }
.sector-switch-sm { padding: 4px; }
.sector-switch-sm .sector-tab { padding: 8px 16px; font-size: .86rem; }
@media (max-width: 760px) {
  .svc-head-side { align-items: flex-start; width: 100%; }
  .sector-switch-sm { width: 100%; }
  .sector-switch-sm .sector-tab { flex: 1; padding: 9px 6px; }
}
.svc-intro { max-width: 40ch; color: var(--ink-soft); font-size: 1.02rem; }
.svc-intro .tag-mini { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); background: rgba(249,21,255,.08); border: 1px solid rgba(249,21,255,.18); padding: 5px 12px; border-radius: 100px; margin-bottom: 14px; }

.svc-block { display: grid; grid-template-columns: .82fr 1.18fr; gap: 26px; align-items: stretch; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.svc-card { position: relative; padding: 30px 30px 32px; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -28px rgba(70,20,255,.4), 0 6px 16px -8px rgba(249,21,255,.28); }
.svc-num { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--magenta); }
.svc-ico { position: absolute; top: 26px; right: 26px; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(106,43,255,.07); border: 1px solid rgba(106,43,255,.18); display: grid; place-items: center; }
.svc-ico i { width: 13px; height: 13px; background: var(--brand-grad); border-radius: 50%; }
.svc-ico.diamond i { border-radius: 3px; transform: rotate(45deg); }
.svc-ico.pill i { width: 17px; height: 9px; border-radius: 100px; }
.svc-ico.drop i { border-radius: 50% 50% 50% 4px; transform: rotate(45deg); }
.svc-card h3 { margin: 0 0 12px; font-size: 1.22rem; line-height: 1.15; }
.svc-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }

/* ---- Logigrammes uniformes + apparition temporisée (repris de l'accueil) ---- */
.svc-card .svc-ico { position: static; top: auto; right: auto; margin-bottom: 16px; animation: icoPulse 3.6s var(--ease) infinite; }
@keyframes icoPulse { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.06); } }
html.anim .proc-step { opacity: 0; }
html.anim .proc-step.in { animation: procIn .6s var(--ease) both; }
html.anim .proc-row .proc-step:nth-child(1).in { animation-delay: 0s; }
html.anim .proc-row .proc-step:nth-child(2).in { animation-delay: .16s; }
html.anim .proc-row .proc-step:nth-child(3).in { animation-delay: .32s; }
html.anim .proc-row .proc-step:nth-child(4).in { animation-delay: .48s; }
@keyframes procIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .svc-card .svc-ico { animation: none; }
  html.anim .proc-step { opacity: 1; }
}

/* Ligne de process (4 temps) — top-line + dot façon référence */
.proc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: clamp(40px, 5vw, 60px); }
.proc-step { position: relative; border-top: 1.5px solid rgba(12,18,48,.20); padding-top: 22px; }
.proc-step::before { content: ""; position: absolute; top: -6.5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 4px rgba(249,21,255,.12); }
.proc-step .k { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); }
.proc-step h4 { margin: 12px 0 8px; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.proc-step p { margin: 0; color: var(--ink-faint); font-size: .9rem; line-height: 1.55; }

/* ============================================================
   PSH — bénéfices (outil de pilotage, consolidé)
   ============================================================ */
.psh-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: center; }
.benefit-check { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; list-style: none; padding: 0; margin: 0; }
.benefit-check li { display: flex; gap: 13px; align-items: flex-start; font-size: 1.02rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
.benefit-check .bc-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-grad); display: grid; place-items: center; margin-top: 1px; box-shadow: 0 6px 14px -6px rgba(70,20,255,.6); }
.benefit-check .bc-ico::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(0, -1px); }

.psh-sites { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.psh-sites .chip { font-size: .86rem; }

/* ---- Footer sans coordonnées : 3 colonnes ---- */
body.page-clean .footer-grid { grid-template-columns: 1.8fr 1fr 1fr; }
@media (max-width: 860px) { body.page-clean .footer-grid { grid-template-columns: 1fr 1fr; } }
/* Sur mobile, une seule colonne — sinon la règle ci-dessus garde 2 colonnes
   et l'emporte sur celle de site.css (sélecteur plus spécifique) */
@media (max-width: 560px) { body.page-clean .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---- Références (marquee) — styles manquants sur les pages secteur ---- */
.trust { padding-block: 20px 10px; text-align: center; }
.trust-label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 28px; font-weight: 600; }
.logo-ph { min-height: 96px; opacity: .9; }
.marquee .logo-ph { width: 264px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid, .svc-block, .psh-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr; gap: 22px; }
  .stat-strip .s { display: flex; align-items: baseline; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
  .stat-strip .s:first-child { border-top: 0; padding-top: 0; }
  .stat-strip .s p { margin: 0; max-width: none; }
  .ring-panel { min-height: 300px; }
  .proc-row { grid-template-columns: 1fr 1fr; gap: 30px 28px; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
  .proc-row { grid-template-columns: 1fr; }
  .benefit-check { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION CONTACT — bandeau sombre + formulaire (remplace le CTA)
   ============================================================ */
.contact-band {
  background: linear-gradient(180deg, #161d42 0%, #0c1230 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 36px 80px -36px rgba(12,18,48,.6);
  padding: clamp(30px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(30px, 4vw, 56px); align-items: center;
}
/* Les enfants de grille ne rétrécissent pas sous leur contenu par défaut
   (min-width:auto) : le widget hCaptcha (302px fixes) faisait déborder
   le formulaire du bandeau sur mobile. */
.contact-band > * { min-width: 0; }
.contact-info .eyebrow-dot { color: var(--magenta); }
.contact-info h2 { color: #fff; margin: 14px 0 16px; }
.contact-info > p { color: rgba(255,255,255,.62); max-width: 42ch; margin: 0; }
.contact-rows { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-rows li { display: flex; gap: 15px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.contact-rows li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-rows .ci { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-grad); flex: none; box-shadow: 0 6px 14px -4px rgba(106,43,255,.7); }
.contact-rows .k { display: block; font-family: ui-monospace, Menlo, monospace; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.contact-rows .v { display: block; color: #fff; font-weight: 600; font-size: .95rem; margin-top: 3px; }

.contact-form { background: rgba(255,255,255,.98); border-radius: 20px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 70px -30px rgba(12,18,48,.6); }
.contact-band { scroll-margin-top: 100px; }
.contact-form { scroll-margin-top: 100px; }
/* Sur fond sombre, le bleu pur du dégradé standard manque de contraste : variante plus claire. */
.contact-band .grad-text { background: linear-gradient(118deg, #5A7CFF 0%, #A25CFF 50%, #F915FF 100%); -webkit-background-clip: text; background-clip: text; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-full { grid-column: 1 / -1; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-lbl { font-family: ui-monospace, Menlo, monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.cf-lbl i { color: var(--magenta); font-style: normal; }
.cf-field input, .cf-field select, .cf-field textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink); width: 100%;
  background: rgba(12,18,48,.035); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cf-field textarea { resize: vertical; min-height: 104px; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--ink-faint); }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(0,0,255,.1); }
.cf-consent { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0 18px; font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
.cf-consent input { margin-top: 1px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.cf-consent i { color: var(--magenta); font-style: normal; }
.cf-consent a { color: var(--blue); }
.h-captcha { margin: 0 0 18px; max-width: 100%; }
.cf-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 16px 22px; }
.cf-foot { text-align: center; margin: 14px 0 0; font-size: .82rem; color: var(--ink-faint); }
.cf-done { text-align: center; padding: 18px 6px; }
.cf-done-ic { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.5rem; background: var(--brand-grad); box-shadow: 0 12px 28px -10px rgba(70,20,255,.6); }
.cf-done h3 { margin: 0 0 8px; }
.cf-done p { margin: 0 0 22px; color: var(--ink-soft); }

@media (max-width: 900px) { .contact-band { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cf-grid { grid-template-columns: 1fr; } }

/* ============================================================
   VRAIES IMAGES dans les placeholders + logos clients
   ============================================================ */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.ph picture { position: absolute; inset: 0; display: block; }
.ph:has(img) { background: #0c1230; }
.ph:has(img)::before { display: none; }

.logo-real { display: flex; align-items: center; justify-content: center; padding: 18px 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 26px -20px rgba(12,18,48,.45); overflow: hidden; }
.logo-real img { max-height: 70px; max-width: 196px; object-fit: contain; display: block; }
.logo-real > a { display: contents; }
/* Soléau : logo en hauteur (emblème + mot) → on autorise plus de hauteur */
.logo-real.logo-soleau img { max-height: 86px; max-width: 130px; }
/* Grand Hôtel du Parc : logo beige clair et étroit → on le fonce et l'agrandit pour le rendre lisible */
.logo-real img.logo-ghp { max-height: 92px; max-width: 120px; filter: brightness(.4) saturate(1.5) contrast(1.28); }

/* ============================================================
   HERO — photo d'illustration du secteur (remplace les anneaux)
   ============================================================ */
.hero-photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px;
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 26px 60px -34px rgba(70,20,255,.5); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo picture { position: absolute; inset: 0; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,18,48,0) 52%, rgba(12,18,48,.34)); }
.hero-photo .ring-cap { z-index: 2; color: #fff; background: rgba(12,18,48,.42);
  border-color: rgba(255,255,255,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ============================================================
   DIAGRAMMES « Ce que nous faisons » (Sankey · carte · plan)
   Partagés avec l'accueil ; agrandis dans les pages secteur via .diagram-panel
   ============================================================ */
.sankey, .cmap { width: 100%; max-width: 520px; display: flex; flex-direction: column; }
.sankey-canvas { flex: 1; min-height: 0; display: flex; }
.sankey svg { width: 100%; height: 100%; flex: 1; min-height: 0; display: block; overflow: visible; }
.cmap svg { width: 100%; height: auto; display: block; overflow: visible; }
.sankey .s-ribbon { opacity: .8; }
.sankey .s-flow { fill: none; stroke: rgba(255,255,255,.5); stroke-linecap: round;
  stroke-dasharray: 4 17; animation: sankeyFlow 1.6s linear infinite; pointer-events: none; }
.sankey .s-node { transition: filter .3s var(--ease); }
.sankey .s-label, .cmap .m-label { font-family: var(--font-sans, system-ui, sans-serif); fill: var(--ink);
  paint-order: stroke; stroke: #fff; stroke-width: 4.4px; stroke-linejoin: round; stroke-linecap: round; }
.sankey .s-name { font-size: 13.5px; font-weight: 800; }
.sankey .s-val { font-size: 12px; font-weight: 800; }
.sankey .s-mid { font-size: 13px; font-weight: 800; fill: var(--ink); stroke-width: 5.2px; }
.sankey .s-group { transition: opacity .25s var(--ease); }
.sankey.dimmed .s-group:not(.is-active) { opacity: .14; }

/* bascule Avant / Après recyclage (diagramme Industriels) */
.sankey:has(.sankey-toggle) { display: flex; flex-direction: column; align-items: center; }
.sankey-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 100px; margin: 0 auto 14px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 12px 30px -16px rgba(12,18,48,.42); }
.skt { font-family: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; border: 0;
  background: transparent; color: var(--ink-soft); padding: 8px 18px; border-radius: 100px;
  transition: color .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.skt:hover { color: var(--ink); }
.skt.active { color: #fff; background: var(--brand-grad); box-shadow: 0 8px 20px -10px rgba(70,20,255,.6); }
.sankey-canvas { width: 100%; }

/* —— Bloc preuves : prélèvement cumulé vs seuil ICPE (site industriel) —— */
.prv-panel { padding: 26px 26px 22px; }
.prv-panel-head { margin-bottom: 6px; }
.prv-eyebrow { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.prv-panel-title { font-size: clamp(1.15rem, 2.1vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.prv-chart-wrap { display: flex; flex-direction: column; align-items: center; }
.prv-toggle { margin: 16px auto 6px; }
.prv-chart { width: 100%; height: auto; overflow: visible; display: block; }
.prv-grid { stroke: rgba(12,18,48,.10); stroke-width: 1; }
.prv-ylab, .prv-xlab { fill: var(--ink-faint); font-size: 12px; font-family: var(--font-sans, system-ui, sans-serif); font-weight: 600; }
.prv-bar { transition: opacity .2s var(--ease, ease); }
.prv-save { opacity: .9; }
.prv-limit { stroke: #E5484D; stroke-width: 2; stroke-dasharray: 7 5; }
.prv-limit-lab { fill: #E5484D; font-size: 12px; font-weight: 700; font-family: var(--font-sans, system-ui, sans-serif); }
.prv-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 14px; }
.prv-leg { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.prv-leg i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.prv-leg-line { width: 16px; height: 0; border-top: 2px dashed #E5484D; border-radius: 0; }
.prv-status { display: inline-flex; align-items: center; gap: 9px; margin: 16px auto 0; padding: 9px 18px; border-radius: 100px;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em; }
.prv-status b { font-weight: 800; }
.prv-status .prv-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.prv-status.is-bad { background: rgba(229,72,77,.10); color: #C0353A; }
.prv-status.is-bad .prv-dot { background: #E5484D; }
.prv-status.is-good { background: rgba(31,169,122,.12); color: #157A57; }
.prv-status.is-good .prv-dot { background: #1FA97A; }
@media (max-width: 620px) {
  .prv-panel { padding: 18px 14px 16px; }
  .prv-limit-lab { font-size: 11px; }
  .prv-status { font-size: .82rem; padding: 8px 14px; text-align: center; }
}
@keyframes sankeyFlow { to { stroke-dashoffset: -42; } }

.cmap { padding: 0; }
.cmap-leaflet { width: 100%; height: 100%; min-height: 380px; flex: 1; border-radius: var(--radius, 20px); overflow: hidden;
  transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(white, black); isolation: isolate;
  border: 1px solid rgba(255,255,255,.85); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 26px 60px -34px rgba(70,20,255,.5); background: #e8eef5; }
.cmap .leaflet-container { font-family: var(--font-sans, system-ui, sans-serif); background: #e8eef5; border-radius: var(--radius, 20px); }
.cmap .leaflet-control-attribution { font-size: 9px; background: rgba(255,255,255,.7); }
.cmap .leaflet-attribution-flag { display: none !important; }
.cmap-pin { background: none; border: 0; }
.cmap-pin-i { display: block; position: relative; width: 22px; height: 22px; margin: 3px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--brand-grad); border: 2px solid #fff; box-shadow: 0 6px 14px -4px rgba(106,43,255,.75); }
.cmap-pin-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); }
.cmap-pop .leaflet-popup-content-wrapper { border-radius: 16px; padding: 4px 6px; box-shadow: 0 18px 44px -18px rgba(12,18,48,.55); border: 1px solid rgba(255,255,255,.9); }
.cmap-pop .leaflet-popup-content { margin: 12px 14px; width: 210px !important; }
.cmap-pop .leaflet-popup-tip { box-shadow: 0 14px 30px -16px rgba(12,18,48,.5); }
.cp-title { margin: 0 0 9px; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.cp-row { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; line-height: 1.35; color: var(--ink-soft); margin-bottom: 7px; }
.cp-row.cp-vol { color: var(--ink); }
.cp-row.cp-vol b { font-weight: 800; }
.cp-ic { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 5px; margin-top: 1px; background: var(--brand-grad); }
.cp-ic-v { background: linear-gradient(135deg, #19A8E8, #6A2BFF); }
/* jauge d'atteinte de l'objectif d'économie d'eau */
.cp-gauge { margin: 11px 0 13px; padding: 11px 12px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(106,43,255,.05), rgba(249,21,255,.045)); border: 1px solid rgba(106,43,255,.12); }
.cp-gauge-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-bottom: 8px; }
.cp-gauge-top span { font-size: .72rem; font-weight: 600; color: var(--ink-soft); max-width: 60%; line-height: 1.2; }
.cp-gauge-pct { font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -.02em;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-gauge-pct small { font-size: .8rem; font-weight: 700; margin-left: 1px; }
.cp-gauge-track { position: relative; height: 9px; border-radius: 100px; background: rgba(12,18,48,.10);
  overflow: hidden; box-shadow: inset 0 1px 2px rgba(12,18,48,.12); }
.cp-gauge-track i { display: block; height: 100%; border-radius: 100px; background: var(--brand-grad);
  box-shadow: 0 1px 5px -1px rgba(106,43,255,.7), inset 0 1px 0 rgba(255,255,255,.45); transition: width .7s var(--ease, ease); }
.cp-gauge-sub { margin-top: 7px; font-size: .7rem; color: var(--ink-faint); }
.cp-gauge-sub b { color: var(--ink-soft); font-weight: 700; }
/* bouton « Voir le plan d'action » */
.cp-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 2px; text-decoration: none;
  padding: 8px 13px; border: 0; border-radius: 100px; font: inherit; font-size: .78rem; font-weight: 700; color: #fff;
  background: var(--brand-grad); cursor: pointer; box-shadow: 0 9px 20px -10px rgba(70,20,255,.7);
  transition: transform .15s var(--ease, ease), box-shadow .15s var(--ease, ease); }
.cp-action:hover { transform: translateY(-1px); box-shadow: 0 13px 24px -10px rgba(70,20,255,.8); }
.cp-action:active { transform: translateY(0); }
/* texte en blanc — bat la couleur de lien par défaut de Leaflet (.leaflet-container a) */
.cmap-pop a.cp-action, .cmap-pop a.cp-action:hover, .cmap-pop a.cp-action:visited,
.cmap-pop a.cp-action:focus { color: #fff; }
.cp-action .cp-action-ic { width: 14px; height: 14px; flex: 0 0 auto; transition: transform .15s var(--ease, ease); }
.cp-action:hover .cp-action-ic { transform: translateX(2px); }

.cplan { width: 100%; max-width: 520px; display: flex; flex-direction: column; }
.cplan svg { width: 100%; height: 100%; flex: 1; min-height: 0; display: block; overflow: visible; }
.cplan .pl-unit { font-family: var(--font-sans, system-ui, sans-serif); font-size: 13px; font-weight: 700; fill: rgba(12,18,48,.62);
  paint-order: stroke; stroke: rgba(255,255,255,.92); stroke-width: 3px; stroke-linejoin: round; }
.cplan .pl-leg { font-family: var(--font-sans, system-ui, sans-serif); font-size: 12px; font-weight: 700; fill: var(--ink);
  paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.cplan .pl-floor { font-family: var(--font-sans, system-ui, sans-serif); font-size: 11.5px; font-weight: 800; fill: var(--ink);
  paint-order: stroke; stroke: #fff; stroke-width: 3.6px; stroke-linejoin: round; }
.cplan .pl-treat-l { font-family: var(--font-sans, system-ui, sans-serif); font-size: 9px; font-weight: 800; fill: #fff; }
.cplan .pl-cuve { font-family: var(--font-sans, system-ui, sans-serif); font-size: 9px; font-weight: 700; fill: #138a62; }
.cplan .pl-pipe { stroke-width: 6; stroke-linecap: round; opacity: .22; }
.cplan .grey-base { stroke: #A9925A; }
.cplan .reuse-base { stroke: #1FA97A; }
.cplan .pl-flow { stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 11; animation: planFlow 1.3s linear infinite; }
.cplan .grey { stroke: #A9925A; }
.cplan .reuse { stroke: #1FA97A; }
@keyframes planFlow { to { stroke-dashoffset: -34; } }
@media (prefers-reduced-motion: reduce) { .sankey .s-flow, .cplan .pl-flow { animation: none; } }

/* —— Pages secteur : illustration élargie + carte flip à droite —— */
.svc-block:has(.diagram-panel) { grid-template-columns: minmax(0, 1fr) 360px; }
.diagram-panel { padding: 28px; }
.diagram-panel .sankey, .diagram-panel .cplan, .diagram-panel .cmap { max-width: 100%; }
.diagram-panel .cmap-leaflet { height: 460px; }
.diagram-panel .ring-cap { left: 22px; bottom: 22px; }
@media (max-width: 980px) {
  .hero-photo { min-height: 300px; }
  .svc-block:has(.diagram-panel) { grid-template-columns: 1fr; }
  .diagram-panel .sankey, .diagram-panel .cplan { max-width: 520px; margin-inline: auto; }
  .svc-deck { max-width: 380px; margin-inline: auto; width: 100%; }
}

/* —— Simulateur financier (Immobilier) —— */
.cplan:has(.fin-chart) { max-width: 640px; }
.diagram-panel .cplan:has(.fin-chart) { max-width: 100%; }
.fin-ctrl { margin-bottom: 26px; padding: 15px 17px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(106,43,255,.055), rgba(249,21,255,.05)); border: 1px solid rgba(106,43,255,.13); }
.fin-ctrl-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 13px; }
.fin-ctrl-lab { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.fin-ctrl-val { font-size: .82rem; color: var(--ink-faint); font-weight: 600; }
.fin-ctrl-val b { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin-right: 2px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fin-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 100px; outline: none;
  background: linear-gradient(90deg, #5430E8, #B324E8) no-repeat, rgba(12,18,48,.12);
  background-size: var(--fill, 0%) 100%, 100% 100%; cursor: pointer; box-shadow: inset 0 1px 2px rgba(12,18,48,.14); }
.fin-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid #6A2BFF; box-shadow: 0 4px 12px -2px rgba(70,20,255,.65), 0 0 0 4px rgba(106,43,255,.14);
  cursor: pointer; transition: transform .12s var(--ease, ease), box-shadow .12s var(--ease, ease); }
.fin-slider::-webkit-slider-thumb:hover { transform: scale(1.12); box-shadow: 0 5px 14px -2px rgba(70,20,255,.75), 0 0 0 6px rgba(106,43,255,.18); }
.fin-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #6A2BFF;
  box-shadow: 0 4px 12px -2px rgba(70,20,255,.65), 0 0 0 4px rgba(106,43,255,.14); cursor: pointer; }
.fin-ctrl-scale { display: flex; justify-content: space-between; margin-top: 9px; font-size: .7rem; font-weight: 600; color: var(--ink-faint); }
.fin-chart { width: 100%; height: auto; display: block; overflow: visible; margin-top: 4px; }
.fin-grid { stroke: rgba(12,18,48,.08); stroke-width: 1; }
.fin-axis0 { stroke: rgba(12,18,48,.32); stroke-width: 1.2; }
.fin-ylab { font-family: var(--font-sans, system-ui, sans-serif); font-size: 11px; font-weight: 600; fill: var(--ink-faint); }
.fin-xlab { font-family: var(--font-sans, system-ui, sans-serif); font-size: 11.5px; font-weight: 700; fill: var(--ink-soft); }
.fin-bar { transition: y .35s var(--ease, ease), height .35s var(--ease, ease); }
.fin-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-top: 14px; }
.fin-leg { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.fin-leg i { width: 13px; height: 13px; border-radius: 3px; flex: 0 0 auto; }
.fin-pay { margin-top: 11px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--ink);
  padding: 7px 14px; border-radius: 100px; background: rgba(84,48,232,.07); display: inline-block; margin-inline: auto; }
.fin-pay { display: block; width: fit-content; }
.fin-note { margin-top: 12px; text-align: center; font-size: .68rem; color: var(--ink-faint); line-height: 1.4; }

/* —— Modale « plan d'action » (depuis la carte Collectivités) —— */
.plan-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease); }
.plan-modal.open { opacity: 1; pointer-events: auto; }
.plan-backdrop { position: absolute; inset: 0; background: rgba(12,18,48,.42);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.plan-card { position: relative; width: min(480px, 100%); max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 22px; padding: 34px 34px 32px;
  box-shadow: 0 40px 90px -30px rgba(12,18,48,.6); border: 1px solid rgba(255,255,255,.9);
  transform: translateY(14px) scale(.98); transition: transform .32s var(--ease); }
.plan-modal.open .plan-card { transform: none; }
.plan-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(12,18,48,.06); color: var(--ink-soft); font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, color .2s; }
.plan-close:hover { background: rgba(12,18,48,.12); color: var(--ink); }
.plan-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); }
.plan-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand-grad); }
.plan-title { margin: 10px 0 4px; font-size: 1.6rem; letter-spacing: -.02em; }
.plan-lever { font-size: .95rem; color: var(--ink-soft); margin-bottom: 18px; }
.plan-gauge { margin-bottom: 22px; }
.plan-gauge-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.plan-gauge-top span { font-size: .8rem; font-weight: 600; color: var(--ink-faint); }
.plan-gauge-top b { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.plan-gauge-track { height: 8px; border-radius: 100px; background: rgba(12,18,48,.09); overflow: hidden; }
.plan-gauge-track i { display: block; height: 100%; border-radius: 100px; background: var(--brand-grad);
  box-shadow: 0 1px 5px -1px rgba(106,43,255,.6); }
.plan-gauge-sub { margin-top: 6px; font-size: .76rem; color: var(--ink-faint); }
.plan-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.plan-step { display: flex; gap: 14px; align-items: flex-start; }
.plan-step-n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-grad); color: #fff;
  font-size: .82rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(70,20,255,.6); }
.plan-step h5 { margin: 3px 0 4px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.plan-step p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }

/* —— Carte « leviers » à retournement (pages secteur, remplace la grille 2×2) —— */
.svc-grid-wrap.has-deck .svc-grid { display: none; }
.svc-deck { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.svc-deck-flip { position: relative; flex: 1 1 auto; min-height: 384px; perspective: 1600px;
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: left;
  -webkit-tap-highlight-color: transparent; }
.svc-deck-flip:focus-visible { outline: 2px solid var(--magenta); outline-offset: 4px; border-radius: 28px; }
.svc-deck-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.45,.05,.2,1); }
.svc-deck-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 26px; padding: 24px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.84));
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 64px -30px rgba(12,18,48,.5); }
.svc-deck-face.face-b { transform: rotateY(180deg); }
.svc-deck-flip:hover .svc-deck-face { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 38px 72px -28px rgba(70,20,255,.5); }

.sd-hero { position: relative; flex: 0 0 auto; height: 44%; min-height: 152px; border-radius: 18px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, rgba(0,0,255,.10), rgba(106,43,255,.10) 55%, rgba(249,21,255,.12)); }
.sd-num { position: absolute; top: 14px; left: 14px; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--brand-grad);
  padding: 5px 11px; border-radius: 9px; box-shadow: 0 8px 18px -8px rgba(70,20,255,.7); }
.sd-ico { width: 66px; height: 66px; border-radius: 19px; background: rgba(255,255,255,.72);
  border: 1px solid rgba(106,43,255,.2); display: grid; place-items: center;
  box-shadow: 0 16px 32px -16px rgba(70,20,255,.55); }
.sd-ico i { width: 24px; height: 24px; background: var(--brand-grad); border-radius: 50%; }
.sd-ico.diamond i { border-radius: 5px; transform: rotate(45deg); }
.sd-ico.pill i { width: 30px; height: 16px; border-radius: 100px; }
.sd-ico.drop i { border-radius: 50% 50% 50% 6px; transform: rotate(45deg); }
.sd-meta { flex: 1 1 auto; min-height: 0; padding: 20px 4px 0; display: flex; flex-direction: column; gap: 11px; }
.sd-title { font-size: 1.42rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--ink); }
.sd-desc { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }

.svc-deck-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 4px; }
.sd-dots { display: flex; gap: 8px; }
.sd-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(20,24,60,.18); cursor: pointer;
  transition: width .35s var(--ease), background .35s var(--ease); }
.sd-dot.active { width: 22px; border-radius: 5px; background: var(--brand-grad); }
.sd-hint { font-size: .78rem; color: var(--ink-faint); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.sd-hint .sd-spin { display: inline-block; animation: sdNudge 2.4s var(--ease) infinite; }
@keyframes sdNudge { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(20deg); } }
@media (prefers-reduced-motion: reduce) {
  .svc-deck-inner { transition: none; }
  .sd-hint .sd-spin { animation: none; }
}
