/* ChouBip — « Une nuit avec ChouBip ».
 * La page raconte une nuit, de 19 h 30 à 7 h 30 : le ciel (calque fixe) passe du crépuscule à la nuit puis à
 * l'aube, une horloge suit le défilement. Couleurs : celles de l'app (AGENTS.md), rien de violet.
 * Les écrans sont de vraies captures de l'app (simulateur iPhone 18 Pro), dans un cadre de téléphone générique.
 * Trois niveaux : sans JavaScript (tout lisible, à plat), « réduire les animations » (à plat, sans vidéo),
 * et html.motion (séquences épinglées, GSAP). Aucune ressource tierce (CSP default-src 'self').
 */

@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --cream: #FFF7EE; --sand: #F6E7D7; --terra: #B9634B; --terra-l: #D9876B; --peach: #F4A983; --peach-n: #E99A7E;
  --blue: #7C9CB8; --blue-l: #B3C8DA; --sage: #8FA78A; --ink: #3B2A24; --ink-2: #7D6A62;
  --night: #161B26; --night-0: #0B0E15; --night-2: #1F2634; --night-3: #283142;
  --text-n: #F6EEE6; --muted-n: #AEB6C6; --line-n: rgba(246, 238, 230, .12);
  --ok: #7BC29A; --warn: #E6A04F; --danger: #E2574C;
  --glow: 244 169 131;          /* teinte de la veilleuse (modifiable dans la tuile « Veilleuse ») */
  --sky-a: #1C2331; --sky-b: #3A3036; --sky-c: #B9634B; --sky-h: 233 154 126; --sky-ha: .55;
  --f-d: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-u: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  --gut: clamp(20px, 5vw, 64px);
  --wrap: 1240px;
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--night); color: var(--text-n);
  font: 500 1.0625rem/1.6 var(--f-u); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: rgb(var(--glow) / .45); color: #fff; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.2em; height: 1.2em; flex: none; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ================================================================== calques fixes */
.sky { position: fixed; inset: 0; z-index: -3; background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 58%, var(--sky-c) 100%); }
.sky-glow { position: absolute; left: 50%; bottom: -38vh; width: 160vmax; height: 80vh; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--sky-h) / var(--sky-ha)), transparent 75%); }
.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ================================================================== ouverture */
.intro { display: none; }
html.motion .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 150; background: var(--night-0); pointer-events: none; }
.intro-beat { position: absolute; width: 14px; height: 14px; }
.intro-beat span { position: absolute; inset: 0; border-radius: 50%; background: var(--peach); box-shadow: 0 0 24px 6px rgb(244 169 131 / .55); transform: scale(0); }
.intro-line { position: absolute; width: min(600px, 80vw); height: 60px; overflow: visible; }
.intro-line path { fill: none; stroke: var(--peach); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; }
html.intro-done .intro { display: none; }

/* ================================================================== navigation */
.nav { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--nav-h); display: flex; align-items: center; gap: 24px;
  padding: env(safe-area-inset-top) max(var(--gut), env(safe-area-inset-right)) 0 max(var(--gut), env(safe-area-inset-left));
  transition: background .5s var(--e-out), color .5s, transform .6s var(--e-out); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: rgb(11 14 21 / .55); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line-n); }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 16px rgb(0 0 0 / .25); }
.brand-word { height: 22px; width: auto; --wm1: var(--text-n); --wm2: var(--blue-l); --wm3: var(--peach); }
.nav-links { display: none; margin-left: auto; gap: 28px; font-size: .9rem; font-weight: 700; }
.nav-links a { text-decoration: none; opacity: .72; transition: opacity .3s; }
.nav-links a:hover { opacity: 1; }
.pill { margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 99px; text-decoration: none;
  font-weight: 800; font-size: .86rem; background: rgb(246 238 230 / .1); border: 1px solid rgb(246 238 230 / .18); transition: background .3s, border-color .3s; }
.pill:hover { background: rgb(246 238 230 / .18); }
@media (min-width: 1000px) { .nav-links { display: flex; } .pill { margin-left: 8px; } }
body.is-day .nav { color: var(--ink); }
body.is-day .nav::before { background: rgb(255 247 238 / .72); border-bottom-color: rgb(59 42 36 / .08); }
body.is-day .brand-word { --wm1: var(--terra); --wm2: var(--blue); }
body.is-day .pill { background: rgb(59 42 36 / .06); border-color: rgb(59 42 36 / .14); }

/* ================================================================== horloge (HUD) et règle de la nuit */
.hud { position: fixed; z-index: 95; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px 0 12px; border-radius: 99px; font-size: .8rem; font-weight: 800;
  background: rgb(11 14 21 / .5); border: 1px solid var(--line-n); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-variant-numeric: tabular-nums; transition: background .5s, color .5s, border-color .5s, opacity .5s; }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hud-c, var(--ok)); box-shadow: 0 0 0 0 var(--hud-c, var(--ok)); animation: beat 1s infinite; }
