/* ChouBip — site vitrine.
   Palette de la marque (voir brand/make_brand.py et app/lib/ui/theme.dart).
   Tout ce qui bouge passe par transform / opacity / filter ; voir main.js pour les animations liées au défilement. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #FFF7EE;
  --bg2: #F6E7D7;
  --surface: #FFFFFF;
  --surface2: #F7EBDF;
  --line: #EBDACA;
  --ink: #3B2A24;
  --muted: #7D6A62;
  --faint: #A8968C;
  --accent: #B9634B;
  --terra: #B9634B;
  --terra2: #D9876B;
  --peach: #F4A983;
  --blue: #6F90AE;
  --blue2: #B3C8DA;
  --sage: #7F9A7A;
  --ok: #5A9473;
  --warn: #D98C3F;
  --danger: #D0473E;
  --shadow: 90 50 30;
  --blob-a: .55;
  --night-bg: #161B26;
  --night-surface: #1F2634;
  --night-surface2: #283142;
  --night-line: #343E52;
  --night-text: #F6EEE6;
  --night-muted: #A9B2C4;
  --night-accent: #E99A7E;

  --btn-fg: #fff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 64px;
  --wrap: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161B26;
    --bg2: #0F131B;
    --surface: #1F2634;
    --surface2: #283142;
    --line: #343E52;
    --ink: #F6EEE6;
    --muted: #A9B2C4;
    --faint: #6F7A8F;
    --accent: #E99A7E;
    --terra: #E99A7E;
    --blue: #9DB8D0;
    --sage: #A7BFA2;
    --ok: #8FD3A8;
    --shadow: 0 0 0;
    --blob-a: .22;
    --night-bg: #0B0E15;
    --night-surface: #161B26;
    --night-surface2: #1F2634;
    --wm1: #E99A7E;
    --wm2: #9DB8D0;
    --btn-fg: #2A1712;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161B26;
  --bg2: #0F131B;
  --surface: #1F2634;
  --surface2: #283142;
  --line: #343E52;
  --ink: #F6EEE6;
  --muted: #A9B2C4;
  --faint: #6F7A8F;
  --accent: #E99A7E;
  --terra: #E99A7E;
  --blue: #9DB8D0;
  --sage: #A7BFA2;
  --ok: #8FD3A8;
  --shadow: 0 0 0;
  --blob-a: .22;
  --night-bg: #0B0E15;
  --night-surface: #161B26;
  --night-surface2: #1F2634;
  --wm1: #E99A7E;
  --wm2: #9DB8D0;
  --btn-fg: #2A1712;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.55 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 800; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.sec-head { max-width: 720px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-title {
  margin-top: 16px;
  font-size: clamp(38px, 5.6vw, 80px); line-height: 1.02; font-weight: 900; letter-spacing: -.042em;
  text-wrap: balance;
}
.sec-lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); font-weight: 600; text-wrap: pretty; }
.sec-small { margin-top: 16px; font-size: 15px; color: var(--faint); font-weight: 700; }
.section { padding: clamp(96px, 16vh, 180px) 0; position: relative; }
.offline-grid .sec-title, .detect-grid .sec-title, .faq-grid .sec-title { font-size: clamp(36px, 4.4vw, 62px); }

/* ------------------------------------------------------------------ boutons */
.btn {
  --b: var(--terra);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--b); color: var(--btn-fg); text-decoration: none;
  font-weight: 900; font-size: 17px; letter-spacing: -.01em;
  box-shadow: 0 10px 30px -10px rgb(185 99 75 / .55), inset 0 1px 0 rgb(255 255 255 / .18);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px -12px rgb(185 99 75 / .6), inset 0 1px 0 rgb(255 255 255 / .18); }
.btn:active { transform: scale(.98); transition-duration: .1s; }
.btn .i { font-size: 20px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line), 0 12px 30px -16px rgb(var(--shadow) / .4); }
.btn-night { background: rgb(255 255 255 / .08); color: var(--night-text); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .14); }
.btn-night:hover { background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .22); }
.btn-light { background: var(--night-text); color: #161B26; box-shadow: none; }

/* ------------------------------------------------------------------ navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  transition: background .5s, box-shadow .5s, backdrop-filter .5s, transform .6s var(--ease);
  animation: navIn 1s var(--ease) .1s both;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 70%, transparent);
}
.nav.on-night { background: rgb(22 27 38 / .72); box-shadow: 0 1px 0 rgb(255 255 255 / .06); --wm1: #E99A7E; --wm2: #9DB8D0; color: var(--night-text); }
.nav.on-night .nav-links a { color: var(--night-muted); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px -4px rgb(var(--shadow) / .35); transition: transform .6s var(--ease); }
.brand:hover .brand-icon { transform: rotate(-8deg) scale(1.06); }
.brand-word { height: 24px; width: 73px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav .btn-sm { margin-left: auto; }
.nav-links + .btn-sm { margin-left: 0; }
.nav-links a { text-decoration: none; font-weight: 800; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@keyframes navIn { from { opacity: 0; transform: translateY(-14px); } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; height: 200vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; animation: fadeIn 1.6s var(--ease) both; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: var(--blob-a); will-change: transform; }
.blob.b1 { width: 56vw; height: 56vw; left: -14vw; top: -18vw; background: radial-gradient(circle at 50% 50%, var(--peach), transparent 68%); animation: drift1 22s ease-in-out infinite alternate; }
.blob.b2 { width: 48vw; height: 48vw; right: -14vw; top: 6vh; background: radial-gradient(circle at 50% 50%, var(--blue2), transparent 66%); animation: drift2 26s ease-in-out infinite alternate; }
.blob.b3 { width: 44vw; height: 44vw; left: 24vw; bottom: -26vw; background: radial-gradient(circle at 50% 50%, #CFE0C9, transparent 66%); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-6vw, 10vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(-10vw, -6vh) scale(1.1); } }
.sparkles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 22%, var(--peach) 50%, transparent 52%),
    radial-gradient(2px 2px at 82% 16%, var(--blue) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 66% 34%, var(--terra2) 50%, transparent 52%),
    radial-gradient(2px 2px at 24% 62%, var(--blue) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 90% 58%, var(--peach) 50%, transparent 52%),
    radial-gradient(2px 2px at 40% 12%, var(--sage) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 8% 84%, var(--terra2) 50%, transparent 52%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

.hero-copy {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + clamp(28px, 7vh, 80px));
  z-index: 3; text-align: center; padding-inline: 20px;
  will-change: transform, opacity, filter;
}
.hero-title {
  margin-top: 22px;
  font-size: clamp(44px, min(8.6vw, 11.5vh), 128px); line-height: .96; font-weight: 900; letter-spacing: -.05em;
}
.hero-title .line { display: block; }
.hero-title .w { display: inline-block; animation: word 1.25s var(--ease) var(--d, 0s) both; will-change: transform; }
.w-grad {
  background: linear-gradient(100deg, var(--terra) 0%, var(--peach) 35%, var(--blue) 70%, var(--terra) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: word 1.25s var(--ease) var(--d, 0s) both, sheen 9s ease-in-out 1.6s infinite alternate !important;
  padding-right: .04em;
}
@keyframes word {
  from { opacity: 0; transform: translateY(.42em) scale(.94); filter: blur(16px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: ping 1.6s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.hero-copy .eyebrow { padding: 8px 14px 8px 12px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); letter-spacing: .06em; font-size: 13px; }
.hero-sub { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); font-weight: 600; text-wrap: balance; }
.hero-sub b { color: var(--ink); }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.intro { animation: rise 1.1s var(--ease) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
@keyframes fadeIn { from { opacity: 0; } }

.hero-stage {
  --pw: clamp(208px, 21vw, 292px);
  position: absolute; left: 50%; top: var(--stage-top, 62vh); z-index: 2;
  width: min(1080px, 96vw); height: calc(var(--pw) * 2.17 + 60px);
  transform: translateX(-50%);
  will-change: transform;
}
.stage-tilt { position: absolute; inset: 0; will-change: transform; }
.phone-slot { position: absolute; top: 0; z-index: 1; will-change: transform; }
.slot-parent { z-index: 2; }
.slot-station { right: calc(50% + 22px); top: 34px; }
.slot-parent { left: calc(50% + 22px); }
.slot-station .phone { transform-origin: 70% 80%; }
.intro-phone { animation: phoneIn 1.6s var(--ease) var(--d, 0s) both; }
.slot-station .intro-phone { --r: -5deg; }
.slot-parent .intro-phone { --r: 3deg; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(160px) rotate(var(--r, 0deg)) scale(.92); } }

/* Liaison entre les deux téléphones : un arc où voyagent les battements. */
.link-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 3; pointer-events: none; animation: fadeIn 1s ease 1.2s both; }
.arc-line { fill: none; stroke: var(--terra2); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .7; }
.arc-glow { fill: none; stroke: var(--peach); stroke-width: 10; opacity: .14; filter: blur(6px); }
.arc-pulse { fill: var(--terra2); filter: drop-shadow(0 0 6px var(--peach)); }

