/* Accueil Laststream (FR et EN) : scroll story, thème figé Laststream sombre.
   Les pages /guides/ gardent /style.css ; ce fichier ne sert qu'à la page d'accueil. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0c0b11;
  --bg-alt: #121018;
  --bg-alt-2: #221e2c;
  --surface: #1a1722;
  --ink: #f4f2f7;
  --ink-2: #b3afc0;
  --muted: #9b96a9;
  --line: #2e2a3b;
  --accent: #ff5a36;
  --accent-2: #ff6d4d;
  --accent-ink: #ff6d4d;
  --grad-end: #ff5c8a;
  --grad: linear-gradient(100deg, #ff5a36 0%, #ff6d4d 36%, #ff7b6b 68%, #ff5c8a 100%);
  --fill-base: #4a4459;
  --fill-end: #ff5c8a;
  --btn-bg: #ff5a36;
  --btn-bg-hover: #ff6d4d;
  --on-accent: #1a0904;
  --on-ink: var(--bg);
  --focus: var(--accent);
  --soon-tint: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --plus-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6d4d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E");
  --shade: #000000;
  --shadow-tint: #7a2a10;
  --device-tint: #3a1608;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -18px rgba(0, 0, 0, .75);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .08), 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 100px -30px color-mix(in srgb, var(--accent) 30%, transparent);
  --img-shadow: rgba(0, 0, 0, .6);
  --menu-shadow: rgba(0, 0, 0, .6);
  --dot-off: rgba(255, 255, 255, .2);
  --lid-top: #2e2e34;
  --lid-bottom: #151518;
  --frame-ring: #46464f;
  --lid-cam: #4a4a52;
  --base-1: #6e6e78;
  --base-2: #474750;
  --base-3: #2a2a31;
  --base-notch: #3a3a42;
  --base-shadow: rgba(0, 0, 0, .7);
  --phone-top: #3c3c44;
  --phone-bottom: #121215;
  --glare: rgba(255, 255, 255, .1);
  --device-shadow: 0 0 0 1.5px var(--frame-ring), 0 40px 90px -30px color-mix(in srgb, var(--accent) 34%, transparent);
  --phone-shadow: 0 0 0 1.5px var(--frame-ring), 0 50px 100px -30px color-mix(in srgb, var(--accent) 40%, transparent);
  --ok-bg: rgba(52, 211, 153, .14);
  --ok-ink: #6ee7b7;
  --idle-bg: rgba(255, 255, 255, .07);
  --idle-ink: #574d47;
  --header-bg: color-mix(in srgb, var(--bg) 72%, transparent);
  --menu-bg: color-mix(in srgb, var(--bg) 97%, transparent);
  --badge-bg: color-mix(in srgb, var(--surface) 78%, transparent);
  --stage-fade: linear-gradient(180deg, var(--bg) 82%, color-mix(in srgb, var(--bg) 0%, transparent));
  --ghost-bg: var(--bg-alt-2);
  --ghost-bg-hover: color-mix(in srgb, var(--bg-alt-2) 82%, var(--ink));
  --btn-glow: color-mix(in srgb, var(--btn-bg) 45%, transparent);
  --btn-glow-hover: color-mix(in srgb, var(--btn-bg) 60%, transparent);
  --btn-sheen: rgba(255, 255, 255, .3);
  --accent-ring: color-mix(in srgb, var(--accent) 24%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --icon-bg: linear-gradient(140deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--grad-end) 16%, transparent));
  --fill-grad: linear-gradient(100deg, var(--ink) 0%, var(--ink) 30%, var(--accent) 65%, var(--fill-end) 100%);
  --card-soon: linear-gradient(150deg, var(--surface) 30%, var(--soon-tint));
  --backdrop: rgba(0, 0, 0, .72);
  --radius: 20px;
  --radius-sm: 12px;
  --gap: 20px;
  --section: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip:focus { transform: translateY(76px); }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--accent-ring); }
.display {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.display.huge { font-size: clamp(52px, 10vw, 152px); letter-spacing: -.055em; }
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -.017em;
  max-width: 40ch;
}
.center .lead, .section-head.center .lead { margin-inline: auto; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: .06em;
}

/* ---------- Boutons (uniques sur toute la page) ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 26px;
  border-radius: 999px; border: 0;
  font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s;
  will-change: transform;
}
.btn-sm { --btn-h: 38px; padding: 0 18px; font-size: 15px; }
.btn-primary {
  background: var(--btn-bg); color: var(--on-accent);
  box-shadow: 0 1px 0 var(--btn-sheen) inset, 0 8px 24px -8px var(--btn-glow);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--btn-bg-hover); box-shadow: 0 1px 0 var(--btn-sheen) inset, 0 14px 30px -10px var(--btn-glow-hover); }
.btn-ghost { background: transparent; color: var(--accent-ink); padding-inline: 14px; }
.btn-ghost span { display: inline-block; transition: transform .35s var(--ease-out); }
.btn-ghost:hover span { transform: translateX(4px); }
.btn-ghost-solid { background: var(--ghost-bg); color: var(--ink); }
.btn-ghost-solid:hover { transform: translateY(-2px); background: var(--ghost-bg-hover); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.center-actions { justify-content: center; margin-top: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; width: min(1200px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -.02em; }
.brand img { border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav ul a:hover { color: var(--ink); }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .menu-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; border-radius: 12px;
  }
  .menu-bars { position: relative; width: 20px; height: 12px; }
  .menu-bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease-out); }
  .menu-bars i:first-child { top: 0; }
  .menu-bars i:last-child { bottom: 0; }
  .menu-toggle[aria-expanded="true"] .menu-bars i:first-child { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars i:last-child { transform: translateY(-5px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px 24px 28px;
    background: var(--menu-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px var(--menu-shadow);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .5s var(--ease-out), visibility 0s .5s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease-out), visibility 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 22px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); letter-spacing: -.02em; }
  .nav-cta { --btn-h: 52px; font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(64px, 10vw, 140px); text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-size: clamp(56px, 11.5vw, 168px);
  line-height: .96;
  letter-spacing: -.06em;
  margin-bottom: 28px;
}
.hero-line { display: block; }
.hero-word { display: inline-block; padding-bottom: .04em; }
.hero .lead { margin-inline: auto; max-width: 36ch; margin-bottom: 36px; }
.hero .actions { justify-content: center; }
.fineprint { margin-top: 24px; font-size: 15px; color: var(--muted); max-width: 52ch; }

.hero-shot-wrap {
  width: min(1120px, 100% - 32px);
  margin: clamp(56px, 8vw, 100px) auto 0;
  perspective: 1800px;
}
.hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c0b11; /* noir d'écran, identique dans tous les thèmes */
  padding: clamp(6px, 1vw, 12px);
  box-shadow: var(--shadow-lg);
  transform-origin: 50% 0%;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--tilt-s, 1));
}
.hero-shot img { border-radius: calc(var(--radius) - 8px); width: 100%; }