.hud-time { letter-spacing: .04em; }
.hud-sep { width: 1px; height: 14px; background: currentColor; opacity: .25; }
.hud-label { opacity: .78; font-weight: 700; white-space: nowrap; }
.hud[data-tone="warn"] { --hud-c: var(--warn); }
.hud[data-tone="danger"] { --hud-c: var(--danger); }
body.is-day .hud { background: rgb(255 247 238 / .7); color: var(--ink); border-color: rgb(59 42 36 / .1); --hud-c: #4E9A6E; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgb(123 194 154 / .7); transform: scale(1.25); } 18% { transform: scale(1); } 100% { box-shadow: 0 0 0 10px rgb(123 194 154 / 0); } }
.ruler { display: none; }
@media (min-width: 1100px) and (min-height: 640px) {
  .ruler { display: flex; flex-direction: column; justify-content: space-between; position: fixed; z-index: 95; right: 26px; top: 50%; height: 44vh;
    transform: translateY(-50%); font-size: .68rem; font-weight: 800; letter-spacing: .06em; opacity: .5; transition: color .5s; }
  .ruler::before { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .35; }
  .ruler span { text-align: right; }
  .ruler-mark { position: absolute; right: -14px; top: 0; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 12px var(--peach); }
  body.is-day .ruler { color: var(--ink); }
}

/* ================================================================== typographie */
.display, .sec-title, .finale-title, .manifesto-text, .cap h2 {
  font-family: var(--f-d); font-weight: 340; font-variation-settings: "SOFT" 100; letter-spacing: -.028em; text-wrap: balance;
}
.display em, .sec-title em, .finale-title em { font-weight: 300; color: var(--peach); }
.stamp { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.stamp time { font-variant-numeric: tabular-nums; letter-spacing: .06em; padding: 4px 9px; border-radius: 8px; background: rgb(var(--glow) / .16); color: var(--peach); }
body .is-dayish .stamp time, .model .stamp time, .faq .stamp time, .finale .stamp time, .morning .stamp time { color: var(--terra); background: rgb(185 99 75 / .12); }
.sec-title { font-size: clamp(2.2rem, 6.4vw, 6rem); line-height: .98; margin-top: 18px; }
.sec-lede { margin-top: 22px; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted-n); }
.fine { margin-top: 18px; font-size: .85rem; color: var(--muted-n); max-width: 40em; }
.line-mask { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

/* ================================================================== boutons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 99px;
  font-weight: 800; font-size: .98rem; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--e-out), background .3s, color .3s, border-color .3s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .35), transparent 70%); opacity: 0; transition: opacity .3s; }
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }
.btn-light { background: var(--cream); color: var(--ink); box-shadow: 0 10px 40px -10px rgb(var(--glow) / .6); }
.btn-ghost { border: 1px solid rgb(246 238 230 / .28); background: rgb(246 238 230 / .04); }
.btn-ghost:hover { border-color: rgb(246 238 230 / .5); }
.btn-dark { background: var(--ink); color: var(--cream); box-shadow: 0 14px 40px -14px rgb(59 42 36 / .6); }
.btn-outline { border: 1px solid rgb(59 42 36 / .25); color: var(--ink); }
.btn[aria-disabled="true"] { cursor: default; }

/* ================================================================== téléphones (cadre générique, captures réelles) */
.phone { --w: 280px; position: relative; width: var(--w); padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .165);
  background: linear-gradient(150deg, #3a404c 0%, #14171e 38%, #0a0c11 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 0 0 calc(var(--w) * .012) #05060a, 0 50px 90px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(0 0 0 / .5); }
.phone-screen { position: relative; aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * .135); overflow: hidden; background: var(--night); isolation: isolate; }
.phone-screen::before { content: ""; position: absolute; z-index: 5; top: 1.25%; left: 50%; width: 31%; height: 4.1%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.live::before { top: 1.4%; height: 3.4%; width: 30%; }
.phone-screen::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgb(255 255 255 / .1) 0%, transparent 28%, transparent 70%, rgb(255 255 255 / .04) 100%); }
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone figcaption { position: absolute; left: 50%; top: calc(100% + 18px); transform: translateX(-50%); white-space: nowrap; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.phone-sm { --w: 230px; }

/* ================================================================== séquence « Le lien » */
.seq { position: relative; }
.seq-stage { position: relative; padding: calc(var(--nav-h) + 40px) var(--gut) 80px; }
.media { position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: 0; transition: opacity 1.6s ease; }
.media.is-ready { opacity: 1; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.media-veil { display: none; }
.media.is-ready + .media-veil { display: block; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(11 14 21 / .7) 0%, rgb(11 14 21 / .2) 36%, rgb(11 14 21 / .32) 66%, rgb(11 14 21 / .92) 100%); }
.seq-dim { position: absolute; inset: 0; z-index: -1; background: var(--night-0); opacity: 0; pointer-events: none; }
html:not(.motion) .seq-dim { display: none; }
.seq-stage.has-video .halo { top: 55%; mix-blend-mode: screen; }
.media-soft { -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.media-soft.is-ready { opacity: .62; }
.morning .media-soft.is-ready { opacity: .55; }

.halo { position: absolute; left: 50%; top: 46%; width: var(--D); height: var(--D); --D: min(84vmin, 760px); transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.halo-in { position: absolute; inset: 0; }
.halo-core { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--glow) / .62) 0%, rgb(var(--glow) / .32) 34%, rgb(var(--glow) / .1) 62%, transparent 100%);
  animation: breathe 4.6s var(--e-io) infinite; }
.halo-ring { position: absolute; border-radius: 50%; border: 1px solid rgb(246 238 230 / .1); }
.halo-ring.r1 { inset: 20%; background: radial-gradient(closest-side, rgb(var(--glow) / .16), transparent); }
.halo-ring.r2 { inset: 9%; }
.halo-ring.r3 { inset: -4%; border-color: rgb(246 238 230 / .05); }
.halo-wave { position: absolute; inset: 22%; border-radius: 50%; border: 1.5px solid rgb(var(--glow) / .5); opacity: 0; animation: wave 4.5s cubic-bezier(.2, .6, .3, 1) infinite; }
.halo-wave:nth-of-type(2) { animation-delay: 1.5s; }
.halo-wave:nth-of-type(3) { animation-delay: 3s; }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .85; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes wave { 0% { transform: scale(.7); opacity: 0; } 15% { opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 1100px; margin: 0 auto; padding-top: 4vh; }
.display { font-size: clamp(3.4rem, 12.4vw, 12.5rem); line-height: .9; margin-top: 22px; }
.display .l1, .display .l2 { display: block; }
.display .l2 { margin-top: .02em; }
.lede { margin: 28px auto 0; max-width: 31em; font-size: clamp(1.06rem, 1.5vw, 1.3rem); color: rgb(246 238 230 / .82); }
.hero-copy .cta-row { justify-content: center; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; font-size: .84rem; font-weight: 700; color: var(--muted-n); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
sup { font-size: .62em; line-height: 0; vertical-align: .55em; margin-left: .08em; }
.footnote { margin-top: 14px; font-size: .78rem; color: var(--muted-n); opacity: .85; }
.footnote.center { text-align: center; }
.model .footnote { margin-top: 26px; color: rgb(59 42 36 / .62); opacity: 1; }
[hidden] { display: none !important; }

.duo { position: relative; display: flex; justify-content: center; gap: clamp(16px, 6vw, 120px); margin-top: 90px; }
.duo .phone { --w: min(42vw, 280px); }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.thread-line { fill: none; stroke: url(#thread-grad); stroke-width: 2; stroke-linecap: round; transition: stroke .4s; }
.thread-glow { fill: none; stroke: rgb(var(--glow) / .35); stroke-width: 10; stroke-linecap: round; filter: blur(6px); }
.thread.is-warn .thread-line { stroke: var(--warn); stroke-dasharray: 3 9; }
.thread.is-warn .thread-glow { stroke: rgb(230 160 79 / .35); }
.thread.is-lost .thread-line { stroke: var(--danger); stroke-dasharray: 1 14; opacity: .7; }
.thread.is-lost .thread-glow { stroke: rgb(226 87 76 / .25); }
.beat { fill: #fff; filter: drop-shadow(0 0 6px rgb(var(--glow))) drop-shadow(0 0 14px rgb(var(--glow))); opacity: 0; }
.ping { position: absolute; left: 50%; top: 33%; width: 50%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgb(var(--glow) / .9); transform: translate(-50%, -50%) scale(.5); opacity: 0; z-index: 3; pointer-events: none; }
.phone-parent .ping { top: 25.5%; width: 44%; }
.scr-alarm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 2; }
.chip { position: absolute; z-index: 4; left: 50%; bottom: 7%; transform: translateX(-50%); white-space: nowrap; padding: 6px 11px; border-radius: 99px;
  font-size: max(10px, calc(var(--w) * .04)); font-weight: 800; background: rgb(11 14 21 / .82); border: 1px solid var(--line-n); color: var(--ok); opacity: 0;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chip.is-warn { color: var(--warn); }
.chip.is-lost { color: #fff; background: var(--danger); border-color: transparent; }

.captions { position: relative; z-index: 3; display: grid; gap: 48px; max-width: 760px; margin: 110px auto 0; }
.cap .kicker { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); }
.cap h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.02; margin-top: 12px; }
.cap p:not(.kicker) { margin-top: 14px; color: rgb(246 238 230 / .78); }
.meter { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-n) !important; }
.meter b { display: inline-block; min-width: 2.6em; text-align: right; font-size: 1.3em; color: var(--ok); transition: color .3s; }
.meter.is-warn b { color: var(--warn); }
.meter.is-lost b { color: var(--danger); }
.scroll-cue { display: none; }

/* — version cinéma (JS + animations autorisées) — */
html.motion .seq-stage { height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
html.motion .hero-copy { position: absolute; left: 50%; top: 50%; width: min(1100px, calc(100% - 2 * var(--gut))); transform: translate(-50%, -54%); padding: 0; }
html.motion .duo { position: absolute; inset: 0; margin: 0; display: block; z-index: 1; }
html.motion .duo .phone { position: absolute; left: var(--x); top: var(--y); --w: min(30vh, 300px); margin-left: calc(var(--w) / -2); margin-top: calc(var(--w) * -1.08); will-change: transform, opacity; }
html.motion .phone-station { --x: 24%; --y: 52%; }
html.motion .phone-parent { --x: 76%; --y: 52%; }
html.motion .thread { display: block; }
html.motion .halo { transform: none; }
html:not(.motion) .halo { top: 330px; }
/* Page à plat (« réduire les animations », sans JavaScript) : le halo, plus large que l'écran, ne doit pas élargir la page. */
html:not(.motion) .seq-stage { overflow: clip; }
html.motion .captions { position: absolute; z-index: 3; left: 50%; top: 54%; width: min(34vw, 470px); margin: 0; transform: translate(-50%, -50%); display: block; }
html.motion .cap { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; opacity: 0; visibility: hidden; }
html.motion .scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; z-index: 3; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; opacity: .7; }
html.motion .scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--text-n), transparent); transform-origin: top; animation: cue 2.2s var(--e-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 760px) {
  html.motion .duo .phone { --w: min(33vw, 21svh); margin-top: 0; }
  html.motion .phone-station { --x: 25%; --y: 15svh; }
  html.motion .phone-parent { --x: 75%; --y: 15svh; }
  html.motion .phone figcaption { top: calc(100% + 10px); font-size: .66rem; }
  html.motion .captions { top: auto; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 62px); width: calc(100% - 40px); transform: translateX(-50%); height: 15.5rem; }
  html.motion .cap { top: auto; bottom: 0; transform: none; }
  .cap h2 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .cap p:not(.kicker) { font-size: .98rem; margin-top: 10px; }
  .halo { --D: min(118vw, 70svh); top: 44%; }
  .display { font-size: clamp(3.1rem, 16vw, 5.4rem); }
  .lede { font-size: 1.04rem; }
  .btn { min-height: 50px; padding: 0 18px; font-size: .93rem; }
  html.motion .hero-copy { transform: translate(-50%, -52%); }
}
@media (max-width: 760px) {
  .brand-word { display: none; }
  .hud { z-index: 101; left: calc(max(var(--gut), env(safe-area-inset-left)) + 46px); top: calc(env(safe-area-inset-top) + 15px); bottom: auto; height: 38px; padding: 0 13px 0 11px; }
  .hud-sep, .hud-label { display: none; }
  .demo-ctrl { order: -1; }
  .demo-device { gap: 18px; }
  .phone-live { --w: min(232px, 60vw); }
  .demo-ctrl-title:not(:first-child) { display: none; }
  .demo-ctrl .demo-note { display: none; }
  .demo-note-m { display: block !important; margin-top: 0; text-align: center; }
  .demo-grid { gap: 26px; }
}
@media (max-width: 380px) { .trust { font-size: .78rem; gap: 6px 14px; } .display { font-size: 3rem; } }
/* Écran peu haut (portable, téléphone couché) : pas de légende sous la flèche de défilement. */
@media (max-height: 760px) { html.motion .scroll-cue span { display: none; } }

/* ================================================================== sections génériques */
.section { position: relative; padding: clamp(110px, 16vh, 200px) var(--gut); }
.section > *, .manifesto > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-lede { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- manifeste */
.manifesto { position: relative; padding: clamp(120px, 22vh, 260px) var(--gut); }
.manifesto-text { margin-top: 28px; font-size: clamp(2rem, 5.2vw, 4.9rem); line-height: 1.1; max-width: 18em; }
.manifesto-text .hl { color: var(--peach); font-style: italic; font-weight: 300; }
html.motion .manifesto-text .w { opacity: .14; transition: none; }
.wave-line { width: 100%; max-width: none; height: 120px; margin-top: 80px; overflow: visible; }
.wave-line path { fill: none; stroke: rgb(var(--glow) / .55); stroke-width: 1.5; stroke-linecap: round; }

/* ---------------------------------------------------------------- mise en route */
.steps-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 60px); margin-top: 80px; counter-reset: s; }
.step { display: flex; flex-direction: column; align-items: flex-start; }
.step .phone { --w: min(100%, 250px); margin-bottom: 36px; }
.step:nth-child(2) { margin-top: 70px; }
.step:nth-child(3) { margin-top: 140px; }
.step-n { font-family: var(--f-d); font-weight: 300; font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--peach); }
.step h3 { margin-top: 10px; font-family: var(--f-d); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.1rem); letter-spacing: -.02em; }
.step p { margin-top: 10px; color: var(--muted-n); max-width: 22em; }
.steps-dots { display: none; }
@media (max-width: 760px) {
  .steps-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 56px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .steps-track::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 78%; scroll-snap-align: center; margin: 0 !important; }
  .step .phone { --w: min(62vw, 240px); align-self: center; }
  .steps-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
  .steps-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--text-n); opacity: .3; transition: width .4s var(--e-out), opacity .3s; }
  .steps-dots i.on { width: 22px; opacity: .9; }
}

