/* LASTLINE V2 — Accueil · l'expérience 60 secondes */
:root {
  --bg0: #08090B; --bg1: #101216; --bg2: #171A20; --bg3: #1E222A;
  --text0: #F0F2F5; --text1: #B8BEC7; --text2: #7A8290; --text3: #4F5663;
  --line: rgba(255,255,255,0.06); --line-strong: rgba(255,255,255,0.10);
  --glass: rgba(255,255,255,0.04);
  --phosphor: #7CB05A; --phosphor-dim: #4A6B36; --glow: rgba(124,176,90,0.18);
  --warm: #E8C99B; --amber: #D49A44; --critical: #D85248;
  --display: "Geist", -apple-system, system-ui, sans-serif;
  --mono: "Geist Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg0); color: var(--text0); font-family: var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--phosphor); }
::selection { background: var(--phosphor); color: #08090B; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.18em; }

/* ── Nav ─────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: opacity .5s, transform .5s; }
.nav.hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.nav-inner { max-width: 1240px; margin: 0 auto; height: 68px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-bg { position: absolute; inset: 0; background: rgba(8,9,11,0.65);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line); }
.nav-brand { position: relative; display: flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 13px; font-weight: 600; letter-spacing: 0.24em; }
.nav-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--phosphor); box-shadow: 0 0 12px var(--phosphor); }
.nav-links { position: relative; display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13.5px; color: var(--text1); transition: color .2s; }
.nav-links a:hover { color: var(--text0); }
.btn { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px;
  font-weight: 600; border: 0; cursor: pointer; border-radius: 12px; display: inline-flex;
  align-items: center; gap: 8px; background: var(--phosphor); color: #08090B; padding: 13px 22px;
  transition: transform .12s, filter .2s; }
.btn:hover { filter: brightness(1.08); color: #08090B; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 10px 16px; font-size: 11px; }

/* ── Scènes ──────────────────────────────────────── */
.scene { position: relative; }
.scene-pin { height: 320vh; }
.scene-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text3); }

/* Scène 1 · Le silence */
.hero { height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 0 24px; }
.hero-light { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 42% at 50% 68%, rgba(232,201,155,0.09), transparent 70%); }
.hero .kicker { display: inline-flex; align-items: center; gap: 12px;
  font-size: 17px; letter-spacing: 0.42em; color: var(--text0); }
.hero .kicker::before { content: ""; width: 9px; height: 9px; border-radius: 99px;
  background: var(--phosphor); box-shadow: 0 0 14px var(--phosphor); }
.hero h1 { font-size: clamp(34px, 5.2vw, 68px); font-weight: 600; letter-spacing: -0.022em;
  line-height: 1.14; margin: 26px 0 0; max-width: 15ch; }
.hero h1 .dim { color: var(--text2); }
.hero-sub { margin-top: 26px; font-size: 17px; color: var(--text2); max-width: 44ch; line-height: 1.6; }
.hero-scroll { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; color: var(--text3); }
.hero-scroll::after { content: ""; display: block; width: 1px; height: 34px; margin: 12px auto 0;
  background: linear-gradient(var(--text3), transparent); }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Scène 2 · La chute des réseaux */
.grid-nodes { display: grid; grid-template-columns: repeat(4, 150px); gap: 18px; }
.node { border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 14px;
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  opacity: calc(1 - clamp(0, (var(--p) - var(--die)) * 9, 0.92));
  transition: opacity .1s linear; }
.node .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--phosphor); margin-bottom: 12px;
  box-shadow: 0 0 10px var(--glow); }
.node span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--text2); text-transform: uppercase; display: block; line-height: 1.5; }
.fall-copy { position: absolute; left: 0; right: 0; text-align: center; padding: 0 24px; }
.fall-copy p { font-size: clamp(24px, 3vw, 38px); font-weight: 600; letter-spacing: -0.015em; margin: 0; line-height: 1.3; }
.p-seg { opacity: clamp(0, calc((var(--p) - var(--in)) * 6), 1) ; }
.p-seg.out { opacity: calc(clamp(0, (var(--p) - var(--in)) * 6, 1) - clamp(0, (var(--p) - var(--out)) * 6, 1)); }

/* Scène 3 · Le téléphone s'allume */
.wake { display: flex; align-items: center; gap: 72px; padding: 0 32px; }
.wake-copy { max-width: 420px; }
.wake-copy h2, .chapter-copy h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.18; margin: 14px 0 16px; }
.wake-copy p, .chapter-copy > p { font-size: 16.5px; color: var(--text1); line-height: 1.65; margin: 0; }

/* Téléphone */
.phone { position: relative; width: 310px; border-radius: 46px; background: #16181d;
  border: 1px solid rgba(255,255,255,0.10); padding: 10px; flex-shrink: 0;
  box-shadow: 0 50px 110px -30px rgba(0,0,0,0.85); }
.phone-screen { position: relative; border-radius: 37px; overflow: hidden; background: #050608;
  height: 620px; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; background: #0a0b0e; border-radius: 0 0 15px 15px; z-index: 9; }
.phone-glow { position: absolute; inset: -60px; border-radius: 80px; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, var(--glow), transparent 70%);
  opacity: 0; transition: opacity .6s; }

