/* Landing "Une journée dans votre entreprise".
   La Forge 2026 charter: orange #e06538, orange clair #F3BB00 (the highlighter), peach #ffebd7,
   neutrals #000 #505764 #979797 #bcbcbc #dfdbd8 #f2f2f2 #fff, accents #c23028 #ffd444 #a288e3.
   Zalando Sans Expanded for titles (small caps for section labels), Manrope for body.
   Two identities share every rule below; only the tokens and a few [data-identity] rules differ. */

:root {
  --orange: #e06538; --hl-yellow: #f3bb00; --peach: #ffebd7;
  --black: #000; --slate: #505764; --steel: #979797; --silver: #bcbcbc; --mist: #dfdbd8; --fog: #f2f2f2; --white: #fff;
  --red: #c23028; --yellow: #ffd444; --purple: #a288e3;
  --display: 'Zalando Sans Expanded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --settle: cubic-bezier(.32, .72, 0, 1);
  --nav-h: 4.25rem;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Identity: Open space, 18 h (dark, photographic, grain) ---------- */
[data-identity="open"] {
  --bg: #080808; --bg-2: #101010; --surface: #161616;
  --ink: #fff; --muted: #bcbcbc; --faint: #979797; --line: rgba(255,255,255,.1);
  --hl: var(--hl-yellow);
  --hl-ink: #000;
  --grid: rgba(255,255,255,.035);
  --hero-img: url(img/story/late-desk.jpg);
  --direction-img: url(img/story/screen-glow.jpg);
  --cta-img: url(img/story/typing-postits.jpg);
  --photo-filter: brightness(.5) saturate(.75) contrast(1.05);
  --grain: .22;
}
/* ---------- Identity: Bureau d'études (light, graph paper, technical annotations) ---------- */
[data-identity="etudes"] {
  --bg: #fff; --bg-2: #f2f2f2; --surface: #fff;
  --ink: #000; --muted: #505764; --faint: #979797; --line: #dfdbd8;
  --hl: color-mix(in srgb, var(--hl-yellow) 72%, #fff);
  --hl-ink: #000;
  --grid: #ece8e4;
  --hero-img: none;
  --direction-img: none;
  --cta-img: url(img/story/bright-desk.jpg);
  --photo-filter: saturate(.55) contrast(1.02) brightness(1.04);
  --grain: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Controls respond at once and never select their label on long-press; body text stays selectable */
.btn, .nav-cta, .nav-contact, .nav-brand, .replay-tabs button, .scene, .faq summary { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; transition: background 300ms ease, color 300ms ease; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 max(32px, env(safe-area-inset-right, 0px)) 0 max(32px, env(safe-area-inset-left, 0px)); }
@media (max-width: 45em) { .wrap { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); } }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 400; font-size: clamp(2.125rem, 4.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; }
.display span { color: var(--muted); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.875rem, 3.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; }
/* A long word ("collaborateurs") must never run past the screen when the user raises the text size */
.display, .h2, .step-title, .faq summary { overflow-wrap: anywhere; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; color: var(--muted); max-width: 36em; }
.eyebrow-sc { font-family: var(--display); font-variant-caps: all-small-caps; font-size: 1.0625rem; letter-spacing: .05em; color: var(--faint); margin-bottom: 14px; }
.fine { font-size: 0.8125rem; color: var(--faint); }
.h2 + .lead { margin-top: 18px; }

/* ---------- The highlighter, the brand's recurring gesture ---------- */
.hl {
  color: inherit; background-color: transparent; border-radius: .18em; padding: 0 .14em; margin: 0 -.06em;
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat; background-position: 0 55%; background-size: 0% 88%;
  transition: background-size 700ms var(--ease), color 200ms ease 120ms;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.is-lit .hl, .hl.is-lit { background-size: 100% 88%; color: var(--hl-ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.125rem; padding: 0 24px; border-radius: 999px; font: 600 0.9375rem/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform 100ms ease-out, background 150ms ease, border-color 150ms ease; }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:active { background: color-mix(in srgb, var(--orange) 88%, #000); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-quiet:active { box-shadow: inset 0 0 0 1px var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Nav (translucent material) ---------- */
.nav { color: var(--ink); position: fixed; inset: 0 0 auto; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: env(safe-area-inset-top, 0px) max(28px, env(safe-area-inset-right, 0px)) 0 max(28px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.nav::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); opacity: var(--nav-line, 0); transition: opacity 200ms; }
.nav-brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 0.875rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.nav-logo { width: 28px; height: 28px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-cta, .nav-contact { white-space: nowrap; min-height: 2.375rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font: 600 0.8125rem var(--body); text-decoration: none; transition: transform 100ms ease-out, background 150ms ease, box-shadow 150ms ease; }
.nav-cta:active, .nav-contact:active { transform: scale(.97); }
.nav-cta:focus-visible, .nav-contact:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.nav-cta { padding: 0 16px; background: var(--ink); color: var(--bg); }
.nav-contact { padding: 0 16px; color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.nav-contact:active { box-shadow: inset 0 0 0 1px var(--ink); }
.t-short { display: none; }
@media (max-width: 30em) { .t-long { display: none; } .t-short { display: inline; } }
@media (max-width: 23.75em) { .nav-brand { font-size: 0.7812rem; gap: 8px; } .nav-logo { width: 24px; height: 24px; } .nav-actions { gap: 8px; } }
@media (max-width: 22.4375em) { .nav-brand span { display: none; } }
@media (max-width: 56.25em) { .nav { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } .nav-cta, .nav-contact { min-height: 2.25rem; padding: 0 14px; } }

/* ============ ACTE 1 · HERO ============ */
.hero { background: var(--bg); color: var(--ink); position: sticky; top: 0; height: 100svh; min-height: 760px; overflow: hidden; display: grid; place-items: center; z-index: 0; }
.hero-bg { position: absolute; inset: 0; background: var(--hero-img) center 40% / cover no-repeat; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.74)); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: var(--grain); mix-blend-mode: overlay; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 48%, transparent 55%, color-mix(in srgb, var(--bg) 80%, transparent) 100%); }

.hero-copy { position: relative; z-index: 5; text-align: center; max-width: 1180px; padding: var(--nav-h) 24px 0; display: flex; flex-direction: column; align-items: center; transform: scale(calc(1 - var(--p, 0) * .05)); filter: blur(calc(var(--p, 0) * 6px)); opacity: calc(1 - var(--p, 0) * .5); will-change: transform, filter; }
.hero-copy .lead { margin-top: 26px; text-align: center; }
.hero-copy .actions { margin-top: 34px; justify-content: center; }
.assurances { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: center; font-size: 0.8125rem; color: var(--faint); }
.assurances li::before { content: ""; display: inline-block; width: 10px; height: 4px; margin-right: 8px; vertical-align: middle; border-radius: 2px; background: var(--hl-yellow); }

.hero-objects { position: absolute; inset: 0; z-index: 2; }
/* Documents are laid on the desk one after the other, then drift at their own depth while the story covers the hero */
.hero-objects .obj { animation: obj-in 800ms var(--settle) both; animation-delay: calc(350ms + var(--i, 0) * 80ms); translate: 0 calc(var(--p, 0) * var(--depth, 50) * -1px); }
@keyframes obj-in { from { opacity: 0; transform: translateY(28px) rotate(calc(var(--r) + 5deg)); } }
.obj { position: absolute; left: var(--x); top: var(--y); z-index: var(--z); transform: rotate(var(--r)); }
.doc { background: #f2f2f2; color: #000; border-radius: 6px; padding: 16px 18px; font-size: 0.7188rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.3), 0 30px 60px -20px rgba(0,0,0,.9); }
.doc header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid #dfdbd8; padding-bottom: 8px; margin-bottom: 10px; font-size: 0.625rem; color: #505764; }
.doc header b { font: 500 0.6875rem var(--display); letter-spacing: .04em; color: #000; }
.doc small { color: #979797; font-size: 0.625rem; }
.doc-from { margin-bottom: 10px; font-weight: 600; }
.doc-invoice { width: 270px; }
.doc-lines { list-style: none; padding: 0; margin: 0 0 8px; }
.doc-lines li, .doc-total, .doc-kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.doc-lines li { color: #505764; padding: 3px 0; border-bottom: 1px dashed #dfdbd8; }
.doc-total { padding-top: 4px; }
.doc-iban { margin-top: 10px; font-size: 0.6875rem; }
.doc-postit { width: 150px; padding: 18px 16px 22px; background: var(--yellow); border-radius: 2px; font: 600 0.875rem/1.35 var(--body); box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 14px 22px -12px rgba(0,0,0,.4); }
.doc-csv { width: 330px; padding: 0 0 12px; overflow: hidden; }
.doc-csv header { padding: 9px 12px; margin: 0; background: #e9e6e3; border: 0; justify-content: flex-start; gap: 6px; }
.doc-csv header i { width: 8px; height: 8px; border-radius: 50%; background: #c9c3bd; }
.doc-csv header span { margin-left: 6px; font-size: 0.6562rem; color: #505764; }
.doc-csv table { width: 100%; border-collapse: collapse; font-size: 0.6562rem; }
.doc-csv th { text-align: left; font-weight: 600; color: #979797; padding: 7px 10px; border-bottom: 1px solid #dfdbd8; }
.doc-csv td { padding: 6px 10px; border-bottom: 1px solid #f2f2f2; white-space: nowrap; }
.doc-payslip { width: 270px; }
.doc-kv { padding: 4px 0; border-bottom: 1px dashed #dfdbd8; color: #505764; }
.doc-kv mark, .doc-kv span:last-child { color: #000; }
.doc mark { white-space: nowrap; }
.doc-note { width: 240px; padding-top: 30px; }
.doc-note p { font-weight: 600; margin-bottom: 10px; }
.stamp { position: absolute; top: 10px; right: 12px; transform: rotate(8deg); font: 600 0.625rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--red); border: 1.5px solid var(--red); padding: 3px 6px; border-radius: 3px; opacity: .85; }
.redacted span { display: block; height: 7px; border-radius: 2px; background: #dfdbd8; margin: 7px 0; width: 100%; }
.doc-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font: 600 0.7812rem var(--body); background: #fff; color: #000; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 25%, transparent); }
.note-tag { position: absolute; font-style: normal; white-space: nowrap; font-size: 0.6875rem; font-weight: 600; }
.note-tag { left: calc(100% + 18px); top: 22px; color: rgba(255,255,255,.62); font: 500 0.6875rem var(--display); font-variant-caps: all-small-caps; letter-spacing: .06em; font-size: 0.8125rem; transform: rotate(calc(var(--r) * -1)); }
.note-tag::before { content: ""; position: absolute; right: calc(100% + 4px); top: 50%; width: 14px; border-top: 1px solid rgba(255,255,255,.62); }
.doc-csv .note-tag, .doc-note .note-tag { left: auto; right: calc(100% + 18px); }
.doc-csv .note-tag::before, .doc-note .note-tag::before { right: auto; left: calc(100% + 4px); }

/* Objects placed in the free bands around the copy; large ones under, small ones on top. */
.doc-postit  { --x: 9%  !important; --y: 12% !important; }
.doc-invoice { --x: -5% !important; --y: 33% !important; }
.doc-payslip { --x: 5%  !important; --y: 76% !important; }
.doc-csv     { --x: 74% !important; --y: 11% !important; }
.doc-note    { --x: 86% !important; --y: 56% !important; }
.doc-chip    { --x: 66% !important; --y: 86% !important; }
/* Tablet: fewer documents, kept in the corners so the copy keeps its margin */
@media (max-width: 68.75em) {
  .doc-invoice, .doc-note { display: none; }
  .doc-postit  { --x: 5%  !important; --y: 11% !important; }
  .doc-csv     { --x: 64% !important; --y: 9%  !important; }
  .doc-payslip { --x: -7% !important; --y: 74% !important; }
  .doc-chip    { --x: 62% !important; --y: 86% !important; }
  .note-tag { display: none; }
}
/* Phone: the copy first, then a small, contained pile of the day's documents */
@media (max-width: 53.75em) {
  .hero { position: relative; height: auto; min-height: 0; display: flex; flex-direction: column; padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 40px) 0 64px; }
  .hero-copy { padding: 0 max(16px, env(safe-area-inset-left, 0px)); transform: none; filter: none; opacity: 1; }
  .hero-objects { order: 2; position: relative; inset: auto; width: min(340px, calc(100% - 32px)); height: 262px; margin: 40px auto 0; }
  .hero-objects .obj { translate: none; }
  .doc-csv, .doc-payslip { display: none; }
  .doc-invoice { display: block; --x: 9% !important; --y: 18px !important; width: 252px; }
  .doc-postit  { --x: -3% !important; --y: 0px !important; width: 128px; font-size: 0.8125rem; padding: 14px 14px 18px; }
  .doc-chip    { --x: 26% !important; --y: 214px !important; }
}

/* The story slides over the hero, which recedes into the background */
.story { position: relative; z-index: 1; background: var(--bg); box-shadow: 0 -30px 60px -20px rgba(0,0,0,.35); }

/* ---------- Tools strip ---------- */
.tools { padding: 40px 0 36px; border-bottom: 1px solid var(--line); text-align: center; }
.tools .eyebrow-sc { margin-bottom: 18px; padding: 0 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track li { font: 500 1.125rem var(--display); letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.act { padding: 128px 0; position: relative; }
@media (max-width: 45em) { .act { padding: 88px 0; } }

/* ---------- ACTE 2 · scenes ---------- */
.scenes { display: flex; gap: 12px; height: 540px; margin-top: 56px; }
.scene { position: relative; flex: 1; min-width: 0; border-radius: 22px; overflow: hidden; cursor: pointer; transition: flex 800ms var(--settle); isolation: isolate; }
.scene.is-open { flex: 3.4; cursor: default; }
.scene-media { position: absolute; inset: 0; background: var(--img) center / cover; filter: var(--photo-filter); transform: scale(1.02); transition: transform 1.2s var(--ease); z-index: -2; }

.scene::before { content: ""; position: absolute; inset: 0; z-index: -1; }
[data-identity="open"] .scene::before { background: linear-gradient(180deg, rgba(0,0,0,.15) 30%, rgba(0,0,0,.85)), var(--noise); background-blend-mode: normal, overlay; }
[data-identity="etudes"] .scene { box-shadow: inset 0 0 0 1px var(--line); }
[data-identity="etudes"] .scene::before { background: linear-gradient(180deg, rgba(255,255,255,0) 25%, rgba(255,255,255,.96) 72%); }
.scene-body { position: absolute; inset: auto 0 0; padding: 28px; }
.scene-time { font: 400 clamp(1.75rem, 3vw, 2.75rem)/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; transition: font-size 500ms var(--settle); }
.scene:not(.is-open) .scene-time { font-size: clamp(1.25rem, 1.8vw, 1.625rem); }
.scene-who { margin-top: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene blockquote, .scene-why { opacity: 0; transform: translateY(10px); transition: opacity 300ms ease, transform 500ms var(--ease); max-width: 34em; }
.scene.is-open blockquote, .scene.is-open .scene-why { opacity: 1; transform: none; transition-delay: 350ms; }
.scene blockquote { margin-top: 18px; font-size: 1.0625rem; line-height: 1.5; }
.scene-why { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }
.scene:not(.is-open) blockquote, .scene:not(.is-open) .scene-why { position: absolute; pointer-events: none; }
.scene-timer { position: absolute; left: 28px; right: 28px; top: 24px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 20%, transparent); overflow: hidden; opacity: 0; }
.scene.is-open .scene-timer { opacity: 1; }
.scene-timer::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--t, 0)); }
@media (max-width: 53.75em) {
  .scenes { height: auto; margin-top: 40px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; gap: 10px; padding-bottom: 4px; scroll-padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
  .scenes::-webkit-scrollbar { display: none; }
  .scene, .scene.is-open { flex: 0 0 min(86%, 420px); height: 460px; scroll-snap-align: start; cursor: default; }
  .scene-body { padding: 22px; }
  .scene:not(.is-open) .scene-time { font-size: clamp(1.75rem, 3vw, 2.75rem); }
  .scene blockquote, .scene-why { opacity: 1; transform: none; position: static !important; }
  .scene-timer { display: none; }
  .scenes-dots { display: flex; }
}

.scenes-dots { display: none; justify-content: center; gap: 8px; margin-top: 16px; }
.scenes-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width 300ms var(--ease), background 300ms ease; }
.scenes-dots i.is-on { width: 18px; background: var(--ink); }
.verdict-human { margin-top: 120px; }
@media (max-width: 45em) { .verdict-human { margin-top: 88px; } .dilemma { margin-top: 44px; } .transition { margin-top: 48px; } }
.statement { font: 400 clamp(1.875rem, 4vw, 3.625rem)/1.08 var(--display); letter-spacing: -0.03em; }
.statement span { color: var(--muted); }
.dilemma { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.dilemma > div { padding: 32px 40px 0 0; }
.dilemma > div + div { padding-left: 40px; border-left: 1px solid var(--line); }
.dilemma h3 { font: 500 1.25rem/1.3 var(--display); letter-spacing: -0.015em; }
.dilemma p { margin-top: 10px; color: var(--muted); max-width: 30em; }
.transition { margin-top: 72px; font: 400 clamp(1.375rem, 2.2vw, 1.875rem)/1.2 var(--display); letter-spacing: -0.02em; display: flex; align-items: center; gap: 16px; }
.transition::after { content: "↓"; font-family: var(--body); color: var(--orange); }
@media (max-width: 45em) { .dilemma { grid-template-columns: 1fr; } .dilemma > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; } }

/* ---------- ACTE 3 · replay ---------- */
.act-produit { background: var(--bg-2); }
.replay { margin-top: 56px; }
.replay-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.replay-tabs button { all: unset; cursor: pointer; position: relative; padding: 16px 18px 18px; border-radius: 14px; font-size: 0.875rem; color: var(--muted); transition: background 200ms, color 200ms; }
.replay-tabs button b { display: block; font: 400 1.25rem/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.replay-tabs button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.replay-tabs button:focus-visible { outline: 2px solid var(--orange); }
.tab-bar { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; }
.is-on .tab-bar { opacity: 1; }
.tab-bar::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(var(--t, 0)); }
.replay-stage { margin-top: 16px; border-radius: 28px; padding: 64px 32px 40px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
[data-identity="open"] .replay-stage { background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.7)), url(img/story/typing-postits.jpg) center / cover; }
[data-identity="open"] .replay-stage::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .25; mix-blend-mode: overlay; }
[data-identity="etudes"] .replay-stage { background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; box-shadow: inset 0 0 0 1px var(--line); }
.app { position: relative; width: min(720px, 100%); background: #fff; color: #000; border-radius: 18px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 40px 80px -30px rgba(0,0,0,.6); }
.app-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid #f2f2f2; font-size: 0.8125rem; font-weight: 600; color: #505764; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfdbd8; }
.app-bar span { margin-left: 8px; }
.app-thread { padding: 24px; min-height: 250px; display: flex; flex-direction: column; gap: 12px; color: #979797; font-size: 0.875rem; }
.app-bubble { align-self: flex-end; max-width: 88%; background: #f2f2f2; color: #000; border-radius: 16px 16px 4px 16px; padding: 12px 16px; font-size: 0.875rem; line-height: 1.5; opacity: 0; transform: translateY(16px); transition: opacity 300ms ease, transform 450ms var(--settle); }
.app-bubble.is-in { opacity: 1; transform: none; }
.app-bubble-meta { align-self: flex-end; display: flex; gap: 8px; align-items: center; font-size: 0.75rem; color: #979797; opacity: 0; transition: opacity 300ms ease 250ms; }
.app-bubble.is-in + .app-bubble-meta { opacity: 1; }
.app-compose { position: relative; margin: 0 16px 16px; }
.app-composer { border: 1px solid #dfdbd8; transition: border-color 250ms ease; border-radius: 16px; padding: 14px 14px 14px 18px; display: flex; gap: 12px; align-items: flex-end; }
.app-composer.is-hold { border-color: var(--orange); }
.app-composer p { flex: 1; font-size: 0.9375rem; line-height: 1.55; min-height: 46px; }
.app-composer .w { opacity: 0; transition: opacity 160ms ease; }
.app-composer .w.is-in { opacity: 1; }
.app-send { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #979797; color: #fff; font-weight: 700; }
.fw-card { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); z-index: 2; background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 0 0 1px #dfdbd8, 0 20px 40px -18px rgba(0,0,0,.35); transform-origin: calc(100% - 22px) 100%; transition: opacity 250ms ease, transform 450ms var(--settle); }
.fw-card.is-hidden { opacity: 0; transform: translateY(8px) scale(.94); pointer-events: none; }
.fw-check { position: absolute; left: 50%; bottom: calc(100% + 12px); display: flex; gap: 8px; align-items: center; white-space: nowrap; font-size: 0.7812rem; font-weight: 600; color: #fff; background: #000; padding: 8px 13px; border-radius: 999px; opacity: 0; transform: translate(-50%, 6px); transition: opacity 200ms ease, transform 300ms var(--ease); }
.fw-check span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.fw-check.is-in { opacity: 1; transform: translate(-50%, 0); }
.fw-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fw-top strong { font: 500 1rem var(--display); letter-spacing: -0.01em; }
.fw-card p { margin-top: 6px; font-size: 0.875rem; color: #505764; }
.fw-actions { margin-top: 14px; display: flex; gap: 8px; }
.fw-actions span { font-size: 0.8125rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: #000; color: #fff; }
.fw-actions span.ghost { background: transparent; color: #000; box-shadow: inset 0 0 0 1px #dfdbd8; }
.sev { font-size: 0.6562rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.sev-crit { color: var(--red); background: color-mix(in srgb, var(--red) 11%, #fff); }
.sev-warn { color: #8a6a00; background: color-mix(in srgb, var(--hl-yellow) 20%, #fff); }
.sev-info { color: #5d47a8; background: color-mix(in srgb, var(--purple) 18%, #fff); }
.replay-caption { margin-top: 24px; font-size: 0.9375rem; color: var(--muted); text-align: center; min-height: 1.6em; position: relative; }
[data-identity="open"] .replay-caption { color: #e6e6e6; }
.replay .fine { margin-top: 16px; }
@media (max-width: 45em) {
  .replay-tabs { grid-template-columns: repeat(2, 1fr); }
  .replay-stage { padding: 24px 12px; border-radius: 20px; }
  .app-thread { min-height: 290px; padding: 18px; }
  .app-compose { margin: 0 10px 10px; }
  .app-composer p { font-size: 0.875rem; }
}

/* ---------- ACTE 4 · differences ---------- */
.act-pourquoi { background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.diffs { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.diff { background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: 0 0 0 1px var(--line); }
.diff-visual { height: 190px; border-radius: 16px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 20px; margin-bottom: 26px; position: relative; overflow: hidden; }
[data-identity="open"] .diff-visual { background: #0c0c0c; box-shadow: inset 0 0 0 1px var(--line); }
.diff-when { font: 500 0.8125rem var(--display); color: var(--orange); letter-spacing: .02em; }
.diff h3 { margin-top: 8px; font: 500 1.375rem/1.25 var(--display); letter-spacing: -0.02em; }
.diff > p:last-child { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
/* "Avant l'envoi": a message leaves the computer, is held at the gate, the IBAN goes, then it reaches ChatGPT */
.v-before { display: block; padding: 0; }
.v-node { position: absolute; top: 18px; font-size: 0.75rem; font-weight: 600; padding: 7px 11px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); white-space: nowrap; transition: opacity 400ms ease, box-shadow 400ms ease; }
.v-from { left: 18px; }
.v-to { right: 18px; opacity: .4; }
.v-to.is-on { opacity: 1; box-shadow: 0 0 0 1.5px var(--orange); }
.v-lane { position: absolute; left: 18px; right: 18px; top: 64%; border-top: 1px dashed var(--line); }
.v-gate { position: absolute; top: 12px; bottom: 12px; left: 55%; width: 2px; background: var(--orange); border-radius: 2px; transition: box-shadow 300ms ease; }
.v-gate.is-hit { box-shadow: 0 0 18px 2px color-mix(in srgb, var(--orange) 60%, transparent); }
.v-gate b { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font: 500 0.6562rem var(--display); letter-spacing: .04em; color: var(--orange); background: #0c0c0c; padding: 4px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 0 1px color-mix(in srgb, var(--orange) 35%, transparent); }
.v-msg { position: absolute; left: 0; top: 64%; display: inline-flex; align-items: center; white-space: nowrap; font-size: 0.75rem; font-weight: 600; background: #fff; color: #000; padding: 7px 12px; border-radius: 999px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.8); transform: translate(18px, -50%); opacity: 0; will-change: transform; }
.v-msg mark { display: inline-block; overflow: hidden; vertical-align: bottom; max-width: 9em; transition: max-width 450ms var(--ease), opacity 250ms ease, padding 450ms var(--ease), margin 450ms var(--ease), background-size 700ms var(--ease), color 200ms ease 120ms; }
.v-msg mark.is-gone { max-width: 0; opacity: 0; padding: 0; margin: 0; }
.v-verdict { position: absolute; top: calc(64% + 22px); left: 55%; transform: translate(-50%, 4px); font-size: 0.6875rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; color: var(--red); background: color-mix(in srgb, var(--red) 14%, #0c0c0c); padding: 4px 8px; border-radius: 6px; opacity: 0; transition: opacity 250ms ease, transform 400ms var(--ease); }
.v-verdict.is-in { opacity: 1; transform: translate(-50%, 0); }
.v-verdict.is-ok { color: var(--muted); background: #0c0c0c; box-shadow: 0 0 0 1px var(--line); }
.tok { font-size: 0.7812rem; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.tok em { font-style: normal; font-weight: 500; color: var(--faint); margin-left: 4px; }
.tok-own { background: color-mix(in srgb, var(--hl-yellow) 22%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hl-yellow) 55%, transparent); }
.v-keep { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; height: auto; min-height: 190px; }
.log { display: grid; grid-template-columns: 52px 1fr 70px 70px; gap: 8px; font-size: 0.75rem; padding: 9px 12px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.log.log-forget { display: grid; grid-template-columns: 1fr; }
.log-forget > span { grid-area: 1 / 1; min-width: 0; }
.forget-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 400ms ease, transform 450ms var(--ease); }
.forget-gone { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); font-style: italic; opacity: 0; transform: translateY(5px); transition: opacity 400ms ease 200ms, transform 450ms var(--ease) 200ms; }
.is-forgotten .forget-text { opacity: 0; transform: translateY(-5px); }
.is-forgotten .forget-gone { opacity: 1; transform: none; }
.flag { margin-top: 6px; font-size: 0.75rem; color: var(--muted); }
.flag b { font: 600 0.625rem var(--display); padding: 3px 5px; border-radius: 4px; background: var(--ink); color: var(--bg); margin-right: 6px; }
.v-everywhere span { font-size: 0.7812rem; font-weight: 600; padding: 7px 11px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.v-everywhere span.is-on { box-shadow: 0 0 0 1.5px var(--orange); }
@media (max-width: 53.75em) { .diffs { grid-template-columns: 1fr; } .log { grid-template-columns: 44px 1fr 60px 60px; } }

/* ---------- ACTE 5 · direction ---------- */
.act-direction { overflow: hidden; }
.direction-bg { position: absolute; inset: 0; background: var(--direction-img) center / cover; filter: var(--photo-filter); }
[data-identity="open"] .direction-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 30%, rgba(0,0,0,.45)), var(--noise); background-blend-mode: normal, overlay; }
[data-identity="etudes"] .direction-bg { background: var(--fog); }
.direction-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.ticks li { padding-left: 28px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 5px; border-radius: 2px; background: var(--hl-yellow); }
.console { border-radius: 22px; padding: 24px; background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0,0,0,.6); }
.console-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
.example { font-size: 0.6875rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); color: var(--faint); }
.console-kpi { margin-top: 18px; display: flex; align-items: baseline; gap: 12px; }
.console-kpi b { font: 400 2.75rem/1 var(--display); letter-spacing: -0.03em; }
.console-kpi span { font-size: 0.875rem; color: var(--muted); }
.console-bars { margin-top: 18px; display: grid; gap: 8px; }
.console-bars p { display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 10px; font-size: 0.7812rem; color: var(--muted); }
.console-bars i { height: 8px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.console-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease) calc(250ms + var(--i, 0) * 80ms); }
.console.is-live .console-bars i::after { transform: none; }
.console-events tr:not(:first-child) { opacity: 0; transform: translateY(6px); transition: opacity 400ms ease, transform 450ms var(--ease); transition-delay: calc(500ms + var(--i, 0) * 140ms); }
.console.is-live .console-events tr { opacity: 1; transform: none; }
.console-bars em { font-style: normal; text-align: right; }
.console-events { margin-top: 20px; width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.console-events th { text-align: left; font-weight: 600; font-size: 0.7188rem; color: var(--faint); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.console-events td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 60em) { .direction-grid { grid-template-columns: 1fr; gap: 40px; } .console-events th:nth-child(4), .console-events td:nth-child(4) { display: none; } }

/* ---------- ACTE 6 · setup ---------- */
.steps { list-style: none; margin: 56px 0 0; padding: 0; }
.step p { color: var(--muted); max-width: 32em; }
.setup-onprem { margin-top: 32px; }
.setup-onprem a { color: var(--muted); text-underline-offset: 3px; transition: color 150ms; }
/* A vertical thread with a dot per step */
.act-setup .steps { max-width: 720px; }
.act-setup .step { position: relative; padding: 0 0 36px 44px; }
.act-setup .step::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.act-setup .step::after { content: ""; position: absolute; left: 6px; top: calc(.42em + 14px); bottom: -.42em; width: 2px; background: var(--line); }
.act-setup .step:last-child { padding-bottom: 0; }
.act-setup .step:last-child::after { display: none; }
.act-setup .step-title { font: 500 1.5rem/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }

/* ---------- ACTE 7 · ruler pricing ---------- */
.act-tarifs { background: var(--bg-2); }
.ruler { margin: 56px 0 18px; display: grid; grid-template-columns: 1fr 2.2fr 2.6fr 1.2fr; gap: 6px; }
.seg { padding-top: 18px; border-top: 6px solid var(--orange); }
.seg-free { border-top-color: var(--hl-yellow); }
.seg-quote { border-top: 6px dashed var(--faint); }
.seg-range { display: block; font-size: 0.8125rem; color: var(--muted); }
.seg b { display: block; margin-top: 6px; font: 400 clamp(1.5rem, 2.6vw, 2.25rem)/1 var(--display); letter-spacing: -0.03em; }
.act-tarifs .btn { margin-top: 28px; }
@media (max-width: 45em) { .ruler { grid-template-columns: 1fr 1fr; row-gap: 24px; } }

/* ---------- ACTE 8 · FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height 300ms var(--settle), content-visibility 300ms allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font: 500 1.125rem/1.35 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font: 400 1.375rem var(--body); color: var(--faint); transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
@media (max-width: 53.75em) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- ACTE 9 · CTA ---------- */
.act-cta { overflow: hidden; padding-bottom: 140px; }
.cta-bg { position: absolute; inset: 0; background: var(--cta-img) center / cover; filter: var(--photo-filter); }
[data-identity="open"] .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.88), rgba(0,0,0,.55) 60%, rgba(0,0,0,.8)), var(--noise); background-blend-mode: normal, overlay; }
[data-identity="etudes"] .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.97) 35%, rgba(255,255,255,.7)); }
.cta-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.display-cta { font-size: clamp(1.875rem, 3.6vw, 3.375rem); }
.display-cta + .actions { margin-top: 36px; }
.contact { border-radius: 22px; padding: 26px; display: grid; gap: 14px; background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 1px var(--line); }
.contact-title { font: 500 1.125rem var(--display); }
.contact label { display: grid; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.contact input, .contact textarea { font: 400 1rem var(--body); color: var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; resize: vertical; }
.form-status { min-height: 1.25em; font-size: 0.8125rem; color: var(--muted); }
.form-status.success { color: var(--hl-yellow); }
.form-status.error { color: var(--red); }
.contact input:focus, .contact textarea:focus { outline: 2px solid color-mix(in srgb, var(--orange) 60%, transparent); outline-offset: 0; }
@media (max-width: 53.75em) { .cta-grid { grid-template-columns: 1fr; gap: 40px; } }

.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 0.8125rem; color: var(--faint); }

/* Hover only where a precise pointer can hover: never sticky after a tap */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--orange) 88%, #000); }
  .btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .nav-contact:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .footer a:hover, .setup-onprem a:hover { color: var(--ink); }
  .scene:hover .scene-media { transform: scale(1.07); }
  .replay-tabs button:not(.is-on):hover { color: var(--ink); }
}
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }


/* ---------- Reveal on scroll (opacity + small rise, critically damped feel) ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 900ms var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Prototype switcher (not part of the design) ---------- */
.px-switch { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 4px; background: #111; color: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 0 0 2px #ffd444, 0 12px 30px rgba(0,0,0,.35); font: 600 0.8125rem ui-monospace, Menlo, monospace; }
.px-switch button { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }

.px-switch span { padding: 0 12px; min-width: 230px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  .hero { position: relative; }
  .hl { background-size: 100% 88%; color: var(--hl-ink); }
  .rv { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .console, .contact { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
}