/* ---------------------------------------------------------------- démo */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; margin-top: 70px; }
.demo-device { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.phone-live { --w: min(320px, 78vw); }
.live { background: radial-gradient(120% 70% at 50% 25%, #263044, var(--night) 70%); color: var(--text-n); font-size: calc(var(--w) * .043); display: flex; flex-direction: column; gap: 3.5%; padding: 13% 5.5% 6%; }
.sim-badge { position: absolute; z-index: 7; top: 6.2%; right: 5%; font-size: .72em; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgb(var(--glow) / .2); color: var(--peach); }
.live-top { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 3%; }
.live-top b { display: block; font-size: 1.35em; font-weight: 900; }
.live-top small { font-size: .78em; color: var(--muted-n); font-weight: 700; }
.live-batt { font-weight: 800; font-size: .82em; padding: 4px 9px; border-radius: 99px; background: rgb(246 238 230 / .08); margin-top: 22%; }
.live-card { flex: 1; border-radius: 1.4em; background: rgb(31 38 52 / .8); border: 1px solid var(--line-n); padding: 6% 6%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.live-chips { width: 100%; display: flex; justify-content: space-between; font-size: .76em; font-weight: 800; }
.live-chips span { padding: 3px 8px; border-radius: 99px; background: rgb(246 238 230 / .06); }
.lc-ok { color: var(--ok); }
.live-halo { position: relative; width: 62%; aspect-ratio: 1; margin: 7% 0 5%; display: grid; place-items: center; }
.live-halo i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--glow) / .32), rgb(var(--glow) / .08) 70%, transparent); transition: transform .5s var(--e-out); }
.live-halo i + i { inset: 16%; background: rgb(var(--glow) / .14); }
.live-halo svg { position: relative; width: 56%; animation: breathe 4.6s var(--e-io) infinite; }
.live-status { font-family: var(--f-u); font-weight: 900; font-size: 1.5em; line-height: 1.1; transition: color .3s; }
.live-sub { font-size: .82em; color: var(--muted-n); margin-top: 3px; font-weight: 700; }
.live-wave { border-radius: 1.1em; background: rgb(31 38 52 / .8); border: 1px solid var(--line-n); padding: 4.5% 5%; }
.lw-head { display: flex; justify-content: space-between; font-size: .8em; font-weight: 800; }
.lw-head span { color: var(--peach); }
#live-canvas { width: 100%; height: auto; aspect-ratio: 300 / 64; margin-top: 5%; }
.live-alarm { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; padding: 10%; text-align: center;
  background: radial-gradient(90% 60% at 50% 40%, #A8524A, #5A2A2E 60%, #241319); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.live-alarm .i { width: 22%; height: auto; aspect-ratio: 1; color: #fff; }
.live-alarm b { font-size: 1.8em; font-weight: 900; }
.live-alarm p { font-size: .92em; opacity: .9; }
.live-alarm-btn { margin-top: 6%; width: 100%; padding: 4.5% 0; border: 0; border-radius: 99px; background: var(--cream); color: var(--ink); font-weight: 900; font-size: .92em; cursor: pointer; }
.live[data-state="lost"] .live-alarm { opacity: 1; visibility: visible; }
.live[data-state="warn"] .live-status { color: var(--warn); }
.live[data-state="warn"] .lc-ok { color: var(--warn); }
.live[data-state="cry"] .live-status { color: var(--peach); }
.live[data-state="cry"] .live-halo i { transform: scale(1.12); }
.live-toast { position: absolute; z-index: 9; left: 5%; right: 5%; top: 5.5%; padding: 3.2% 4%; border-radius: 1em; font-size: .86em; font-weight: 800;
  background: rgb(246 238 230 / .96); color: var(--ink); box-shadow: 0 10px 30px rgb(0 0 0 / .35); transform: translateY(-140%); opacity: 0; transition: transform .6s var(--e-out), opacity .4s; }
.live-toast.on { transform: none; opacity: 1; }
.phone-live.is-buzz { animation: buzz .5s linear 2; }
@keyframes buzz { 0%, 100% { transform: none; } 20% { transform: translateX(-3px) rotate(-.6deg); } 40% { transform: translateX(3px) rotate(.6deg); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.demo-station { display: flex; align-items: center; gap: 10px; max-width: 100%; font-size: .86rem; color: var(--muted-n); font-weight: 700; }
.demo-station b { color: var(--text-n); }
.ds-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: beat 1s infinite; }
.ds-dot.off { animation: none; background: var(--muted-n); opacity: .5; }
.demo-ctrl { display: flex; flex-direction: column; gap: 10px; }
.demo-ctrl-title { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-n); margin: 14px 0 4px; }
.demo-ctrl-title:first-child { margin-top: 0; }
.dbtn { display: flex; align-items: center; gap: 16px; text-align: left; padding: 14px 18px; min-height: 64px; border-radius: 18px; cursor: pointer;
  border: 1px solid var(--line-n); background: rgb(246 238 230 / .04); transition: background .3s, border-color .3s, transform .4s var(--e-out); }
.dbtn:hover { background: rgb(246 238 230 / .08); border-color: rgb(246 238 230 / .22); }
.dbtn:active { transform: scale(.98); }
.dbtn[aria-pressed="true"] { border-color: rgb(var(--glow) / .6); background: rgb(var(--glow) / .12); }
.dbtn-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--glow) / .14); color: var(--peach); font-size: 1.1rem; }
.dbtn b { display: block; font-weight: 800; }
.dbtn small { display: block; color: var(--muted-n); font-size: .85rem; font-weight: 600; }
.dbtn-net .dbtn-ic { background: rgb(226 87 76 / .14); color: #F08A80; }
.demo-note-m { display: none; }
.demo-note { margin-top: 18px; font-size: .84rem; color: var(--muted-n); max-width: 32em; }
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .demo-ctrl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .demo-ctrl-title, .demo-note, .dbtn-net { grid-column: 1 / -1; }
  .dbtn { padding: 12px 14px; gap: 12px; }
  .dbtn small { display: none; }
  .dbtn-net small { display: block; }
}