/* Écran — contenu commun */
.scr { position: absolute; inset: 0; padding: 54px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.scr-status { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.14em; color: var(--text3); text-transform: uppercase; padding: 0 4px 4px; }
.scr-status b { color: var(--phosphor); font-weight: 500; }
.scr-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; padding: 0 4px; }
.scr-card { background: linear-gradient(180deg, var(--bg2), var(--bg1)); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 14px; }
.scr-row { display: flex; align-items: center; gap: 11px; }
.avatar { width: 34px; height: 34px; border-radius: 99px; background: var(--bg3); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--text1); flex-shrink: 0; }
.scr-name { font-size: 13.5px; font-weight: 500; }
.scr-meta { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); margin-top: 2px; }
.status-pill { margin-left: auto; white-space: nowrap; font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: var(--glass);
  border: 1px solid var(--line-strong); color: var(--text3); transition: all .4s; }
.on .status-pill { color: var(--phosphor); border-color: rgba(124,176,90,0.4); background: rgba(124,176,90,0.08); }
.on .avatar { border-color: rgba(124,176,90,0.35); }
.check { width: 20px; height: 20px; border-radius: 7px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: transparent; flex-shrink: 0; transition: all .35s; }
.done .check { background: var(--phosphor); border-color: var(--phosphor); color: #08090B; }
.done .scr-name { color: var(--text2); text-decoration: line-through; text-decoration-color: var(--text3); }

/* Chapitres */
.chapter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 80px;
  max-width: 1100px; padding: 0 32px; width: 100%; }
.chapter.flip { grid-template-columns: auto 1fr; }
.chapter.flip .chapter-copy { order: 2; }
.chapter-copy { max-width: 440px; }
.chapter-copy .kicker { color: var(--phosphor); }
.chapter-steps { margin-top: 26px; display: flex; flex-direction: column; gap: 0; }
.cstep { padding: 15px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline;
  opacity: calc(0.28 + clamp(0, (var(--p) - var(--in)) * 7, 1) * 0.72); transition: opacity .15s linear; }
.cstep i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--text3); letter-spacing: 0.14em; }
.cstep div b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.cstep div span { font-size: 13.5px; color: var(--text2); line-height: 1.55; }

/* Mesh visual dans l'écran */
.mesh-map { position: relative; height: 240px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--bg2), var(--bg1)); border: 1px solid var(--line); }
.mesh-node { position: absolute; width: 40px; height: 40px; border-radius: 99px; background: var(--bg3);
  border: 1px solid rgba(124,176,90,0.4); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; color: var(--phosphor); z-index: 2; }
.mesh-node::after { content: ""; position: absolute; inset: -7px; border-radius: 99px;
  border: 1px solid rgba(124,176,90,0.25); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.mesh-link { position: absolute; height: 1px; transform-origin: 0 50%; z-index: 1;
  background: linear-gradient(90deg, rgba(124,176,90,0.5), rgba(124,176,90,0.12)); }
.mesh-link::after { content: ""; position: absolute; top: -1.5px; left: 0; width: 5px; height: 4px; border-radius: 99px;
  background: var(--phosphor); box-shadow: 0 0 8px var(--phosphor); animation: travel 2.2s linear infinite; }
@keyframes travel { to { transform: translateX(var(--len)); } }

/* SOS */
.sos-btn { margin: 8px auto 0; width: 150px; height: 150px; border-radius: 99px; position: relative;
  background: radial-gradient(circle at 50% 38%, rgba(216,82,72,0.25), rgba(216,82,72,0.08));
  border: 1px solid rgba(216,82,72,0.5); display: flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center; font-family: var(--mono); }
.sos-btn b { font-size: 21px; letter-spacing: 0.28em; color: #F2A49D; font-weight: 700; margin-left: 0.28em; }
.sos-btn span { font-size: 8px; letter-spacing: 0.16em; color: var(--text3); text-transform: uppercase; }
.sos-btn::after { content: ""; position: absolute; inset: -12px; border-radius: 99px;
  border: 1px solid rgba(216,82,72,0.3); animation: pulse 2s infinite; }
.alert-card { border-color: rgba(212,154,68,0.4); background: linear-gradient(180deg, rgba(212,154,68,0.10), var(--bg1)); }
.alert-card .scr-meta { color: var(--amber); }

/* Scène photo · le geste d'amour */
.human { min-height: 92vh; display: flex; align-items: center; justify-content: center; padding: 90px 32px; }
.human-inner { max-width: 1100px; width: 100%; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.photo-slot { position: relative; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-strong); }
.photo-slot image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-slot figcaption { position: absolute; left: 18px; bottom: 16px; right: 18px; pointer-events: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text2); line-height: 1.8; }
.human h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.2; margin: 14px 0 16px; }
.human p { color: var(--text1); font-size: 16.5px; line-height: 1.65; margin: 0; }
.human .kicker { color: var(--warm); }

