/* =========================================================
   NivoBac — site vitrine
   Polices auto-hébergées (SIL Open Font License)
   ========================================================= */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --night: #0A1613;
  --night-2: #0F201B;
  --map: #0D1C18;
  --ink: #1E2630;
  --ink-2: #3A4656;
  --muted: #5A6779;
  --line: #DFE7E3;
  --bg: #FBFCFB;
  --bg-soft: #F1F6F3;
  --g-700: #027E5C;
  --g-600: #088A64;
  --g-400: #43C189;
  --g-200: #AFE8CB;
  --g-50: #E4F6ED;
  --warn: #FAB219;
  --crit: #F0533A;
  --on-dark: #EAF3EF;
  --on-dark-muted: #A3B8AF;
  --line-dark: rgba(175, 232, 203, .14);
  --radius: 22px;
  --shadow-lg: 0 40px 80px -36px rgba(2, 40, 30, .55);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hdr-h: 72px;
  --focus: #027E5C;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (pointer: fine) { html { overscroll-behavior: none; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
p { text-wrap: pretty; }
a { color: var(--g-700); text-underline-offset: 3px; }
a:hover { color: #01573F; }
img, svg { display: block; }
button { font: inherit; }
sup { line-height: 0; }
::selection { background: rgba(67, 193, 137, .35); }

[id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.skip:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-glow { background: var(--g-400); color: #04140F; box-shadow: 0 10px 30px -12px rgba(67, 193, 137, .7); }
.btn-glow:hover { background: #62D7A2; color: #04140F; box-shadow: 0 0 0 4px rgba(67, 193, 137, .2), 0 14px 34px -10px rgba(67, 193, 137, .8); }
.btn-outline-dark { color: var(--on-dark); border-color: rgba(234, 243, 239, .24); background: rgba(255, 255, 255, .03); }
.btn-outline-dark:hover { color: #fff; border-color: rgba(234, 243, 239, .55); background: rgba(255, 255, 255, .08); }
.btn-ghost-dark { color: var(--on-dark); }
.btn-ghost-dark:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 999px; border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .04); color: var(--on-dark);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(175, 232, 203, .4); }
.icon-btn .ic { width: 16px; height: 16px; stroke-width: 2.2; }

/* ---------- En-tête ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--hdr-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
  --focus: #43C189;
}
.hdr.is-scrolled, .hdr.menu-open {
  background: rgba(10, 22, 19, .92);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line-dark);
}
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.hdr-bar { height: var(--hdr-h); display: flex; align-items: center; gap: 28px; }
.hdr-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; border-radius: 8px;
  --logo-stroke: #43C189; --wm-accent: #43C189;
}
.hdr-logo:hover { color: #fff; }
.logo-mark { width: 34px; height: 34px; }
.wordmark { width: 118px; height: 22px; }

.nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: rgba(234, 243, 239, .82); text-decoration: none;
  font-weight: 500; font-size: .94rem; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-cta { display: flex; gap: 8px; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: var(--on-dark);
  padding: calc(var(--hdr-h) + env(safe-area-inset-top) + clamp(40px, 6vw, 72px)) 0 clamp(72px, 9vw, 112px);
  --focus: #43C189;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 55% at 85% 5%, rgba(67, 193, 137, .22), transparent 65%),
    radial-gradient(45% 45% at 0% 100%, rgba(2, 126, 92, .38), transparent 70%),
    var(--night);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(175, 232, 203, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(175, 232, 203, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 78%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr);
  gap: clamp(32px, 3.6vw, 56px); align-items: center;
}
.hero h1 {
  margin: 0; color: #fff;
  font-size: clamp(2.4rem, 1.3rem + 2.9vw, 3.6rem);
  line-height: 1.03; letter-spacing: -0.035em;
}
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::before {
  content: ""; position: absolute; z-index: -1;
  left: -.04em; right: -.04em; top: .62em; bottom: .04em;
  border-radius: .1em;
  background: linear-gradient(90deg, rgba(67, 193, 137, .55), rgba(67, 193, 137, .18));
  transform-origin: 0 50%;
}
.hero-lead { margin: 24px 0 0; max-width: 34em; font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem); color: var(--on-dark-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-cta .btn { flex: 1 1 auto; padding-inline: 22px; }

/* ---------- Aperçu de l'application (hero) ----------
   Reproduit l'interface réelle : barre latérale, marqueurs ronds blancs à
   bordure verte / orange / rouge, popup « Remplissage », notification
   « Poubelle pleine détectée », panneau « Itinéraire Optimisé ». */
.appdemo { margin: 0; container-type: inline-size; --u: clamp(.86px, .1745cqw, 1.3px); }
.app-window {
  --s50: #f8fafc; --s100: #f1f5f9; --s200: #e2e8f0; --s300: #cbd5e1; --s400: #94a3b8;
  --s500: #64748b; --s600: #475569; --s700: #334155; --s900: #0f172a;
  position: relative; overflow: hidden;
  border-radius: calc(16 * var(--u)); background: #fff; color: var(--s900);
  font: 400 calc(11 * var(--u))/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 0 0 1px rgba(175, 232, 203, .2), 0 50px 100px -40px rgba(0, 0, 0, .85), 0 0 90px -24px rgba(67, 193, 137, .3);
  --focus: #027E5C;
}
.app-bar { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(7 * var(--u)) calc(10 * var(--u)); background: var(--s100); border-bottom: 1px solid var(--s200); }
.app-dots { display: flex; gap: calc(5 * var(--u)); }
.app-dots i { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: var(--s300); }
.app-url { margin-right: auto; padding: calc(3 * var(--u)) calc(10 * var(--u)); border-radius: calc(6 * var(--u)); background: #fff; border: 1px solid var(--s200); color: var(--s500); font-size: calc(10.5 * var(--u)); }
.icon-btn-light { width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-color: var(--s200); background: #fff; color: var(--s600); }
.icon-btn-light:hover { background: var(--s50); border-color: var(--s300); }

.app-body { display: grid; grid-template-columns: calc(138 * var(--u)) minmax(0, 1fr); }
.app-side { display: flex; flex-direction: column; min-width: 0; background: #fff; border-right: 1px solid var(--s200); }
.side-brand { display: flex; align-items: center; gap: calc(7 * var(--u)); height: calc(38 * var(--u)); padding: 0 calc(12 * var(--u)); border-bottom: 1px solid var(--s200); color: #1E2630; --logo-stroke: #088A64; --wm-accent: #12875A; }
.side-nav { display: grid; gap: calc(2 * var(--u)); align-content: start; flex: 1; margin: 0; padding: calc(6 * var(--u)); list-style: none; }
.side-nav li { display: flex; align-items: center; gap: calc(7 * var(--u)); padding: calc(6 * var(--u)) calc(7 * var(--u)); border-radius: calc(7 * var(--u)); font-weight: 500; color: var(--s600); white-space: nowrap; }
.side-nav .ic { width: calc(13 * var(--u)); height: calc(13 * var(--u)); color: var(--s400); stroke-width: 2; }
.side-nav .is-active { background: var(--s100); color: var(--s900); }
.side-nav .is-active .ic { color: #059669; }
.side-notif b { margin-left: auto; min-width: calc(16 * var(--u)); padding: 0 calc(4 * var(--u)); border-radius: calc(5 * var(--u)); background: #ef4444; color: #fff; font-size: calc(10 * var(--u)); font-weight: 600; line-height: calc(16 * var(--u)); text-align: center; }
.side-user { display: flex; align-items: center; gap: calc(7 * var(--u)); padding: calc(8 * var(--u)); border-top: 1px solid var(--s200); }
.side-avatar { display: grid; place-items: center; flex: none; width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: #059669; color: #fff; font-size: calc(10.5 * var(--u)); font-weight: 600; }
.side-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(10.5 * var(--u)); font-weight: 500; }
.side-who small { color: var(--s500); font-size: calc(9.5 * var(--u)); }

.app-map { position: relative; aspect-ratio: 520 / 380; overflow: hidden; background: #f2efe9; }
.map-base, .map-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-base .river { fill: none; stroke: #aad3df; stroke-width: 20; stroke-linecap: round; }
.map-base .park { fill: #cdebb0; stroke: #b3d99a; stroke-width: .8; }
.map-base .tree { fill: #aed1a0; }
.map-base .c-min, .map-base .f-min, .map-base .c-sec, .map-base .f-sec, .map-base .c-pri, .map-base .f-pri { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-base .c-min { stroke: #d6cfc6; stroke-width: 6; }
.map-base .f-min { stroke: #fff; stroke-width: 4.4; }
.map-base .c-sec { stroke: #cdd18f; stroke-width: 8.4; }
.map-base .f-sec { stroke: #f7fabf; stroke-width: 6.6; }
.map-base .c-pri { stroke: #dfa763; stroke-width: 10.4; }
.map-base .f-pri { stroke: #fcd6a4; stroke-width: 8.4; }
.route-line { stroke: #059669; stroke-width: 3.4; stroke-opacity: .85; stroke-dasharray: 8 8; stroke-linejoin: round; }
.map-markers { position: absolute; inset: 0; pointer-events: none; }

.mk { position: absolute; width: 0; height: 0; --c: #16a34a; --fc: #65a30d; }
.mk[data-tone="warn"] { --c: #ea580c; }
.mk[data-tone="crit"] { --c: #dc2626; }
.mk-bin, .mk-ping {
  position: absolute; left: calc(-13 * var(--u)); top: calc(-26 * var(--u)); width: calc(26 * var(--u)); height: calc(26 * var(--u));
  border-radius: 50%; border: 2px solid var(--c);
}
.mk-bin { display: grid; place-items: center; background: #fff; color: var(--c); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.mk-bin svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); fill: currentColor; stroke: #fff; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.mk-ping { opacity: 0; }
.mk-flag {
  position: absolute; left: calc(4 * var(--u)); top: calc(-8 * var(--u)); display: grid; place-items: center;
  width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; border: 2px solid #fff; background: #2563eb;
  color: #fff; font-size: calc(9 * var(--u)); font-weight: 700; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  opacity: 0; transform: scale(.4);
}
.mk.is-alert .mk-flag { opacity: 1; transform: none; }
.mk-stop {
  position: absolute; left: calc(-12 * var(--u)); top: calc(-12 * var(--u)); display: grid; place-items: center;
  width: calc(24 * var(--u)); height: calc(24 * var(--u)); border-radius: 50%; border: 3px solid #fff; background: #059669;
  color: #fff; font-size: calc(11 * var(--u)); font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  opacity: 0; transform: scale(.4);
}
.mk-stop i { position: absolute; right: calc(-5 * var(--u)); bottom: calc(-5 * var(--u)); width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; border: 2px solid #fff; background: var(--fc); }
.mk-depot { opacity: 0; }
.mk-depot svg { position: absolute; left: calc(-14 * var(--u)); top: calc(-37 * var(--u)); width: calc(28 * var(--u)); height: calc(37 * var(--u)); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.appdemo.is-route .mk-depot { opacity: 1; }
.appdemo.is-route .mk:not(.mk-depot) .mk-bin, .appdemo.is-route .mk:not(.mk-depot) .mk-flag { opacity: 0; transform: scale(.6); }
.appdemo.is-route .mk.on-route .mk-stop { opacity: 1; transform: none; }

.app-notif, .app-popup, .route-panel { position: absolute; opacity: 0; visibility: hidden; }
.app-notif.is-on, .app-popup.is-on, .route-panel.is-on { opacity: 1; visibility: visible; }

.app-notif {
  z-index: 7; right: calc(10 * var(--u)); top: calc(10 * var(--u)); width: min(calc(236 * var(--u)), 72%);
  background: #fff; border: 1px solid var(--s200); border-radius: calc(10 * var(--u));
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .35);
  transform: translateX(calc(14 * var(--u)));
}
.app-notif.is-on { transform: none; }
.nt-head { margin: 0; padding: calc(8 * var(--u)) calc(11 * var(--u)); border-bottom: 1px solid var(--s100); font-size: calc(11.5 * var(--u)); font-weight: 600; }
.nt-item { padding: calc(9 * var(--u)) calc(11 * var(--u)) calc(10 * var(--u)); background: var(--s50); border-radius: 0 0 calc(10 * var(--u)) calc(10 * var(--u)); }
.nt-item p { margin: 0; }
.nt-title { display: flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(11.5 * var(--u)); font-weight: 600; }
.nt-title i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #10b981; }
.nt-msg { margin-top: calc(2 * var(--u)) !important; color: var(--s600); }
.nt-action { margin-top: calc(5 * var(--u)) !important; color: #047857; font-weight: 500; }
.nt-date { margin-top: calc(6 * var(--u)) !important; color: var(--s400); font-size: calc(10 * var(--u)); font-variant-numeric: tabular-nums; }

.app-popup {
  z-index: 6; left: var(--px, 50%); top: var(--py, 50%);
  width: min(calc(262 * var(--u)), 82%); padding: calc(12 * var(--u)) calc(14 * var(--u));
  background: #fff; border-radius: calc(12 * var(--u));
  box-shadow: 0 3px 14px rgba(0, 0, 0, .4);
  transform: translate(-50%, calc(-100% - calc(34 * var(--u))));
}
.pp-tip { position: absolute; left: 50%; bottom: calc(-7 * var(--u)); width: calc(16 * var(--u)); height: calc(16 * var(--u)); background: #fff; transform: translateX(-50%) rotate(45deg); box-shadow: 3px 3px 6px -2px rgba(0, 0, 0, .3); z-index: -1; }
.pp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(8 * var(--u)); }
.pp-head strong { padding-top: calc(2 * var(--u)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13 * var(--u)); font-weight: 700; }
.pp-badge { display: inline-flex; align-items: center; flex: none; gap: calc(4 * var(--u)); padding: calc(2 * var(--u)) calc(7 * var(--u)); border-radius: calc(6 * var(--u)); background: #dbeafe; color: #1d4ed8; font-size: calc(10.5 * var(--u)); font-weight: 500; }
.pp-badge svg, .pp-btn svg, .rp-head svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-badge svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.pp-meter { margin-top: calc(10 * var(--u)); }
.pp-meter-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(5 * var(--u)); }
.pp-meter-row span { color: var(--s500); font-size: calc(10.5 * var(--u)); font-weight: 500; }
.pp-meter-row b { font-size: calc(12.5 * var(--u)); font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-track { height: calc(6 * var(--u)); border-radius: calc(99 * var(--u)); background: var(--s100); }
.pp-track i { display: block; width: 0; height: 100%; border-radius: calc(99 * var(--u)); background: #ef4444; }
.app-popup.is-on .pp-track i { width: 96%; }
.pp-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(6 * var(--u)); margin-top: calc(10 * var(--u)); }
.pp-cells div { padding: calc(6 * var(--u)) calc(4 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--s50); text-align: center; }
.pp-cells b { display: block; color: var(--s700); font-size: calc(11.5 * var(--u)); font-weight: 600; }
.pp-cells span { display: block; margin-top: calc(2 * var(--u)); color: var(--s500); font-size: calc(9.5 * var(--u)); }
.pp-foot { display: flex; align-items: center; justify-content: space-between; gap: calc(6 * var(--u)); margin-top: calc(10 * var(--u)); padding-top: calc(8 * var(--u)); border-top: 1px solid var(--s100); }
.pp-foot > span:first-child { color: var(--s400); font-size: calc(9.5 * var(--u)); }
.pp-btn { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); padding: calc(4 * var(--u)) calc(8 * var(--u)); border: 1px solid var(--s200); border-radius: calc(7 * var(--u)); background: #fff; color: var(--s700); font-size: calc(10.5 * var(--u)); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.pp-btn svg { width: calc(11 * var(--u)); height: calc(11 * var(--u)); }

.route-panel {
  z-index: 5; left: calc(10 * var(--u)); top: calc(10 * var(--u)); width: min(calc(200 * var(--u)), 62%); padding: calc(10 * var(--u)) calc(11 * var(--u));
  background: #fff; border: 1px solid #bbf7d0; border-radius: calc(8 * var(--u));
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .28);
  transform: translateX(calc(-10 * var(--u)));
}
.route-panel.is-on { transform: none; }
.rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(8 * var(--u)); }
.rp-head strong { display: flex; align-items: center; gap: calc(5 * var(--u)); color: #166534; font-size: calc(11 * var(--u)); font-weight: 700; }
.rp-head strong svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.rp-x svg { width: calc(11 * var(--u)); height: calc(11 * var(--u)); fill: none; stroke: #9ca3af; stroke-width: 2; stroke-linecap: round; }
.rp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: calc(6 * var(--u)); margin-bottom: calc(7 * var(--u)); }
.rp-stats > div { padding: calc(5 * var(--u)); border-radius: calc(4 * var(--u)); text-align: center; }
.rp-blue { background: #eff6ff; color: #2563eb; }
.rp-green { background: #f0fdf4; color: #16a34a; }
.rp-stats b { display: block; font-size: calc(14 * var(--u)); font-weight: 700; line-height: 1.25; }
.rp-stats span { font-size: calc(9.5 * var(--u)); }
.rp-count { margin: 0 0 calc(6 * var(--u)); color: #4b5563; font-size: calc(10 * var(--u)); }
.rp-vehicle { display: flex; align-items: center; gap: calc(5 * var(--u)); margin: 0 0 calc(4 * var(--u)); color: #374151; font-size: calc(10 * var(--u)); font-weight: 500; }
.rp-dot { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: #10b981; }
.rp-vehicle em { color: #9ca3af; font-style: normal; font-weight: 400; }
.rp-stops { display: grid; gap: calc(3 * var(--u)); margin: 0; padding: 0; list-style: none; }
.rp-stops li { display: flex; align-items: center; font-size: calc(10 * var(--u)); opacity: 0; transform: translateY(calc(4 * var(--u))); }
.rp-stops li.is-on { opacity: 1; transform: none; }
.rp-stops .n { display: grid; place-items: center; flex: none; width: calc(15 * var(--u)); height: calc(15 * var(--u)); margin-right: calc(6 * var(--u)); border-radius: 50%; background: #10b981; color: #fff; font-size: calc(9 * var(--u)); font-weight: 700; }
.rp-stops .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-stops .pc { margin-left: calc(4 * var(--u)); font-weight: 500; font-variant-numeric: tabular-nums; }
.rp-stops .pc.hi { color: #dc2626; }
.rp-stops .pc.mid { color: #ea580c; }

/* Transitions de la démonstration : actives seulement quand elle tourne
   (préférences d'animation respectées, voir « Lancer la démonstration »). */
.appdemo.is-live .mk-bin, .appdemo.is-live .mk-flag, .appdemo.is-live .mk-stop, .appdemo.is-live .mk-depot { transition: opacity .45s, transform .5s var(--ease-out), border-color .4s, color .4s; }
.appdemo.is-live .app-notif, .appdemo.is-live .app-popup, .appdemo.is-live .route-panel { transition: opacity .35s, transform .45s var(--ease-out), visibility 0s .35s; }
.appdemo.is-live .app-notif.is-on, .appdemo.is-live .app-popup.is-on, .appdemo.is-live .route-panel.is-on { transition: opacity .35s, transform .45s var(--ease-out), visibility 0s; }
.appdemo.is-live .pp-track i { transition: width .8s var(--ease-out) .25s; }
.appdemo.is-live .rp-stops li { transition: opacity .35s, transform .45s var(--ease-out); }
.appdemo.is-live .app-steps li { transition: color .3s; }
.appdemo:not(.is-live) [data-demo-toggle] { display: none; }

.demo-play {
  display: inline-flex; align-items: center; gap: calc(6 * var(--u)); margin-left: calc(4 * var(--u));
  padding: calc(5 * var(--u)) calc(11 * var(--u)); border: 0; border-radius: calc(8 * var(--u)); cursor: pointer;
  background: #059669; color: #fff; font: 500 calc(11.5 * var(--u))/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15), 0 0 0 calc(3 * var(--u)) rgba(5, 150, 105, .25);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s;
}
.demo-play[hidden] { display: none; }
.demo-play .ic { width: calc(12 * var(--u)); height: calc(12 * var(--u)); fill: currentColor; stroke: currentColor; }
.demo-play:hover { background: #047857; }

.app-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(12 * var(--u)); margin: calc(20 * var(--u)) 0 0; padding: 0; list-style: none; }
.app-steps li { position: relative; display: flex; gap: calc(8 * var(--u)); padding-top: calc(12 * var(--u)); color: var(--on-dark-muted); font-size: .92rem; font-weight: 500; line-height: 1.3; }
.app-steps li::before, .app-steps li::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: calc(2 * var(--u)); border-radius: calc(2 * var(--u)); }
.app-steps li::before { background: rgba(175, 232, 203, .2); }
.app-steps li::after { background: var(--g-400); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.app-steps li span { color: var(--g-400); font-weight: 700; }
.app-steps li.is-active { color: #fff; }
.app-steps li.is-done::after { transform: scaleX(1); opacity: .5; }

@container (max-width: 500px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .route-panel { width: min(calc(176 * var(--u)), 62%); padding: calc(8 * var(--u)) calc(9 * var(--u)); }
  .rp-stops { display: none; }
  .app-popup { width: min(calc(200 * var(--u)), 84%); padding: calc(10 * var(--u)) calc(11 * var(--u)); font-size: calc(10 * var(--u)); }
  .app-steps li { font-size: .8rem; }
}

/* ---------- Bandeau des flux ---------- */
.flux { background: var(--night-2); color: var(--on-dark); border-block: 1px solid var(--line-dark); --focus: #43C189; }
.marquee { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.marquee-track {
  display: flex; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; animation: marquee 80s linear infinite; }
.marquee-list li {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.05rem, .95rem + .55vw, 1.4rem);
  white-space: nowrap; color: rgba(234, 243, 239, .92);
}
.marquee-list li::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--g-400); transform: rotate(45deg); }
.marquee-btn { margin-right: max(20px, env(safe-area-inset-right)); }
.marquee.is-paused .marquee-list { animation-play-state: paused; }
/* Survol réservé aux pointeurs précis : sur écran tactile, :hover reste collé après un tap et empêcherait de reprendre le défilement */
@media (hover: hover) {
  .marquee:hover .marquee-list { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Titres de section ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--g-700);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2, .statement { margin: 0; font-size: clamp(2rem, 1.25rem + 2.9vw, 3.4rem); }
.section-lead { margin: 18px 0 0; max-width: 60ch; font-size: 1.12rem; color: var(--muted); }
.on-dark .kicker { color: var(--g-400); }
.on-dark h2 { color: #fff; }
.on-dark .section-lead { color: var(--on-dark-muted); }

/* ---------- Constat ---------- */
.constat { padding: clamp(80px, 10vw, 140px) 0; }
.statement { max-width: 21ch; }
.statement span { color: var(--muted); }

/* Tournée à fréquence fixe : colonnes à verre */
.tour {
  margin: clamp(48px, 6vw, 72px) 0 0; padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line);
}
.tour-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 10px; }
.tour-title { margin: 0; font-weight: 600; }
.tour-key { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .88rem; color: var(--muted); }
.key-dash { width: 28px; border-top: 2px dashed #C98A00; }
.gcols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gcol { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.gsvg { width: 100%; max-width: 140px; height: auto; overflow: visible; }
.g-ground { stroke: #CCD8D2; stroke-width: 2; stroke-linecap: round; }
.g-body { fill: #fff; stroke: #1E2630; stroke-width: 3; }
.gcol.is-over .g-body { stroke: #B42318; }
.gfill { fill: url(#gfill-ok); transform-box: fill-box; transform: translateY(calc((1 - var(--lvl)) * 100%)); }
.gcol.is-over .gfill { fill: url(#gfill-over); }
.g-slot { fill: #1E2630; }
.g-thr { stroke: #C98A00; stroke-width: 1.8; stroke-dasharray: 6 5; }
.g-waste path { fill: #3A4656; stroke: #1E2630; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.g-waste .alt path { fill: #526071; }
.g-waste path.knot { fill: none; }
.gv { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1; letter-spacing: -0.02em; }
.gs { margin-top: 4px; font-size: .86rem; line-height: 1.3; color: var(--muted); }
.gcol.is-over .gs { color: #B42318; font-weight: 600; }
.tour figcaption { margin-top: 20px; font-size: .92rem; color: var(--muted); text-align: center; }

/* Trois conséquences, chacune illustrée par un mini graphique */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.pain { display: flex; flex-direction: column; padding: 14px 14px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pain h3 { margin: 24px 12px 8px; font-size: 1.35rem; }
.pain > p { margin: 0 12px; color: var(--muted); }
.viz { display: flex; flex-direction: column; flex: none; height: 336px; margin: 0; padding: 16px 16px 14px; border-radius: 14px; background: var(--bg-soft); }
.viz-title { margin: 0 0 14px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.viz-foot { margin: auto 0 0; padding-top: 12px; font-size: .85rem; color: var(--muted); }
.viz-foot b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

/* Barres : remplissage à chaque passage (la partie hachurée est la capacité non utilisée) */
.viz-plot { position: relative; height: 150px; margin-top: 6px; }
.viz-thr { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 100%); border-top: 1.5px dashed #C98A00; z-index: 2; pointer-events: none; }
.viz-thr em { position: absolute; right: 0; bottom: 3px; font-style: normal; font-size: .72rem; color: #8A5A00; }
.vbars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); height: 100%; margin: 0; padding: 0; list-style: none; }
.vbars li { position: relative; display: flex; justify-content: center; height: 100%; border-radius: 6px; outline-offset: -2px; }
.vbars .track { position: relative; width: min(18px, 70%); height: 100%; border-radius: 4px 4px 0 0; background: repeating-linear-gradient(135deg, #DCE6E1 0 2px, #EDF3F0 2px 6px); }
.vbars .bar { position: absolute; inset: auto 0 0; height: calc(var(--v) * 100%); border-radius: 4px 4px 0 0; background: var(--g-600); transform-origin: 50% 100%; transition: filter .15s; }
.vbars li:hover .bar, .vbars li:focus-visible .bar { filter: brightness(1.15); }
.vbars .tip {
  position: absolute; bottom: calc(var(--v) * 100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 2px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; z-index: 3; transition: opacity .15s;
}
.vbars li:hover .tip, .vbars li:focus-visible .tip { opacity: 1; }

/* Courbe : une semaine dans la vie d'un point d'apport */
.week { width: 100%; height: auto; margin-block: auto; overflow: visible; }
.wk-axis { stroke: #C5D3CC; stroke-width: 1; }
.wk-thr { stroke: #C98A00; stroke-width: 1.2; stroke-dasharray: 4 4; }
.wk-over { fill: rgba(220, 38, 38, .1); }
.wk-area { fill: var(--g-600); opacity: .1; }
.wk-line { fill: none; stroke: var(--g-700); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wk-lbl { font: 500 9.5px var(--font-body); fill: #8A5A00; }
.wk-lbl.wk-top { fill: var(--muted); }
.wk-red { font: 600 10px var(--font-body); fill: #A52A14; }
.wk-ok { font: 600 10px var(--font-body); fill: #01664A; }
.wk-lead { stroke: #01664A; stroke-width: 1; }
.wk-dot { fill: var(--g-700); stroke: var(--bg-soft); stroke-width: 2; }
.wk-days text { font: 500 9.5px var(--font-body); fill: var(--muted); }
.wk-days .is-pass { fill: var(--ink); font-weight: 700; }
.wk-days .wk-sub { font-weight: 400; font-size: 8.5px; }

/* Pilotage à l'aveugle : la liste de l'application, sans mesure */
.blind { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; margin: 0; padding: 0; list-style: none; }
.blind li { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; }
.blind .nm { font-size: .88rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blind .val { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; font-weight: 700; color: #7A8797; }
.blind .mtr { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: #E3EAE6; }
.blind .meta { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); }

.fact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px;
  margin: clamp(48px, 6vw, 72px) 0 0; padding: clamp(28px, 4.5vw, 52px);
  border-radius: var(--radius); background: var(--night); color: var(--on-dark);
  background-image: radial-gradient(60% 120% at 100% 0%, rgba(67, 193, 137, .2), transparent 70%);
  --focus: #43C189;
}
.fact-main { flex: 1 1 420px; min-width: 0; }
.fact-title { margin: 0; color: #fff; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.8rem); line-height: 1.03; letter-spacing: -0.035em; }
.fact-title em { font-style: normal; color: var(--g-400); }
.fact-txt { max-width: 52ch; margin: 18px 0 0; font-size: clamp(1.02rem, 1rem + .25vw, 1.15rem); color: var(--on-dark-muted); }
.fact-num { font-family: var(--font-display); font-size: 1.35em; font-weight: 700; letter-spacing: -0.02em; color: var(--g-200); white-space: nowrap; }
.fact-link { flex: none; }
.fact sup a { margin-left: 2px; font-weight: 700; color: var(--g-400); text-decoration: none; }
.source { margin: 14px 0 0; max-width: 90ch; font-size: .8rem; color: var(--muted); }

/* ---------- Fonctionnement ---------- */
.how { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-soft); }
.steps { margin: 0; padding: 0; list-style: none; }
.step {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
  min-height: 100vh; padding: 4vh 0;
}
.step-text, .step-fig { position: sticky; top: calc(var(--hdr-h) + 7vh); }
.step-text { padding-top: 24px; }
.step-num {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--g-700);
}
.step-num span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0;
  background: var(--ink); color: #fff; transition: background-color .4s;
}
.step.is-active .step-num span { background: var(--g-700); }
.step h3 { margin: 0 0 16px; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.step-text > p { margin: 0; font-size: 1.08rem; color: var(--ink-2); }
.ticks { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.ticks .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--g-700); stroke-width: 2.4; }
.step-fig { margin: 0; }

.fig-card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 460px; padding: clamp(20px, 3vw, 30px);
  border-radius: 28px; background: var(--night); color: var(--on-dark);
  box-shadow: var(--shadow-lg);
  --focus: #43C189;
}
.fig-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 100% 0%, rgba(67, 193, 137, .18), transparent 70%);
}

/* 01 — mesure : coupe du conteneur + fiche du bac telle que l'affiche l'application */
.spec { margin: 28px 0 0; padding: 0; border-top: 1px solid #D3DDD8; }
.spec > div { display: grid; grid-template-columns: 8.2em minmax(0, 1fr); gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid #D3DDD8; }
.spec dt { font-weight: 600; color: var(--ink); }
.spec dd { margin: 0; color: var(--ink-2); }

.fig-measure { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 20px; padding-inline: 22px; }
.mz-diagram { min-width: 0; }
.mz-svg { display: block; width: 100%; max-width: 380px; height: auto; margin-inline: auto; overflow: visible; }
.mz-ground { stroke: rgba(0, 0, 0, .45); stroke-width: 8; stroke-linecap: round; }
.mz-wheels circle { fill: #0A1613; stroke: rgba(175, 232, 203, .45); stroke-width: 2; }
.mz-wheels .hub { fill: rgba(175, 232, 203, .45); stroke: none; }
.mz-body { fill: #10241E; stroke: rgba(175, 232, 203, .55); stroke-width: 2.4; stroke-linejoin: round; }
.mz-lid { fill: #1B4235; stroke: rgba(175, 232, 203, .7); stroke-width: 2.4; stroke-linejoin: round; }
.mz-handle { fill: #0A1613; }
.mz-cone { fill: url(#mz-beam); }
.mz-bottles rect { fill: rgba(228, 246, 237, .3); stroke: rgba(228, 246, 237, .55); stroke-width: 1.2; }
.mz-stem { fill: rgba(175, 232, 203, .7); }
.mz-sensor { fill: var(--g-400); stroke: #0A1613; stroke-width: 1.5; }
.mz-lens { fill: #0A1613; }
.mz-led { fill: #fff; }
.mz-waves path { fill: none; stroke: var(--g-400); stroke-width: 3; stroke-linecap: round; opacity: .7; transform-box: fill-box; }
.mz-4g { font: 700 13px var(--font-body); fill: var(--g-400); }
.mz-lead { fill: none; stroke: rgba(228, 246, 237, .7); stroke-width: 1.4; stroke-linecap: round; }
.mz-leaddot { fill: #fff; }
.mz-tag { font: 700 15px var(--font-body); fill: #fff; }
.mz-tag-s { font: 400 12px var(--font-body); fill: var(--on-dark-muted); }
.mz-dim path { fill: none; stroke: rgba(228, 246, 237, .55); stroke-width: 1.3; stroke-linecap: round; }
.mz-dim-h path { stroke: var(--g-400); stroke-width: 1.8; }
.mz-dim-v { font: 700 14px var(--font-body); fill: var(--g-200); }
.mz-dim-s { font: 400 11.5px var(--font-body); fill: var(--on-dark-muted); }

.mz-card {
  --s50: #f8fafc; --s100: #f1f5f9; --s200: #e2e8f0; --s500: #64748b; --s700: #334155; --s900: #0f172a; --u: 1.16px;
  --bar: #f97316;
  min-width: 0; padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: 12px;
  background: #fff; color: var(--s900);
  font: 400 calc(11 * var(--u))/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .4);
}
.mz-card[data-tone="ok"] { --bar: #10b981; }
.mz-card[data-tone="crit"] { --bar: #ef4444; }
.mz-card .pp-head strong { white-space: normal; line-height: 1.2; }
.mz-card .pp-track i { width: 78%; background: var(--bar); }
.mz-card .pp-cells b.ok { color: #059669; }
.pp-badge.ok { background: #d1fae5; color: #047857; }

@media (max-width: 1100px) and (min-width: 901px), (max-width: 640px) {
  .fig-measure { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mz-svg { max-width: 300px; }
  .mz-card { max-width: 360px; width: 100%; margin-inline: auto; }
}

/* 02 — décision : le parcours réel dans l'application (notification, optimiseur de tournées, assignation) */
.fig-decide { display: flex; flex-direction: column; justify-content: center; container-type: inline-size; }
.dc {
  --s50: #f8fafc; --s100: #f1f5f9; --s200: #e2e8f0; --s300: #cbd5e1; --s400: #94a3b8; --s500: #64748b; --s600: #475569; --s700: #334155; --s900: #0f172a;
  position: relative; height: 352px; overflow: hidden;
  border-radius: 14px; background: #fff; color: var(--s900);
  font: 400 11.5px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 0 0 1px rgba(175, 232, 203, .2), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.dc p { margin: 0; }
.dc-view { position: absolute; inset: 0; padding: 14px 16px; opacity: 0; visibility: hidden; }
.dc-view.is-on { opacity: 1; visibility: visible; }
.dc-title { font-size: 13.5px; font-weight: 700; }

/* Notification */
.dc-notif { background: var(--s100); }
.dc-notif .dc-title { margin: 2px 0 10px; font-size: 14px; }
.dc-nitem { margin-top: 6px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .6); border: 1px solid var(--s200); }
.dc-nitem.is-new { margin-top: 0; padding: 11px 13px; background: #fff; box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .45); }
.dc-nitem .dc-ntitle { font-size: 12px; }
.dc-nitem.is-new .dc-ntitle { font-size: 13px; }
.dc-nitem:not(.is-new) .dc-nmsg { font-size: 11px; }
.dc-nplanned { color: var(--s500) !important; }
.dc-ntitle { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.dc-ntitle i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.dc-nmsg { margin-top: 3px !important; color: var(--s600); font-size: 12px; }
.dc-nact { margin-top: 8px !important; color: #047857; font-size: 12px; font-weight: 500; }
.dc-nact.is-hover { color: #064e3b; text-decoration: underline; text-underline-offset: 3px; }
.dc-ndate { margin-top: 8px !important; color: var(--s400); font-size: 10.5px; font-variant-numeric: tabular-nums; }

/* Optimiseur de tournées */
.dc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.dc-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--s100); }
.dc-tabs b { padding: 3px 9px; border-radius: 7px; color: var(--s500); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.dc-tabs b.on { background: #fff; color: var(--s900); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.dc-form { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 10px; }
.dc-card, .dc-list { padding: 10px 11px; border-radius: 10px; background: #fff; border: 1px solid var(--s200); }
.dc-h4 { font-size: 11.5px; font-weight: 600; }
.dc-label { margin-top: 9px !important; color: var(--s700); font-size: 10.5px; font-weight: 500; }
.dc-label .req { color: #ef4444; }
.dc-select { position: relative; margin-top: 4px !important; padding: 5px 24px 5px 9px; border: 1px solid var(--s300); border-radius: 8px; font-size: 11px; }
.dc-select::after { content: ""; position: absolute; right: 10px; top: 50%; width: 5px; height: 5px; border: solid var(--s500); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); }
.dc-range { position: relative; height: 5px; margin: 11px 6px 4px; border-radius: 99px; background: var(--s200); }
.dc-range i { position: absolute; left: 0; top: 0; height: 100%; border-radius: 99px; background: #059669; }
.dc-range u { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid #059669; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); }
.dc-scale { display: flex; justify-content: space-between; margin-inline: 2px; color: var(--s400); font-size: 9.5px; }
.dc-count { margin-top: 6px !important; color: var(--s500); font-size: 10px; }
.dc-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px !important;
  padding: 7px 12px; border-radius: 8px; background: #059669; color: #fff; font-size: 11.5px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.dc-btn.is-busy { background: #047857; }
.dc-spin { display: none; width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; }
.dc-btn.is-busy .dc-spin { display: inline-block; }
.dc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.dc-tiles > div, .dc-rtiles > div { padding: 6px 4px; border-radius: 8px; background: var(--s50); border: 1px solid var(--s200); text-align: center; min-width: 0; }
.dc-tiles b, .dc-rtiles b { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dc-tiles span, .dc-rtiles span { display: block; color: var(--s500); font-size: 9px; line-height: 1.25; }
.dc-tiles span.nw { font-size: 8.5px; white-space: nowrap; }
.dc-tiles span span { display: inline; }
.dc-tiles .warn { background: #fff7ed; border-color: #fed7aa; }
.dc-tiles .warn b { color: #ea580c; }
.dc-list { margin-top: 8px; }
.dc-list ul { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.dc-list li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 7px; border: 1px solid var(--s200); border-radius: 6px; background: var(--s50); font-size: 10.5px; }
.dc-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-list li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dc-list li[hidden] { display: none; }
.dc-list .hi { color: #dc2626; }
.dc-list .mid { color: #ea580c; }

/* Résultat */
.dc-resultbox { display: none; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #a7f3d0; }
.dc-opt.is-result .dc-form { display: none; }
.dc-opt.is-result .dc-resultbox { display: block; }
.dc-rhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dc-rtitle { display: flex; align-items: center; gap: 6px; color: #065f46; font-size: 12.5px; font-weight: 600; }
.dc-rtitle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dc-rtag { padding: 2px 10px; border-radius: 999px; background: var(--s100); color: var(--s700); font-size: 10.5px; }
.dc-rtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dc-veh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--s100); }
.dc-vname { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; }
.dc-vname i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.dc-vname em { color: var(--s400); font-style: normal; font-weight: 400; }
.dc-assign .todo { display: inline-flex; padding: 3px 10px; border: 1px solid var(--s300); border-radius: 999px; color: var(--s600); font-size: 10.5px; }
.dc-assign .done { display: none; align-items: center; gap: 5px; color: #047857; font-size: 11px; font-weight: 600; }
.dc-assign .done svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dc-opt.is-assigned .dc-assign .todo { display: none; }
.dc-opt.is-assigned .dc-assign .done { display: inline-flex; }
.dc-stops { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.dc-stops li { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.dc-stops span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-stops em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.dc-stops .hi { color: #dc2626; }
.dc-stops .mid { color: #ea580c; }
.dc-stops b { display: grid; place-items: center; flex: none; width: 15px; height: 15px; border-radius: 50%; background: #10b981; color: #fff; font-size: 9px; font-weight: 700; }

.dc-steps { --u: 1.2px; margin-top: 18px; }

@container (max-width: 500px) {
  .dc { height: 392px; }
  .dc-form { grid-template-columns: minmax(0, 1fr); }
  .dc-list { display: none; }
  .dc-rtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@keyframes dc-spin { to { transform: rotate(360deg); } }
.fig-decide.is-live .dc-view { transition: opacity .25s, visibility 0s .25s; }
.fig-decide.is-live .dc-view.is-on { transition: opacity .25s, visibility 0s; }
.fig-decide.is-live .dc-btn.is-busy .dc-spin { animation: dc-spin .8s linear infinite; }
.fig-decide.is-live .dc-range i, .fig-decide.is-live .dc-range u { transition: width .25s, left .25s; }
.fig-decide.is-live .dc-resultbox { animation: rise .5s var(--ease-out) both; }
.fig-decide.is-live .dc-tiles b, .fig-decide.is-live .dc-rtiles b { transition: color .3s; }

.qr { position: relative; flex: none; width: 64px; height: 64px; padding: 5px; border-radius: 8px; background: #fff; }
.qr svg { width: 100%; height: 100%; }
.qr-line { position: absolute; left: 4px; right: 4px; top: 6px; height: 2px; border-radius: 2px; background: var(--g-400); box-shadow: 0 0 10px var(--g-400); opacity: 0; }

/* 03 — collecte : l'application chauffeur et le scan du QR code collé sur le conteneur */
.fig-collect { container-type: inline-size; display: flex; flex-direction: column; justify-content: center; }
.cl-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.cl-scene { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.cl-binwrap { position: relative; width: min(190px, 100%); }
.cl-bin { display: block; width: 100%; height: auto; }
.cl-ground { stroke: rgba(0, 0, 0, .45); stroke-width: 6; stroke-linecap: round; }
.cl-wheels circle { fill: #0A1613; stroke: rgba(175, 232, 203, .45); stroke-width: 2; }
.cl-wheels .hub { fill: rgba(175, 232, 203, .45); stroke: none; }
.cl-body { fill: url(#cl-body); stroke: rgba(175, 232, 203, .5); stroke-width: 2.4; stroke-linejoin: round; }
.cl-rib { stroke: rgba(175, 232, 203, .16); stroke-width: 2; stroke-linecap: round; }
.cl-lid { fill: #1B4235; stroke: rgba(175, 232, 203, .7); stroke-width: 2.4; stroke-linejoin: round; }
.cl-handle { fill: #0A1613; }
.cl-cap { margin: 14px 0 0; max-width: 20ch; font-size: .82rem; line-height: 1.35; color: var(--on-dark-muted); text-align: center; }

/* Étiquette collée sur le conteneur (même contenu que l'étiquette imprimée par l'application) */
.cl-sticker, .cl-camsticker { background: #fff; color: #0F172A; text-align: center; }
.cl-sticker {
  position: absolute; left: 50%; top: 84px; width: 96px; padding: 7px 7px 6px;
  border-radius: 8px; transform: translateX(-50%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.cl-st-brand { display: flex; align-items: center; justify-content: center; gap: 4px; padding-bottom: 5px; margin-bottom: 5px; border-bottom: 1px solid #E2E8F0; color: #1E2630; --logo-stroke: #088A64; --wm-accent: #12875A; }
.cl-st-k { margin: 4px 0 0; font: 600 6px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; }
.cl-st-v { margin: 2px 0 0; font: 700 7.5px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .02em; }
.cl-sticker .qr, .cl-camsticker .qr { width: 100%; height: auto; aspect-ratio: 1; padding: 0; border-radius: 0; }
.cl-sticker.is-scanning { box-shadow: 0 0 0 3px rgba(52, 211, 153, .55), 0 0 22px rgba(52, 211, 153, .35), 0 6px 16px rgba(0, 0, 0, .35); }
.cl-sticker.is-scanned { box-shadow: 0 0 0 3px #34D399, 0 6px 16px rgba(0, 0, 0, .35); }
.cl-sticker.is-scanned::after { content: ""; position: absolute; right: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 2px #fff; }
.cl-sticker.is-scanned::before { content: ""; position: absolute; right: -2px; top: -5px; z-index: 1; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Notification reçue par la commune en fin de tournée */
.cl-notif {
  position: absolute; left: 0; top: 50%; z-index: 4; width: min(236px, 46%);
  background: #fff; color: #0F172A; border: 1px solid #E2E8F0; border-radius: 10px;
  font: 400 11.5px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateY(-46%);
}
.cl-notif.is-on { opacity: 1; visibility: visible; transform: translateY(-50%); }
.cl-notif p { margin: 0; }
.cl-n-head { padding: 8px 12px; border-bottom: 1px solid #F1F5F9; font-size: 12px; font-weight: 600; }
.cl-n-item { padding: 10px 12px 11px; background: #F8FAFC; border-radius: 0 0 10px 10px; }
.cl-n-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.cl-n-title i { width: 6px; height: 6px; border-radius: 50%; background: #10B981; }
.cl-n-msg { margin-top: 3px !important; color: #475569; }
.cl-n-date { margin-top: 7px !important; color: #94A3B8; font-size: 10px; font-variant-numeric: tabular-nums; }
.cl-stage.is-notif .cl-scene { opacity: .22; }

/* Téléphone */
.cl-phone {
  --ph: 0;
  position: relative; z-index: 3; width: 262px; height: 500px; padding: 9px;
  border-radius: 40px; background: #050B09; border: 1px solid rgba(175, 232, 203, .25);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), inset 0 0 0 2px rgba(255, 255, 255, .04);
  transform: translate(calc(var(--ph) * -52px), calc(var(--ph) * 10px));
}
.cl-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 31px;
  background: #F8FAFC; color: #0F172A;
  font: 400 11px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.cl-screen::before { content: ""; position: absolute; top: 8px; left: 50%; z-index: 5; width: 72px; height: 18px; border-radius: 18px; background: #050B09; transform: translateX(-50%); }
.cl-list { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 28px; }
.cl-head { padding: 8px 12px 11px; background: #fff; border-bottom: 1px solid #E2E8F0; }
.cl-h-title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-back { flex: none; width: 15px; height: 15px; fill: none; stroke: #64748B; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-prog { display: flex; align-items: center; gap: 8px; }
.cl-bar { flex: 1; height: 6px; border-radius: 99px; background: #E2E8F0; }
.cl-bar i { display: block; height: 100%; border-radius: 99px; background: #10B981; }
.cl-count { color: #475569; font-size: 10px; font-weight: 500; white-space: nowrap; }
.cl-stops { display: grid; gap: 7px; align-content: start; padding: 10px 10px 0; }
.cl-stop { padding: 9px 10px; border: 1px solid #E2E8F0; border-radius: 14px; background: #fff; }
.cl-r1 { display: flex; align-items: center; gap: 8px; }
.cl-num { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #F1F5F9; color: #475569; font-size: 11px; font-weight: 700; }
.cl-num svg { display: none; width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cl-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.cl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 600; }
.cl-addr { display: flex; align-items: center; gap: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #64748B; font-size: 9.5px; }
.cl-addr svg { flex: none; width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-pc { font-size: 10.5px; font-style: normal; font-weight: 700; }
.cl-pc.hi { color: #DC2626; }
.cl-pc.mid { color: #EA580C; }
.cl-nextlbl, .cl-expand { display: none; }
.cl-nextlbl { margin: 0 0 5px; color: #047857; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cl-stop.is-next { border-color: #10B981; box-shadow: 0 0 0 2px #D1FAE5; }
.cl-stop.is-next .cl-nextlbl, .cl-stop.is-next .cl-expand { display: block; }
.cl-stop.is-next .cl-num { background: #059669; color: #fff; }
.cl-stop.is-done { padding: 8px 10px; border-color: #A7F3D0; background: #ECFDF5; }
.cl-stop.is-done .cl-num { background: #059669; }
.cl-stop.is-done .cl-num b { display: none; }
.cl-stop.is-done .cl-num svg { display: block; }
.cl-stop.is-done .cl-name { color: #065F46; text-decoration: line-through; }
.cl-stop.is-done .cl-pc { display: none; }
.cl-expand { margin-top: 9px; }
.cl-goto { margin: 0 0 4px; color: #64748B; font-size: 9.5px; font-weight: 500; }
.cl-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.cl-apps > span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; color: #334155; font-size: 9px; font-weight: 500; white-space: nowrap; }
.cl-apps > span.on { border-color: #10B981; background: #ECFDF5; color: #065F46; }
.cl-apps i { width: 15px; height: 15px; border-radius: 50%; background: #CBD5E1; }
.cl-apps .on i { background: #34D399; }
.cl-scanbtn { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; padding: 8px; border-radius: 10px; background: #059669; color: #fff; font-size: 11.5px; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.cl-scanbtn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-scanbtn.is-press { background: #047857; transform: scale(.97); }

/* Écran de scan (caméra) */
.cl-scan { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; background: #000; color: #fff; opacity: 0; visibility: hidden; }
.cl-scan.is-on { opacity: 1; visibility: visible; }
.cl-s-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 32px 12px 10px; font-size: 12px; font-weight: 600; }
.cl-scan .cl-back { stroke: #fff; }
.cl-s-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; --logo-stroke: #088A64; }
.cl-cam { position: relative; flex: 1; overflow: hidden; background: radial-gradient(70% 60% at 50% 45%, #22362F, #0B1512 80%); }
.cl-camsticker {
  --sx: 0px; --sy: 0px; --ss: 1; --sr: 0deg;
  position: absolute; left: 50%; top: 50%; width: 112px; padding: 9px 9px 8px; border-radius: 10px;
  transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) rotate(var(--sr)) scale(var(--ss));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.cl-vf { position: absolute; left: 50%; top: 50%; width: 156px; height: 156px; transform: translate(-50%, -50%); pointer-events: none; }
.cl-vf i { position: absolute; width: 30px; height: 30px; border: 0 solid #34D399; }
.cl-vf i:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; border-top-left-radius: 14px; }
.cl-vf i:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; border-top-right-radius: 14px; }
.cl-vf i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-bottom-left-radius: 14px; }
.cl-vf i:nth-child(4) { bottom: 0; right: 0; border-width: 0 4px 4px 0; border-bottom-right-radius: 14px; }
.cl-vf.is-ok i { border-color: #6EE7B7; filter: drop-shadow(0 0 6px #34D399); }
.cl-line { position: absolute; left: 6px; right: 6px; top: 0; height: 2px; border-radius: 2px; background: #34D399; box-shadow: 0 0 12px #34D399; opacity: 0; }
.cl-okmark { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; fill: none; stroke: #34D399; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(52, 211, 153, .8)); opacity: 0; transform: translate(-50%, -50%) scale(.5); }
.cl-vf.is-ok .cl-okmark { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cl-s-hint { margin: 0; padding: 10px 12px 18px; color: rgba(255, 255, 255, .6); font-size: 10px; text-align: center; }

.cl-steps { --u: 1.2px; margin-top: 18px; }

@container (max-width: 540px) {
  .cl-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .cl-scene { display: none; }
  .cl-phone { transform: none; }
  .cl-notif { left: 50%; top: 56px; width: min(246px, 94%); transform: translate(-50%, -8px); }
  .cl-notif.is-on { transform: translate(-50%, 0); }
}

.fig-collect.is-live .cl-stop, .fig-collect.is-live .cl-bar i, .fig-collect.is-live .cl-scanbtn { transition: background-color .3s, border-color .3s, box-shadow .3s, transform .2s, width .5s var(--ease-out); }
.fig-collect.is-live .cl-scan, .fig-collect.is-live .cl-notif { transition: opacity .3s, visibility 0s .3s, transform .4s var(--ease-out); }
.fig-collect.is-live .cl-scan.is-on, .fig-collect.is-live .cl-notif.is-on { transition: opacity .3s, visibility 0s, transform .4s var(--ease-out); }
.fig-collect.is-live .cl-stage .cl-scene { transition: opacity .4s; }
.fig-collect.is-live .cl-vf i, .fig-collect.is-live .cl-okmark { transition: border-color .2s, opacity .25s, transform .35s var(--ease-out); }
.fig-collect.is-live .cl-sticker { transition: box-shadow .3s; }

/* 04 — rendre compte : écran Statistiques et rapport PDF */
.fig-impact { container-type: inline-size; display: flex; flex-direction: column; justify-content: center; }
.ip-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 16px; }
.ip-panel {
  --s50: #f8fafc; --s100: #f1f5f9; --s200: #e2e8f0; --s400: #94a3b8; --s500: #64748b; --s600: #475569; --s900: #0f172a;
  min-width: 0; padding: 14px; border-radius: 14px; background: #fff; color: var(--s900);
  font: 400 11.5px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 0 0 1px rgba(175, 232, 203, .2), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.ip-panel p { margin: 0; }
.ip-head { margin-bottom: 10px; }
.ip-title { margin-bottom: 7px !important; font-size: 14px; font-weight: 700; }
.ip-tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--s100); }
.ip-tabs b { padding: 3px 8px; border-radius: 7px; color: var(--s500); font-size: 10px; font-weight: 500; white-space: nowrap; }
.ip-tabs b.on { background: #fff; color: var(--s900); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.ip-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.ip-tiles > div { padding: 8px 10px; border-radius: 10px; background: var(--s50); border: 1px solid var(--s200); }
.ip-tiles span { display: block; color: var(--s500); font-size: 10px; }
.ip-tiles b { display: block; margin-top: 1px; font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ip-tiles i { font-style: normal; }
.ip-tiles .warn { background: #fff7ed; border-color: #fed7aa; }
.ip-tiles .warn b { color: #ea580c; }
.ip-break { margin-top: 10px; padding: 10px 11px; border-radius: 10px; border: 1px solid var(--s200); }
.ip-h4 { font-size: 11px; font-weight: 600; }
.ip-break ul { display: grid; gap: 7px; margin: 8px 0 0; padding: 0; list-style: none; }
.ip-break li { display: grid; grid-template-columns: 78px minmax(0, 1fr) 18px; align-items: center; gap: 8px; font-size: 10.5px; }
.ip-break em { display: block; height: 6px; border-radius: 99px; background: var(--s100); }
.ip-break em i { display: block; height: 100%; border-radius: 99px; background: #10b981; transform-origin: 0 50%; transform: scaleX(var(--v)); }
.ip-break b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ip-btn { margin-top: 11px !important; padding: 8px 12px; border-radius: 8px; background: #059669; color: #fff; font-size: 11.5px; font-weight: 500; text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.ip-btn.is-press { background: #047857; transform: scale(.98); }

.ip-sheet {
  min-width: 0; padding: 18px 16px; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75); transform: rotate(1.5deg);
}
.ip-s-head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ip-s-logo { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1.5px dashed #BFCFC7; border-radius: 10px; color: var(--muted); font-size: .62rem; }
.ip-s-title { display: flex; flex-direction: column; min-width: 0; }
.ip-s-title small { color: var(--muted); font-size: .7rem; }
.ip-s-title strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; letter-spacing: -0.01em; }
.ip-s-kpis { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin: 12px 0; }
.ip-s-kpis span { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px; border-radius: 8px; background: var(--bg-soft); }
.ip-s-kpis small { color: var(--muted); font-size: .62rem; line-height: 1.25; }
.ip-s-kpis b { font-size: .86rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ip-s-kpis i { font-style: normal; }
.ip-s-kpis .gain { background: var(--g-50); }
.ip-s-kpis .gain b { color: #01664A; }
.ip-s-rows { display: grid; gap: 7px; }
.ip-s-rows span { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 8px; }
.ip-s-rows small { color: var(--ink-2); font-size: .68rem; }
.ip-s-rows i { display: block; height: 7px; border-radius: 4px; background: var(--g-600); transform-origin: 0 50%; transform: scaleX(var(--v)); }
.ip-s-note { margin: 12px 0 0; color: var(--muted); font-size: .64rem; }

@container (max-width: 520px) {
  .ip-stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ip-sheet { transform: none; }
}

.fig-impact.is-live .ip-sheet { transition: opacity .5s, transform .6s var(--ease-out); }
.fig-impact.is-live .ip-btn { transition: background-color .2s, transform .2s; }
.fig-impact.is-live .ip-break em i, .fig-impact.is-live .ip-s-rows i { transition: transform .9s var(--ease-out); }

/* ---------- Fonctions au quotidien : quatre écrans de l'application, interactifs ---------- */
.features { padding: clamp(80px, 10vw, 140px) 0; }
.fx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(67, 193, 137, .13), transparent 45%);
  transition: opacity .3s;
}
.card:hover { border-color: rgba(2, 126, 92, .28); box-shadow: 0 24px 60px -32px rgba(2, 60, 44, .4); }
.card:hover::before { opacity: 1; }
.card.fx-card { padding: 14px 14px 26px; }
.fx-card h3 { margin: 24px 12px 8px; font-size: 1.35rem; }
.fx-card > p { margin: 0 12px; color: var(--muted); }

.fx-ui {
  --s50: #f8fafc; --s100: #f1f5f9; --s200: #e2e8f0; --s300: #cbd5e1; --s400: #94a3b8; --s500: #64748b; --s600: #475569; --s700: #334155; --s900: #0f172a;
  --u: 1.15px;
  position: relative; display: flex; flex-direction: column; height: 344px; overflow: hidden;
  padding: 16px; border-radius: 14px; background: var(--bg-soft); color: var(--s900);
  font: 400 12px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.fx-ui p { margin: 0; }
.fx-ui button { font: inherit; }

/* Carte */
.fx-map-ui { height: auto; aspect-ratio: 520 / 330; padding: 0; background: #f2efe9; }
.fx-map { position: relative; width: 100%; height: 100%; }
.fx-map-base { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-map-base .river { fill: none; stroke: #aad3df; stroke-width: 20; stroke-linecap: round; }
.fx-map-base .park { fill: #cdebb0; stroke: #b3d99a; stroke-width: .8; }
.fx-map-base .tree { fill: #aed1a0; }
.fx-map-base .c-min, .fx-map-base .f-min, .fx-map-base .c-sec, .fx-map-base .f-sec, .fx-map-base .c-pri, .fx-map-base .f-pri { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fx-map-base .c-min { stroke: #d6cfc6; stroke-width: 6; }
.fx-map-base .f-min { stroke: #fff; stroke-width: 4.4; }
.fx-map-base .c-sec { stroke: #cdd18f; stroke-width: 8.4; }
.fx-map-base .f-sec { stroke: #f7fabf; stroke-width: 6.6; }
.fx-map-base .c-pri { stroke: #dfa763; stroke-width: 10.4; }
.fx-map-base .f-pri { stroke: #fcd6a4; stroke-width: 8.4; }
.fx-pins { position: absolute; inset: 0; }
.fx-pin {
  --c: #16a34a;
  position: absolute; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; background: transparent;
  display: grid; place-items: end center; transform: translate(-50%, -100%); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.fx-pin[data-tone="warn"] { --c: #ea580c; }
.fx-pin[data-tone="crit"] { --c: #dc2626; }
.fx-pin .b {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid var(--c); color: var(--c); box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.fx-pin .b svg { width: 13px; height: 13px; fill: currentColor; stroke: #fff; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.fx-pin:hover .b { transform: scale(1.12); }
.fx-pin[aria-pressed="true"] .b { transform: scale(1.15); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent), 0 2px 8px rgba(0, 0, 0, .3); }
.fx-pin:focus-visible { outline: none; }
.fx-pin:focus-visible .b { box-shadow: 0 0 0 3px #027E5C, 0 2px 8px rgba(0, 0, 0, .3); }
.fx-pop {
  position: absolute; z-index: 5; width: 244px; padding: calc(12 * var(--u)) calc(14 * var(--u));
  background: #fff; border-radius: 12px; box-shadow: 0 3px 14px rgba(0, 0, 0, .4); pointer-events: none;
}
.fx-pop[hidden] { display: none; }
.fx-pop .pp-head strong { white-space: normal; line-height: 1.2; }
.fx-pop .pp-tip { left: var(--tx, 50%); }
.fx-pop.is-below .pp-tip { top: -7px; bottom: auto; box-shadow: -3px -3px 6px -2px rgba(0, 0, 0, .3); }
.fx-pop .pp-track i { width: 0; background: var(--bar, #16a34a); }
.fx-pop .pp-cells b.ok { color: #059669; }

/* Historique */
.fh { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.fh-title { font-size: 14px; font-weight: 700; }
.fh-sub { margin-top: 1px !important; color: var(--s500); font-size: 11.5px; }
.fh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fh-chip { padding: 4px 11px; border: 1px solid var(--s300); border-radius: 999px; background: #fff; color: var(--s600); font-size: 11px; font-weight: 500; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; touch-action: manipulation; }
.fh-chip:hover { background: var(--s50); }
.fh-chip[aria-pressed="true"] { background: #059669; border-color: #059669; color: #fff; }
.fh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.fh-stats > div { padding: 7px 4px; border-radius: 10px; background: #fff; text-align: center; }
.fh-stats b { display: flex; align-items: center; justify-content: center; gap: 3px; color: var(--s700); font-size: 16px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fh-stats i { font-style: normal; }
.fh-stats span { display: block; color: var(--s500); font-size: 10px; font-weight: 500; }
.fh-trend { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); }
.fh-trend.is-down { transform: rotate(45deg); }
.fh-trend.is-flat { transform: none; }
.fh-plot { position: relative; flex: 1; min-height: 0; margin-top: 10px; padding: 0; border-radius: 10px; background: #fff; cursor: crosshair; }
.fh-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fh-grid { stroke: #e6ece9; stroke-width: 1; vector-effect: non-scaling-stroke; }
.fh-thr { stroke: #D49100; stroke-width: 1.2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.fh-area { fill: #10b981; opacity: .12; }
.fh-line { fill: none; stroke: #059669; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fh-y { position: absolute; left: 4px; transform: translateY(-50%); color: var(--s400); font-size: 9.5px; font-variant-numeric: tabular-nums; pointer-events: none; }
.fh-cross { position: absolute; top: 6px; bottom: 6px; width: 1px; background: var(--s500); opacity: .4; pointer-events: none; }
.fh-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #059669; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.fh-tip { position: absolute; top: 4px; transform: translateX(-50%); padding: 4px 8px; border-radius: 7px; background: var(--s900); color: #fff; font-size: 10.5px; line-height: 1.3; white-space: nowrap; pointer-events: none; z-index: 2; }
.fh-tip[hidden], .fh-cross[hidden], .fh-dot[hidden] { display: none; }
.fh-plot:focus-visible { outline: 3px solid #027E5C; outline-offset: 2px; }

/* Communes */
.fc { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.fc-label { font-size: 12px; font-weight: 600; }
.fc-search { position: relative; margin-top: 8px; }
.fc-search svg { position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; fill: none; stroke: var(--s400); stroke-width: 2; stroke-linecap: round; transform: translateY(-50%); pointer-events: none; }
.fc-search input { width: 100%; min-height: 34px; padding: 7px 10px 7px 32px; border: 1px solid var(--s300); border-radius: 8px; background: #fff; color: var(--s900); font: inherit; font-size: 12px; }
.fc-search input::placeholder { color: #7C8898; }
.fc-search input:focus-visible { outline: none; border-color: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, .22); }
.fc-all { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 9px 0 6px; padding: 2px 0; border: 0; background: transparent; color: #047857; font-size: 11px; font-weight: 500; cursor: pointer; touch-action: manipulation; }
.fc-all:hover { color: #065f46; }
.fc-all svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-all svg path { opacity: 0; }
.fc-all.is-all svg path { opacity: 1; }
.fc-list { flex: 1; min-height: 0; margin: 0; padding: 0; overflow: auto; list-style: none; border: 1px solid var(--s200); border-radius: 8px; background: #fff; }
.fc-list li + li { border-top: 1px solid var(--s100); }
.fc-list li[hidden] { display: none; }
.fc-list label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; transition: background-color .15s; }
.fc-list label:hover { background: var(--s50); }
.fc-list li.is-on label { background: #ecfdf5; }
.fc-list input { width: 15px; height: 15px; margin: 0; accent-color: #059669; }
.fc-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--s700); font-size: 12px; }
.fc-list .ct { color: var(--s400); font-size: 10.5px; }
.fc-none { padding: 14px 0; color: var(--s500); font-size: 11.5px; text-align: center; }
.fc-none[hidden] { display: none; }
.fc-sum { margin-top: 10px !important; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-sum span { color: #047857; }

/* Configuration d'un bac (écran « Configurer l'appareil ») */
.fg { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.fg-title { font-size: 14px; font-weight: 700; }
.fg-sub { margin-top: 2px !important; color: var(--s500); font-size: 11.5px; }
.fg-label { margin-top: 11px !important; color: var(--s700); font-size: 11.5px; font-weight: 500; }
.fg-label span { color: #ef4444; }
.fg-select { position: relative; margin-top: 5px !important; padding: 7px 28px 7px 10px; border: 1px solid var(--s300); border-radius: 10px; background: #fff; font-size: 12px; }
.fg-select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 5px; height: 5px; border: solid var(--s500); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); }
.fg-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 5px; }
.fg-types button { padding: 8px 10px; border: 1px solid var(--s300); border-radius: 10px; background: #fff; color: var(--s900); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; touch-action: manipulation; }
.fg-types button:hover { border-color: var(--s400); }
.fg-types button[aria-checked="true"] { border-color: #10b981; background: #ecfdf5; }
.fg-types strong { display: block; font-size: 12px; font-weight: 600; }
.fg-types small { display: block; margin-top: 1px; color: var(--s500); font-size: 10px; line-height: 1.3; }
.fg-vols { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.fg-vols button { min-width: 52px; padding: 6px 11px; border: 1px solid var(--s300); border-radius: 9px; background: #fff; color: var(--s700); font-size: 12px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .15s, background-color .15s, color .15s; touch-action: manipulation; }
.fg-vols button:hover { border-color: var(--s400); }
.fg-vols button[aria-checked="true"] { border-color: #059669; background: #059669; color: #fff; }
.fg-types button:focus-visible, .fg-vols button:focus-visible { outline: 3px solid #027E5C; outline-offset: 2px; }
.fg-save { margin-top: auto !important; padding: 8px 12px; border-radius: 9px; background: #059669; color: #fff; font-size: 12px; font-weight: 500; text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }

@media (max-width: 900px) {
  .fx-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fx-ui { height: auto; min-height: 330px; }
  .fg-vols { margin-bottom: 14px; }
  .fx-map-ui { min-height: 0; }
  .fx-pop { width: 204px; }
  .fx-pop .pp-cells { display: none; }
  .fh-plot { min-height: 150px; }
  .fc-list { max-height: 190px; }
}

/* ---------- Pour qui : votre situation, avant et avec NivoBac ---------- */
.audience { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0; background: var(--night); color: var(--on-dark); --focus: #43C189; }
.aud-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 95% 10%, rgba(67, 193, 137, .2), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(2, 126, 92, .35), transparent 70%),
    var(--night);
}
.aud-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(175, 232, 203, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(175, 232, 203, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.audience .kicker { color: var(--g-400); }
.audience .section-head h2 { color: #fff; }
.audience .section-lead { color: var(--on-dark-muted); }

.aud-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.aud-tab {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
  border: 1px solid var(--line-dark); border-radius: 18px; background: rgba(255, 255, 255, .03);
  color: rgba(234, 243, 239, .7); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.aud-tab:hover { border-color: rgba(175, 232, 203, .35); color: #fff; }
.aud-tab[aria-selected="true"] { border-color: var(--g-400); background: rgba(67, 193, 137, .12); color: #fff; box-shadow: 0 0 0 4px rgba(67, 193, 137, .1); }
.at-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + .9vw, 1.65rem); line-height: 1.1; letter-spacing: -0.03em; }
.at-role { font-size: .9rem; line-height: 1.4; color: var(--on-dark-muted); }
.aud-tab[aria-selected="true"] .at-role { color: var(--g-200); }

.aud-panel {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 4vw, 52px); border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-dark);
}
.aud-panel[hidden] { display: none; }
.ap-title { margin: 0; color: #fff; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.9rem); line-height: 1.05; letter-spacing: -0.035em; }
.ap-gains { display: grid; margin: 30px 0 32px; padding: 0; list-style: none; }
.ap-gains li { display: grid; gap: 3px; padding: 15px 0; border-top: 1px solid var(--line-dark); }
.ap-gains li:last-child { border-bottom: 1px solid var(--line-dark); }
.ap-gains strong { color: #fff; font-size: 1.05rem; font-weight: 600; }
.ap-gains span { font-size: .97rem; line-height: 1.5; color: var(--on-dark-muted); }

.ap-compare { min-width: 0; padding: clamp(18px, 2.4vw, 28px); border-radius: 22px; background: rgba(5, 14, 11, .55); border: 1px solid var(--line-dark); }
.ap-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ap-col { min-width: 0; padding: 16px 16px 14px; border-radius: 16px; }
.ap-without { background: rgba(255, 255, 255, .03); border: 1px dashed rgba(240, 83, 58, .45); }
.ap-with { background: rgba(67, 193, 137, .1); border: 1px solid rgba(67, 193, 137, .55); box-shadow: 0 0 40px -12px rgba(67, 193, 137, .45); }
.ap-colhead { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.ap-without .ap-colhead { color: #FF9C8A; }
.ap-with .ap-colhead { color: var(--g-200); }
.ap-col ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ap-col li { position: relative; padding-left: 22px; font-size: .96rem; line-height: 1.45; }
.ap-col li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; }
.ap-without li { color: rgba(234, 243, 239, .66); }
.ap-without li::before { background: transparent; border: 2px solid #F0533A; }
.ap-with li { color: #fff; }
.ap-with li::before { background: var(--g-400); box-shadow: 0 0 0 3px rgba(67, 193, 137, .25); }

@media (max-width: 1000px) {
  .aud-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .aud-tabs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .aud-tab { padding: 14px 16px; }
  .ap-copy .btn { display: flex; width: 100%; white-space: normal; text-align: center; padding-inline: 18px; }
  .ap-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Mouvement : le contraste se déroule à chaque changement de situation */
@media (prefers-reduced-motion: no-preference) {
  .aud-panel.is-on .ap-copy > * { animation: rise .6s var(--ease-out) both; }
  .aud-panel.is-on .ap-copy > :nth-child(2) { animation-delay: .08s; }
  .aud-panel.is-on .ap-copy > :nth-child(3) { animation-delay: .16s; }
  .aud-panel.is-on .ap-col { animation: rise .6s var(--ease-out) both; }
  .aud-panel.is-on .ap-with { animation-delay: .15s; }
  .aud-panel.is-on .ap-col li { animation: rise .55s var(--ease-out) both; animation-delay: calc(.3s + var(--i) * .18s); }
  .aud-panel.is-on .ap-with li { animation-delay: calc(.7s + var(--i) * .18s); }
}

/* ---------- Mise en route : prêt à l'emploi ---------- */
.deploy { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-soft); }
.dp-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.dp-step { display: flex; flex-direction: column; min-width: 0; }
.dp-viz {
  position: relative; display: grid; place-items: center; height: 292px; overflow: hidden;
  border-radius: 24px; background: linear-gradient(160deg, #14352D, #0B1B17 70%);
  border: 1px solid rgba(175, 232, 203, .14); color: var(--on-dark);
  box-shadow: 0 30px 60px -36px rgba(2, 40, 30, .6);
}
.dp-viz::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 0%, rgba(67, 193, 137, .2), transparent 70%); pointer-events: none; }
.dp-text { padding: 22px 6px 0; }
.dp-num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 11px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.dp-text h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); }
.dp-text p { margin: 0; color: var(--muted); }
.dp-step.is-pending .dp-text { opacity: .4; }

/* 1 — le capteur livré */
.dp-sensor-card { position: relative; width: min(82%, 260px); padding: 22px 20px 20px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(175, 232, 203, .18); }
.dp-sensor { display: block; width: 118px; height: auto; margin: 0 auto 14px; overflow: visible; }
.s-stem { fill: rgba(175, 232, 203, .7); }
.s-body { fill: var(--g-400); stroke: #0A1613; stroke-width: 1.5; }
.s-lens { fill: #0A1613; }
.s-led { fill: #fff; }
.s-waves path { fill: none; stroke: var(--g-400); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.dp-checks { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.dp-checks li { display: flex; align-items: center; gap: 10px; color: rgba(234, 243, 239, .55); }
.dp-checks i { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(175, 232, 203, .4); }
.dp-checks li.is-ok { color: #fff; }
.dp-checks li.is-ok i { background: var(--g-400); border-color: var(--g-400); box-shadow: 0 0 0 3px rgba(67, 193, 137, .25); }

/* 2 — fixé sous le capot, QR code collé */
.dp-bin { width: 200px; height: auto; overflow: visible; }
.b-ground { stroke: rgba(0, 0, 0, .45); stroke-width: 6; stroke-linecap: round; }
.b-wheels circle { fill: #0A1613; stroke: rgba(175, 232, 203, .45); stroke-width: 2; }
.b-body { fill: #10241E; stroke: rgba(175, 232, 203, .55); stroke-width: 2.4; stroke-linejoin: round; }
.b-lid { fill: #1B4235; stroke: rgba(175, 232, 203, .7); stroke-width: 2.4; stroke-linejoin: round; }
.b-handle { fill: #0A1613; }
.b-waves path { fill: none; stroke: var(--g-400); stroke-width: 3; stroke-linecap: round; opacity: .7; }
.b-4g { font: 700 13px var(--font-body); fill: var(--g-400); }
.dp-sticker { position: absolute; right: 20%; top: 52%; width: 50px; padding: 4px; border-radius: 7px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.dp-sticker .qr { width: 100%; height: auto; aspect-ratio: 1; padding: 0; border-radius: 0; }
.dp-tag { position: absolute; margin: 0; font-size: .8rem; font-weight: 600; color: #fff; }
.dp-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--g-400); }
.dp-tag-sensor { left: 16px; top: 46%; }
.dp-tag-qr { right: 14px; bottom: 16px; }
.dp-tag-qr::before { border-radius: 2px; background: #fff; }
.dp-viz-fix:not(.is-fixed) .s-body, .dp-viz-fix:not(.is-fixed) .s-lens { opacity: 0; transform: translateY(-14px); }
.dp-viz-fix:not(.is-fixed) .b-waves, .dp-viz-fix:not(.is-fixed) .b-4g, .dp-viz-fix:not(.is-fixed) .dp-sticker, .dp-viz-fix:not(.is-fixed) .dp-tag { opacity: 0; }
.dp-viz-fix:not(.is-fixed) .dp-sticker { transform: translateX(16px) scale(.7); }

/* 3 — connexion, puis le capteur sur la carte */
.dp-viz-web { padding: 18px; }
.dp-browser { position: relative; z-index: 1; width: min(100%, 340px); height: 238px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7); }
.dp-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.dp-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.dp-bar span { margin-left: 8px; padding: 2px 9px; border-radius: 5px; background: #fff; border: 1px solid #e2e8f0; color: #64748b; font: 400 10px system-ui, sans-serif; }
.dp-screen { position: relative; height: calc(100% - 26px); font: 400 10.5px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #0f172a; }
.dp-login { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 34px; background: #fff; opacity: 0; visibility: hidden; }
.dp-login.is-on { opacity: 1; visibility: visible; }
.dp-login p { margin: 0; }
.dp-login-ic { margin-bottom: 6px; --logo-stroke: #088A64; }
.dp-login-title { margin-bottom: 8px !important; font-size: 14px; font-weight: 700; }
.dp-field-l { margin-top: 6px !important; color: #334155; font-size: 10px; font-weight: 500; }
.dp-field { display: flex; align-items: center; height: 25px; margin-top: 3px !important; padding: 0 9px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 10.5px; }
.dp-field span { white-space: nowrap; overflow: hidden; }
.dp-login-btn { margin-top: 11px !important; padding: 6px; border-radius: 8px; background: #059669; color: #fff; font-weight: 500; text-align: center; }
.dp-login-btn.is-press { background: #047857; transform: scale(.97); }
.dp-map { position: absolute; inset: 0; background: #f2efe9; opacity: 0; visibility: hidden; }
.dp-map.is-on { opacity: 1; visibility: visible; }
.dp-map-base { position: absolute; inset: 0; width: 100%; height: 100%; }
.dp-map-base .river { fill: none; stroke: #aad3df; stroke-width: 18; stroke-linecap: round; }
.dp-map-base .park { fill: #cdebb0; stroke: #b3d99a; stroke-width: .8; }
.dp-map-base .tree { fill: #aed1a0; }
.dp-map-base .c-min, .dp-map-base .f-min, .dp-map-base .c-sec, .dp-map-base .f-sec, .dp-map-base .c-pri, .dp-map-base .f-pri { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dp-map-base .c-min { stroke: #d6cfc6; stroke-width: 5.4; }
.dp-map-base .f-min { stroke: #fff; stroke-width: 4; }
.dp-map-base .c-sec { stroke: #cdd18f; stroke-width: 7.4; }
.dp-map-base .f-sec { stroke: #f7fabf; stroke-width: 5.8; }
.dp-map-base .c-pri { stroke: #dfa763; stroke-width: 9; }
.dp-map-base .f-pri { stroke: #fcd6a4; stroke-width: 7.4; }
.dp-pins { position: absolute; inset: 0; }
.dp-pin { --c: #16a34a; position: absolute; width: 0; height: 0; }
.dp-pin[data-tone="warn"] { --c: #ea580c; }
.dp-pin .b { position: absolute; left: -11px; top: -22px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c); background: #fff; color: var(--c); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.dp-pin .b svg { width: 11px; height: 11px; fill: currentColor; stroke: #fff; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.dp-pin.is-new { z-index: 2; }
.dp-pin.is-new .b { border-color: #16a34a; color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .3), 0 2px 8px rgba(0, 0, 0, .35); }
.dp-pin .rip { position: absolute; left: -11px; top: -22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #16a34a; opacity: 0; pointer-events: none; }
.dp-callout { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); padding: 4px 10px; border-radius: 8px; background: #0A1613; color: #fff; font-size: 10.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.dp-callout::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: #0A1613; transform: translateX(-50%) rotate(45deg); }
.dp-pin:not(.is-new) .dp-callout { display: none; }
.dp-pin.is-new:not(.is-shown) .b, .dp-pin.is-new:not(.is-shown) .dp-callout { opacity: 0; }
.dp-pin.is-new:not(.is-shown) .b { transform: translateY(-18px); }
.dp-pin.is-new:not(.is-called) .dp-callout { opacity: 0; }

@media (max-width: 960px) {
  .dp-steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dp-viz { height: 270px; }
}

/* Mouvement : la mise en route se déroule quand la section arrive à l'écran */
.dp-steps.is-live .dp-checks li, .dp-steps.is-live .dp-checks i, .dp-steps.is-live .dp-step .dp-text { transition: color .3s, background-color .3s, border-color .3s, box-shadow .3s, opacity .4s; }
.dp-steps.is-live .s-body, .dp-steps.is-live .s-lens, .dp-steps.is-live .b-waves, .dp-steps.is-live .b-4g, .dp-steps.is-live .dp-tag { transition: opacity .5s, transform .6s var(--ease-out); }
.dp-steps.is-live .dp-sticker { transition: opacity .5s .3s, transform .6s var(--ease-out) .3s; }
.dp-steps.is-live .dp-login, .dp-steps.is-live .dp-map { transition: opacity .35s, visibility 0s .35s; }
.dp-steps.is-live .dp-login.is-on, .dp-steps.is-live .dp-map.is-on { transition: opacity .35s, visibility 0s; }
.dp-steps.is-live .dp-pin .b, .dp-steps.is-live .dp-callout { transition: opacity .35s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.dp-steps.is-live .dp-login-btn { transition: background-color .2s, transform .2s; }
@keyframes dp-ripple { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
.dp-steps.is-live .dp-pin.is-ripple .rip { animation: dp-ripple 1.3s ease-out 2; }
.dp-steps.is-live .dp-pin.is-ripple .rip:nth-of-type(2) { animation-delay: .35s; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--hdr-h) + 32px); margin: 0; }
.faq-nav { display: grid; gap: 2px; margin-top: 28px; }
.faq-nav a { display: block; text-decoration: none; padding: 7px 0 7px 16px; border-left: 2px solid var(--line); color: var(--muted); font-weight: 500; transition: color .2s, border-color .2s; }
.faq-nav a:hover { color: var(--g-700); border-left-color: var(--g-400); }
.faq-group { margin: 56px 0 6px; font-size: 1rem; letter-spacing: .02em; color: var(--g-700); }
.faq-group:first-child { margin-top: 0; }
.faq-set details { border-bottom: 1px solid var(--line); }
.faq-set details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none; border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--g-700); }
.faq-list summary .ic {
  width: 30px; height: 30px; padding: 6px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink);
  transition: transform .3s var(--ease-out), background-color .2s, color .2s, border-color .2s;
}
.faq-list details[open] summary .ic { transform: rotate(45deg); background: var(--night); border-color: var(--night); color: #fff; }
.faq-body p { margin: 0; padding: 0 4px 24px; max-width: 62ch; color: var(--muted); }

/* ---------- Appel à l'action ---------- */
.cta { padding: 0 0 clamp(80px, 10vw, 120px); }
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(22px, 5vw, 64px);
  border-radius: 36px; text-align: center;
  background: linear-gradient(150deg, #04261C 0%, var(--night) 55%, #062A20 100%);
  color: var(--on-dark);
  --focus: #43C189;
}
.cta-glow { position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(50% 50% at 50% 0%, rgba(67, 193, 137, .35), transparent 70%); }
.cta-logo { width: 104px; height: 104px; margin: 0 auto 24px; }
.cl-lvl, .cl-wave { transform-box: fill-box; transform-origin: 50% 100%; }
.cta-panel h2 { max-width: 18ch; margin: 0 auto; color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }
.cta-panel > p { max-width: 46ch; margin: 18px auto 0; font-size: 1.15rem; color: var(--on-dark-muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.cta-panel .cta-mail { margin-top: 22px; font-size: .92rem; }
.cta-mail a { color: var(--g-200); }
.cta-mail a:hover { color: #fff; }

/* ---------- Pied de page ---------- */
.ftr { padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--night); color: var(--on-dark-muted); --focus: #43C189; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px; }
.ftr-brand p { max-width: 36ch; margin: 18px 0 0; font-size: .95rem; }
.ftr-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ftr-title { margin: 0 0 12px; font-weight: 600; font-size: .95rem; color: #fff; }
.ftr-nav ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ftr-nav a { color: var(--on-dark-muted); text-decoration: none; font-size: .92rem; transition: color .2s; overflow-wrap: anywhere; }
.ftr-nav a:hover { color: #fff; }
.ftr-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .85rem; }
.ftr-bottom p { margin: 0; }
.ftr-top { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-muted); text-decoration: none; transition: color .2s; }
.ftr-top:hover { color: #fff; }
.ftr-top .ic { width: 14px; height: 14px; transform: rotate(-90deg); }

/* =========================================================
   Mouvement — uniquement si l'utilisateur n'a pas demandé
   de réduire les animations. Sans cela, tout s'affiche
   directement dans son état final.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes wave { 0% { opacity: 0; transform: translateY(-6px); } 35% { opacity: .95; } 100% { opacity: 0; transform: translateY(16px); } }
  @keyframes scan { from { transform: translateY(0); opacity: 1; } to { transform: translateY(50px); opacity: 1; } }
  @keyframes blink { 50% { opacity: .15; } }

  /* Hero */
  .hero-copy > * { animation: rise .9s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .appdemo { animation: rise 1.1s .2s var(--ease-out) both; }
  .hl::before { transform: scaleX(0); animation: draw-x 1s .75s var(--ease-out) forwards; }

  /* Apparition au défilement */
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Constat : le camion passe, les bacs se révèlent */
  .js .tour:not(.is-in) .gfill { transform: translateY(100%); }
  .js .tour .gfill { transition: transform 1.2s var(--ease-out) calc(.2s + var(--i) * .1s); }
  .js .tour:not(.is-in) .gv, .js .tour:not(.is-in) .gs { opacity: 0; }
  .js .tour .gv, .js .tour .gs { transition: opacity .5s calc(.8s + var(--i) * .1s); }
  .js .pain:not(.is-in) .vbars .bar { transform: scaleY(0); }
  .js .pain .vbars .bar { transition: transform .9s var(--ease-out) calc(.2s + var(--i) * .07s), filter .15s; }
  .js .pain:not(.is-in) .wk-line { stroke-dashoffset: 1; }
  .js .pain .wk-line { transition: stroke-dashoffset 2s var(--ease-out) .3s; }
  .js .pain:not(.is-in) :is(.wk-area, .wk-over, .wk-red, .wk-ok, .wk-lead, .wk-dot) { opacity: 0; }
  .js .pain :is(.wk-area, .wk-over, .wk-red, .wk-ok, .wk-lead, .wk-dot) { transition: opacity .6s 1.6s; }
  .js .pain:not(.is-in) .blind li { opacity: 0; transform: translateY(8px); }
  .js .pain .blind li { transition: opacity .5s, transform .6s var(--ease-out); transition-delay: calc(.2s + var(--i) * .12s); }

  /* Fonctionnement */
  .js .step .step-text { transition: opacity .5s; }
  .js .step:not(.is-active) .step-text { opacity: .4; }
  @keyframes wave-up { 0% { opacity: 0; transform: translateY(8px); } 35% { opacity: .95; } 100% { opacity: 0; transform: translateY(-12px); } }
  .js .step.is-active .mz-waves path { animation: wave-up 1.6s ease-out 3; }
  .js .step.is-active .mz-waves path:nth-child(2) { animation-delay: .2s; }
  .js .step.is-active .mz-waves path:nth-child(1) { animation-delay: .4s; }

  /* Fonctions */
  .js .card[data-reveal] { transition: border-color .25s, box-shadow .25s, transform .85s var(--ease-out), opacity .85s var(--ease-out); }
  @media (hover: hover) {
    .js .card[data-reveal].is-in:hover { transform: translateY(-3px); transition-duration: .25s, .25s, .35s, .85s; }
  }
  .fx-pop .pp-track i { transition: width .6s var(--ease-out); }

  /* FAQ : ouverture fluide quand le navigateur sait le faire */
  @supports (interpolate-size: allow-keywords) {
    .faq-list { interpolate-size: allow-keywords; }
    .faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
    .faq-list details[open]::details-content { block-size: auto; }
  }

  /* CTA : le logo se remplit */
  .js .cta-panel .cl-lvl { transition: opacity .4s, transform .55s var(--ease-out); transition-delay: calc(.35s + var(--i) * .16s); }
  .js .cta-panel:not(.is-in) .cl-lvl { opacity: 0; transform: translateY(14px) scaleY(.6); }
  .js .cta-panel.is-in .cl-wave { animation: blink 1.1s ease-in-out 2; animation-delay: calc(1.2s + var(--i) * .15s); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .js .menu-btn {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid var(--line-dark);
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  }
  .js .menu-btn .ic { width: 22px; height: 22px; }
  .js .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--hdr-h) + env(safe-area-inset-top));
    flex-direction: column; align-items: stretch; gap: 20px;
    max-height: calc(100dvh - var(--hdr-h) - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px max(20px, env(safe-area-inset-right)) 28px max(20px, env(safe-area-inset-left));
    background: rgba(10, 22, 19, .97); border-bottom: 1px solid var(--line-dark);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease-out), visibility 0s .25s;
  }
  .js .hdr.menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease-out); }
  .js .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .js .nav-links a { padding: 14px 4px; border-radius: 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); }
  .js .nav-links a:hover { background: transparent; }
  .js .nav-cta { flex-direction: column; }
  html:not(.js) .nav-links { display: none; }
  html:not(.js) .nav { justify-content: flex-end; }
}

@media (max-width: 1080px) {
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .step { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; padding: 0 0 72px; }
  .step-text, .step-fig { position: static; }
  .step-text { padding-top: 0; }
  .js .step:not(.is-active) .step-text { opacity: 1; }
  .fig-card { min-height: 0; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq .section-head { position: static; }
  .faq-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 20px; }
  .faq-nav a { padding: 4px 0; border-left: 0; border-bottom: 2px solid var(--line); }
  .faq-nav a:hover { border-bottom-color: var(--g-400); }
  .pains { grid-template-columns: minmax(0, 1fr); }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .app-steps { gap: 8px; }
  .gcols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .ftr-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { border-radius: 26px; }
  .fact-link { width: 100%; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 2.2rem; }
  .wordmark { width: 100px; }
}

/* Mode contraste forcé : on garde des repères visibles */
@media (forced-colors: active) {
  .pin::before, .gfill, .vbars .bar, .wk-line, .bar, .cmp-bar, .cm-bar i { forced-color-adjust: none; }
  .card, .app-window, .fig-card { border: 1px solid CanvasText; }
}