/* ---------------------------------------------------------------- sans internet */
.offline-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 30px; border-radius: 26px; background: rgb(246 238 230 / .06); border: 1px solid var(--line-n); }
.tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 99px; background: none; font-weight: 800; font-size: .92rem; cursor: pointer; opacity: .65; transition: background .4s var(--e-out), color .3s, opacity .3s; }
.tabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); opacity: 1; }
.net svg { width: 100%; height: auto; overflow: visible; }
.net text { fill: var(--muted-n); font: 800 13px var(--f-u); text-anchor: middle; letter-spacing: .02em; }
.net .net-internet text { text-anchor: start; }
.net-house path { fill: rgb(246 238 230 / .025); stroke: rgb(246 238 230 / .22); stroke-width: 1.5; stroke-linejoin: round; }
.net-up { stroke: rgb(246 238 230 / .3); stroke-width: 1.5; stroke-dasharray: 4 6; fill: none; }
.net-cloud path { fill: none; stroke: rgb(246 238 230 / .35); stroke-width: 1.5; }
.net-cut path { stroke: var(--danger); stroke-width: 3; stroke-linecap: round; fill: none; }
.net-box rect { fill: var(--night-2); stroke: rgb(246 238 230 / .35); stroke-width: 1.5; }
.net-box path { stroke: rgb(246 238 230 / .35); stroke-width: 1.5; stroke-linecap: round; }
.net-link { fill: none; stroke: rgb(var(--glow) / .85); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2 8; animation: flow 1s linear infinite; }
.net-direct, .net-remote, .net-bt, .net-tag { opacity: 0; }
.net-tag { fill: var(--peach) !important; font-weight: 900 !important; }
.net-bt { stroke: var(--blue-l); stroke-dasharray: 1 7; }
@keyframes flow { to { stroke-dashoffset: -10; } }
.net-ph rect { fill: var(--night-2); stroke: rgb(246 238 230 / .5); stroke-width: 1.5; }
.net-ph circle { fill: rgb(var(--glow) / .45); }
.net-pkt { fill: #fff; filter: drop-shadow(0 0 5px rgb(var(--glow))); }
.net-hot circle { fill: none; stroke: rgb(var(--glow) / .6); stroke-width: 1.5; opacity: 0; }
.net[data-mode="trip"] .net-box, .net[data-mode="trip"] .net-internet, .net[data-mode="trip"] .net-l1, .net[data-mode="trip"] .net-l2 { opacity: 0; }
.net[data-mode="trip"] .net-direct { opacity: 1; }
.net[data-mode="away"] .net-l1, .net[data-mode="away"] .net-l2, .net[data-mode="away"] .net-box { opacity: .25; }
.net[data-mode="away"] .net-up, .net[data-mode="away"] .net-cloud { opacity: 1 !important; }
.net[data-mode="away"] .net-remote, .net[data-mode="away"] .net-tag-away { opacity: 1; }
.net[data-mode="away"] .net-cut, .net[data-mode="bt"] .net-cut { visibility: hidden; }
.net[data-mode="bt"] .net-box, .net[data-mode="bt"] .net-internet, .net[data-mode="bt"] .net-l1, .net[data-mode="bt"] .net-l2 { opacity: .15; }
.net[data-mode="bt"] .net-bt, .net[data-mode="bt"] .net-tag-bt { opacity: 1; }
.net[data-mode="trip"] .net-hot circle { animation: hot 2s ease-out infinite; }
.net[data-mode="trip"] .net-hot circle + circle { animation-delay: .6s; }
.net g, .net path { transition: opacity .6s var(--e-out); }
@keyframes hot { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.4); } }
.net-hot circle { transform-origin: 140px 300px; transform-box: view-box; }
.net figcaption { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--muted-n); }
@media (max-width: 860px) { .offline-grid { grid-template-columns: 1fr; } .net { max-width: 480px; margin: 20px auto 0; } }