/* Scène finale */
.finale { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 120px 24px 80px; }
.finale-light { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 55%, rgba(124,176,90,0.07), transparent 70%); }
.finale h2 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.18; margin: 0 0 18px; max-width: 18ch; }
.finale p { color: var(--text2); font-size: 17px; max-width: 46ch; line-height: 1.6; margin: 0 0 36px; }
.finale-note { margin-top: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--text3); text-transform: uppercase; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 54px 32px 44px; }
.foot-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-links div { display: flex; flex-direction: column; gap: 10px; }
.foot-links b { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text3); margin-bottom: 4px; font-weight: 500; }
.foot-links a { font-size: 13px; color: var(--text2); }
.foot-brand { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; font-weight: 600; }
.foot-brand span { display: block; margin-top: 10px; font-size: 10px; letter-spacing: 0.14em; color: var(--text3); font-weight: 400; }

/* Reveal générique */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .scene-pin { height: auto !important; }
  .scene-stick { position: static; height: auto; padding: 80px 0; }
  .node, .p-seg, .cstep { opacity: 1 !important; }
  .mesh-node::after, .mesh-link::after, .sos-btn::after { animation: none; }
}

@media (max-width: 900px) {
  .nav-links a { display: none; }
  /* Scènes épinglées conservées sur mobile — layouts compactés pour tenir dans l'écran */
  .scene-pin { height: 240vh; }
  .grid-nodes { grid-template-columns: repeat(2, minmax(130px, 150px)); justify-content: center; padding: 0 24px; }
  .node:nth-child(n+9) { display: none; }
  .fall-copy p { font-size: 22px; padding: 0 10px; }
  .wake, .chapter, .chapter.flip { display: flex; flex-direction: column; gap: 22px; text-align: center; padding: 0 20px; }
  .chapter-copy { order: 0 !important; }
  .chapter-copy h2, .wake-copy h2 { font-size: 24px; margin: 8px 0 10px; }
  .chapter-copy > p, .wake-copy p { font-size: 14.5px; }
  .chapter-steps { display: none; }
  .phone { width: 225px; padding: 8px; }
  .phone-screen { height: 450px; }
  .human-inner { grid-template-columns: 1fr; }
}

/* Tactile : l'image de fond ne doit jamais capturer le doigt (scroll) */
@media (hover: none) {
  .scene-bg image-slot, .photo-slot image-slot { pointer-events: none; }
}

/* Nav mobile compacte : liens visibles pleine largeur */
@media (max-width: 900px) {
  .nav-inner { padding: 0 14px; gap: 10px; height: 60px; }
  .nav-brand { display: none; }
  .nav-links { flex: 1; justify-content: space-between; gap: 10px; }
  .nav-links a { display: inline-flex; font-size: 12.5px; white-space: nowrap; }
  .nav-links .btn-sm { padding: 8px 11px; font-size: 9.5px; }
}

/* Fin de page : la finale occupe le dernier écran, footer en une ligne */
.finale { min-height: 100svh; }
.foot-slim { border-top: 1px solid var(--line); padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-slim, .foot-slim a { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text3); }
.foot-slim a:hover { color: var(--text1); }
.foot-slim .fs-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Badges stores — style officiel */
.store-badges { display: flex; gap: 12px; justify-content: center; align-items: flex-start; flex-wrap: wrap; margin-top: 26px; }
.store-badge { display: flex; align-items: center; gap: 11px;
  background: #000; border: 1.5px solid #a6a6a6; border-radius: 9px;
  padding: 8px 16px 8px 13px; min-height: 52px; transition: border-color .2s, transform .12s; }
.store-badge:hover { border-color: #fff; color: inherit; }
.store-badge:active { transform: scale(.97); }
.store-badge svg { flex-shrink: 0; display: block; }
.store-badge small { display: block; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 9.5px; letter-spacing: 0.04em; color: #fff; opacity: 0.92; text-transform: none; line-height: 1.1; }
.store-badge b { display: block; text-transform: none; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #fff; line-height: 1.15; margin-top: 1px; }
.store-badge-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.store-badge-wrap .soon-note { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--warm); }
.store-badge.soon { opacity: 0.5; pointer-events: none; filter: saturate(0.6); }

/* ── Fonds image par situation ── */
.scene-bg { position: absolute; inset: 0; z-index: 0; }
.scene-bg image-slot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.scene-veil { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 75% at 50% 50%, rgba(8,9,11,0.55), rgba(8,9,11,0.94)); }
.scene-veil.bottom { background: linear-gradient(180deg, rgba(8,9,11,0.72), rgba(8,9,11,0.45) 45%, rgba(8,9,11,0.96)); }
.hero > *, .scene-stick > *, .finale > * { position: relative; z-index: 1; }
.hero .scene-bg, .scene-stick .scene-bg, .finale .scene-bg,
.hero .hero-light, .hero .hero-scroll, .finale .finale-light,
.scene-stick .fall-copy { position: absolute; }
.hero .hero-light, .finale .finale-light { z-index: 0; }