.float-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -18px rgb(var(--shadow) / .35), inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  font-size: 14px; line-height: 1.25; white-space: nowrap;
  animation: chipIn 1.2s var(--ease) var(--d) both, bob 6s ease-in-out calc(var(--d) + 1.2s) infinite alternate;
}
.float-chip b { display: block; font-weight: 900; }
.float-chip small { color: var(--muted); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.chip-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 19px; }
.chip-ic.ok { background: var(--ok); }
.chip-ic.blue { background: var(--blue); }
.chip-ic.terra { background: var(--terra); }
.c1 { --d: 1.3s; left: calc(50% + 22px + var(--pw) * .8); top: 15%; }
.c2 { --d: 1.5s; right: calc(50% + 22px + var(--pw) * .7); top: 46%; }
.c3 { --d: 1.7s; left: calc(50% + 22px + var(--pw) * .78); top: 58%; }
@keyframes chipIn { from { opacity: 0; transform: translateY(24px) scale(.9); filter: blur(6px); } }
@keyframes bob { to { transform: translateY(-10px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 4; width: 26px; height: 42px; border-radius: 99px; box-shadow: inset 0 0 0 2px var(--line); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--muted); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ------------------------------------------------------------------ téléphone */
.phone {
  --pw: inherit;
  position: relative; width: var(--pw); aspect-ratio: 9 / 19.5;
  border-radius: calc(var(--pw) * .16);
  background: linear-gradient(150deg, #34343a, #141416 40%, #202024);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / .1),
    0 calc(var(--pw) * .02) calc(var(--pw) * .05) rgb(var(--shadow) / .18),
    0 calc(var(--pw) * .18) calc(var(--pw) * .32) calc(var(--pw) * -.1) rgb(var(--shadow) / .45);
}
.phone .island { position: absolute; z-index: 6; top: 3.1%; left: 50%; width: 29%; height: 3.6%; translate: -50% 0; border-radius: 99px; background: #050506; }
.screen {
  position: absolute; inset: 3.2%; border-radius: calc(var(--pw) * .13); overflow: hidden;
  container-type: inline-size; background: #FFF7EE; isolation: isolate;
}

/* Interface dessinée en HTML : 1em = 10 px d'un écran de 390 px de large. */
.ui {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  font-size: calc(100cqw / 39); line-height: 1.3; color: #3B2A24;
  background: radial-gradient(90% 40% at 100% 0%, rgb(244 169 131 / .35), transparent 70%), linear-gradient(#FFF7EE, #F6E7D7);
  text-align: left;
}
.ui .i { width: 1.25em; height: 1.25em; }
.ui-status { display: flex; justify-content: space-between; align-items: center; padding: 1.25em 2.6em .3em 3em; font-weight: 800; font-size: 1.3em; }
.ui-sys { display: flex; align-items: center; gap: .4em; }
.ui-sys .i { width: 1.1em; height: 1.1em; }
.ui-batt { width: 1.9em; height: .95em; border-radius: .3em; box-shadow: inset 0 0 0 .12em currentColor; position: relative; }
.ui-batt::after { content: ""; position: absolute; inset: .22em .6em .22em .22em; background: currentColor; border-radius: .12em; }
.ui-top { display: flex; align-items: center; gap: .9em; padding: .9em 1.6em .4em 1.2em; }
.ui-top > .i { width: 2.4em; height: 2.4em; }
.ui-top div { flex: 1; min-width: 0; }
.ui-top b { display: block; font-size: 1.9em; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-top small { display: block; font-size: 1.15em; font-weight: 700; color: #A8968C; }
.ui-pill {
  display: inline-flex; align-items: center; gap: .45em; padding: .45em 1em .45em .75em; border-radius: 99em;
  background: rgb(255 255 255 / .95); box-shadow: 0 .3em 1em rgb(0 0 0 / .05);
  font-weight: 800; font-size: 1.25em; white-space: nowrap;
}
.ui-pill .i { width: 1.15em; height: 1.15em; color: #6F90AE; }
.ui-pill.dark { background: rgb(40 49 66 / .92); color: #F6EEE6; box-shadow: none; }
.ui-pill.dark .i { color: #8FD3A8; }
.dot { display: inline-block; flex: none; width: .62em; height: .62em; border-radius: 50%; background: #5A9473; position: relative; }
.dot.ok { background: #5A9473; }
.ui-station .dot.ok, .night .dot.ok { background: #8FD3A8; }
.dot.warn { background: #F2B86B; }
.dot.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: dotPing 1.6s ease-out infinite; }
@keyframes dotPing { to { transform: scale(2.6); opacity: 0; } }
.ui-row { display: flex; justify-content: space-between; gap: .6em; }

.ui-stage {
  position: relative; flex: 1; margin: .8em 1.6em 0; border-radius: 3em;
  background: linear-gradient(#fff, #FDEFE5); border: 1px solid #EBDACA;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 4.2em 1em 1.6em;
}
.ui-stage .ui-row { position: absolute; top: 1.2em; left: 1.2em; right: 1.2em; }
.ui-halo { position: relative; width: 15.5em; height: 15.5em; display: grid; place-items: center; margin-bottom: .2em; }
.ui-halo::before, .ui-halo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgb(244 169 131 / .1); animation: halo 4.2s ease-in-out infinite alternate; }
.ui-halo::after { inset: 13%; background: rgb(244 169 131 / .14); animation-delay: -1.4s; }
.ui-halo.light::before { background: rgb(244 169 131 / .16); }
.ui-halo.light::after { background: rgb(244 169 131 / .2); }
.ui-halo .mascot { position: relative; z-index: 1; width: 62%; }
@keyframes halo { from { transform: scale(.94); } to { transform: scale(1.04); } }
.ui-h { font-size: 2.3em; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.ui-stage small, .ui-center small { margin-top: .3em; font-size: 1.3em; font-weight: 600; color: #7D6A62; }
.ui-timer { margin-top: 1em; display: inline-flex; align-items: center; gap: .45em; padding: .5em 1em; border-radius: 99em; background: rgb(111 144 174 / .12); color: #6F90AE; font-weight: 800; font-size: 1.25em; font-variant-numeric: tabular-nums; }
.ui-wave { margin: 1.2em 1.6em 0; padding: 1em 1.4em 1em; border-radius: 2.4em; background: #fff; border: 1px solid #EBDACA; }
.ui-wave-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5em; }
.ui-wave-head b { font-size: 1.5em; font-weight: 900; }
.ui-wave-head span { display: inline-flex; align-items: center; gap: .4em; color: #B9634B; font-weight: 800; font-size: 1.25em; }
.bars { height: 4.6em; display: flex; align-items: center; justify-content: space-between; gap: .25em; }
.bars i { flex: 1; height: 100%; border-radius: 99em; background: var(--c, #B9634B); opacity: var(--o, 1); transform: scaleY(var(--v, .08)); transition: transform .14s linear; }
.ui-actions { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.3em .8em 0; }
.ui-actions span { display: flex; flex-direction: column; align-items: center; gap: .55em; font-weight: 800; }
.ui-actions .i { width: 5.8em; height: 5.8em; padding: 1.7em; border-radius: 50%; background: rgb(185 99 75 / .13); color: #B9634B; }
.ui-actions em { font-style: normal; font-size: 1.25em; }
.ui-actions .on .i { background: #B9634B; color: #fff; box-shadow: 0 .6em 1.6em rgb(185 99 75 / .35); }
.ui-actions .peach .i { background: #F4A983; color: #fff; box-shadow: 0 .6em 1.6em rgb(244 169 131 / .4); }
.ui-actions .blue .i { background: rgb(111 144 174 / .14); color: #6F90AE; }
.ui-actions .sage .i { background: rgb(127 154 122 / .15); color: #7F9A7A; }
.ui-talk { margin: 1.3em 1.6em 2.2em; height: 5.6em; border-radius: 2em; display: flex; align-items: center; justify-content: center; gap: .6em; background: rgb(185 99 75 / .12); color: #B9634B; font-weight: 900; font-size: 1.5em; height: 3.8em; margin: .9em 1.1em 1.5em; border-radius: 1.3em; }

/* Station bébé (toujours nuit) */
.ui-station { color: #F6EEE6; background: radial-gradient(100% 50% at 85% 0%, rgb(157 184 208 / .16), transparent 70%), linear-gradient(#161B26, #0F131B); }
.ui-station::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(1px 1px at 18% 14%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 72% 22%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 40% 30%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 86% 40%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 10% 46%, #fff 50%, transparent 52%), radial-gradient(1.3px 1.3px at 60% 8%, #fff 50%, transparent 52%);
  animation: twinkle 4s ease-in-out infinite alternate;
}
.ui-station .ui-row { padding: .5em 1.8em 0; }
.ui-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 2.4em; }
.ui-center small { color: #A9B2C4; }
.ui-center .bars { width: 62%; height: 4em; margin-top: 1.6em; }
.ui-chip { margin-top: 1.6em; display: inline-flex; align-items: center; gap: .5em; padding: .65em 1.2em; border-radius: 1.4em; background: #283142; font-weight: 800; font-size: 1.2em; white-space: nowrap; }
.ui-chip .i { color: #E99A7E; }
.ui-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9em; padding: 0 1.8em; }
.ui-tiles span { display: flex; flex-direction: column; align-items: center; gap: .6em; padding: 1.3em .2em; border-radius: 1.8em; background: #283142; font-weight: 800; font-size: 1.15em; white-space: nowrap; }
.ui-tiles .i { width: 2.2em; height: 2.2em; }
.ui-tiles .on { background: #E99A7E; color: #2A1712; }
.ui-hold { display: flex; align-items: center; justify-content: center; gap: .6em; margin: .8em 1.2em 1.6em; height: 3.8em; border-radius: 1.3em; background: #283142; color: #A9B2C4; font-weight: 900; font-size: 1.5em; }

/* Mascotte : respire, cœur qui bat, ondes. */
.mascot { overflow: visible; }
.mascot .m-face { transform-origin: 48.5px 60px; animation: breathe 4.2s ease-in-out infinite alternate; }
.mascot .m-blanket { animation: blanket 4.2s ease-in-out infinite alternate; }
.mascot .m-heart { transform-origin: 70.6px 39.5px; animation: heart 1s ease-in-out infinite; }
.mascot .m-w1 { animation: wave 1s ease-in-out infinite; }
.mascot .m-w2 { animation: wave 1s ease-in-out .12s infinite; }
.mascot.synced .m-heart, .mascot.synced .m-w1, .mascot.synced .m-w2 { animation: none; }
.mascot.synced.beat .m-heart { animation: heartOnce .6s var(--ease); }
.mascot.synced.beat .m-w1 { animation: waveOnce .7s ease-out; }
.mascot.synced.beat .m-w2 { animation: waveOnce .7s ease-out .1s; }
@keyframes breathe { to { transform: scale(1.03); } }
@keyframes blanket { to { transform: translateY(-1.1px); } }
@keyframes heart { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.26); } 28% { transform: scale(1); } 42% { transform: scale(1.13); } 56% { transform: scale(1); } }
@keyframes heartOnce { 0% { transform: scale(1); } 30% { transform: scale(1.32); } 60% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes wave { 0%, 100% { opacity: .35; } 30% { opacity: 1; } }
@keyframes waveOnce { 0% { opacity: .35; } 25% { opacity: 1; } 100% { opacity: .35; } }

/* ------------------------------------------------------------------ manifeste */
.manifesto { padding: clamp(110px, 22vh, 240px) 0; }
.manifesto-text { max-width: 1040px; margin-inline: auto; font-size: clamp(30px, 4.3vw, 60px); line-height: 1.14; font-weight: 900; letter-spacing: -.035em; text-wrap: balance; }
.manifesto-text .mw { opacity: var(--o, .16); transition: opacity .25s linear; }
.manifesto-text .hl .mw { background: linear-gradient(100deg, var(--terra), var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ comment ça marche */
.story { position: relative; height: 380vh; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.story-steps { position: relative; margin-top: 26px; min-height: 340px; }
.step { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(46px); filter: blur(10px); transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease); pointer-events: none; }
.step.is-past { transform: translateY(-46px); }
.step.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.step-n { display: inline-block; font-weight: 900; font-size: 15px; letter-spacing: .1em; color: var(--accent); padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.step h2 { margin-top: 18px; font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; font-weight: 900; letter-spacing: -.042em; text-wrap: balance; }
.step p { margin-top: 20px; max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); font-weight: 600; }
.story-progress { display: flex; gap: 8px; margin-top: 20px; }
.story-progress i { position: relative; width: 56px; height: 5px; border-radius: 9px; background: var(--line); overflow: hidden; }
.story-progress i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--f, 0)); }
.story-visual { display: grid; place-items: center; perspective: 1400px; }
.story-phone { --pw: clamp(240px, 23vw, 318px); will-change: transform; }
.layer { opacity: 0; transform: scale(1.06); filter: blur(10px); transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease); }
.layer.is-active { opacity: 1; transform: none; filter: none; }

/* Écran d'appairage : petit QR sur le téléphone de bébé, vu à travers l'appareil photo. */
.ui-scan .ui-top b { font-size: 1.75em; }
.scan-tabs { display: flex; gap: 2.4em; padding: .8em 2.4em 0; border-bottom: 1px solid #EBDACA; font-size: 1.35em; font-weight: 900; color: #A8968C; }
.scan-tabs b { color: #3B2A24; padding-bottom: .6em; box-shadow: inset 0 -.2em 0 #B9634B; }
.scan-view { position: relative; flex: 1; margin: 1.6em 2em 0; border-radius: 3em; overflow: hidden; background: radial-gradient(70% 50% at 50% 40%, #4a4f62, #23283a 70%, #191d2a); }
.scan-target { position: absolute; inset: 0; display: grid; place-items: center; }
.scan-mini { width: 46%; aspect-ratio: .5; border-radius: 2.6em; border: .55em solid #111; background: linear-gradient(#161B26, #0F131B); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2em; transform: rotate(-7deg) translateY(-4%); box-shadow: 0 2em 4em rgb(0 0 0 / .45); filter: blur(.04em); }
.scan-qr { width: 70%; padding: .5em; border-radius: 1em; background: #fff; }
.scan-mini small { font-size: 1.5em; font-weight: 900; letter-spacing: .15em; color: #E99A7E; }
.scan-frame { position: absolute; left: 50%; top: 46%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 2.6em;
  --c: rgb(255 255 255 / .9);
  background:
    linear-gradient(var(--c), var(--c)) top left / 3em .45em, linear-gradient(var(--c), var(--c)) top left / .45em 3em,
    linear-gradient(var(--c), var(--c)) top right / 3em .45em, linear-gradient(var(--c), var(--c)) top right / .45em 3em,
    linear-gradient(var(--c), var(--c)) bottom left / 3em .45em, linear-gradient(var(--c), var(--c)) bottom left / .45em 3em,
    linear-gradient(var(--c), var(--c)) bottom right / 3em .45em, linear-gradient(var(--c), var(--c)) bottom right / .45em 3em;
  background-repeat: no-repeat; transition: transform .6s var(--ease); }
.scan-line { position: absolute; left: 22%; right: 22%; top: 20%; height: .3em; border-radius: 1em; background: #F4A983; box-shadow: 0 0 1.6em .3em rgb(244 169 131 / .7); }
.layer.is-active .scan-line { animation: scan 1.6s var(--ease-io) .2s 2 alternate both; }
.layer.is-active .scan-frame { animation: frameOk .6s var(--ease) 1.9s both; }
.scan-ok { position: absolute; left: 50%; bottom: 1.6em; translate: -50% 0; display: flex; align-items: center; gap: .6em; padding: .8em 1.4em .8em .9em; border-radius: 99em; background: #fff; font-size: 1.35em; font-weight: 800; white-space: nowrap; opacity: 0; box-shadow: 0 1em 2em rgb(0 0 0 / .25); }
.scan-ok .i { width: 1.6em; height: 1.6em; padding: .3em; border-radius: 50%; background: #5A9473; color: #fff; }
.layer.is-active .scan-ok { animation: okIn .8s var(--ease) 2s both; }
.scan-hint { padding: 1.4em 3em 2.4em; text-align: center; font-size: 1.25em; font-weight: 600; color: #7D6A62; }
@keyframes scan { from { top: 22%; } to { top: 68%; } }
@keyframes frameOk { 50% { transform: scale(.94); } to { --c: #8FD3A8; transform: scale(.97); } }
@keyframes okIn { from { opacity: 0; transform: translateY(1.2em) scale(.9); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ fiabilité (nuit) */
.night { position: relative; color: var(--night-text); --ix: 0px; --rr: 0px; }
.night-card {
  position: relative; overflow: hidden;
  padding: clamp(110px, 18vh, 200px) 0 clamp(100px, 16vh, 180px);
  background: radial-gradient(80% 50% at 50% 0%, rgb(157 184 208 / .14), transparent 70%), radial-gradient(60% 40% at 80% 100%, rgb(233 154 126 / .1), transparent 70%), var(--night-bg);
  clip-path: inset(0 var(--ix) round var(--rr));
}
.night-sky { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1px 1px at 8% 12%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 22% 32%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 36% 8%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 54% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 68% 6%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 84% 26%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 94% 10%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 12% 60%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 90% 64%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 46% 92%, #fff 50%, transparent 52%);
  animation: twinkle 5s ease-in-out infinite alternate; }
.night .eyebrow { color: var(--night-accent); }
.night .sec-lede { color: var(--night-muted); }
.grad-night { background: linear-gradient(100deg, #F4A983, #E99A7E 40%, #9DB8D0); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hb { position: relative; max-width: 980px; margin: clamp(48px, 9vh, 90px) auto 0; padding: clamp(22px, 4vw, 44px); border-radius: 36px; overflow: hidden;
  background: linear-gradient(rgb(255 255 255 / .05), rgb(255 255 255 / .02)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), 0 40px 80px -40px rgb(0 0 0 / .6); }
.hb-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(10px, 3vw, 28px); }
.hb-node { text-align: center; display: grid; justify-items: center; gap: 2px; }
.hb-node b { margin-top: 10px; font-weight: 900; }
.hb-node small { color: var(--night-muted); font-weight: 700; font-size: 13px; }
.hb-avatar { position: relative; width: clamp(72px, 10vw, 104px); aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center; background: var(--night-surface2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); transition: background .5s, box-shadow .5s; }
.hb-avatar .mascot { width: 76%; }
.hb-heart { width: 46%; fill: var(--night-accent); transition: fill .4s, transform .3s; }
.hb-avatar .ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--night-accent); opacity: 0; }
.hb-avatar.beat .hb-heart { animation: heartOnce .6s var(--ease); }
.hb-avatar.beat .ring { animation: ripple .9s ease-out; }
@keyframes ripple { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
.hb-wire { position: relative; height: 80px; }
.hb-wire > svg { width: 100%; height: 100%; overflow: visible; }
.wire { stroke: var(--night-line); stroke-width: 3; stroke-dasharray: 3 9; stroke-linecap: round; fill: none; transition: stroke .4s; }
.wire-pulse { fill: var(--night-accent); filter: drop-shadow(0 0 8px #F4A983); }
.wire-cut { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night-bg); color: #FF7B72; font-size: 22px; box-shadow: inset 0 0 0 2px #FF7B72; transform: scale(0); transition: transform .5s var(--ease); }
.hb-ecg { display: block; width: 100%; height: 120px; margin-top: 18px; }
.hb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.hb-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.hb-status .dot { width: 10px; height: 10px; background: #8FD3A8; box-shadow: 0 0 0 4px rgb(143 211 168 / .18); transition: background .3s, box-shadow .3s; }
.hb-status b { font-weight: 900; }
.hb-status span { color: var(--night-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.hb-actions .btn { min-height: 48px; font-size: 15.5px; }
.hb-note { margin-top: 18px; font-size: 13.5px; color: var(--night-muted); opacity: .8; font-weight: 600; }
.hb-alarm { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  background: radial-gradient(70% 70% at 50% 40%, rgb(255 90 80 / .55), rgb(22 27 38 / .96)); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.hb-alarm b { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; letter-spacing: -.03em; }
.hb-alarm span { color: #FFE3DD; font-weight: 700; }
.alarm-phone { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; background: #fff; color: #D0473E; font-size: 38px; margin-bottom: 10px; animation: ring .5s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.hb[data-state="unstable"] .hb-status .dot { background: #F2B86B; box-shadow: 0 0 0 4px rgb(242 184 107 / .2); }
.hb[data-state="lost"] .hb-status .dot, .hb[data-state="alarm"] .hb-status .dot { background: #FF7B72; box-shadow: 0 0 0 4px rgb(255 123 114 / .2); }
.hb[data-state="lost"] .wire, .hb[data-state="alarm"] .wire, .hb[data-state="unstable"] .wire { stroke: rgb(255 123 114 / .5); }
.hb[data-state="lost"] .wire-cut, .hb[data-state="alarm"] .wire-cut, .hb[data-state="unstable"] .wire-cut { transform: scale(1); }
.hb[data-state="alarm"] .hb-alarm { opacity: 1; visibility: visible; }
.hb[data-state="lost"] .hb-heart, .hb[data-state="alarm"] .hb-heart { fill: #6F7A8F; }
.hb[data-state="alarm"] .hb-actions { position: relative; z-index: 4; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: clamp(70px, 12vh, 130px); }
.stat { padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); }
.stat b { display: inline-block; font-size: clamp(72px, 10vw, 150px); line-height: .9; font-weight: 900; letter-spacing: -.06em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #9DB8D0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; font-weight: 900; font-size: 19px; color: var(--night-accent); }
.stat p { margin-top: 8px; color: var(--night-muted); font-weight: 600; max-width: 320px; }
.guarantees { list-style: none; padding: 0; margin: clamp(56px, 9vh, 90px) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guarantees li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 24px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); color: var(--night-muted); font-weight: 600; }
.guarantees li b { color: var(--night-text); }
.guarantees .i { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: rgb(233 154 126 / .14); color: var(--night-accent); }

/* ------------------------------------------------------------------ sans internet */
.offline-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.seg { position: relative; display: inline-flex; margin-top: 32px; padding: 5px; border-radius: 99px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 11px 20px; border-radius: 99px; font-weight: 800; font-size: 15px; color: var(--muted); cursor: pointer; transition: color .3s; white-space: nowrap; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 99px; background: var(--surface); box-shadow: 0 6px 16px -6px rgb(var(--shadow) / .35); transition: transform .6s var(--ease), width .6s var(--ease); }
.net-caption { margin-top: 18px; min-height: 3.2em; color: var(--muted); font-weight: 700; transition: opacity .3s; }
.net { position: relative; aspect-ratio: 640 / 460; border-radius: 36px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgb(var(--shadow) / .35); padding: 18px; }
.net svg { width: 100%; height: 100%; overflow: visible; }
.net text { font: 800 14px "Nunito", sans-serif; fill: var(--muted); text-anchor: middle; }
.n-house { fill: color-mix(in srgb, var(--bg2) 60%, transparent); stroke: var(--line); stroke-width: 2; stroke-linejoin: round; transition: opacity .5s; }
.n-cloud path { fill: var(--surface2); stroke: var(--line); stroke-width: 2; }
.n-cloud, .n-router, .n-house { transition: opacity .6s var(--ease); }
.n-router rect { fill: var(--surface); stroke: var(--muted); stroke-width: 2.5; }
.n-router circle { fill: var(--ok); }
.n-router path { stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
.n-phone rect { fill: #26262b; stroke: #444; stroke-width: 1.5; }
.n-dot { fill: var(--peach); }
.n-link { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity .6s var(--ease), stroke .4s; }
.n-link.on { opacity: 1; stroke: var(--terra2); stroke-dasharray: 2 10; animation: flow 1s linear infinite; }
.n-link.dim { opacity: .5; stroke-dasharray: 2 8; }
.n-cut { opacity: 0; transform-origin: 320px 205px; transform: scale(.4); transition: opacity .4s, transform .6s var(--ease); }
.n-cut circle { fill: var(--surface); stroke: var(--danger); stroke-width: 2.5; }
.n-cut path { stroke: var(--danger); stroke-width: 2.5; stroke-linecap: round; }
.net[data-net="home"] .n-cut { opacity: 1; transform: none; }
.net[data-net="home"] .n-cloud { opacity: .45; }
.net[data-net="hotspot"] .n-router, .net[data-net="hotspot"] .n-cloud { opacity: .18; }
.net[data-net="remote"] .n-router { opacity: .18; }
.net[data-net="remote"] .n-house { opacity: .5; }
.n-packet { fill: var(--terra); filter: drop-shadow(0 0 5px var(--peach)); }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* ------------------------------------------------------------------ détection */
.detect-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.detect-card { padding: clamp(20px, 3vw, 30px); border-radius: 36px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgb(var(--shadow) / .35); }
.detect-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detect-live { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; }
.detect-live .dot { width: 10px; height: 10px; }
.detect-tag { padding: 7px 14px; border-radius: 99px; font-weight: 900; font-size: 14px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); transition: background .3s, color .3s, transform .5s var(--ease); }
.detect-tag.noise { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.detect-tag.cry { background: color-mix(in srgb, var(--terra) 16%, transparent); color: var(--terra); }
.detect-tag.bump { transform: scale(1.12); }
.detect-canvas { display: block; width: 100%; height: 210px; margin-top: 18px; }
.detect-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--faint); font-weight: 700; }
.detect-legend i { display: inline-block; width: 18px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px dashed var(--muted); }
.detect-legend .lg-floor { border-top: 6px solid color-mix(in srgb, var(--blue) 30%, transparent); border-radius: 3px; }
.detect-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.detect-buttons button { border: 0; cursor: pointer; padding: 11px 18px; border-radius: 99px; font-weight: 800; font-size: 15px; background: var(--surface2); color: var(--ink); transition: background .25s, color .25s, transform .4s var(--ease); }
.detect-buttons button:hover { transform: translateY(-2px); }
.detect-buttons button.is-on { background: var(--ink); color: var(--bg); }
.detect-log { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; min-height: 132px; }
.detect-log li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--surface2); font-weight: 700; font-size: 15px; animation: logIn .6s var(--ease) both; }
.detect-log li time { color: var(--faint); font-weight: 800; font-variant-numeric: tabular-nums; min-width: 48px; }
.detect-log li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ok)); flex: none; }
@keyframes logIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ------------------------------------------------------------------ fonctions (bento) */
.bento { margin-top: clamp(48px, 8vh, 80px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { --mx: 50%; --my: 0%; position: relative; grid-column: span 2; display: flex; flex-direction: column; padding: 26px; border-radius: 32px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--peach) 16%, transparent), transparent 60%); }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgb(var(--shadow) / .35); }
.tile:hover::before { opacity: 1; }
.tile h3 { margin-top: 22px; font-size: 23px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.tile p { margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 16px; }
.t-video { grid-column: span 4; grid-row: span 2; }
.t-art { position: relative; height: 170px; border-radius: 22px; background: var(--surface2); overflow: hidden; display: grid; place-items: center; }
.t-video .t-art { height: auto; flex: 1; min-height: 300px; }

.art-video { background: #232a3b; }
.nursery { position: absolute; inset: 0; width: 100%; height: 100%; animation: nv 8s ease-in-out infinite; }
.nursery .nm { transform-origin: 200px 0; animation: swing 4s ease-in-out infinite alternate; }
.nursery .nm-b { transform-box: fill-box; transform-origin: 50% 0; animation: swing 2.6s ease-in-out infinite alternate-reverse; }
.nursery .nb { transform-box: fill-box; transform-origin: 50% 100%; animation: blanketBreath 4.2s ease-in-out infinite alternate; }
@keyframes blanketBreath { to { transform: scaleY(1.08); } }
.nv-badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgb(0 0 0 / .35); color: #fff; font-weight: 800; font-size: 14px; backdrop-filter: blur(8px); animation: nvBadge 8s ease-in-out infinite; }
@keyframes nv { 0%, 42% { filter: none; } 50%, 92% { filter: grayscale(1) sepia(.5) hue-rotate(55deg) saturate(1.6) brightness(1.55) contrast(1.05); } 100% { filter: none; } }
@keyframes nvBadge { 0%, 42% { opacity: .4; } 50%, 92% { opacity: 1; } }
@keyframes swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes bounce { to { transform: translateY(6px); } }

.art-talk { background: radial-gradient(circle, color-mix(in srgb, var(--terra) 10%, var(--surface2)), var(--surface2)); }
.art-talk .mic { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--terra); color: #fff; font-size: 28px; box-shadow: 0 10px 24px -8px rgb(185 99 75 / .6); }
.art-talk i { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--terra2); animation: talk 2.4s ease-out infinite; }
.art-talk i:nth-of-type(2) { animation-delay: .8s; }
.art-talk i:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes talk { from { transform: scale(1); opacity: .8; } to { transform: scale(2.8); opacity: 0; } }

.art-sound i { position: absolute; bottom: -20px; font-style: normal; font-weight: 900; font-size: 34px; color: var(--terra2); animation: note 4s ease-in infinite; }
.art-sound i:nth-child(1) { left: 26%; }
.art-sound i:nth-child(2) { left: 44%; animation-delay: 1s; color: var(--blue); font-size: 28px; }
.art-sound i:nth-child(3) { left: 62%; animation-delay: 2s; color: var(--sage); }
.art-sound i:nth-child(4) { left: 36%; animation-delay: 3s; color: var(--peach); font-size: 26px; }
@keyframes note { 0% { transform: translateY(0) rotate(-8deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-190px) rotate(12deg) translateX(20px); opacity: 0; } }

.art-light { background: #1A2030; }
.art-light span { width: 110px; height: 110px; border-radius: 50%; animation: glow 9s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { background: #FFC37A; box-shadow: 0 0 60px 30px rgb(255 195 122 / .45); }
  33% { background: #FF9E7A; box-shadow: 0 0 70px 34px rgb(255 158 122 / .45); }
  66% { background: #B79CFF; box-shadow: 0 0 60px 30px rgb(183 156 255 / .4); }
}

.art-report { display: flex; align-items: flex-end; justify-content: center; gap: 7px; padding: 26px 24px 22px; }
.art-report i { width: 7%; height: 100%; border-radius: 6px; background: var(--peach); transform-origin: bottom; transform: scaleY(.04); transition: transform 1.2s var(--ease); }
.art-report i.cry { background: var(--terra); }
.art-report i:nth-child(odd) { background: color-mix(in srgb, var(--blue) 60%, var(--surface2)); }
.art-report i.cry { background: var(--terra); }
.t-report.in .art-report i { transform: scaleY(var(--h)); }
.t-report.in .art-report i:nth-child(2) { transition-delay: .05s; } .t-report.in .art-report i:nth-child(3) { transition-delay: .1s; } .t-report.in .art-report i:nth-child(4) { transition-delay: .15s; } .t-report.in .art-report i:nth-child(5) { transition-delay: .2s; } .t-report.in .art-report i:nth-child(6) { transition-delay: .25s; } .t-report.in .art-report i:nth-child(7) { transition-delay: .3s; } .t-report.in .art-report i:nth-child(8) { transition-delay: .35s; } .t-report.in .art-report i:nth-child(9) { transition-delay: .4s; } .t-report.in .art-report i:nth-child(10) { transition-delay: .45s; }

.art-os { display: flex; align-items: center; justify-content: center; gap: 16px; }
.art-os .os { display: grid; justify-items: center; gap: 6px; font-weight: 800; color: var(--muted); }
.art-os .os .i { width: 54px; height: 54px; color: var(--ink); }
.art-os .os small { font-size: 13px; }
.os-a { animation: osA 5s var(--ease-io) infinite; }
.os-b { animation: osB 5s var(--ease-io) infinite; }
.os-swap { color: var(--terra); font-size: 28px; animation: spin 5s var(--ease-io) infinite; }
@keyframes osA { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(140px); } 100% { transform: none; } }
@keyframes osB { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(-140px); } 100% { transform: none; } }
@keyframes spin { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

.art-family { display: flex; align-items: center; justify-content: center; }
.art-family span, .art-family b { width: 62px; height: 62px; margin-left: -14px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 22px; color: #fff; background: var(--c); box-shadow: 0 0 0 4px var(--surface2); }
.art-family b { background: var(--surface); color: var(--muted); font-size: 18px; }
.t-family.in .art-family > * { animation: pop .8s var(--ease) both; }
.t-family.in .art-family > :nth-child(2) { animation-delay: .1s; } .t-family.in .art-family > :nth-child(3) { animation-delay: .2s; } .t-family.in .art-family > :nth-child(4) { animation-delay: .3s; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

.art-privacy .lock { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: var(--sage); color: #fff; font-size: 40px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--sage) 18%, transparent), 0 0 0 22px color-mix(in srgb, var(--sage) 9%, transparent); animation: lockPulse 3s ease-in-out infinite; }
@keyframes lockPulse { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--sage) 18%, transparent), 0 0 0 30px color-mix(in srgb, var(--sage) 6%, transparent); } }

.art-battery { display: flex; align-items: center; justify-content: center; gap: 14px; }
.art-battery .cell { position: relative; width: 120px; height: 56px; border-radius: 14px; box-shadow: inset 0 0 0 3px var(--ink); padding: 7px; }
.art-battery .cell::after { content: ""; position: absolute; right: -10px; top: 18px; width: 6px; height: 20px; border-radius: 0 4px 4px 0; background: var(--ink); }
.art-battery .cell i { display: block; height: 100%; border-radius: 8px; background: var(--ok); transform-origin: left; animation: charge 4s var(--ease-io) infinite alternate; }
.art-battery b { color: var(--ok); font-size: 30px; animation: wave 1.4s ease-in-out infinite; }
@keyframes charge { from { transform: scaleX(.2); background: var(--warn); } to { transform: scaleX(.86); } }

/* ------------------------------------------------------------------ galerie */
.gallery { position: relative; height: 320vh; }
.gallery-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); padding-top: var(--nav-h); overflow: hidden; }
.gallery .sec-title { font-size: clamp(34px, min(5vw, 7vh), 72px); }
.gallery-track { display: flex; gap: clamp(20px, 3vw, 44px); padding-inline: max(20px, (100vw - var(--wrap)) / 2); width: max-content; will-change: transform; }
.shot { margin: 0; flex: none; transform: scale(var(--k, .92)); opacity: var(--a, .7); transition: transform .4s var(--ease), opacity .4s; }
.shot-frame { width: clamp(170px, min(20vw, 27vh), 260px); aspect-ratio: 390 / 844; border-radius: clamp(28px, 3vw, 40px); overflow: hidden; background: #1b1b1f; padding: 7px; box-shadow: 0 30px 60px -30px rgb(var(--shadow) / .5); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(22px, 2.5vw, 33px); }
.shot figcaption { margin-top: 16px; text-align: center; font-weight: 800; color: var(--muted); font-size: 15.5px; }
.gallery-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.gallery-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--g, 0)); }

/* ------------------------------------------------------------------ FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: clamp(18px, 1.7vw, 21px); font-weight: 900; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background:
  linear-gradient(var(--ink), var(--ink)) center / 13px 2.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2.5px 13px no-repeat, var(--surface2);
  transition: transform .5s var(--ease), background-color .3s; }
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 48px 26px 0; color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------------ fin */
.finale { position: relative; overflow: hidden; padding: clamp(120px, 22vh, 240px) 0; text-align: center; }
.finale-sky { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 45% at 50% 38%, color-mix(in srgb, var(--peach) 30%, transparent), transparent 70%), radial-gradient(40% 40% at 20% 90%, color-mix(in srgb, var(--blue2) 30%, transparent), transparent 70%); }
.finale-inner { position: relative; }
.finale-mascot { position: relative; width: clamp(160px, 20vw, 230px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.finale-mascot .mascot { position: relative; z-index: 1; width: 100%; }
.finale-mascot i { position: absolute; inset: 6%; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--peach) 70%, transparent); animation: talk 4.5s ease-out infinite; }
.finale-mascot i:nth-child(2) { animation-delay: 1.5s; }
.finale-mascot i:nth-child(3) { animation-delay: 3s; }
.finale-title { margin-top: 26px; font-size: clamp(64px, 13vw, 200px); line-height: .9; font-weight: 900; letter-spacing: -.06em; background: linear-gradient(100deg, var(--terra), var(--peach) 45%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.finale-sub { margin-top: 18px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 900; letter-spacing: -.02em; }
.finale-cta { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.footer { padding: 46px 0 56px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 40px; align-items: center; }
.footer p { color: var(--muted); font-weight: 600; font-size: 14.5px; max-width: 460px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { text-decoration: none; font-weight: 800; color: var(--muted); font-size: 14.5px; }
.footer nav a:hover { color: var(--ink); }
.footer small { grid-column: 1 / -1; color: var(--faint); font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; translate: -50% 0; max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 15px; box-shadow: 0 20px 40px -14px rgb(0 0 0 / .4); opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none; transition: opacity .4s var(--ease), transform .6s var(--ease); }
.toast.show { opacity: 1; transform: none; }

/* Apparition au défilement (seulement si JavaScript est actif, sinon tout est visible). */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(44px); filter: blur(8px); transition: opacity 1s var(--ease) var(--rd, 0s), transform 1.3s var(--ease) var(--rd, 0s), filter 1s var(--ease) var(--rd, 0s); }
  .reveal.in { opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------------------------ pages annexes */
.page { padding: calc(var(--nav-h) + 70px) 0 90px; }
.page .wrap { max-width: 760px; }
.page h1 { margin-top: 14px; font-size: clamp(40px, 6vw, 64px); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; }
.page h2 { margin-top: 44px; font-size: 28px; font-weight: 900; letter-spacing: -.02em; }
.page p, .page li { margin-top: 14px; color: var(--muted); font-weight: 600; }
.page b { color: var(--ink); }
.page ul { padding-left: 20px; }
.simple { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 20px; position: relative; overflow: hidden; }
.simple .mascot-wrap { width: 150px; margin: 0 auto 26px; }
.simple h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.simple h1 em { font-style: normal; color: var(--accent); }
.simple p { margin: 18px auto 0; max-width: 520px; color: var(--muted); font-weight: 600; font-size: 18px; }
.simple ol { text-align: left; margin: 28px auto 0; max-width: 440px; display: grid; gap: 12px; color: var(--muted); font-weight: 700; padding-left: 22px; }
.simple ol b { color: var(--ink); }
.simple .btn { margin-top: 30px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-links + .btn-sm { margin-left: auto; }
  .c3 { display: none; }
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .story-visual { order: -1; }
  .story-phone { --pw: min(46vw, 34vh, 230px); }
  .story-steps { min-height: 230px; margin-top: 14px; }
  .step { left: 0; right: 0; }
  .step h2 { font-size: clamp(30px, 7vw, 44px); margin-top: 12px; }
  .step p { margin: 12px auto 0; font-size: 16.5px; }
  .story-progress { justify-content: center; }
  .story-copy .eyebrow { display: none; }
  .offline-grid, .detect-grid, .faq-grid { grid-template-columns: 1fr; }
  .detect-grid .sec-head { order: -1; }
  .faq-grid .sec-head { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .t-video { grid-column: span 2; grid-row: auto; }
  .tile:not(.t-video) { grid-column: span 1; }
  .t-video .t-art { min-height: 240px; }
  .stats { grid-template-columns: 1fr; gap: 26px; }
  .guarantees { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { height: 170vh; }
  .hero-copy { top: calc(var(--nav-h) + 22px); }
  .hero-copy .eyebrow { font-size: 12px; }
  .hero-sub { margin-top: 18px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn-ghost { display: none; }
  .hero-stage { --pw: min(44vw, 200px); }
  .slot-station { right: calc(50% + 6px); top: 26px; }
  .slot-parent { left: calc(50% + 6px); }
  .float-chip { padding: 8px 12px 8px 8px; font-size: 12.5px; gap: 8px; border-radius: 16px; }
  .float-chip small { font-size: 11.5px; }
  .chip-ic { width: 28px; height: 28px; border-radius: 10px; font-size: 15px; }
  .c1 { left: auto; right: 2%; top: -8%; }
  .c2 { right: auto; left: 2%; top: auto; bottom: 30%; }
  .tile:not(.t-video) { grid-column: span 2; }
  .hb-top { grid-template-columns: auto 1fr auto; }
  .hb-avatar { width: 64px; }
  .hb-node small { display: none; }
  .hb-ecg { height: 90px; }
  .hb-actions, .hb-actions .btn { width: 100%; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; padding: 10px 8px; font-size: 14px; }
  .faq-a p { padding-right: 0; }
  .finale-cta .btn { width: 100%; }
  .hero-title { font-size: clamp(40px, 11.5vw, 56px); }
  .detect-canvas { height: 150px; }
  .detect-legend { gap: 4px 14px; }
  .detect-grid .sec-title, .offline-grid .sec-title { font-size: clamp(32px, 8.4vw, 44px); }
  .hb-status { font-size: 16px; }
  .hb-status span { flex-basis: 100%; padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero, .story, .gallery { height: auto; }
  .hero-sticky { position: relative; height: auto; min-height: 100svh; padding-bottom: 60px; }
  .hero-copy { position: relative; }
  .hero-stage { position: relative; left: auto; top: auto; transform: none; margin: 40px auto 0; }
  .story-sticky, .gallery-sticky { position: relative; height: auto; padding: 90px 0; }
  .step { position: relative; opacity: 1; transform: none; filter: none; }
  .story-steps { min-height: 0; display: grid; gap: 40px; }
  .gallery-track { width: auto; overflow-x: auto; }
}