/* ---------------------------------------------------------------- vie privée */
.privacy { text-align: center; overflow: clip; }
.privacy .sec-title { max-width: 14em; margin-left: auto; margin-right: auto; }
.strike { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; margin-top: 80px; font-family: var(--f-d); font-weight: 300; font-size: clamp(1.8rem, 5vw, 4.4rem); line-height: 1.1; letter-spacing: -.02em; }
.strike span { position: relative; display: inline-block; color: rgb(246 238 230 / .55); }
.strike span::after { content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: .06em; min-height: 2px; border-radius: 2px; background: var(--peach); transform: scaleX(var(--s, 1)); transform-origin: left; }
html.motion .strike span { --s: 0; }
.strike-after { margin-top: 34px; font-weight: 800; font-size: 1.1rem; color: var(--peach); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 90px; text-align: left; }
.fact { padding: 30px 28px; border-radius: 26px; background: rgb(31 38 52 / .45); border: 1px solid var(--line-n); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fact .i { width: 28px; height: 28px; color: var(--sage); }
.fact h3 { margin-top: 18px; font-size: 1.15rem; font-weight: 900; }
.fact p { margin-top: 8px; color: var(--muted-n); font-size: .98rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; margin-top: 60px; } .strike { gap: 2px 20px; margin-top: 56px; } }

