/* CamHydra · site de présentation · GREGAN */

:root {
  --bg: #000;
  --text: #f5f5f7;
  --muted: #86868b;
  --muted2: #a1a1a6;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .15);
  --orange: #fd6801;
  --orange2: #ff9a4d;
  --red: #ff453a;
  --green: #30d158;
  --yellow: #ffd60a;
  --navy: #1b3a7a;
  --light: #f5f5f7;
  --ink: #1d1d1f;
  --ink2: #6e6e73;
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typographie ---------- */
.eyebrow { color: var(--orange); font-weight: 600; font-size: clamp(15px, 1.35vw, 19px); letter-spacing: 0; margin-bottom: 12px; }
.h1 { font-size: clamp(46px, 8vw, 112px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
.h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em; }
.dim { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--muted2); margin-top: 22px; max-width: 620px; font-weight: 500; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  box-shadow: 0 10px 34px -10px rgba(253, 104, 1, .7);
  transition: transform .35s var(--ease), background .3s, box-shadow .35s;
}
.btn:hover { background: #ff7a1f; transform: translateY(-1px); box-shadow: 0 16px 44px -10px rgba(253, 104, 1, .85); }
.btn-sm { height: 30px; padding: 0 14px; font-size: 13px; box-shadow: none; }
.btn-sm:hover { box-shadow: none; }
.btn-lg { height: 60px; padding: 0 38px; font-size: 19px; }
.link-down { display: inline-flex; align-items: center; gap: 10px; color: var(--orange2); font-size: 19px; font-weight: 500; }
.link-down::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.link-down:hover::after { transform: translateY(0) rotate(45deg); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 52px;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.nav.scrolled { background: rgba(16, 16, 20, .72); border-color: var(--line); }
.nav.on-light { background: rgba(245, 245, 247, .76); border-color: rgba(0, 0, 0, .08); color: var(--ink); }
.nav.on-light .nav-links { color: rgba(29, 29, 31, .72); }
.nav.on-light .nav-links a:hover, .nav.on-light .nav-links a.on { color: var(--ink); }
.nav.on-light .brand img { filter: invert(1) hue-rotate(180deg) saturate(1.4); }
.nav-inner { max-width: 1100px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -.025em; }
.brand img { width: 16px; height: auto; }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 14px; letter-spacing: 0; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; color: rgba(255, 255, 255, .78); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: #fff; }
@media (max-width: 880px) { .nav-links { display: none; } .nav .btn-sm { margin-left: auto; } }

/* ---------- 1. Accueil ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 660px; overflow: hidden; background: #000; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .9) 16%, rgba(0, 0, 0, .45) 38%, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0) 82%, #000 100%),
    radial-gradient(120% 60% at 50% 100%, transparent 40%, rgba(0, 0, 0, .55) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: calc(52px + 10vh) 22px 0; }
.hero-title {
  font-size: clamp(68px, 13vw, 184px); line-height: .92; font-weight: 700; letter-spacing: -.055em;
  background: linear-gradient(180deg, #fff 35%, #9d9da8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.hero-sub { font-size: clamp(22px, 2.7vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; color: #e8e8ed; margin-top: 10px; }
.br-sm { display: none; }
.hero-cta { display: flex; gap: 30px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.hero-foot {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px; width: max-content; margin: 0 auto;
  display: flex; align-items: center; gap: 9px; padding: 8px 15px 8px 12px; border-radius: 999px;
  font-size: 13px; color: var(--muted2);
  background: rgba(22, 22, 28, .55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .55); } 70% { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }
.rise { opacity: 0; transform: translateY(26px); animation: rise 1.3s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-toasts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.toast {
  position: absolute; left: 0; top: 0; width: 248px;
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px 12px 12px; border-radius: 18px;
  font-size: 13px; line-height: 1.35; color: #fff;
  background: rgba(28, 28, 34, .62); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
  opacity: 0; transition: opacity .5s var(--ease); will-change: transform;
}
.toast.show { opacity: 1; }
.toast .ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--c); box-shadow: 0 0 18px -2px var(--c); }
.toast .ic svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast b { display: block; font-weight: 600; letter-spacing: -.01em; }
.toast small { display: block; color: var(--muted2); font-size: 12px; }
.toast .st { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--green); opacity: 0; transform: translateY(3px); transition: .45s var(--ease); }
.toast .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.toast.taken .st { opacity: 1; transform: none; }

/* ---------- 2. Manifeste ---------- */
.manifesto { max-width: 1100px; margin: 0 auto; padding: clamp(120px, 22vh, 240px) 22px; }
.manifesto-text { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.08; font-weight: 700; letter-spacing: -.04em; }
.js .manifesto-text .w { color: rgba(255, 255, 255, .14); transition: color .35s ease; }
.js .manifesto-text .w.on { color: #fff; }
.js .manifesto-text .w.hl.on { color: var(--orange2); }
.manifesto-text .hl { color: var(--orange2); }

/* ---------- Défilement figé (sections animées) ---------- */
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- 3. Le boîtier en 3D ---------- */
.device-scene { position: relative; height: 520vh; background: radial-gradient(70% 50% at 70% 50%, #0d0f16 0%, #000 70%); }
.box-grid {
  height: 100%; max-width: 1240px; margin: 0 auto; padding: 84px 22px 40px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto;
  grid-template-areas: "head stage" "list stage"; align-content: center; column-gap: 48px;
}
.box-head { grid-area: head; align-self: end; }
.feat-list { grid-area: list; margin-top: 34px; display: grid; gap: 4px; align-self: start; }
.box-head .h2 { font-size: clamp(30px, 3.2vw, 48px); }
.feat { position: relative; padding: 10px 0 10px 20px; opacity: .38; transition: opacity .5s var(--ease); }
.feat::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background .5s; }
.feat.on { opacity: 1; }
.feat.on::before { background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.feat h3 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.feat p { font-size: 15px; color: var(--muted2); max-width: 420px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.feat.on p { max-height: 96px; opacity: 1; margin-top: 4px; }
.box-stage { grid-area: stage; position: relative; height: min(76vh, 720px); perspective: 1500px; perspective-origin: 50% 40%; }
.box-glow { position: absolute; left: 50%; top: 48%; width: 120%; aspect-ratio: 1.4; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(70, 100, 190, .22), rgba(253, 104, 1, .06) 55%, transparent); pointer-events: none; }
.box-floor { position: absolute; left: 50%; top: 80%; width: 64%; height: 70px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .9), transparent); filter: blur(6px); opacity: .9; }
.box-floor::after { content: ""; position: absolute; inset: -40px -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 140, 230, .14), transparent); }
.box3d { position: absolute; left: 50%; top: 54%; width: 0; height: 0; transform-style: preserve-3d; }
.box3d .g { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.box3d .f { position: absolute; left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-color: #111114; }
.box3d .f.tex::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }
.box3d .f.rim { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.box3d .f.inner { background-color: #060607 !important; }

/* Face avant (capteurs) */
.f-front .det { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; }
.f-front .hole { width: 2.2%; aspect-ratio: 1; background: #020203; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .9), 0 .5px 0 rgba(255, 255, 255, .06); }
.f-front .mini { width: 5%; aspect-ratio: 1; background: radial-gradient(circle at 40% 35%, #2a3550 0 18%, #07080c 40%, #000 70%); box-shadow: 0 0 0 1.5px #050506; }
.f-front .grille { width: 12%; aspect-ratio: 1; border-radius: 6%; background: radial-gradient(circle, #010101 0 34%, transparent 38%) 0 0 / 16.66% 16.66%; }
.f-front .lens {
  width: 13%; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, #030305 0 30%, #1a1e2b 31% 40%, #08090c 41% 54%, #9ea3ad 55% 59%, #3c3f46 60% 66%, #101013 67% 100%);
  box-shadow: 0 0 0 2px #050506, 0 3px 8px rgba(0, 0, 0, .7);
}
.f-front .lens::before { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(170, 150, 255, .75), rgba(70, 90, 220, .3) 30%, transparent 60%), radial-gradient(circle at 70% 72%, rgba(255, 140, 70, .35), transparent 45%); }
.f-front .lens::after { content: ""; position: absolute; left: 30%; top: 24%; width: 13%; height: 13%; border-radius: 50%; background: #fff; opacity: .85; filter: blur(.4px); }
.f-front .pir {
  width: 16%; aspect-ratio: 1;
  background:
    repeating-conic-gradient(from 10deg, rgba(0, 0, 0, .06) 0 15deg, rgba(255, 255, 255, .05) 15deg 30deg),
    radial-gradient(circle at 38% 30%, #fff 0%, #eef0f4 18%, #c9ccd4 48%, #9a9ea8 72%, #61646c 100%);
  box-shadow: 0 0 0 2.5px #18181b, 0 6px 14px rgba(0, 0, 0, .65), inset 0 -3px 6px rgba(0, 0, 0, .25);
}
.f-front .pir::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 0 22%, rgba(0, 0, 0, .07) 23% 24%, transparent 25% 46%, rgba(0, 0, 0, .07) 47% 48%, transparent 49%); }
.f-front .led { width: 1.8%; aspect-ratio: 1; background: #ff8a3d; box-shadow: 0 0 6px 2px rgba(253, 104, 1, .75); animation: ledBlink 3s infinite; }
@keyframes ledBlink { 0%, 84%, 100% { opacity: .35; } 88%, 96% { opacity: 1; } }
.f-front .ping { width: 16%; aspect-ratio: 1; border: 1.5px solid var(--orange2); opacity: 0; }
.f-front.a0 .ping.pir-p, .f-front.a1 .ping.lens-p { animation: ping 2s var(--ease) infinite; }
.f-front.a0 .ping.pir-p.b, .f-front.a1 .ping.lens-p.b { animation-delay: 1s; }
@keyframes ping { 0% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.2); } }
.f-front.a1 .lens { box-shadow: 0 0 0 2px #050506, 0 0 26px 6px rgba(255, 60, 60, .38); }
.f-front.a0 .pir { box-shadow: 0 0 0 2.5px #18181b, 0 0 34px 8px rgba(253, 104, 1, .45); }

/* Dos : bande auto-agrippante */
.velcro { position: absolute; left: 6%; top: 18%; width: 64%; height: 62%; border-radius: 3px; background-color: #0b0c12; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.4px), radial-gradient(rgba(0, 0, 0, .6) 1px, transparent 1.4px); background-size: 4px 4px, 3px 3px; background-position: 0 0, 1px 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); transition: box-shadow .5s; }
.f-back.a5 .velcro { box-shadow: inset 0 0 0 1.5px var(--orange), 0 0 30px rgba(253, 104, 1, .35); }

/* Couvercle */
.screw { position: absolute; width: 3.2%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 45% 40%, #2a2a2f, #050506 70%); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .05); }
.screw::after { content: ""; position: absolute; inset: 32%; background: linear-gradient(#000, #000) center / 100% 22% no-repeat, linear-gradient(#000, #000) center / 22% 100% no-repeat; }

/* Carte électronique */
.board { border-radius: 2.5%; background-color: #0a2418 !important; background-image: repeating-linear-gradient(0deg, rgba(212, 175, 55, .08) 0 1px, transparent 1px 9px), repeating-linear-gradient(90deg, rgba(212, 175, 55, .06) 0 1px, transparent 1px 13px); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .25); }
.chip { position: absolute; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .55); border-radius: 3px; transition: box-shadow .5s, color .5s; }
.chip.mod { background: linear-gradient(145deg, #c9ccd2, #8f939b); color: #2a2d33; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.chip.ant { background: linear-gradient(145deg, #d9c9a0, #b39b62); color: #3d3320; }
.chip.cpu { background: #111214; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.chip.sen { background: #18191c; }
.chip.sim { background: repeating-linear-gradient(90deg, #c8a54a 0 2px, #8a7334 2px 4px); }
.board.a2 .chip.net, .board.a3 .chip.sen { box-shadow: 0 0 0 1.5px var(--orange), 0 0 22px rgba(253, 104, 1, .7); color: #fff; }
.board.a2 .chip.mod.net, .board.a2 .chip.ant.net { color: #000; }

/* Batterie */
.batt { border-radius: 4%; background-color: #0d1424 !important; display: flex; gap: 4%; padding: 5%; transition: box-shadow .5s; }
.batt i { flex: 1; border-radius: 40% / 12%; background: linear-gradient(90deg, #1b2640, #3a4d78 45%, #1b2640); }
.batt.a4 { box-shadow: 0 0 0 1.5px var(--orange), 0 0 40px rgba(253, 104, 1, .55); }
.batt.a4 i { background: linear-gradient(90deg, #4a2a10, #fd6801 45%, #4a2a10); }

.box-progress { position: absolute; left: 50%; bottom: 28px; width: 120px; height: 2px; transform: translateX(-50%); border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.box-progress i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--orange); }

@media (max-width: 880px) {
  .device-scene { height: 560vh; }
  .box-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "head" "stage" "list"; align-content: stretch; padding: 76px 20px 56px; }
  .box-head .h2 { font-size: clamp(30px, 8vw, 44px); }
  .box-stage { height: auto; min-height: 0; }
  .feat-list { position: relative; margin-top: 0; min-height: 118px; }
  .feat { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .feat.on { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(110px, 14vw, 180px) 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.section-head { max-width: 920px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.js [data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 4. Surveillance (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, #141418, #0c0c0f); border: 1px solid var(--line);
  isolation: isolate;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(253, 104, 1, .11), transparent 60%); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; margin-top: 12px; }
.tile p { font-size: 15px; line-height: 1.45; color: var(--muted2); margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--c, var(--orange)); }
.tag svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.art { margin-top: auto; padding-top: 22px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-2x2 { grid-column: span 2; grid-row: span 2; }

.intru-main { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9.4; border: 1px solid var(--line); }
.intru-main svg { width: 100%; height: 100%; }
.i-sil { opacity: .9; }
.i-box { fill: none; stroke: var(--orange); stroke-width: .9; stroke-dasharray: 140; stroke-dashoffset: 140; animation: drawBox 4s var(--ease) infinite; }
.i-label { opacity: 0; animation: showLabel 4s infinite; }
.i-label rect { fill: var(--orange); }
.i-label text { font: 700 4.3px var(--mono); fill: #fff; letter-spacing: .02em; }
.i-scan { fill: url(#gScan); animation: scan 4s linear infinite; }
@keyframes drawBox { 0%, 30% { stroke-dashoffset: 140; } 50%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes showLabel { 0%, 48% { opacity: 0; } 54%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes scan { 0% { transform: translateY(-12px); opacity: 0; } 5% { opacity: 1; } 40% { transform: translateY(100px); opacity: 1; } 42%, 100% { opacity: 0; transform: translateY(100px); } }
.cam-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font: 600 11px var(--mono); color: #fff; background: rgba(0, 0, 0, .5); }
.cam-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: live 2s infinite; }
.shots5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.s5 { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 11; border: 1px solid var(--line); }
.s5 svg { width: 100%; height: 100%; }
.s5 b { position: absolute; left: 6px; bottom: 4px; font: 600 10px var(--mono); color: rgba(255, 255, 255, .7); }
.s5.yes::after { content: ""; position: absolute; right: 5px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.s5 use { fill: url(#gPerson); }

.wave { width: 100%; }
.wave-base { stroke: rgba(255, 255, 255, .1); stroke-width: 1; fill: none; }
.wave-line { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: wave 3s var(--ease) infinite; filter: drop-shadow(0 0 6px rgba(253, 104, 1, .7)); }
@keyframes wave { 0% { stroke-dashoffset: 420; } 60%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }

.detour, .exit { width: 100%; overflow: visible; }
.r-plan { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; }
.r-real { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: route 4s var(--ease) infinite; }
.r-gap { stroke: var(--orange2); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: 0; animation: fadeMid 4s infinite; }
.r-txt { font: 700 12px var(--mono); fill: var(--orange2); opacity: 0; animation: fadeMid 4s infinite; }
.r-truck { fill: #fff; opacity: 0; animation: fadeMid 4s infinite; filter: drop-shadow(0 0 6px rgba(253, 104, 1, .9)); }
@keyframes route { 0% { stroke-dashoffset: 300; } 55%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fadeMid { 0%, 50% { opacity: 0; } 58%, 90% { opacity: 1; } 100% { opacity: 0; } }
.hw { stroke: rgba(255, 255, 255, .12); stroke-width: 16; fill: none; stroke-linecap: round; }
.hw-x { stroke: rgba(255, 255, 255, .1); stroke-width: 9; fill: none; stroke-linecap: round; }
.hw-real { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: route 4s var(--ease) infinite; }
.hw-ok { font: 600 11px var(--font); fill: var(--green); }
.hw-alert { fill: var(--red); opacity: 0; animation: fadeMid 4s infinite; filter: drop-shadow(0 0 8px var(--red)); }

.silence-art { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.bars i { width: 8px; border-radius: 2px; background: #ffd60a; animation: barFade 3.2s infinite; }
.bars i:nth-child(1) { height: 25%; animation-delay: .9s; }
.bars i:nth-child(2) { height: 50%; animation-delay: .6s; }
.bars i:nth-child(3) { height: 75%; animation-delay: .3s; }
.bars i:nth-child(4) { height: 100%; }
@keyframes barFade { 0%, 15% { opacity: 1; } 45%, 85% { opacity: .12; } 100% { opacity: 1; } }
.silence-clock { font: 600 clamp(40px, 4vw, 54px) var(--mono); letter-spacing: -.04em; color: #ffd60a; line-height: 1; text-shadow: 0 0 28px rgba(255, 214, 10, .35); }

.t-deliv { flex-direction: row; gap: 26px; align-items: stretch; }
.deliv-copy { flex: 1 1 52%; display: flex; flex-direction: column; }
.deliv-art { flex: 1 1 48%; position: relative; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.deliv-art svg { width: 100%; }
.geo { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 4 5; animation: spin 30s linear infinite; transform-origin: 190px 100px; }
.geo-fill { fill: rgba(48, 209, 88, .07); animation: geoPulse 5s infinite; transform-origin: 190px 100px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes geoPulse { 0%, 55% { fill: rgba(48, 209, 88, .04); } 62%, 95% { fill: rgba(48, 209, 88, .16); } 100% { fill: rgba(48, 209, 88, .04); } }
.road { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 10; stroke-linecap: round; }
.wh path { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.truck-dot { fill: #fff; filter: drop-shadow(0 0 7px rgba(255, 255, 255, .9)); }
.geo-txt { font: 600 12px var(--mono); fill: var(--green); }
.deliv-pill { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--green); background: rgba(48, 209, 88, .1); border: 1px solid rgba(48, 209, 88, .25); animation: pillOn 5s infinite; }
.deliv-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@keyframes pillOn { 0%, 55% { opacity: .25; } 62%, 95% { opacity: 1; } 100% { opacity: .25; } }

.status-list { display: grid; gap: 10px; }
.status-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 14px; color: var(--muted2); }
.st { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { color: var(--green); }
.st.warn { color: var(--yellow); animation: pillOn 3s infinite; }

.climate { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.climate b { display: block; font-size: clamp(34px, 3.2vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: #64d2ff; }
.climate small { font-size: .5em; font-weight: 600; letter-spacing: 0; }
.climate span { font-size: 12.5px; color: var(--muted); }
.spark { grid-column: 1 / -1; width: 100%; margin-top: 10px; }
.spark path { fill: none; stroke: #64d2ff; stroke-width: 2; stroke-linecap: round; opacity: .8; stroke-dasharray: 260; stroke-dashoffset: 260; }
.tile.in .spark path { animation: draw 2.4s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2x2 { grid-row: span 1; }
  .span-3 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .span-2, .span-3, .span-2x2 { grid-column: auto; }
  .tile { padding: 24px; min-height: 280px; }
  .t-deliv { flex-direction: column; }
}

/* ---------- 5. La nuit ---------- */
.night { position: relative; height: 480vh; }
.night-sticky {
  max-width: 1260px; margin: 0 auto; padding: 84px 22px 40px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto auto;
  grid-template-areas: "head cam" "steps cam"; column-gap: 56px; align-content: center;
}
.night-head { grid-area: head; align-self: end; }
.night-steps { grid-area: steps; position: relative; min-height: 210px; margin-top: 30px; }
.nstep { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.nstep.on { opacity: 1; transform: none; }
.nstep-k { font: 600 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.nstep h3 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; margin: 8px 0 10px; }
.nstep p { font-size: 17px; color: var(--muted2); max-width: 420px; }
.nstep-dots { position: absolute; left: 0; bottom: 0; display: flex; gap: 6px; }
.nstep-dots i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); transition: background .4s, width .4s; }
.nstep-dots i.on { background: var(--orange); width: 34px; }

.cam { grid-area: cam; position: relative; align-self: center; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #0a0c0b; border: 1px solid var(--line2); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .03); transition: box-shadow .6s; }
.cam.alert { box-shadow: 0 0 0 2px rgba(255, 69, 58, .65), 0 0 90px -10px rgba(255, 69, 58, .35), 0 50px 120px -40px rgba(0, 0, 0, .95); }
.cam-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-txt { font: 700 13px var(--mono); fill: #fff; letter-spacing: .04em; }
.cam-grain { position: absolute; inset: -50%; background-size: 160px 160px; opacity: .14; mix-blend-mode: overlay; animation: grain .9s steps(5) infinite; pointer-events: none; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); } 60% { transform: translate(-4%, -3%); } 80% { transform: translate(7%, 5%); } 100% { transform: translate(0, 0); } }
.cam-lines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); pointer-events: none; }
.cam-flash { position: absolute; inset: 0; background: #e9f2ee; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }
.hud { position: absolute; inset: 0; padding: 16px 18px; font: 500 12px var(--mono); color: rgba(235, 245, 240, .85); letter-spacing: .03em; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.hud > span { position: absolute; display: inline-flex; align-items: center; gap: 8px; }
.hud-tl { left: 18px; top: 16px; } .hud-tr { right: 18px; top: 16px; } .hud-bl { left: 18px; bottom: 16px; } .hud-br { right: 18px; bottom: 16px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: live 1.6s infinite; }
.shots { display: inline-flex; gap: 3px; }
.shots i { width: 9px; height: 9px; border-radius: 2px; border: 1px solid rgba(235, 245, 240, .6); transition: background .2s; }
.shots i.on { background: var(--orange); border-color: var(--orange); }
.notif {
  position: absolute; top: 18px; right: 18px; width: min(330px, 78%); padding: 14px 16px; border-radius: 20px;
  background: rgba(40, 40, 46, .7); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); color: #fff;
  opacity: 0; transform: translateY(-24px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.notif.on { opacity: 1; transform: none; }
.notif-app { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }
.notif-icon { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #0f1830; }
.notif-icon img { width: 11px; }
.notif-when { margin-left: auto; font-weight: 400; letter-spacing: 0; }
.notif b { display: block; margin-top: 8px; font-size: 15px; letter-spacing: -.01em; }
.notif p { font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, .82); margin-top: 2px; }

@media (max-width: 880px) {
  .night { height: 520vh; }
  .night-sticky { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "head" "cam" "steps"; align-content: start; padding: 76px 20px 30px; }
  .night-head .h2 { font-size: clamp(32px, 9vw, 46px); }
  .cam { margin-top: 18px; border-radius: 18px; aspect-ratio: 4 / 3.3; }
  .night-steps { margin-top: 22px; min-height: 180px; }
  .nstep p { font-size: 16px; }
  .hud { font-size: 10px; padding: 10px; }
  .hud-tl { left: 10px; top: 10px; } .hud-tr { right: 10px; top: 10px; } .hud-bl { left: 10px; bottom: 10px; max-width: 60%; } .hud-br { right: 10px; bottom: 10px; }
  .notif { top: 34px; right: 10px; left: 10px; width: auto; padding: 11px 13px; }
  .notif p { font-size: 12.5px; }
}

/* ---------- 6. Heure d'arrivée ---------- */
.eta { padding: clamp(110px, 14vw, 180px) 0; background: radial-gradient(50% 60% at 78% 50%, rgba(253, 104, 1, .13), transparent 70%), #000; }
.eta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.glass { background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)); border: 1px solid var(--line2); border-radius: 34px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08); }
.eta-card { padding: clamp(26px, 3.4vw, 44px); }
.eta-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.eta-plate { font: 600 13px var(--mono); padding: 4px 9px; border-radius: 7px; background: rgba(255, 255, 255, .08); letter-spacing: .04em; }
.eta-live { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 600; }
.eta-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live 2s infinite; }
.eta-route { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.eta-arrow { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .08)); position: relative; }
.eta-label { margin-top: 26px; color: var(--muted2); font-size: 15px; }
.eta-time { font-size: clamp(64px, 8.6vw, 124px); font-weight: 700; letter-spacing: -.055em; line-height: 1; background: linear-gradient(180deg, #fff 30%, #ffb47e); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.eta-left { font-size: 21px; color: var(--muted2); margin-top: 6px; }
.eta-left b { color: #fff; font-variant-numeric: tabular-nums; }
.eta-bar { position: relative; height: 6px; margin-top: 30px; border-radius: 6px; background: rgba(255, 255, 255, .1); --w: 27%; }
.eta-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ffb47e); transition: width 2.6s var(--ease); }
.eta-truck { position: absolute; top: 50%; left: var(--w); width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(253, 104, 1, .3), 0 0 24px rgba(253, 104, 1, .9); transition: left 2.6s var(--ease); }
.eta-meta { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 880px) { .eta-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- 7. Alarmes : la console ---------- */
.laptop { max-width: 1060px; margin: 0 auto; padding: 10px; border-radius: 24px; background: linear-gradient(180deg, #2c2c32, #141418); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 70px 140px -60px rgba(0, 0, 0, 1), 0 0 120px -50px rgba(253, 104, 1, .25); }
.screen { position: relative; container-type: inline-size; aspect-ratio: 16 / 9.6; border-radius: 15px; overflow: hidden; background: #0b0c10; display: flex; flex-direction: column; font-size: 13px; color: #e9e9ee; }
@supports (font-size: 1cqw) { .screen { font-size: 1.24cqw; } }
.ui-top { flex: none; height: 3.6em; display: flex; align-items: center; gap: 2.4em; padding: 0 1.6em; border-bottom: 1px solid rgba(255, 255, 255, .07); background: #101116; }
.ui-brand { display: flex; align-items: center; gap: .6em; font-weight: 700; letter-spacing: -.01em; }
.ui-brand img { width: 1em; }
.ui-nav { display: flex; gap: 1.8em; color: #8d8d96; }
.ui-nav b { color: #fff; font-weight: 600; }
.ui-sound { margin-left: auto; width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.ui-sound svg { width: 1.3em; height: 1.3em; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-sound .w1, .ui-sound .w2 { opacity: 0; }
[data-state="0"] .ui-sound { background: rgba(255, 69, 58, .2); }
[data-state="0"] .ui-sound svg { stroke: var(--red); }
[data-state="0"] .ui-sound .w1 { animation: sw .9s infinite; }
[data-state="0"] .ui-sound .w2 { animation: sw .9s .2s infinite; }
@keyframes sw { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.ui-body { flex: 1; display: grid; grid-template-columns: 38% 62%; min-height: 0; }
.ui-list { padding: 1.2em; border-right: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: .55em; overflow: hidden; }
.ui-h { font-size: .82em; font-weight: 600; color: #6f6f78; text-transform: uppercase; letter-spacing: .08em; margin: .5em 0 .1em .2em; }
.ui-row { position: relative; display: flex; align-items: center; gap: .9em; padding: .85em 1em; border-radius: .9em; background: rgba(255, 255, 255, .035); }
.ui-row.dim { opacity: .6; }
.ui-txt { min-width: 0; flex: 1; }
.ui-txt b { display: block; font-weight: 600; font-size: 1.02em; }
.ui-txt small { display: block; color: #8d8d96; font-size: .86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sev { flex: none; width: .7em; height: .7em; border-radius: 50%; background: var(--red); }
.sev.ok { background: var(--green); } .sev.late { background: var(--orange); } .sev.idle { background: #6f6f78; }
.ui-alarm { background: rgba(255, 69, 58, .09); box-shadow: inset 0 0 0 1px rgba(255, 69, 58, .3); transition: background .6s, box-shadow .6s; flex-wrap: wrap; }
.ui-alarm .ui-txt { flex: 1 1 60%; }
[data-state="0"] .ui-alarm { animation: alarmBlink 1s infinite; }
@keyframes alarmBlink { 50% { background: rgba(255, 69, 58, .2); } }
[data-state="0"] .ui-alarm .sev { animation: live 1.2s infinite; box-shadow: 0 0 0 0 rgba(255, 69, 58, .6); }
[data-state="1"] .ui-alarm, [data-state="2"] .ui-alarm { background: rgba(253, 104, 1, .09); box-shadow: inset 0 0 0 1px rgba(253, 104, 1, .35); }
[data-state="1"] .ui-alarm .sev, [data-state="2"] .ui-alarm .sev { background: var(--orange); }
[data-state="3"] .ui-alarm { background: rgba(48, 209, 88, .07); box-shadow: inset 0 0 0 1px rgba(48, 209, 88, .25); }
[data-state="3"] .ui-alarm .sev { background: var(--green); }
.ui-chip { display: none; padding: .25em .7em; border-radius: 99em; font-size: .82em; font-weight: 600; white-space: nowrap; animation: chipIn .5s var(--ease); }
@keyframes chipIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ui-chip.c0 { background: rgba(255, 69, 58, .18); color: #ff8a80; }
.ui-chip.c1, .ui-chip.c2 { background: rgba(253, 104, 1, .18); color: #ffb27a; }
.ui-chip.c3 { background: rgba(48, 209, 88, .16); color: #7ee29a; }
[data-state="0"] .c0, [data-state="1"] .c1, [data-state="2"] .c2, [data-state="3"] .c3 { display: inline-block; }
.ui-map { position: relative; overflow: hidden; background: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.3px) 0 0 / 1.6em 1.6em, radial-gradient(80% 80% at 50% 45%, #121726, #0b0c10); }
.ui-france { position: absolute; left: 50%; top: 50%; height: 92%; width: auto; transform: translate(-50%, -50%); overflow: visible; }
.ui-france .land { fill: rgba(80, 110, 190, .1); stroke: rgba(120, 150, 230, .45); stroke-width: 1; }
.ui-france .rt { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 1.6; stroke-dasharray: 3 4; }
.ui-france .pin { fill: var(--green); }
.ui-france .pin.late { fill: var(--orange); }
.ui-france .pin.al { fill: var(--red); }
.ui-france .ring { fill: none; stroke: var(--red); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 1.6s var(--ease) infinite; }
[data-state="3"] .ui-france .pin.al { fill: var(--green); }
[data-state="3"] .ui-france .ring, [data-state="2"] .ui-france .ring, [data-state="1"] .ui-france .ring { stroke: var(--orange); }
[data-state="3"] .ui-france .ring { opacity: 0; animation: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }
.ui-dossier { position: absolute; right: 1.3em; top: 1.3em; width: 15em; padding: 1.1em; border-radius: 1em; background: rgba(28, 29, 36, .86); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: translateX(1.5em); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-state="2"] .ui-dossier, [data-state="3"] .ui-dossier { opacity: 1; transform: none; }
.ui-dh { font-weight: 700; font-size: 1em; }
.ui-dmap { height: 4.4em; margin: .7em 0; border-radius: .6em; background: radial-gradient(circle at 58% 48%, var(--red) 0 .28em, rgba(255, 69, 58, .35) .3em .6em, transparent .62em), repeating-linear-gradient(35deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 1.1em), repeating-linear-gradient(-55deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 1.4em), #161a24; }
.ui-dl { font-size: .78em; color: #8d8d96; margin-top: .45em; }
.ui-dv { font-size: .92em; font-weight: 600; }
.ui-pdf { display: inline-block; margin-top: .8em; padding: .3em .8em; border-radius: 99em; font-size: .8em; font-weight: 700; color: #000; background: #fff; }

@media (max-width: 640px) {
  .laptop { padding: 6px; border-radius: 20px; }
  .screen { aspect-ratio: auto; border-radius: 15px; }
  @supports (font-size: 1cqw) { .screen { font-size: 3.3cqw; } }
  .ui-nav span { display: none; }
  .ui-body { grid-template-columns: minmax(0, 1fr); }
  .ui-list { border-right: 0; }
  .ui-map { height: 24em; border-top: 1px solid rgba(255, 255, 255, .07); }
  .ui-dossier { right: .8em; top: .8em; width: 14em; }
}
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; max-width: 1060px; margin: 52px auto 0; }
.s4 { position: relative; padding-top: 22px; opacity: .38; transition: opacity .5s var(--ease); }
.s4.on { opacity: 1; }
.s4-n { font: 600 13px var(--mono); color: var(--orange); }
.s4 h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 6px; }
.s4 p { font-size: 15px; color: var(--muted2); }
.s4::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.s4-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.s4.done .s4-bar { transform: scaleX(1); }
.s4.on .s4-bar { animation: fill var(--step, 3s) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 880px) { .steps4 { grid-template-columns: 1fr 1fr; gap: 26px 20px; } .s4 h3 { font-size: 19px; } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } .s4 { opacity: .5; } }

/* ---------- 8 & 9. Sections claires ---------- */
.light { background: var(--light); color: var(--ink); color-scheme: light; }
.light-2 { padding-top: 0; }
.light .eyebrow { color: #e25c00; }
.light .dim, .light .lead { color: var(--ink2); }
.docs { position: relative; height: clamp(360px, 46vw, 560px); display: flex; justify-content: center; align-items: center; }
.doc { position: absolute; width: clamp(180px, 23vw, 290px); aspect-ratio: 1 / 1.414; padding: 6.5%; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .05); transition: transform 1.6s var(--ease); display: flex; flex-direction: column; gap: 7%; overflow: hidden; }
.doc.d1 { transform: translate(-6%, 3%) rotate(-3deg); }
.doc.d3 { transform: translate(6%, 3%) rotate(3deg); }
.doc.d2 { z-index: 2; transform: translateY(-2%); }
.docs.in .d1 { transform: translate(-82%, 6%) rotate(-9deg); }
.docs.in .d3 { transform: translate(82%, 6%) rotate(9deg); }
.docs.in .d2 { transform: translateY(-4%) scale(1.05); }
.doc-h { font-size: clamp(11px, 1.1vw, 14px); font-weight: 700; padding: .7em .9em; border-radius: .6em; color: #fff; background: var(--navy); }
.doc-h.hot { background: linear-gradient(90deg, #c83c00, var(--orange)); }
.doc-map { position: relative; flex: 0 0 28%; border-radius: 8px; background: repeating-linear-gradient(30deg, #e6e8ee 0 1px, transparent 1px 12px), repeating-linear-gradient(-60deg, #e9ebf0 0 1px, transparent 1px 16px), #f3f4f7; }
.doc-map i { position: absolute; left: 56%; top: 46%; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(253, 104, 1, .25); transform: translate(-50%, -50%); }
.doc-lines { display: grid; gap: 6px; }
.doc-lines i, .doc-log i { display: block; height: 6px; width: var(--w); border-radius: 3px; background: #e4e5ea; }
.doc-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.doc-photos i { aspect-ratio: 1; border-radius: 5px; background: radial-gradient(circle at 50% 38%, #8f9893 0 12%, transparent 13%), linear-gradient(180deg, #2b312d, #454d48); }
.doc-hash { margin-top: auto; font: 500 clamp(8px, .8vw, 10.5px) var(--mono); color: var(--ink2); }
.doc-route { flex: 0 0 26%; border-radius: 8px; background: #f3f4f7; display: grid; place-items: center; }
.doc-route svg { width: 80%; }
.doc-route path { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; }
.doc-route circle { fill: var(--navy); }
.doc-tl { display: grid; gap: 7%; font-size: clamp(9px, .95vw, 12px); color: var(--ink2); }
.doc-tl li { display: flex; gap: 8px; }
.doc-tl b { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.doc-chip { align-self: flex-start; margin-top: auto; padding: .35em .8em; border-radius: 99em; font-size: clamp(9px, .9vw, 11.5px); font-weight: 700; color: var(--navy); background: rgba(27, 58, 122, .1); }
.doc-chip.ok { color: #0f7a33; background: rgba(48, 209, 88, .16); }
.doc-log { display: grid; gap: 9%; }
.doc-log li { display: flex; align-items: center; gap: 8px; }
.doc-log b { font: 600 clamp(9px, .9vw, 11px) var(--mono); }
.docs-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; max-width: 1000px; margin: 36px auto 0; text-align: center; }
.docs-caps h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.docs-caps p { color: var(--ink2); font-size: 15px; margin-top: 6px; }
@media (max-width: 760px) {
  .docs { height: 112vw; max-height: 520px; }
  .doc { width: 48vw; }
  .docs.in .d1 { transform: translate(-48%, -16%) rotate(-8deg); }
  .docs.in .d3 { transform: translate(48%, 16%) rotate(8deg); }
  .docs.in .d2 { transform: translateY(0) scale(1.02); }
  .docs-caps { grid-template-columns: 1fr; gap: 24px; }
}

.bento-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(320px, auto); }
.tile.tl { background: #fff; border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); color: var(--ink); }
.tile.tl::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(253, 104, 1, .07), transparent 60%); }
.tile.tl h3 { margin-top: 0; font-size: clamp(22px, 2vw, 28px); }
.tile.tl p { color: var(--ink2); }
.fleets { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; }
.fleet { height: 110px; border-radius: 18px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: #f2f2f5; color: var(--ink2); }
.fleet svg { width: 28px; height: 28px; margin: auto; fill: none; stroke: #b0b0b8; stroke-width: 1.8; }
.fleet.on { background: linear-gradient(135deg, #0f1830, #1b3a7a); color: #fff; box-shadow: 0 20px 40px -20px rgba(27, 58, 122, .7); }
.fleet.on b { font-size: 17px; }
.fleet.on small { opacity: .7; font-size: 12.5px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.otp i { font: 600 clamp(22px, 2.2vw, 30px) var(--mono); font-style: normal; display: grid; place-items: center; aspect-ratio: .78; border-radius: 12px; background: #f2f2f5; color: var(--ink); opacity: .15; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease), background .35s; }
.otp i.on { opacity: 1; transform: none; }
.otp.ok i { background: rgba(48, 209, 88, .16); color: #0f7a33; }
.splt { position: relative; height: 80px; }
.splt svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.splt-line { stroke: #d9d9df; stroke-width: 2; stroke-dasharray: 4 5; fill: none; }
.splt-dot { fill: var(--orange); }
.splt-dot.b { fill: var(--navy); }
.node { position: absolute; top: 50%; transform: translateY(-50%); padding: 8px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; background: #fff; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .05); }
.node.n1 { left: 0; color: var(--navy); }
.node.n2 { right: 0; color: #c84f00; }
.phone-art { display: grid; place-items: center; }
.phone { position: relative; width: 120px; height: 200px; border-radius: 26px; padding: 26px 10px 10px; background: #0b0c10; box-shadow: 0 0 0 4px #1d1d22, 0 24px 40px -18px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 6px; margin-bottom: -60px; }
.ph-notch { position: absolute; top: 8px; left: 50%; width: 38px; height: 10px; border-radius: 6px; transform: translateX(-50%); background: #000; }
.ph-row { height: 18px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.ph-row.red { background: rgba(255, 69, 58, .35); animation: alarmBlink 1.4s infinite; }
.ph-map { flex: 1; border-radius: 8px; background: radial-gradient(circle at 60% 40%, var(--orange) 0 3px, transparent 4px), radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.3px) 0 0 / 8px 8px, #121726; }
.ph-tabs { display: flex; justify-content: space-around; padding-top: 2px; }
.ph-tabs i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.ph-tabs i:first-child { background: var(--orange); }
.quiet { display: grid; place-items: center; }
.quiet svg { width: 72px; height: 72px; fill: #1b3a7a; filter: drop-shadow(0 10px 24px rgba(27, 58, 122, .35)); }
.t-fleet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: 30px; }
.t-fleet .art { margin: 0; padding: 0; }
.dots1000 { position: relative; width: 100%; aspect-ratio: 50 / 20; --dot: radial-gradient(circle, var(--c) 0 34%, transparent 38%) 0 0 / 2% 5%; }
.dots1000::before, .dots1000::after { content: ""; position: absolute; inset: 0; }
.dots1000::before { --c: #d6d6dc; background: var(--dot); }
.dots1000::after { --c: var(--orange); background: var(--dot); clip-path: inset(0 100% 0 0); transition: clip-path 2.8s var(--ease) .3s; }
.dots1000.in::after { clip-path: inset(0 0 0 0); }
@media (max-width: 1040px) { .bento-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento-3 .span-3 { grid-column: span 2; } }
@media (max-width: 640px) { .bento-3 { grid-template-columns: minmax(0, 1fr); } .bento-3 .span-2, .bento-3 .span-3 { grid-column: auto; } .t-fleet { grid-template-columns: 1fr; } .fleets { grid-template-columns: 1.4fr 1fr 1fr; } .phone { margin-bottom: -40px; } }

/* ---------- 10. Chiffres ---------- */
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 40px; }
.num b { display: block; font-size: clamp(54px, 7.2vw, 104px); font-weight: 700; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff 30%, #7c7c86); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; padding-bottom: .06em; }
.num > span { display: block; margin-top: 12px; color: var(--muted2); font-size: 17px; line-height: 1.4; }
@media (max-width: 760px) { .nums { grid-template-columns: 1fr 1fr; gap: 44px 20px; } .num > span { font-size: 15px; } }

/* ---------- 11. Pour démarrer ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(120px, 15vw, 200px) 0 clamp(110px, 13vw, 170px); }
.cta::before { content: ""; position: absolute; left: 50%; top: 58%; width: min(1200px, 160vw); aspect-ratio: 1.7; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(253, 104, 1, .36), rgba(253, 104, 1, .08) 55%, transparent); pointer-events: none; }
.cta .wrap { position: relative; }
.start3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: 60px auto; text-align: left; }
.start3 li { padding: 28px; border-radius: 26px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.start3 .n { font: 600 13px var(--mono); color: var(--orange2); }
.start3 h3 { margin-top: 12px; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.cta-fine { margin-top: 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .start3 { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 52px; color: var(--muted); font-size: 12.5px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot .brand { color: var(--text); font-size: 17px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.foot-fine { margin-top: 22px; line-height: 1.5; }

/* ---------- Bouton pause des animations ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.motion-toggle {
  position: fixed; z-index: 60; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(28, 28, 34, .6); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .3s, transform .3s var(--ease);
}
.motion-toggle:hover { background: rgba(52, 52, 60, .8); transform: scale(1.06); }
.motion-toggle svg { width: 15px; height: 15px; fill: currentColor; }
.motion-toggle .i-play, html.paused .motion-toggle .i-pause { display: none; }
html.paused .motion-toggle .i-play { display: block; }
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }

/* ---------- Pages simples (mentions légales, page introuvable) ---------- */
.page-simple .nav-inner .btn-sm { margin-left: auto; }
.legal { max-width: 760px; padding-top: 140px; padding-bottom: 100px; }
.legal section { margin-top: 44px; }
.legal h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.legal p { color: var(--muted2); margin-top: 8px; }
.legal b { color: var(--text); }
.legal a { color: var(--orange2); }
.lost { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 40px 22px; }
.lost .lead { margin: 0 0 12px; }

/* ---------- Téléphone ---------- */
@media (max-width: 560px) {
  .br-sm { display: inline; }
  .hero-content { padding-top: calc(52px + 9vh); }
  .hero-cta { flex-direction: column; gap: 18px; }
  .toast { width: calc(100% - 32px); }
  .manifesto { padding: 120px 20px; }
  .wrap { padding: 0 20px; }
}

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
  .motion-toggle { display: none; }
  .i-box, .r-real, .hw-real, .wave-line { stroke-dashoffset: 0 !important; }
  .i-label, .r-gap, .r-txt, .r-truck, .hw-alert { opacity: 1 !important; }
}