/* Entrée orchestrée */
.js .hero-word, .js .hero-in {
  opacity: 0;
  animation: rise 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 120ms);
}
.js .hero-word { animation-name: riseWord; }
.js .hero-shot-wrap.hero-in { animation-name: riseShot; animation-duration: 1.6s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes riseWord {
  from { opacity: 0; transform: translateY(.45em) scale(.96); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes riseShot {
  from { opacity: 0; transform: translateY(120px) scale(.94); }
  to { opacity: 1; transform: none; }
}

/* Tilt du hero piloté par le scroll (CSS si supporté, sinon JS) */
@supports (animation-timeline: view()) {
  .js .hero-shot {
    animation: heroTilt linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
  @keyframes heroTilt {
    from { transform: rotateX(26deg) scale(.88); }
    to { transform: rotateX(0deg) scale(1); }
  }
}

/* ---------- Chiffres ---------- */
.stats { padding: var(--section) 0 calc(var(--section) * .6); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stats-grid li { padding: 8px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-size: clamp(64px, 8vw, 120px); font-weight: 600; line-height: 1; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 16px 0 6px;
}
.stat-label { font-size: 16px; color: var(--ink-2); max-width: 22ch; }
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* ---------- Titres qui se remplissent ---------- */
.fill { position: relative; }
.fill-top { display: none; }
.js .fill.fill-ready { color: var(--fill-base); }
.js .fill.fill-ready .fill-top {
  display: block;
  position: absolute; inset: 0;
  background: var(--fill-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  clip-path: inset(-.1em 100% -.2em 0);
  transition: clip-path 1.6s var(--ease);
  pointer-events: none;
}
.js .fill.fill-ready.is-in .fill-top { clip-path: inset(-.1em 0 -.2em 0); }
@supports (animation-timeline: view()) {
  .js .fill.fill-ready .fill-top {
    transition: none;
    animation: fillReveal linear both;
    animation-timeline: view();
    animation-range: entry 40% cover 45%;
  }
  @keyframes fillReveal {
    from { clip-path: inset(-.1em 100% -.2em 0); }
    to { clip-path: inset(-.1em 0 -.2em 0); }
  }
}

/* ---------- Story (moment signature) ---------- */
.story { padding-top: calc(var(--section) * .6); }
.story-head { text-align: center; margin-bottom: clamp(24px, 4vw, 48px); }
.story-head .display { max-width: 14ch; margin-inline: auto; }
.story-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
  gap: 40px;
}
.story-steps { grid-column: 1; grid-row: 1; }
.story-stage {
  grid-column: 2; grid-row: 1;
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  display: grid; place-items: center;
  perspective: 1800px;
}
.stage-inner { position: relative; width: 100%; max-width: 780px; display: grid; place-items: center; transform-style: preserve-3d; }

.story-step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.story-step:first-child { min-height: 80vh; }
.step-copy { max-width: 440px; transition: opacity .6s var(--ease), transform .8s var(--ease-out); }
.js .story-step:not(.is-active) .step-copy { opacity: .22; transform: translateY(12px); }
.step-kicker { font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.story-step h3 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.04em; margin-bottom: 18px; }
.story-step p:not(.step-kicker) { font-size: 19px; color: var(--ink-2); line-height: 1.5; }
.step-shot { display: none; margin-top: 28px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.step-shot-phone { width: 46%; border-radius: 22px; }
/* Sans JS : captures statiques dans le texte, pas de scène */
html:not(.js) .story-stage { display: none; }
html:not(.js) .story-grid { grid-template-columns: 1fr; }
html:not(.js) .story-step { min-height: 0; padding: 48px 0; }
html:not(.js) .step-shot { display: block; }

/* Laptop CSS */
.laptop { width: 100%; will-change: transform, opacity; transform-origin: 50% 70%; }
.laptop-lid {
  position: relative;
  padding: 2.2% 2.2% 3%;
  background: linear-gradient(180deg, var(--lid-top), var(--lid-bottom));
  border-radius: 22px 22px 8px 8px;
  box-shadow: var(--device-shadow);
  width: 86%; margin-inline: auto;
}
.laptop-lid::before { content: ""; position: absolute; top: .9%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--lid-cam); }
.laptop-display { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #0c0b11; }
.screen {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity .7s var(--ease), transform 1.2s var(--ease-out);
}
.screen.is-active { opacity: 1; transform: scale(1); }
.glare { position: absolute; inset: 0; background: linear-gradient(115deg, var(--glare) 0%, transparent 38%); pointer-events: none; }
.laptop-base {
  position: relative; height: 0; padding-bottom: 3.2%;
  background: linear-gradient(180deg, var(--base-1) 0%, var(--base-2) 55%, var(--base-3) 100%);
  border-radius: 2px 2px 40px 40px / 2px 2px 12px 12px;
  box-shadow: 0 30px 40px -24px var(--base-shadow);
}
.laptop-base span { position: absolute; top: 0; left: 50%; width: 15%; height: 38%; transform: translateX(-50%); background: var(--base-notch); border-radius: 0 0 10px 10px; }

/* Téléphone CSS */
.phone {
  position: absolute; left: 50%; top: 50%;
  width: clamp(150px, 30%, 250px);
  padding: 10px;
  background: linear-gradient(160deg, var(--phone-top), var(--phone-bottom));
  border-radius: 44px;
  box-shadow: var(--phone-shadow);
  opacity: 0;
  transform: translate(-50%, -10%);
  will-change: transform, opacity;
}
.phone-display { position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: 600 / 1298; background: #0c0b11; }
.phone-display img { width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: 1.4%; left: 50%; width: 26%; height: 2.6%; transform: translateX(-50%); background: #000; border-radius: 999px; }

.story-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.story-dots li { width: 8px; height: 8px; border-radius: 99px; background: var(--dot-off); transition: width .5s var(--ease-out), background-color .4s; }
.story-dots li.is-active { width: 28px; background: var(--accent); }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; width: min(100% - 32px, 640px); }
  .story-stage {
    grid-column: 1; grid-row: 1;
    top: var(--header-h);
    height: 52vh; height: 52svh;
    z-index: 2;
    background: var(--stage-fade);
    padding: 12px 0 28px;
  }
  .story-steps { grid-column: 1; grid-row: 2; position: relative; z-index: 1; }
  .story-step, .story-step:first-child { min-height: 62vh; min-height: 62svh; align-items: flex-start; padding-top: 8px; }
  .story-step:last-child { min-height: 48vh; min-height: 48svh; }
  .stage-inner { max-width: 520px; }
  .story-dots { bottom: 10px; }
  .step-copy { max-width: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 860px; }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 22px; }

/* Cartes */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 21px; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px;
  background: var(--icon-bg);
  transition: transform .5s var(--ease-out);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tag {
  display: inline-block; vertical-align: middle;
  padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  background: var(--accent-soft); color: var(--accent-ink);
}

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: var(--gap); }
.card-hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden; padding-bottom: 0; }
.card-hero h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.035em; }
.card-hero p { font-size: 17px; max-width: 40ch; }
.card-hero img { border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px -20px var(--img-shadow); transition: transform .8s var(--ease-out); transform-origin: 50% 100%; }
.card-hero:hover img { transform: scale(1.03); }
.card-wide { grid-column: span 2; }
.card-link { color: var(--accent-ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .card-hero, .card-wide { grid-column: auto; grid-row: auto; }
}

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: s; }
.step { padding: 36px 30px 32px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  display: block; font-size: 96px; line-height: .9; font-weight: 600; letter-spacing: -.06em; margin-bottom: 26px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 23px; letter-spacing: -.03em; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Galerie */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82vw);
  gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 10px max(24px, calc((100vw - 1200px) / 2)) 40px;
  scroll-padding-inline: max(24px, calc((100vw - 1200px) / 2));
  scrollbar-width: thin;
}
.gallery li { scroll-snap-align: start; }
.gallery p { margin-top: 16px; color: var(--muted); font-size: 16px; }
.gallery p strong { color: var(--ink); font-weight: 600; margin-right: 6px; }
.shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: #0c0b11; /* noir d'écran */
  box-shadow: var(--shadow);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.shot img { width: 100%; transition: transform .9s var(--ease-out); }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot:hover img { transform: scale(1.04); }

.lightbox {
  padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%;
  overflow: visible;
}
.lightbox::backdrop { background: var(--backdrop); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox[open] img { animation: zoomIn .5s var(--ease-out); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lightbox-close {
  position: absolute; top: -52px; right: 0;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font-size: 26px; line-height: 1; box-shadow: var(--shadow);
}

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-rev .split-copy { order: 2; }
.split .display { font-size: clamp(38px, 5vw, 68px); }
.split .lead { margin: 22px 0 36px; }
.checklist { display: grid; gap: 18px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: 17px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.5 17L5 11.5l1.8-1.8 3.7 3.7 6.7-6.7L19 8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.5 17L5 11.5l1.8-1.8 3.7 3.7 6.7-6.7L19 8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checklist strong { color: var(--ink); font-weight: 600; }
.split-media { margin: 0; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split-media figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-rev .split-copy { order: 0; }
}

/* Invitations */
.invites { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); }
.invites-title { font-weight: 600; font-size: 19px; letter-spacing: -.02em; margin-bottom: 16px; }
.invites li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.inv-n { font-weight: 600; font-size: 15px; }
.invites code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.pill-free { background: var(--ok-bg); color: var(--ok-ink); }
.pill-sent { background: var(--accent-soft); color: var(--accent-ink); }
.pill-used { background: var(--idle-bg); color: var(--idle-ink); }

/* Ensemble : watch party en vedette + fonctions sociales */
.social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.social h3 { font-size: 23px; }
.card-party {
  grid-column: span 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--surface) 35%, var(--soon-tint));
}
.card-party h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.035em; }
.card-party .party-guest { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); font-size: 15px; }
.card-party .party-guest strong { color: var(--accent-ink); font-weight: 600; }
.party-visual { position: relative; margin: -6px -6px -6px 0; }
.party-visual img { border-radius: 14px; box-shadow: 0 20px 50px -20px var(--img-shadow); transition: transform .8s var(--ease-out); }
.card-party:hover .party-visual img { transform: scale(1.03); }
.party-sync {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 99px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.party-sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-ring); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.rules { margin-top: clamp(40px, 5vw, 64px); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 22px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 1000px) {
  .social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-party { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .social { grid-template-columns: 1fr; }
  .card-party { grid-template-columns: 1fr; }
  .party-visual { margin: 0; }
  .rules { grid-template-columns: 1fr; }
}

/* Téléchargements */
.downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.dl { display: flex; flex-direction: column; gap: 12px; }
.dl h3 { font-size: 24px; margin-bottom: 0; }
.card .dl-meta { font-size: 14px; color: var(--muted); }
.dl .btn { margin-top: auto; width: 100%; white-space: normal; text-align: center; padding-inline: 18px; }
.card .dl-note { font-size: 14px; color: var(--muted); }
.howto summary { cursor: pointer; font-size: 15px; font-weight: 500; color: var(--accent-ink); padding: 6px 0; }
.howto ol, .howto ul { padding-left: 18px; margin-top: 8px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.howto ol { list-style: decimal; }
.howto ul { list-style: disc; }
@media (max-width: 1100px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .downloads { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 60px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-wrap .display { font-size: clamp(40px, 5vw, 64px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: 19px; font-weight: 500; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface) var(--plus-icon) center / 16px no-repeat;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); }
.faq details[open] p { animation: rise .5s var(--ease-out); }
@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 0; }
  .faq-wrap .section-head { position: static; }
  .faq summary { font-size: 18px; }
  .faq details p { padding-right: 0; }
}

/* CTA final */
.final { padding: var(--section) 0; }
.final .display { max-width: 12ch; margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 72px; font-size: 15px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-grid p { margin-top: 14px; max-width: 46ch; }
.footer-grid .brand { color: var(--ink); }
.footer-grid nav ul { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-grid nav a { text-decoration: none; color: var(--ink-2); }
.footer-grid nav a:hover { color: var(--accent-ink); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; }

/* Langue + menu (en-tête) */
.header-end { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--bg-alt-2); border: 1px solid var(--line); }
.lang a {
  min-width: 36px; padding: 4px 10px; border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; text-align: center;
  color: var(--ink-2); text-decoration: none; transition: color .2s, background-color .2s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 1080px) { .header-inner { gap: 12px; } }

/* Téléchargements : plateforme détectée (app.js) */
.dl-os { display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; font-weight: 500; }
.dl.is-main { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-lg); }
.dl.is-main::before {
  content: "Pour ton appareil";
  position: absolute; top: -12px; left: 24px;
  padding: 3px 10px; border-radius: 99px;
  background: var(--btn-bg); color: var(--on-accent);
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
}
.dl.is-main:lang(en)::before { content: "For your device"; }
.downloads { padding-top: 12px; }

/* FAQ : renvoi vers les guides */
.faq-guides { margin-top: 22px; color: var(--ink-2); font-size: 16px; }
.faq-guides a { color: var(--accent-ink); font-weight: 500; text-decoration: none; }
.faq-guides a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveals ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal].is-in:hover, .js .step[data-reveal].is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .header-inner { width: calc(100% - 32px); }
  .card { padding: 24px; }
  .hero .actions { flex-direction: column; width: 100%; }
  .hero .actions .btn-primary { width: 100%; }
  .invites { padding: 20px; }
  .invites li { grid-template-columns: auto minmax(0, 1fr); }
  .invites .pill { grid-column: 2; justify-self: start; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-word, .js .hero-in, .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-shot { transform: none !important; }
  .js .fill.fill-ready { color: var(--ink); }
  .js .fill.fill-ready .fill-top { display: none; }
  .js .story-step:not(.is-active) .step-copy { opacity: 1; transform: none; }
  /* Scène pinée remplacée par des captures statiques */
  .story-stage { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-step, .story-step:first-child { min-height: 0; padding: 48px 0; }
  .step-shot { display: block; }
}