/* ---------------------------------------------------------------- fonctions (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; margin-top: 70px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; border-radius: 28px;
  background: linear-gradient(180deg, rgb(40 49 66 / .55), rgb(22 27 38 / .72)); border: 1px solid var(--line-n); isolation: isolate;
  transition: border-color .4s, transform .6s var(--e-out); }
.tile:hover { border-color: rgb(246 238 230 / .2); }
.tile h3 { font-size: 1.22rem; font-weight: 900; position: relative; }
.tile p { margin-top: 8px; color: var(--muted-n); font-size: .96rem; position: relative; max-width: 30em; }
.t-light { grid-column: span 4; grid-row: span 2; min-height: 520px; }
.t-video { grid-column: span 2; grid-row: span 2; }
.t-cam, .t-sounds, .t-family { grid-column: span 2; }
.t-batt, .t-cross { grid-column: span 3; }
.t-light-lamp { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; }
.t-light-lamp i { width: 70%; aspect-ratio: 1; border-radius: 50%; margin-top: -18%;
  background: radial-gradient(closest-side, rgb(var(--glow) / .95), rgb(var(--glow) / .45) 30%, rgb(var(--glow) / .12) 60%, transparent); animation: breathe 4.6s var(--e-io) infinite; transition: background .8s; }
.swatches { display: flex; gap: 10px; margin-top: 20px; position: relative; flex-wrap: wrap; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 2px rgb(0 0 0 / .15); transition: transform .4s var(--e-out), box-shadow .3s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--c), 0 0 24px var(--c); }
.t-video-img { position: absolute; inset: 0; z-index: -1; }
.t-video-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .75; transform: scale(1.04); transition: transform 1.2s var(--e-out); }
.t-video:hover .t-video-img img { transform: scale(1.1); }
.t-video-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(15 19 27 / .95) 80%); }
/* « Parlez-lui » : la capture occupe le haut de la tuile et s'efface avant le texte ; le bouton à maintenir est
   juste au-dessus du titre. */
