:root {
  /* Charte JA : encre, vert du point, bleu et cyan */
  --ink: #0b0b0b;
  --ink-2: #151517;
  --ink-line: rgba(255, 255, 255, 0.09);
  --bg: #fbfbfa;
  --soft: #f2f2ef;
  --card: #ffffff;
  --line: #e7e6e1;
  --text: #0b0b0b;
  --muted: #6b6b70;
  --muted-dark: #9a9aa2;
  --accent: #2f6bff;
  --accent-soft: #eaf0ff;
  --cyan: #3fd2ff;
  --green: #5dcaa5;
  --notch: #000000;
  --spring: cubic-bezier(0.3, 1.35, 0.5, 1); /* le rebond de la vraie encoche */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(47, 107, 255, 0.22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Barre du haut ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px 5vw; background: rgba(251, 251, 250, 0.8); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.2s, background 0.3s; }
.nav.scrolled { border-color: var(--line); }
.nav.dark { position: fixed; left: 0; right: 0; background: rgba(11, 11, 11, 0.55); color: #fff; }
.nav.dark.scrolled { background: rgba(11, 11, 11, 0.82); border-color: var(--ink-line); }
.logo { position: relative; display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 0.3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.logo::after { content: ''; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.logo.sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.logo.sm::after { width: 5px; height: 5px; top: 3px; right: 3px; }
.logo.big::after { width: 9px; height: 9px; top: 7px; right: 7px; }
.nav nav { display: flex; gap: 26px; margin-left: 12px; font-size: 15px; color: var(--muted); }
.nav.dark nav, .nav.dark .link-login { color: rgba(255, 255, 255, 0.66); }
.nav nav a, .link-login { transition: color 0.15s; }
.nav nav a:hover, .link-login:hover { color: var(--text); }
.nav.dark nav a:hover, .nav.dark .link-login:hover { color: #fff; }
.link-login { margin-left: auto; font-size: 15px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; transition: transform 0.2s var(--out), background 0.15s, box-shadow 0.2s; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px -10px rgba(47, 107, 255, 0.7); }
.btn:hover { background: #1f56e0; transform: translateY(-1px); }
.btn i { transition: transform 0.2s var(--out); }
.btn:hover i.ti-arrow-right { transform: translateX(3px); }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -12px rgba(255, 255, 255, 0.5); }
.btn.light:hover { background: #ededed; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.big { padding: 15px 28px; font-size: 16.5px; }
.btn.wide { width: 100%; }

.eyebrow { margin: 0 0 14px; text-align: center; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow.center { text-align: center; }
kbd { display: inline-block; min-width: 24px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--card); font: 600 13px/1.6 'Inter', system-ui, sans-serif; color: var(--text); text-align: center; }

/* ---------- Héros (fond encre) ---------- */
.hero { position: relative; padding: calc(12vh + 64px) 5vw 9vh; text-align: center; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.glow { position: absolute; z-index: -1; inset: -20% -10% auto; height: 120%; pointer-events: none; background: radial-gradient(42% 38% at 50% 34%, rgba(47, 107, 255, 0.42), transparent 70%), radial-gradient(28% 24% at 64% 22%, rgba(63, 210, 255, 0.22), transparent 70%), radial-gradient(24% 22% at 34% 30%, rgba(93, 202, 165, 0.14), transparent 70%); }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%); }
.pill { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 26px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--ink-line); color: rgba(255, 255, 255, 0.78); font-size: 14px; font-weight: 500; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(93, 202, 165, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(93, 202, 165, 0); } }
h1 { margin: 0; font-size: clamp(42px, 7.2vw, 92px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; }
.grad { background: linear-gradient(92deg, #fff 0%, #a9c3ff 30%, var(--cyan) 70%, var(--green) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; margin: 26px auto 34px; color: rgba(255, 255, 255, 0.66); font-size: clamp(18px, 1.55vw, 20.5px); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.fine { margin: 16px 0 0; color: rgba(255, 255, 255, 0.45); font-size: 14px; }

/* Héros : entrée en douceur */
.hero > .pill, .hero h1, .hero .lead, .hero .cta, .hero .fine, .hero-device { animation: rise 0.9s var(--out) both; }
.hero h1 { animation-delay: 0.06s; }
.hero .lead { animation-delay: 0.14s; }
.hero .cta { animation-delay: 0.2s; }
.hero .fine { animation-delay: 0.24s; }
.hero-device { animation-delay: 0.32s; animation-duration: 1.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Écran simulé ---------- */
.device { margin: 0 auto; border-radius: 22px; padding: 10px; background: #e9e9ee; box-shadow: 0 40px 100px -30px rgba(15, 30, 80, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.hero-device { position: relative; width: min(1040px, 92vw); margin-top: 8vh; background: #1b1b1e; box-shadow: 0 0 0 1px var(--ink-line), 0 50px 120px -30px rgba(47, 107, 255, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
/* Bureau Windows 11 : tout est en cqw pour suivre la taille de l'écran simulé */
.desk { position: relative; aspect-ratio: 16 / 9.6; border-radius: 14px; overflow: hidden; container-type: inline-size; background: #1b2a55 url('assets/wallpaper.svg') center / cover no-repeat; font-size: 1.2cqw; }
.icons { position: absolute; left: 1.4cqw; top: 2cqw; display: flex; flex-direction: column; gap: 1.6cqw; color: #fff; font-size: 0.95cqw; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.icons span { display: flex; flex-direction: column; align-items: center; gap: 0.3cqw; width: 6cqw; }
.icons i { font-size: 2.6cqw; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.icons span:nth-child(3) i { color: #ffc94a; }

/* Barre des tâches */
.taskbar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4.4cqw; display: flex; align-items: center; justify-content: center; background: rgba(22, 24, 34, 0.72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-top: 1px solid rgba(255, 255, 255, 0.08); color: #fff; }
.tb-apps { display: flex; align-items: center; gap: 0.5cqw; }
.tb-start { display: grid; grid-template-columns: 1fr 1fr; gap: 0.18cqw; width: 3.2cqw; height: 3.2cqw; padding: 0.85cqw; border-radius: 0.6cqw; }
.tb-start i { border-radius: 0.1cqw; background: linear-gradient(135deg, #4cc2ff, #0078d4); }
.tb-search { display: flex; align-items: center; gap: 0.6cqw; width: 13cqw; height: 2.8cqw; padding: 0 1cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); font-size: 1cqw; }
.tb-ic { position: relative; display: flex; align-items: center; justify-content: center; width: 3.2cqw; height: 3.2cqw; border-radius: 0.6cqw; font-size: 1.8cqw; transition: background 0.3s; }
.tb-ic.folder { color: #ffc94a; } .tb-ic.web { color: #4cc2ff; } .tb-ic.mail { color: #6ab4ff; } .tb-ic.spot { color: #1ed760; } .tb-ic.disc { color: #8c9eff; } .tb-ic.setup { color: #c9b8ff; }
.tb-ic::after { content: ''; position: absolute; bottom: 0.15cqw; left: 50%; width: 0; height: 0.25cqw; border-radius: 1cqw; background: #4cc2ff; transform: translateX(-50%); transition: width 0.35s var(--spring); }
.tb-tray { position: absolute; right: 1.2cqw; display: flex; align-items: center; gap: 0.9cqw; font-size: 1.3cqw; }
.tb-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.tb-clock b { font-weight: 500; font-size: 0.95cqw; }
.tb-clock small { font-size: 0.95cqw; }

/* Fenêtres (style Windows 11) */
.win { position: absolute; z-index: 1; display: flex; flex-direction: column; border-radius: 0.8cqw; overflow: hidden; background: #fff; color: #1b1b1f; text-align: left; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2.4cqw 5cqw -1cqw rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(1.2cqw) scale(0.96); transition: opacity 0.35s var(--ease), transform 0.5s var(--out), left 0.7s var(--spring), top 0.7s var(--spring), width 0.7s var(--spring), height 0.7s var(--spring), border-radius 0.5s; pointer-events: none; }
.win-bar { display: flex; align-items: center; gap: 0.7cqw; height: 2.8cqw; flex-shrink: 0; padding-left: 1cqw; font-size: 1cqw; }
.win-bar > i { font-size: 1.3cqw; }
.win-bar .ctl { margin-left: auto; display: flex; height: 100%; }
.win-bar .ctl i { position: relative; width: 3.4cqw; }
.win-bar .ctl i::before { content: ''; position: absolute; left: 50%; top: 50%; width: 0.9cqw; height: 0.9cqw; transform: translate(-50%, -50%); border: 1px solid currentColor; opacity: 0.6; }
.win-bar .ctl i:first-child::before { height: 0; border-width: 1px 0 0; }
.win-bar .ctl i:last-child::before { border: 0; background: linear-gradient(45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%); }

/* Mail */
.w-mail { left: 24cqw; top: 8cqw; width: 52cqw; height: 40cqw; }
.w-mail .win-bar { background: #f3f6fb; } .w-mail .win-bar > i { color: #0b63d6; }
.mail-row { display: flex; align-items: center; gap: 1cqw; margin: 0 1.6cqw; padding: 0.9cqw 0; border-bottom: 1px solid #ececf0; font-size: 1.1cqw; }
.mail-row small { width: 3.6cqw; color: #8a8a92; font-size: 1cqw; }
.chip { padding: 0.2cqw 0.8cqw; border-radius: 1cqw; background: #e9f0fd; color: #0b4fb3; font-size: 1.05cqw; }
.mail-body { flex: 1; padding: 1.6cqw; font-size: 1.3cqw; line-height: 1.6; white-space: pre-line; }
.caret { display: inline-block; width: 0.12cqw; height: 1.5cqw; margin-left: 0.1cqw; vertical-align: -0.25cqw; background: #0b63d6; animation: blink 1s steps(1) infinite; }
.mail-foot { display: flex; align-items: center; gap: 1.2cqw; padding: 1.2cqw 1.6cqw; color: #6b6b70; font-size: 1.4cqw; }
.send { padding: 0.6cqw 1.8cqw; border-radius: 2cqw; background: #0b63d6; color: #fff; font-size: 1.1cqw; font-weight: 600; }

/* Explorateur */
.w-files { left: 20cqw; top: 9cqw; width: 54cqw; height: 40cqw; background: #f7f7f9; }
.ic-folder { color: #e8a91c; }
.files-path { display: flex; align-items: center; gap: 0.9cqw; padding: 0.6cqw 1cqw; border-bottom: 1px solid #e6e6ea; color: #6b6b70; font-size: 1.1cqw; }
.files-path span { flex: 1; padding: 0.35cqw 0.9cqw; border-radius: 0.4cqw; background: #fff; box-shadow: 0 0 0 1px #e6e6ea; font-size: 1cqw; color: #1b1b1f; }
.files-body { flex: 1; display: flex; min-height: 0; }
.files-side { width: 13cqw; margin: 0; padding: 0.8cqw 0.6cqw; list-style: none; border-right: 1px solid #e6e6ea; font-size: 1cqw; }
.files-side li { display: flex; align-items: center; gap: 0.6cqw; padding: 0.5cqw 0.6cqw; border-radius: 0.4cqw; color: #3a3a40; }
.files-side li.on { background: #e5edfb; }
.files-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 2.4cqw 1.2cqw; padding: 1.4cqw 1.4cqw 2.6cqw; background: #fff; }
.files-grid span { position: relative; border-radius: 0.5cqw; }
.files-grid .f1 { background: linear-gradient(160deg, #8ec5ff, #2f6bff 60%, #183a7a); }
.files-grid .f2 { background: linear-gradient(170deg, #ffd29a 0%, #ff8a5c 45%, #6a2f5a 100%); }
.files-grid .f3 { background: linear-gradient(160deg, #b8f0d8, #3aa57c 55%, #1f4d3d); }
.files-grid .f4 { background: linear-gradient(160deg, #e7d8ff, #8f73ff 55%, #3a2a7a); }
.files-grid .f5 { background: linear-gradient(160deg, #ffe8a8, #f2b63a 50%, #7a4d12); }
.files-grid .f6 { background: linear-gradient(160deg, #c7f1ff, #3fb7e8 50%, #0f4a6a); }
.files-grid .f7 { background: linear-gradient(160deg, #ffd0dc, #ff6f91 50%, #6a1f3a); }
.files-grid .f8 { background: linear-gradient(160deg, #d9e4d0, #7c9a6a 50%, #2f3d26); }
.files-grid .sel { outline: 0.25cqw solid #2f6bff; outline-offset: 0.25cqw; }
.files-grid em { position: absolute; left: -1cqw; right: -1cqw; bottom: -1.9cqw; text-align: center; font-style: normal; font-size: 0.9cqw; color: #1b1b1f; }
.desk[data-scene~='files'] .files-grid .sel { animation: picked 0.6s var(--spring) 0.4s both; }
@keyframes picked { from { outline-color: transparent; transform: scale(0.94); } }

/* Discord et Spotify (fenêtres sombres) */
.w-disc { left: 12cqw; top: 6cqw; width: 44cqw; height: 34cqw; background: #313338; color: #dbdee1; }
.w-disc .win-bar { background: #1e1f22; } .w-disc .win-bar > i { color: #8c9eff; }
.disc-body { flex: 1; display: flex; min-height: 0; }
.disc-servers { display: flex; flex-direction: column; gap: 0.8cqw; padding: 1cqw 0.8cqw; background: #1e1f22; }
.disc-servers i { width: 3cqw; height: 3cqw; border-radius: 1.5cqw; background: #5865f2; }
.disc-servers i:nth-child(2) { background: #3ba55c; border-radius: 1cqw; } .disc-servers i:nth-child(3) { background: #faa61a; } .disc-servers i:nth-child(4) { background: #eb459e; }
.disc-chan { display: flex; flex-direction: column; gap: 0.8cqw; width: 12cqw; padding: 1.2cqw 1cqw; background: #2b2d31; }
.disc-chan b { height: 1cqw; width: 70%; border-radius: 1cqw; background: #4e5058; margin-bottom: 0.6cqw; }
.disc-chan span { height: 0.8cqw; border-radius: 1cqw; background: #3f4147; }
.disc-chan span.on { background: #5c5f66; }
.disc-chat { flex: 1; display: flex; flex-direction: column; gap: 1.4cqw; padding: 1.6cqw; }
.disc-chat p { display: flex; align-items: center; gap: 1cqw; margin: 0; }
.disc-chat p i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #f0b232; flex-shrink: 0; }
.disc-chat p:nth-child(2) i { background: #23a55a; } .disc-chat p:nth-child(3) i { background: #5865f2; }
.disc-chat p span { height: 0.9cqw; width: 70%; border-radius: 1cqw; background: #4e5058; }
.disc-chat p:nth-child(2) span { width: 50%; }
.disc-chat em { margin-top: auto; height: 3cqw; border-radius: 0.6cqw; background: #383a40; }
.w-spot { left: 44cqw; top: 16cqw; width: 42cqw; height: 34cqw; background: #121212; color: #fff; }
.w-spot .win-bar { background: #000; } .w-spot .win-bar > i { color: #1ed760; }
.spot-body { flex: 1; display: flex; gap: 0.8cqw; padding: 0.8cqw; min-height: 0; background: #000; }
.spot-side { display: flex; flex-direction: column; gap: 0.9cqw; width: 10cqw; padding: 1.2cqw; border-radius: 0.6cqw; background: #121212; }
.spot-side span { height: 0.9cqw; border-radius: 1cqw; background: #2a2a2a; }
.spot-main { flex: 1; min-width: 0; padding: 1.4cqw; border-radius: 0.6cqw; background: linear-gradient(180deg, #2f6b52, #121212 70%); font-size: 1.6cqw; overflow: hidden; }
.spot-main b { display: block; margin-bottom: 1.2cqw; }
.spot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9cqw; }
.spot-grid i { aspect-ratio: 1; border-radius: 0.4cqw; background: linear-gradient(135deg, #ff9a62, #ff5e8a 50%, #7a5cff); }
.spot-grid i:nth-child(2) { background: linear-gradient(135deg, #3fd2ff, #2f6bff); } .spot-grid i:nth-child(3) { background: linear-gradient(135deg, #5dcaa5, #1f4d3d); }
.spot-grid i:nth-child(4) { background: linear-gradient(135deg, #f2b63a, #7a4d12); } .spot-grid i:nth-child(5) { background: linear-gradient(135deg, #c7b8ff, #4c1d95); } .spot-grid i:nth-child(6) { background: linear-gradient(135deg, #ffd0dc, #6a1f3a); }
.spot-player { display: flex; align-items: center; gap: 1cqw; height: 4cqw; padding: 0 1.2cqw; background: #000; flex-shrink: 0; }
.spot-player .cv { width: 2.4cqw; height: 2.4cqw; border-radius: 0.3cqw; background: linear-gradient(135deg, #ff9a62, #ff5e8a 50%, #7a5cff); }
.spot-player > span { width: 8cqw; height: 0.8cqw; border-radius: 1cqw; background: #3a3a3a; }
.spot-player em { display: flex; align-items: center; justify-content: center; width: 2.4cqw; height: 2.4cqw; margin-left: 4cqw; border-radius: 50%; background: #fff; color: #000; font-size: 1.2cqw; }
.spot-player .bar { flex: 1; max-width: 14cqw; height: 0.35cqw; background: linear-gradient(90deg, #fff 40%, #4d4d4d 40%); }

/* Fenêtres rangées à la voix : Discord à gauche, Spotify à droite */
.desk.tidy .w-disc { left: 0; top: 0; width: 50cqw; height: calc(100% - 4.4cqw); border-radius: 0; }
.desk.tidy .w-spot { left: 50cqw; top: 0; width: 50cqw; height: calc(100% - 4.4cqw); border-radius: 0; }

/* Installateur et gestionnaire des tâches (histoire) */
.w-setup { left: 30cqw; top: 14cqw; width: 40cqw; height: 26cqw; background: #f3f3f6; }
.w-setup .win-bar > i { color: #7a5cff; }
.setup-body { flex: 1; display: flex; align-items: center; gap: 1.8cqw; padding: 0 2.4cqw; background: #fff; }
.setup-logo { display: flex; align-items: center; justify-content: center; width: 5.6cqw; height: 5.6cqw; flex-shrink: 0; border-radius: 50%; background: #302e31; color: #fff; font-size: 2.8cqw; }
.setup-body > div { flex: 1; display: flex; flex-direction: column; gap: 0.5cqw; font-size: 1.3cqw; }
.setup-body small { color: #8a8a92; font-size: 1cqw; }
.setup-bar { margin-top: 0.6cqw; height: 0.7cqw; border-radius: 1cqw; background: #e6e6ea; overflow: hidden; }
.setup-bar span { display: block; height: 100%; width: 10%; background: #2f6bff; }
.story[data-step='act'] .setup-bar span { animation: fill 3.2s ease-in-out infinite; }
.setup-foot { display: flex; justify-content: flex-end; gap: 0.8cqw; padding: 1.2cqw 1.6cqw; font-size: 1cqw; }
.setup-foot span { padding: 0.5cqw 1.6cqw; border-radius: 0.4cqw; background: #fff; box-shadow: 0 0 0 1px #d8d8de; }
.setup-foot span:nth-child(2) { background: #2f6bff; color: #fff; box-shadow: none; }
.w-task { left: 22cqw; top: 15cqw; width: 56cqw; height: 30cqw; }
.w-task .win-bar { background: #f3f3f6; } .w-task .win-bar > i { color: #2f6bff; }
.task-head, .task-row { display: grid; grid-template-columns: 1fr 9cqw 9cqw; align-items: center; padding: 0 1.6cqw; font-size: 1.1cqw; }
.task-head { height: 3cqw; color: #8a8a92; border-bottom: 1px solid #ececf0; }
.task-row { height: 3.4cqw; border-bottom: 1px solid #f2f2f5; }
.task-row span:first-child { display: flex; align-items: center; gap: 0.8cqw; }
.task-row i { font-size: 1.5cqw; color: #6b6b70; }
.task-row span:not(:first-child) { text-align: right; }
.task-row.hot { background: #fff4d6; font-weight: 600; }
.task-row.hot span:last-child { color: #c2410c; }
.story .w-spot { left: 29cqw; top: 17cqw; }
.story .w-setup { top: 22cqw; }
.story .w-task { top: 21cqw; }
.story .w-disc { left: 28cqw; top: 16cqw; }

/* Quelle fenêtre selon la démo (héros) ou l'étape (histoire) */
.desk[data-scene~='mail'] .w-mail, .desk[data-scene~='files'] .w-files, .desk[data-scene~='disc'] .w-disc, .desk[data-scene~='spot'] .w-spot,
.story[data-step='act'] .w-setup, .story[data-step='answer'] .w-task, .story[data-step='music'] .w-spot, .story[data-step='call'] .w-disc { opacity: 1; transform: none; }
.desk[data-scene~='mail'] .tb-ic.mail, .desk[data-scene~='files'] .tb-ic.folder, .desk[data-scene~='disc'] .tb-ic.disc, .desk[data-scene~='spot'] .tb-ic.spot,
.story[data-step='act'] .tb-ic.setup, .story[data-step='music'] .tb-ic.spot, .story[data-step='call'] .tb-ic.disc { background: rgba(255, 255, 255, 0.08); }
.desk[data-scene~='mail'] .tb-ic.mail::after, .desk[data-scene~='files'] .tb-ic.folder::after, .desk[data-scene~='disc'] .tb-ic.disc::after, .desk[data-scene~='spot'] .tb-ic.spot::after,
.story[data-step='act'] .tb-ic.setup::after, .story[data-step='music'] .tb-ic.spot::after, .story[data-step='call'] .tb-ic.disc::after { width: 1.2cqw; }

/* Nouvelles scènes de l'encoche : dictée, JA Drop, batterie */
.notch[data-state='dictate'] { width: 300px; height: 52px; border-radius: 0 0 26px 26px; }
.notch[data-state='drop'] { width: 430px; height: 92px; border-radius: 0 0 30px 30px; }
.notch[data-state='battery'] { width: 360px; height: 78px; border-radius: 0 0 28px 28px; }
.n-dictate { gap: 12px; padding: 0 16px; }
.n-mic.rec { background: #ff453a; animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 6px rgba(255, 69, 58, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.5); } }
.n-drop { gap: 14px; padding: 0 18px; text-align: left; }
.drop-thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(170deg, #ffd29a 0%, #ff8a5c 45%, #6a2f5a 100%); }
.drop-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; line-height: 1.25; }
.drop-info small { color: var(--cyan); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.drop-info b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-bar { margin-top: 4px; height: 5px; border-radius: 3px; background: #2c2c2e; overflow: hidden; }
.drop-bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.notch[data-state='drop'] .drop-bar span { animation: dropfill 2.2s var(--ease) 0.3s forwards; }
@keyframes dropfill { to { width: 100%; } }
.notch.sent .drop-bar span { background: var(--green); }
.drop-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1c1c1e; font-size: 21px; transition: background 0.3s, color 0.3s; }
.notch.sent .drop-ic { background: var(--green); color: #000; }
.n-battery { gap: 14px; padding: 0 18px; text-align: left; }
.ring { position: relative; flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--green) 0 82%, #2c2c2e 0); font-size: 20px; }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #000; }
.ring i { position: relative; }
.notch[data-state='battery'] .ring { animation: ringin 0.9s var(--out) 0.2s both; }
@keyframes ringin { from { transform: rotate(-90deg) scale(0.8); opacity: 0; } }
.bat-info { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.bat-info small { color: #a1a1a6; font-size: 12px; }
.bat-info b { font-size: 16px; }
.bat-tag { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1c1c1e; color: #6ab4ff; font-size: 18px; }

/* ---------- L'encoche ---------- */
.notch { position: absolute; z-index: 3; top: 0; left: 50%; transform: translateX(-50%); background: var(--notch); color: #fff; overflow: hidden; border-radius: 0 0 16px 16px; width: 150px; height: 30px; transition: width 0.45s var(--spring), height 0.45s var(--spring), border-radius 0.45s var(--spring); font-size: 14px; will-change: width, height; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45); }
.notch > div { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; filter: blur(6px); transform: scale(0.96); transition: opacity 0.18s var(--ease), filter 0.18s var(--ease), transform 0.18s var(--ease); pointer-events: none; }
.notch > div.on { opacity: 1; filter: blur(0); transform: none; transition: opacity 0.3s var(--ease) 0.16s, filter 0.35s var(--ease) 0.16s, transform 0.45s var(--spring) 0.16s; }
.n-idle { justify-content: space-between; padding: 0 14px; }
.n-logo { font-weight: 700; font-size: 12px; letter-spacing: 0.5px; }
.n-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.n-listen, .s-listen { gap: 12px; padding: 0 16px; }
.n-mic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); font-size: 16px; }
.n-said { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; text-align: left; }
.n-bars { display: flex; gap: 3px; align-items: center; height: 22px; }
.n-bars b { width: 3px; border-radius: 2px; background: #fff; animation: bar 0.9s ease-in-out infinite; }
.n-bars b:nth-child(2) { animation-delay: 0.12s; } .n-bars b:nth-child(3) { animation-delay: 0.24s; } .n-bars b:nth-child(4) { animation-delay: 0.36s; } .n-bars b:nth-child(5) { animation-delay: 0.48s; }
@keyframes bar { 0%, 100% { height: 5px; opacity: 0.5; } 50% { height: 20px; opacity: 1; } }
.n-result { gap: 12px; padding: 0 16px; font-weight: 500; text-align: left; }
.n-ok { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green); color: #000; font-size: 16px; }

.notch[data-state='idle'] { width: 150px; height: 30px; }
.notch[data-state='listen'] { width: 400px; height: 52px; border-radius: 0 0 26px 26px; }
.notch[data-state='result'] { width: 380px; height: 52px; border-radius: 0 0 26px 26px; }

.notch.big[data-state='listen'] { width: 58%; height: 60px; border-radius: 0 0 30px 30px; }
.notch.big[data-state='act'] { width: 50%; height: 118px; border-radius: 0 0 30px 30px; }
.notch.big[data-state='answer'] { width: 60%; height: 96px; border-radius: 0 0 30px 30px; }
.notch.big[data-state='music'] { width: 54%; height: 104px; border-radius: 0 0 30px 30px; }
.notch.big[data-state='call'] { width: 50%; height: 70px; border-radius: 0 0 30px 30px; }

.s-act { flex-direction: column; align-items: stretch !important; justify-content: center; gap: 10px; padding: 0 22px; }
.act-head { display: flex; align-items: center; gap: 12px; }
.act-head i { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: #1c1c1e; font-size: 19px; color: var(--accent); }
.act-head div { display: flex; flex-direction: column; line-height: 1.2; }
.act-head small, .act-status { color: #a1a1a6; font-size: 12px; }
.act-bar { height: 5px; border-radius: 3px; background: #2c2c2e; overflow: hidden; }
.act-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; }
.notch.big[data-state='act'] .act-bar span { animation: fill 3.2s ease-in-out infinite; }
@keyframes fill { 0% { width: 4%; } 80%, 100% { width: 100%; } }

.s-answer { gap: 14px; padding: 0 22px; }
.s-answer .n-ok { background: var(--accent); color: #fff; }
.s-answer p { margin: 0; font-size: 14.5px; line-height: 1.45; color: #e5e5ea; }
.s-answer b { color: #fff; }

.s-music { gap: 16px; padding: 0 20px; }
.cover { flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg, #ff9a62, #ff5e8a 50%, #7a5cff); }
.track { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.track small { color: #a1a1a6; font-size: 12.5px; }
.prog { margin-top: 10px; height: 4px; border-radius: 2px; background: #2c2c2e; overflow: hidden; }
.prog span { display: block; height: 100%; width: 38%; background: #fff; }
.notch.big[data-state='music'] .prog span { animation: song 8s linear infinite; }
@keyframes song { from { width: 20%; } to { width: 70%; } }
.ctrl { display: flex; gap: 14px; font-size: 18px; }

.s-call { gap: 12px; padding: 0 14px 0 18px; }
.call-av { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #5865f2; font-size: 21px; animation: ring 1.4s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.6); } 60% { box-shadow: 0 0 0 10px rgba(88, 101, 242, 0); } }
.call-who { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.call-who small { color: #a1a1a6; font-size: 12px; }
.call-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.call-btn.no { background: #ff453a; }
.call-btn.yes { background: #32d74b; color: #000; }

.cursor { position: absolute; z-index: 2; left: 70%; top: 70%; font-size: 26px; color: #fff; filter: drop-shadow(0 0 1px #000) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); opacity: 0; transition: opacity 0.3s; }
.story[data-step='act'] .cursor { opacity: 1; animation: move 3.2s ease-in-out infinite; }
@keyframes move { 0% { left: 70%; top: 72%; } 40% { left: 30%; top: 46%; } 55% { left: 30%; top: 46%; transform: scale(0.85); } 65% { transform: scale(1); } 100% { left: 70%; top: 72%; } }

/* Scènes riches de l'encoche d'accueil */
.notch[data-state='photos'] { width: 440px; height: 176px; border-radius: 0 0 30px 30px; }
.notch[data-state='place'] { width: 470px; height: 150px; border-radius: 0 0 30px 30px; }
.notch[data-state='cam'] { width: 450px; height: 132px; border-radius: 0 0 30px 30px; }
.n-photos { flex-direction: column; align-items: stretch !important; gap: 8px; padding: 12px 14px; }
.ph-main { position: relative; flex: 1; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #ffb36b 0%, #ff7a59 45%, #b8405e 100%); }
.ph-sun { position: absolute; width: 44px; height: 44px; border-radius: 50%; right: 18%; top: 18%; background: #ffe2a8; box-shadow: 0 0 30px #ffd38a; }
.ph-hill { position: absolute; bottom: -30%; border-radius: 50%; }
.ph-hill.h1 { left: -10%; width: 70%; height: 80%; background: #7a2d4a; }
.ph-hill.h2 { right: -15%; width: 75%; height: 70%; background: #4d1d3c; }
.ph-tag { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.ph-strip { display: flex; gap: 6px; height: 34px; }
.ph-strip span { flex: 1; border-radius: 7px; }
.ph-strip .p1 { background: linear-gradient(135deg, #f6a04d, #c2410c); outline: 2px solid #fff; }
.ph-strip .p2 { background: linear-gradient(135deg, #e11d48, #7f1d1d); }
.ph-strip .p3 { background: linear-gradient(135deg, #f59e0b, #78350f); }
.ph-strip .p4 { background: linear-gradient(135deg, #db2777, #4c1d95); }
.n-place { gap: 14px; padding: 12px 16px; text-align: left; }
.pl-map { position: relative; flex-shrink: 0; width: 150px; height: 100%; border-radius: 12px; overflow: hidden; background: #e8ecef; }
.road { position: absolute; background: #fff; }
.road.r1 { left: -10%; top: 40%; width: 120%; height: 9px; transform: rotate(-12deg); }
.road.r2 { left: 38%; top: -10%; width: 8px; height: 120%; transform: rotate(8deg); }
.road.r3 { left: -10%; top: 75%; width: 120%; height: 6px; transform: rotate(6deg); background: #ffe8a3; }
.pin { position: absolute; left: 44%; top: 26%; font-size: 26px; color: #ff3b30; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
.notch[data-state='place'] .pin { animation: drop 0.6s var(--spring) 0.3s both; }
@keyframes drop { from { transform: translateY(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
.pl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
.pl-info b { font-size: 16px; }
.pl-stars { color: #ffcc00; font-size: 12px; display: flex; align-items: center; gap: 1px; }
.pl-info small { color: #a1a1a6; font-size: 12px; }
.pl-info q { margin-top: 3px; color: #d1d1d6; font-size: 12.5px; font-style: italic; quotes: none; }
/* Fiches (météo, personne…) : la réponse en interface, comme dans JA */
.notch[data-state='weather'] { width: 500px; height: 244px; border-radius: 0 0 32px 32px; }
.notch[data-state='person'] { width: 480px; height: 224px; border-radius: 0 0 32px 32px; }
.n-weather, .n-person { align-items: stretch !important; padding: 14px 16px 12px; text-align: left; }
.fc { --c: var(--cyan); position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.n-weather .fc { --c: #ff9d4d; }
.fc::before { content: ''; position: absolute; z-index: -1; left: -60px; top: -80px; width: 320px; height: 220px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 24%, transparent), transparent); pointer-events: none; }
.fc-head { display: flex; align-items: center; gap: 12px; }
.fc-badge { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #7a5cff)); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 35%, transparent); }
.fc-photo { flex-shrink: 0; width: 60px; height: 60px; padding: 2px; border-radius: 18px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #7a5cff)); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 30%, transparent); }
.fc-photo img { display: block; width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.fc-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fc-title b { font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-title span, .fc-temp span { font-size: 12px; color: #a1a1a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-temp { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.fc-temp b { font-size: 34px; letter-spacing: -0.04em; }
.fc-temp span { margin-top: 4px; }
.fc .qi { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: color-mix(in srgb, var(--c) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent); color: color-mix(in srgb, var(--c) 72%, white); }
.fc-alert { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 16px; background: color-mix(in srgb, var(--c) 13%, #1c1c1e); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent); }
.fc-alert div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fc-alert b { font-size: 13px; color: color-mix(in srgb, var(--c) 55%, white); }
.fc-alert small { font-size: 11.5px; color: #a1a1a6; }
.fc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fc-stats > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px 10px; border-radius: 15px; background: #1c1c1e; min-width: 0; line-height: 1.15; }
.fc-stats .qi { width: 26px; height: 26px; border-radius: 9px; font-size: 14px; }
.fc-stats b { font-size: 14px; white-space: nowrap; }
.fc-stats small { font-size: 11px; color: #a1a1a6; }
.fc-stats .hot b { color: color-mix(in srgb, var(--c) 60%, white); }
.fc-hl { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 16px; font-size: 13.5px; font-weight: 600; background: linear-gradient(100deg, color-mix(in srgb, var(--c) 22%, #1c1c1e), #1c1c1e 75%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent); }
.fc-hl i { font-size: 17px; color: color-mix(in srgb, var(--c) 70%, white); }
.fc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fc-facts div { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 15px; background: #1c1c1e; min-width: 0; }
.fc-facts small { font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--c) 60%, #a1a1a6); }
.fc-facts b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; font-size: 10.5px; color: #a1a1a6; }
.fc-ja { width: 18px; height: 18px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--cyan), color-mix(in srgb, var(--cyan) 40%, #7a5cff)); }
.fc-more { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 4px 10px 4px 12px; border-radius: 999px; background: #1c1c1e; font-size: 11.5px; color: #fff; }
/* Les blocs arrivent l'un après l'autre, avec le rebond de l'encoche, une fois qu'elle s'est ouverte. */
.notch[data-state='weather'] .fc > *, .notch[data-state='person'] .fc > * { animation: fc-in 0.55s var(--spring) both; animation-delay: 0.22s; }
.notch[data-state] .fc > :nth-child(2) { animation-delay: 0.29s; }
.notch[data-state] .fc > :nth-child(3) { animation-delay: 0.36s; }
.notch[data-state] .fc > :nth-child(4) { animation-delay: 0.43s; }
.notch[data-state] .fc > :nth-child(5) { animation-delay: 0.5s; }
.notch[data-state='weather'] .fc-stats > div { animation: fc-in 0.5s var(--spring) both; }
.notch[data-state='weather'] .fc-stats > :nth-child(2) { animation-delay: 0.42s; }
.notch[data-state='weather'] .fc-stats > :nth-child(3) { animation-delay: 0.48s; }
.notch[data-state='weather'] .fc-stats > :nth-child(4) { animation-delay: 0.54s; }
.notch[data-state='weather'] .fc-stats > :first-child { animation-delay: 0.36s; }
.notch[data-state='weather'] .fc-alert .qi { animation: fc-pulse 2s ease-in-out 0.9s infinite; }
@keyframes fc-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); filter: blur(4px); } }
@keyframes fc-pulse { 50% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent), 0 0 0 5px color-mix(in srgb, var(--c) 16%, transparent); } }
.n-cam { gap: 14px; padding: 12px 16px; text-align: left; }
.cam-shot { position: relative; flex-shrink: 0; width: 130px; height: 100%; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 40% 40%, #3a3f47, #1b1d21); }
.cam-board { position: absolute; left: 22%; top: 24%; width: 56%; height: 50%; border-radius: 4px; background: #0b7a8a; box-shadow: inset 0 0 0 3px #0a6573; transform: rotate(-8deg); }
.cam-frame { position: absolute; left: 14%; top: 14%; width: 72%; height: 70%; border: 2px solid #32d74b; border-radius: 6px; }
.notch[data-state='cam'] .cam-frame { animation: scan 1.2s var(--ease) 0.3s both; }
@keyframes scan { from { transform: scale(1.3); opacity: 0; } to { transform: none; opacity: 1; } }
.cam-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.3; }
.cam-info small { color: #32d74b; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.cam-info b { font-size: 16px; }
.cam-info span { color: #d1d1d6; font-size: 12.5px; }

/* ---------- Phrases qui défilent ---------- */
.says { margin: 9vh auto 0; max-width: 1200px; }
.says-title { margin: 0 0 18px; color: rgba(255, 255, 255, 0.45); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.marquee { overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .mq { display: flex; width: max-content; gap: 12px; animation: slide 46s linear infinite; }
.marquee.reverse .mq { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .mq { animation-play-state: paused; }
.marquee span { flex-shrink: 0; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--ink-line); color: rgba(255, 255, 255, 0.82); font-size: 15px; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 7vh 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.55); font-size: 14.5px; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof i { font-size: 18px; color: rgba(255, 255, 255, 0.8); }

/* ---------- Histoire au scroll ---------- */
.story { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 6vw; padding: 14vh 5vw 4vh; }
.story-sticky { position: sticky; top: 12vh; height: 76vh; display: flex; align-items: center; }
.story-device { width: 100%; }
.story-steps { padding: 18vh 0 30vh; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.22; transition: opacity 0.5s var(--ease); }
.step.active { opacity: 1; }
.step-num { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.step h2 { margin: 0 0 16px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 19px; max-width: 30em; }

/* ---------- Sections ---------- */
.section { padding: 14vh 5vw; }
.section.soft { background: var(--soft); }
.section.narrow { max-width: 860px; margin: 0 auto; }
.title { margin: 0 0 56px; text-align: center; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; }

/* Mosaïque des fonctions */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1180px; margin: 0 auto; }
.card { position: relative; padding: 26px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: transform 0.3s var(--out), box-shadow 0.3s; overflow: hidden; }
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(15, 30, 80, 0.35); }
.card .ic { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.card h3 { margin: 16px 0 6px; font-size: 18.5px; line-height: 1.25; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card.wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 34px; }
.card.tall { grid-row: span 2; display: flex; flex-direction: column; }
.card.tall .tag { margin-top: 16px; }
.card.tall h3 { margin-top: 10px; }
.tag { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(93, 202, 165, 0.16); color: #23825f; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.dark-card { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px var(--ink); }
.dark-card::before { content: ''; position: absolute; inset: auto -20% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(47, 107, 255, 0.4), transparent); pointer-events: none; }
.dark-card:hover { box-shadow: 0 30px 60px -30px rgba(47, 107, 255, 0.5); }
.dark-card .tag { background: rgba(93, 202, 165, 0.18); color: var(--green); }
.dark-card h3 { margin-top: 14px; font-size: 26px; letter-spacing: -0.03em; }
.dark-card p { color: rgba(255, 255, 255, 0.66); font-size: 16px; }
.dark-card kbd { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.mini-launcher { position: relative; padding: 10px; border-radius: 18px; background: #161618; box-shadow: 0 0 0 1px var(--ink-line), 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.ml-input { display: flex; align-items: center; gap: 10px; padding: 12px 12px 14px; border-bottom: 1px solid var(--ink-line); font-size: 16px; }
.ml-input i { color: var(--muted-dark); }
.ml-input span::after { content: ''; display: inline-block; width: 2px; height: 18px; margin-left: 2px; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ml-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 10px 12px; border-radius: 11px; font-size: 14.5px; color: rgba(255, 255, 255, 0.75); }
.ml-row i { font-size: 18px; color: var(--muted-dark); }
.ml-row small { margin-left: auto; color: var(--muted-dark); font-size: 12.5px; }
.ml-row.on { background: rgba(47, 107, 255, 0.22); color: #fff; }
.ml-row.on i { color: var(--cyan); }
.fix { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.fix s { padding: 10px 12px; border-radius: 12px; background: #fff1f0; color: #b4231b; text-decoration-color: rgba(180, 35, 27, 0.5); }
.fix span { padding: 10px 12px; border-radius: 12px; background: #ecf8f3; color: #1d7a57; font-weight: 500; }

/* Trois étapes */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.steps3 li { padding: 30px; border-radius: 22px; background: var(--card); text-align: center; box-shadow: 0 0 0 1px var(--line); }
.steps3 span { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 700; }
.steps3 h3 { margin: 16px 0 6px; font-size: 19px; }
.steps3 p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Vie privée (fond encre) */
.privacy { background: var(--ink); color: #fff; }
.privacy .eyebrow { color: var(--green); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1100px; margin: 0 auto; }
.trust div { padding: 26px; border-radius: 22px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-line); }
.trust i { font-size: 26px; color: var(--green); }
.trust h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.trust p { margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 15.5px; }

/* Prix */
.plan { max-width: 440px; margin: 0 auto; padding: 10px 10px 30px; border-radius: 28px; background: var(--card); text-align: center; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(15, 30, 80, 0.35); }
.plan-head { padding: 30px 24px 26px; border-radius: 20px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.plan-head::before { content: ''; position: absolute; inset: -60% -20% auto; height: 140%; background: radial-gradient(closest-side, rgba(47, 107, 255, 0.45), transparent); }
.plan-head > * { position: relative; }
.plan-name { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.price { margin: 14px 0 8px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.price b { font-size: 34px; letter-spacing: -0.04em; line-height: 1; }
.price span { color: rgba(255, 255, 255, 0.55); }
.trial { display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 0; padding: 5px 12px; border-radius: 999px; background: rgba(93, 202, 165, 0.16); color: var(--green); font-size: 14px; font-weight: 600; }
.plan ul { list-style: none; padding: 0 20px; margin: 18px 0 24px; text-align: left; }
.plan li { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; }
.plan li:first-child { border-top: 0; }
.plan li i { color: var(--green); font-size: 19px; }
.plan .btn { width: calc(100% - 40px); }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 20px 4px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 0.25s var(--out); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }

/* Dernier appel */
.final { position: relative; padding: 18vh 5vw; text-align: center; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.final .glow { inset: -10% -10% -10%; height: auto; background: radial-gradient(40% 50% at 50% 60%, rgba(47, 107, 255, 0.38), transparent 70%), radial-gradient(25% 30% at 62% 45%, rgba(63, 210, 255, 0.18), transparent 70%); }
.final h2 { margin: 0 0 16px; font-size: clamp(36px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.final p { margin: 0 0 30px; color: rgba(255, 255, 255, 0.6); font-size: 19px; }

.footer { display: flex; align-items: center; gap: 24px; padding: 28px 5vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.home .footer { background: var(--ink); border-color: var(--ink-line); color: rgba(255, 255, 255, 0.5); }
.home .footer a:hover { color: #fff; }
.footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer .copy { margin-left: auto; }
.footer a:hover { color: var(--text); }

/* Apparition douce au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--out), transform 0.8s var(--out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee .mq { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee span[aria-hidden] { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
  .card.tall { grid-row: auto; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 900px) {
  .nav { gap: 12px; padding: 12px 16px; }
  .nav nav, .link-login { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: calc(9vh + 56px) 16px 8vh; }
  .story { grid-template-columns: 1fr; padding: 8vh 16px 0; }
  .story-sticky { top: 64px; height: auto; padding: 10px 0; background: var(--bg); z-index: 5; }
  .story-steps { padding: 4vh 0 10vh; }
  .step { min-height: 60vh; }
  .notch.big { font-size: 11px; }
  .hero-device .notch { transform: translateX(-50%) scale(0.8); transform-origin: 50% 0; }
  .notch.big[data-state] { width: 86%; }
  .pl-map, .cam-shot { width: 96px; }
  .section { padding: 10vh 16px; }
  .bento, .steps3, .trust { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; grid-template-columns: 1fr; padding: 26px; }
  .final { padding: 14vh 16px; }
  .footer { flex-wrap: wrap; padding: 24px 16px; }
  .footer .copy { margin-left: 0; }
}

/* Petit écran : l'encoche de démonstration garde ses proportions, en plus petit */
@media (max-width: 640px) {
  .hero-device { padding: 6px; border-radius: 16px; }
  .hero-device .notch { transform: translateX(-50%) scale(0.56); }
}
@media (max-width: 400px) {
  .hero-device .notch { transform: translateX(-50%) scale(0.5); }
}