.t-video .t-video-img { bottom: 36%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.t-video .t-video-img::after { display: none; }
.t-video-img img { object-position: 50% 12%; }
.t-video .talk { margin: 0 0 18px; }
.cam { position: relative; width: 128px; height: 84px; margin-bottom: auto; border-radius: 14px; overflow: hidden;
  background: radial-gradient(80% 90% at 50% 60%, #3f5a49, #18241d 70%), #18241d; }
.cam::before { content: ""; position: absolute; inset: 9px; border-radius: 6px;
  background: linear-gradient(#cfe3d2, #cfe3d2) left top / 14px 2px no-repeat, linear-gradient(#cfe3d2, #cfe3d2) left top / 2px 14px no-repeat,
    linear-gradient(#cfe3d2, #cfe3d2) right top / 14px 2px no-repeat, linear-gradient(#cfe3d2, #cfe3d2) right top / 2px 14px no-repeat,
    linear-gradient(#cfe3d2, #cfe3d2) left bottom / 14px 2px no-repeat, linear-gradient(#cfe3d2, #cfe3d2) left bottom / 2px 14px no-repeat,
    linear-gradient(#cfe3d2, #cfe3d2) right bottom / 14px 2px no-repeat, linear-gradient(#cfe3d2, #cfe3d2) right bottom / 2px 14px no-repeat; opacity: .8; }
.cam i { position: absolute; left: 18px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: #E2574C; animation: rec 1.2s steps(2, jump-none) infinite; }
.cam b { position: absolute; left: 30px; top: 12px; font-size: .62rem; letter-spacing: .12em; color: #cfe3d2; }
@keyframes rec { 50% { opacity: .15; } }
.talk { position: relative; width: 74px; height: 74px; margin-bottom: auto; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--peach-n); color: var(--night); touch-action: none; -webkit-user-select: none; user-select: none; transition: transform .3s var(--e-out); }
.talk .i { width: 28px; height: 28px; position: relative; z-index: 1; }
.talk i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--peach-n); opacity: 0; }
.talk.is-on { transform: scale(.94); }
.talk.is-on i { animation: wave 1.6s ease-out infinite; }
.talk.is-on i:nth-of-type(2) { animation-delay: .5s; }
.talk.is-on i:nth-of-type(3) { animation-delay: 1s; }
.marquee { position: absolute; left: 0; right: 0; top: 30px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-in { display: flex; gap: 10px; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { white-space: nowrap; padding: 8px 14px; border-radius: 99px; font-size: .84rem; font-weight: 800; background: rgb(246 238 230 / .06); border: 1px solid var(--line-n); }
.marquee span:nth-child(odd) { color: var(--peach); }
@keyframes marquee { to { transform: translateX(-50%); } }
.avatars { display: flex; margin-bottom: auto; }
.avatars i { width: 52px; height: 52px; margin-right: -12px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; color: var(--night); border: 3px solid var(--night-2); }
.avatars i:nth-child(1) { background: var(--peach); } .avatars i:nth-child(2) { background: var(--blue-l); } .avatars i:nth-child(3) { background: var(--sage); } .avatars i:nth-child(4) { background: var(--cream); font-size: .85rem; }
.batt { position: relative; width: 150px; height: 64px; margin-bottom: auto; border-radius: 16px; border: 2px solid rgb(246 238 230 / .5); padding: 5px; }
.batt::after { content: ""; position: absolute; right: -9px; top: 22px; width: 5px; height: 16px; border-radius: 0 4px 4px 0; background: rgb(246 238 230 / .5); }
.batt i { display: block; height: 100%; width: 86%; border-radius: 10px; background: linear-gradient(90deg, var(--sage), var(--ok)); transition: width .3s, background .3s; }
.batt i.low { background: linear-gradient(90deg, var(--danger), var(--warn)); }
.batt b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; color: var(--night); font-variant-numeric: tabular-nums; }
.cross { display: flex; align-items: center; gap: 14px; margin-bottom: auto; font-weight: 900; font-size: 1.1rem; }
.cross i { position: relative; width: 90px; height: 2px; background: linear-gradient(90deg, var(--peach), var(--blue-l)); border-radius: 2px; }
.cross i::before, .cross i::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgb(var(--glow)); animation: shuttle 2s var(--e-io) infinite; }
.cross i::after { animation-delay: 1s; animation-direction: reverse; }
@keyframes shuttle { 0% { left: 0; } 50% { left: calc(100% - 10px); } 100% { left: 0; } }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(220px, auto); }
  .t-light { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
  .t-video { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .t-cam, .t-sounds, .t-family, .t-batt, .t-cross { grid-column: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile { grid-column: 1 / -1 !important; padding: 24px; border-radius: 24px; }
  .t-light { min-height: 420px; }
}

/* ---------------------------------------------------------------- réveil */
.morning { color: var(--ink); }
.morning .stamp { opacity: .85; }
.morning .sec-title em { color: var(--terra); }
.morning .sec-lede, .morning .fine { color: rgb(59 42 36 / .78); }
.morning-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.morning-phone { display: flex; justify-content: center; }
.morning-phone .phone { --w: min(310px, 70vw); }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 38px; margin-top: 40px; }
.stats dt { font-size: .8rem; font-weight: 800; letter-spacing: .04em; color: rgb(59 42 36 / .7); }
.stats dd { font-family: var(--f-d); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 340; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats dd b { font-weight: inherit; }
@media (max-width: 860px) { .morning-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, auto); } .morning-phone { margin-top: 20px; } }

/* ---------------------------------------------------------------- modèle (jour) */
.model, .faq, .finale { color: var(--ink); }
.model .sec-title em, .faq .sec-title em, .finale-title em { color: var(--terra); }
.model { overflow: clip; }
.sun { position: absolute; left: 50%; top: 10%; width: min(90vw, 900px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgb(255 214 170 / .9), rgb(244 169 131 / .35) 45%, transparent 72%); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin-top: 80px; }
.plan { padding: 38px 34px; border-radius: 30px; background: rgb(255 255 255 / .62); border: 1px solid rgb(59 42 36 / .08); box-shadow: 0 30px 60px -40px rgb(90 50 30 / .45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.plan-full { background: var(--ink); color: var(--cream); }
.plan-k { font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.plan-full .plan-k { color: var(--peach); }
/* Règle d'Apple : jamais « IPHONE » en capitales. */
#appareils .plan-k { text-transform: none; letter-spacing: .01em; font-size: .95rem; }
.model .sec-lede { color: rgb(59 42 36 / .78); }
.plan h3 { margin-top: 16px; font-family: var(--f-d); font-weight: 380; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.08; letter-spacing: -.02em; }
.plan p:last-child { margin-top: 14px; opacity: .78; }
.safety { display: flex; align-items: flex-start; gap: 16px; max-width: 980px; margin-top: 18px; padding: 24px 28px; border-radius: 24px; background: rgb(143 167 138 / .2); border: 1px solid rgb(143 167 138 / .4); }
.safety .i { width: 26px; height: 26px; color: #56724F; margin-top: 2px; }
.safety p { color: rgb(59 42 36 / .85); }
.safety b { color: var(--ink); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; margin-top: 54px; } .plan { padding: 30px 26px; } }

/* ---------------------------------------------------------------- FAQ */
.faq-list { max-width: 900px; margin-top: 60px; border-top: 1px solid rgb(59 42 36 / .12); }
.faq details { border-bottom: 1px solid rgb(59 42 36 / .12); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 26px 56px 26px 0; font-family: var(--f-d); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--terra); transition: transform .5s var(--e-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 1fr; }
.faq-a p { padding: 0 40px 28px 0; color: rgb(59 42 36 / .78); max-width: 46em; }
html.js .faq-a { overflow: hidden; }

/* ---------------------------------------------------------------- final */
.finale { position: relative; text-align: center; padding: clamp(110px, 18vh, 220px) var(--gut) 120px; overflow: clip; }
.finale-mark { position: relative; width: 150px; height: 150px; margin: 0 auto 40px; display: grid; place-items: center; }
.finale-mark i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(185 99 75 / .5); animation: wave 4.5s cubic-bezier(.2, .6, .3, 1) infinite; opacity: 0; }
.finale-mark i:nth-child(2) { animation-delay: 1.5s; } .finale-mark i:nth-child(3) { animation-delay: 3s; }
.finale-mark svg { width: 120px; animation: breathe 4.6s var(--e-io) infinite; filter: drop-shadow(0 18px 30px rgb(185 99 75 / .3)); }
.finale-title { font-size: clamp(3.2rem, 10vw, 9.5rem); line-height: .92; }
.finale-sub { margin-top: 24px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: rgb(59 42 36 / .75); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 34px; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: 52px; width: auto; }
.badge .gp { height: 67.7px; margin-block: -7.85px; }
.disclaimer { margin: 60px auto 0; max-width: 34em; font-size: .84rem; color: rgb(59 42 36 / .6); }
.foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 34px var(--gut) calc(34px + env(safe-area-inset-bottom) + 50px); color: var(--ink); border-top: 1px solid rgb(59 42 36 / .1); font-size: .88rem; }
.foot .brand-word { height: 22px; --wm1: var(--terra); --wm2: var(--blue); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 800; }
.foot nav a { text-decoration: none; }
.foot p { color: rgb(59 42 36 / .6); }
.foot .foot-tm { flex-basis: 100%; font-size: .76rem; }

/* ================================================================== animations : états initiaux (motion seulement) */
html.motion [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ================================================================== réduire les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .halo-wave, .finale-mark i { display: none; }
  .marquee-in { animation: none; flex-wrap: wrap; width: auto; }
  .marquee { position: relative; top: 0; margin-bottom: 20px; -webkit-mask: none; mask: none; }
}

/* ================================================================== héros filmé : lisibilité sur la veilleuse */
.seq-stage.has-video .halo-core { opacity: .55; }
.seq-stage.has-video .display { text-shadow: 0 2px 40px rgb(11 14 21 / .55); }
.seq-stage.has-video .lede, .seq-stage.has-video .trust, .seq-stage.has-video .stamp { text-shadow: 0 1px 18px rgb(11 14 21 / .9), 0 0 2px rgb(11 14 21 / .6); }
.seq-stage.has-video .lede { color: rgb(246 238 230 / .92); }
.morning .media-soft.is-ready ~ * .stats dd, .morning .media-soft.is-ready ~ * .sec-lede { text-shadow: 0 1px 14px rgb(255 247 238 / .8); }
/* page à plat (sans JS ou « réduire les animations ») : l'affiche du héros couvre seulement le premier écran */
html:not(.motion) .seq .media, html:not(.motion) .seq .media-veil { bottom: auto; height: 100vh; height: 100svh;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
html:not(.motion) .halo { top: 55vh; top: 55svh; }
.media.is-ready ~ .hero-copy .display { text-shadow: 0 2px 40px rgb(11 14 21 / .55); }
.media.is-ready ~ .hero-copy .lede, .media.is-ready ~ .hero-copy .trust, .media.is-ready ~ .hero-copy .stamp { text-shadow: 0 1px 18px rgb(11 14 21 / .9), 0 0 2px rgb(11 14 21 / .6); }

/* Sans JavaScript du tout, le ciel ne suit pas le défilement : les sections du matin gardent un fond clair. */
html.no-js .morning, html.no-js .model, html.no-js .faq, html.no-js .finale, html.no-js .foot { background: var(--cream); }
html.no-js .nav::before { opacity: 1; }

/* Très étroit (pliable fermé, iPhone Duo en écran partagé) : commandes de la démo sur une colonne, bouton du haut
   plus compact, horloge masquée (décorative) pour laisser la place au logo et au bouton. */
@media (max-width: 340px) {
  .demo-ctrl { grid-template-columns: minmax(0, 1fr); }
  .pill { padding: 0 12px; font-size: .78rem; }
  .hud { display: none; }
  .tabs button { padding: 0 12px; }
}

/* Téléphone : avec les barres de Safari ou de Chrome, l'écran visible est court. Un seul bouton dans le héros (la flèche
   « Faites défiler la nuit » mène à la suite) et un titre plus petit si l'écran est peu haut. */
@media (max-width: 760px) {
  .hero-copy .btn-ghost { display: none; }
  .hero-copy .cta-row { margin-top: 24px; }
  .trust { margin-top: 20px; }
}
@media (max-width: 760px) and (max-height: 760px) {
  .display { font-size: clamp(2.6rem, 13.5vw, 4.4rem); margin-top: 14px; }
  .lede { margin-top: 18px; font-size: 1rem; }
  .hero-copy .footnote { margin-top: 10px; font-size: .72rem; }
  html.motion .hero-copy { transform: translate(-50%, -50%); }
}
@media (max-width: 760px) and (max-height: 620px) {
  .hero-copy .stamp, .trust { display: none; }
}
