/* Way2Goo — site de présentation. Charte du 12/11/2026 : marine, orange, crème ; bleu réservé
   aux actions et aux liens ; Fredoka (titres) et Inter (texte), hébergées sur le site. */
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('../fonts/fredoka-600.ttf') format('truetype'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('../fonts/fredoka-700.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/inter-400-italic.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.ttf') format('truetype'); }

:root {
  --navy: #1C2B4A; --navy-2: #24365C; --orange: #E03D1C; --orange-on-navy: #FF744E;
  --blue: #1B4FCC; --cream: #F5F0E8; --cream-2: #EDE6DA; --grey: #6E6B64; --forest: #2A4224;
  --green: #1F9D57; --white: #FFFFFF; --line: #E1DBD0;
  --title: 'Fredoka', 'Arial Rounded MT Bold', Arial, sans-serif;
  --text: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  --wrap: 1180px; --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--text); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--title); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange-on-navy); outline-offset: 3px; border-radius: 6px; }

/* ─── En-tête ─── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(28, 43, 74, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.top .logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: #DCE3F0; text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; border-radius: 3px; background: var(--orange-on-navy); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: var(--white); text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 999px; transition: transform .2s, box-shadow .2s; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27, 79, 204, .35); }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }
.btn.small { padding: 10px 18px; font-size: 14.5px; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }

/* ─── Ouverture (marine, typographie géante, étiquettes flottantes) ─── */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; padding: 70px 0 0; }
.hero .wrap { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #AFC0DE; }
.kicker::before { content: ''; width: 28px; height: 3px; background: var(--orange-on-navy); border-radius: 3px; }
.giant { font-size: clamp(54px, 10.5vw, 150px); line-height: .95; margin: 22px 0 0; }
.giant .soft { white-space: nowrap; font-family: var(--text); font-style: italic; font-weight: 400; font-size: .52em; color: var(--orange-on-navy); letter-spacing: 0; vertical-align: .32em; margin-right: .18em; }
.giant .o { color: var(--orange-on-navy); }
.hero-lead { max-width: 560px; color: #D3DCEC; font-size: 19px; margin: 26px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stage { position: relative; margin-top: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.stat { color: var(--white); padding-bottom: 46px; }
.stat b { display: block; font-family: var(--title); font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.stat span { color: #AFC0DE; font-size: 14px; }
.stat.right { text-align: right; }
.tag { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap; animation: float 6s ease-in-out infinite; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.tag::before { content: ''; position: absolute; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 14px solid currentColor; top: -12px; left: -6px; transform: rotate(-35deg); opacity: .9; }
.tag.o { background: var(--orange); color: var(--white); }
.tag.o::before { border-bottom-color: var(--orange); }
.tag.w { background: var(--white); color: var(--navy); }
.tag.w::before { border-bottom-color: var(--white); }
.tag.g { background: var(--green); color: var(--white); }
.tag.g::before { border-bottom-color: var(--green); }
.tag.c { background: var(--cream); color: var(--navy); }
.tag.c::before { border-bottom-color: var(--cream); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Formes géométriques de la charte */
.shape { position: absolute; pointer-events: none; z-index: 0; }
.shape.quarter { width: 220px; height: 220px; background: var(--orange); border-radius: 220px 0 0 0; }
.shape.ring { width: 260px; height: 260px; border: 26px solid rgba(255, 116, 78, .18); border-radius: 50%; }
.shape.disc { width: 120px; height: 120px; border-radius: 50%; background: var(--forest); }

/* ─── Cadres d'appareils ─── */
.phone { position: relative; z-index: 2; width: 300px; border-radius: 44px; padding: 12px; background: #0D1526; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2E3C5C; }
.phone img { border-radius: 33px; width: 100%; height: auto; }
.phone.sm { width: 250px; border-radius: 38px; }
.phone.sm img { border-radius: 28px; }
.browser { position: relative; z-index: 2; border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: 0 30px 70px rgba(28,43,74,.28); border: 1px solid var(--line); }
.browser .bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #F2EEE6; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #D9D2C5; display: block; }
.browser .bar em { margin-left: 14px; font-style: normal; font-size: 12.5px; color: var(--grey); background: var(--white); padding: 3px 12px; border-radius: 8px; }
.demo { position: absolute; z-index: 4; top: 16px; right: 16px; background: rgba(28,43,74,.88); color: var(--white); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; }
.browser .demo { top: 52px; }
.phone .demo { top: auto; bottom: 26px; right: 50%; transform: translateX(50%); }

/* ─── Sections ─── */
section { position: relative; }
.band { padding: 110px 0; position: relative; overflow: hidden; }
.band.navy { background: var(--navy); color: var(--white); }
.band.white { background: var(--white); }
.band.forest { background: var(--forest); color: var(--white); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; display: block; }
.navy .eyebrow, .forest .eyebrow { color: var(--orange-on-navy); }
.h2 { font-size: clamp(36px, 5.2vw, 68px); max-width: 900px; }
.h2 .o { color: var(--orange); }
.navy .h2 .o, .forest .h2 .o { color: var(--orange-on-navy); }
.lead { font-size: 19px; color: var(--grey); max-width: 680px; margin-top: 22px; }
.navy .lead, .forest .lead { color: #D3DCEC; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.split.rev { grid-template-columns: .95fr 1.05fr; }
.split.rev > :first-child { order: 2; }
.visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.visual .tag { animation-duration: 7s; }
.visual .browser { width: 100%; }
.browser img { width: 100%; height: auto; }

/* Cartes des publics */
.publics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.pcard { position: relative; overflow: hidden; background: var(--white); border-radius: var(--radius); padding: 28px 24px 26px; text-decoration: none; color: var(--navy); min-height: 300px; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(28,43,74,.14); }
.pcard .num { font-family: var(--title); font-size: 15px; color: var(--grey); }
.pcard h3 { font-size: 30px; margin: 14px 0 10px; }
.pcard p { color: var(--grey); font-size: 15.5px; }
.pcard .go { margin-top: auto; color: var(--blue); font-weight: 700; font-size: 15px; }
.pcard::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--cream); transition: transform .3s; }
.pcard:hover::after { transform: scale(1.3); }
.pcard.c2::after { background: #FDE3DC; } .pcard.c3::after { background: #DDE6D9; } .pcard.c4::after { background: #E3E9F5; }

/* Avantages */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.benefit { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.navy .benefit { background: var(--navy-2); border-color: #33466F; }
.forest .benefit { background: #33502C; border-color: #3F6136; }
.benefit .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--cream); color: var(--orange); margin-bottom: 18px; }
.navy .benefit .ico, .forest .benefit .ico { background: rgba(255,255,255,.08); color: var(--orange-on-navy); }
.benefit h3 { font-size: 23px; margin-bottom: 8px; }
.benefit p { color: var(--grey); font-size: 15.5px; margin: 0; }
.navy .benefit p, .forest .benefit p { color: #C9D3E6; }
.ico svg { width: 24px; height: 24px; }

/* Étapes */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 2px solid var(--navy); }
.step { padding: 26px 22px 0 0; }
.step::before { counter-increment: s; content: '0' counter(s); display: block; font-family: var(--title); font-size: 56px; line-height: 1; color: var(--orange); margin-bottom: 14px; }
.navy .steps { border-color: rgba(255,255,255,.4); }
.navy .step::before { color: var(--orange-on-navy); }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--grey); font-size: 15.5px; }
.navy .step p { color: #C9D3E6; }

/* Liste à puces cochées */
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 38px; font-size: 17px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks li b { display: block; font-family: var(--title); font-weight: 600; font-size: 20px; }
.checks li span { color: var(--grey); font-size: 15.5px; }
.navy .checks li span, .forest .checks li span { color: #C9D3E6; }

/* Attentes des entreprises */
.expect { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.25); }
.expect > div { padding: 30px 30px 30px 0; border-bottom: 1px solid rgba(255,255,255,.25); display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.expect > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.25); }
.expect > div:nth-child(even) { padding-left: 30px; }
.expect .n { font-family: var(--title); font-size: 40px; line-height: 1; color: var(--orange-on-navy); }
.expect h3 { font-size: 24px; margin-bottom: 6px; }
.expect p { color: #D7DFD2; font-size: 15.5px; margin: 0; }

/* Bandeau d'appel */
.cta { background: var(--orange); color: var(--white); border-radius: 34px; padding: 70px 60px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.cta h2 { font-size: clamp(34px, 4.6vw, 60px); }
.cta p { color: #FFE4DC; font-size: 18px; margin: 16px 0 0; }
.cta .btn { background: var(--navy); }
.cta .btn:hover { box-shadow: 0 10px 24px rgba(28,43,74,.4); }
.cta .acts { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta .ring { position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border: 34px solid rgba(255,255,255,.14); border-radius: 50%; }
.cta small { color: #FFE4DC; font-size: 13.5px; }

/* Bandeau défilant */
.marquee { background: var(--orange); color: var(--white); overflow: hidden; white-space: nowrap; padding: 18px 0; }
.marquee div { display: inline-block; animation: slide 38s linear infinite; font-family: var(--title); font-size: 28px; }
.marquee span { margin: 0 26px; }
.marquee span.dot { color: var(--navy); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Confiance */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.trust div { border-top: 3px solid var(--navy); padding-top: 18px; }
.trust b { font-family: var(--title); font-weight: 600; font-size: 21px; display: block; margin-bottom: 6px; }
.trust span { color: var(--grey); font-size: 15px; }

/* Pied de page */
footer { background: var(--navy); color: #C9D3E6; padding: 80px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot img { height: 34px; width: auto; margin-bottom: 18px; }
.foot h4 { font-family: var(--title); font-weight: 600; color: var(--white); font-size: 18px; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #C9D3E6; text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.sign { font-family: var(--title); font-weight: 600; font-size: clamp(34px, 6vw, 84px); color: var(--white); line-height: 1; margin: 70px 0 30px; }
.sign .o { color: var(--orange-on-navy); }
.legal-line { border-top: 1px solid #33466F; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; font-size: 13.5px; }

/* Page légale */
.doc { max-width: 820px; }
.doc h2 { font-size: 30px; margin: 44px 0 12px; }
.doc p, .doc li { color: #3D3A35; }
.doc table { border-collapse: collapse; width: 100%; margin: 10px 0 20px; font-size: 15.5px; }
.doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td:first-child { font-weight: 700; width: 38%; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Adaptations ─── */
@media (max-width: 1020px) {
  .publics { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .steps, .trust { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; gap: 50px; }
  .split.rev > :first-child { order: 0; }
  .cta { grid-template-columns: 1fr; padding: 50px 34px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; background: var(--navy); }
  .nav.open { display: flex; }
  .nav a[aria-current="page"]::after { display: none; }
  .burger { display: block; }
  .top .btn.small { display: none; }
  .nav .btn.small { display: inline-flex; }
  .hero-stage { grid-template-columns: 1fr; justify-items: center; }
  .stat, .stat.right { text-align: center; padding-bottom: 0; }
  .hero .tag.hide-sm { display: none; }
  .hero-stage .tag, .visual .tag { display: none; }
}
@media (min-width: 861px) { .nav .btn.small { display: none; } }
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .band { padding: 76px 0; }
  .publics, .benefits, .steps, .trust, .expect { grid-template-columns: 1fr; }
  .expect > div, .expect > div:nth-child(even) { padding: 24px 0; border-right: 0; }
  .foot { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .shape.quarter { width: 140px; height: 140px; }
  .tag { font-size: 12px; }
  .hero-lead { font-size: 17px; }
  .giant .soft { display: block; vertical-align: 0; margin: .12em 0 .08em; }
  .giant { font-size: clamp(46px, 14vw, 64px); }
}

/* ═══ Motion design : scènes pilotées par le défilement (motion.js) ═══ */

/* 1. Ville 3D du film */
.story { position: relative; height: 820vh; background: #16223b; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.world-frame { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; overflow: hidden; background: #16223b; }
.world-frame #w-root { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.world-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #16223b 0%, rgba(22,34,59,.55) 18%, rgba(22,34,59,0) 40%); }
.story-slides { position: absolute; left: 0; top: 0; bottom: 0; width: 52%; z-index: 2; display: flex; align-items: center; }
.slide { position: absolute; left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); right: 24px; color: var(--white); opacity: 0; visibility: hidden; will-change: transform, opacity; }
.slide .kicker { margin-bottom: 18px; }
.slide h1, .slide h2 { font-size: clamp(42px, 5.6vw, 92px); line-height: .98; }
.slide h1 .soft, .slide h2 .soft { font-family: var(--text); font-style: italic; font-weight: 400; color: var(--orange-on-navy); font-size: .62em; display: block; margin: .1em 0; }
.slide .o { color: var(--orange-on-navy); }
.slide p { color: #D3DCEC; font-size: 19px; max-width: 520px; margin-top: 22px; }
.slide .big-time { font-family: var(--title); font-weight: 600; font-size: clamp(90px, 13vw, 210px); line-height: .85; color: var(--white); }
.slide .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.slide .chips span { background: var(--white); color: var(--navy); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.slide .chips span.ok::before { content: '✓ '; color: var(--green); }
.slide .hero-actions { margin-top: 30px; }
.story-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.08); z-index: 3; }
.story-progress span { display: block; height: 100%; background: var(--orange-on-navy); transform-origin: 0 50%; transform: scaleX(0); }
.scroll-hint { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 3; color: #AFC0DE; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint::after { content: ''; width: 2px; height: 34px; background: linear-gradient(var(--orange-on-navy), transparent); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.story .loading { position: absolute; inset: 0; display: grid; place-items: center; color: #AFC0DE; z-index: 1; transition: opacity .6s; }
.story.ready .loading { opacity: 0; pointer-events: none; }

/* 2. Scènes épinglées (titre, téléphone, étiquettes) */
.pin { position: relative; height: 230vh; background: var(--navy); color: var(--white); }
.pin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.pin-stage .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pin .giant { transform: translate3d(0, calc(var(--p, 0) * -40px), 0); }
.pin .hero-lead, .pin .hero-actions { opacity: calc(1 - var(--p, 0) * 0.15); }
.scene3d { perspective: 1400px; display: flex; justify-content: center; align-items: center; position: relative; min-height: 560px; }
.scene3d .phone, .scene3d .browser {
  transform: translate3d(0, calc((1 - var(--p, 0)) * 120px), 0) rotateX(calc((1 - var(--p, 0)) * 38deg)) rotateY(calc((1 - var(--p, 0)) * -24deg)) rotateZ(calc((1 - var(--p, 0)) * 6deg)) scale(calc(.82 + var(--p, 0) * .18));
  transform-style: preserve-3d; will-change: transform; }
.scene3d .tag { animation: none; opacity: calc(var(--p, 0) * 3 - var(--d, 0)); transform: translate3d(0, 0, 60px) scale(calc(.6 + min(1, var(--p, 0) * 2) * .4)); }
.scene3d .float-card { position: absolute; z-index: 3; background: var(--white); color: var(--navy); border-radius: 18px; padding: 14px 18px; box-shadow: 0 24px 50px rgba(0,0,0,.3); font-weight: 700; font-size: 14px;
  opacity: clamp(0, calc(var(--p, 0) * 2.4 - 1), 1); transform: translate3d(calc((1 - var(--p, 0)) * 80px), 0, 0); }
.scene3d .float-card small { display: block; color: var(--grey); font-weight: 600; font-size: 12px; }
.pin .shape.ring { transform: rotate(calc(var(--p, 0) * 120deg)) scale(calc(1 + var(--p, 0) * .4)); }
.pin .shape.quarter { transform: scale(calc(1 + var(--p, 0) * .6)); transform-origin: 100% 0; }

/* 3. Panneaux empilés : chaque section reste en place, la suivante la recouvre */
.stack > * { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * .07)); filter: brightness(calc(1 - var(--cover, 0) * .45)); border-radius: calc(var(--cover, 0) * 34px); will-change: transform; }
.stack > * + * { box-shadow: 0 -30px 60px rgba(0,0,0,.18); }
/* Chaque panneau a un fond opaque : sinon le panneau précédent transparaît dessous. */
.stack > .band { background: var(--cream); }
.stack > .band.white { background: var(--white); }
.stack > .band.navy { background: var(--navy); }
.stack > .band.forest { background: var(--forest); }
.stack { position: relative; z-index: 1; background: var(--cream); }

/* Entrées 3D à l'écran */
.js-motion [data-fx="tilt"] { transform: perspective(1300px) rotateX(calc((1 - var(--p, 1)) * 28deg)) translate3d(0, calc((1 - var(--p, 1)) * 80px), 0) scale(calc(.9 + var(--p, 1) * .1)); opacity: calc(.2 + var(--p, 1) * .8); transform-origin: 50% 100%; }
.js-motion [data-fx="rise"] { transform: translate3d(0, calc((1 - var(--p, 1)) * 70px), 0); opacity: var(--p, 1); }
.js-motion .publics[data-fx] .pcard { transform: perspective(1200px) rotateY(calc((1 - var(--p, 1)) * (var(--i) * 14deg - 21deg))) translate3d(0, calc((1 - var(--p, 1)) * (60px + var(--i) * 40px)), calc((1 - var(--p, 1)) * -200px)); }
.js-motion .benefits[data-fx] .benefit { transform: translate3d(0, calc((1 - var(--p, 1)) * (40px + var(--i) * 30px)), 0); opacity: clamp(0, calc(var(--p, 1) * 1.6 - var(--i) * .12), 1); }

@media (max-width: 860px) {
  .story { height: 760vh; }
  .world-frame { width: 100%; }
  .world-frame::after { background: linear-gradient(0deg, #16223b 0%, rgba(22,34,59,.85) 30%, rgba(22,34,59,0) 58%); }
  .story-slides { width: 100%; align-items: flex-end; padding-bottom: 70px; }
  .slide { left: 16px; right: 16px; bottom: 70px; }
  .slide h1, .slide h2 { font-size: clamp(34px, 9.5vw, 48px); }
  .slide .big-time { font-size: 92px; }
  .slide p { font-size: 16px; margin-top: 12px; }
  .pin { height: 200vh; }
  .pin-stage .wrap { grid-template-columns: 1fr; gap: 10px; }
  .pin-stage { align-items: flex-start; padding-top: 90px; }
  .scene3d { min-height: 0; }
  .scene3d .phone { width: 210px; }
  .scene3d .tag, .scene3d .float-card { display: none; }
  .pin .giant { font-size: clamp(40px, 12vw, 58px); transform: none; margin-top: 14px; }
  .pin .hero-lead { font-size: 15.5px; margin: 14px 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint::after { animation: none; }
  .stack > * { transform: none; filter: none; border-radius: 0; }
}
.pin-stats { display: flex; gap: 40px; margin-top: 34px; }
.pin-stats .stat { padding: 0; }
.pin-stats .stat b { font-size: clamp(34px, 3.6vw, 52px); }
.scene3d .browser { width: 100%; }
.phone.app-icon { width: 260px; padding: 0; border-radius: 58px; overflow: hidden; background: var(--navy); box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.phone.app-icon img { border-radius: 0; }
.benefits > :nth-child(1), .publics > :nth-child(1) { --i: 0; } .benefits > :nth-child(2), .publics > :nth-child(2) { --i: 1; }
.benefits > :nth-child(3), .publics > :nth-child(3) { --i: 2; } .benefits > :nth-child(4), .publics > :nth-child(4) { --i: 3; }
.benefits > :nth-child(5) { --i: 4; } .benefits > :nth-child(6) { --i: 5; }
@media (max-width: 860px) { .pin-stats { gap: 24px; margin-top: 18px; } .phone.app-icon { width: 170px; border-radius: 38px; } }
/* Dans les panneaux empilés, le contenu est toujours visible : l'animation vient de l'empilement. */
.stack .reveal { opacity: 1; transform: none; transition: none; }
/* Mobile : empilement simple et léger (pas de réduction ni de filtre animés sur de grands blocs). */
@media (max-width: 860px) {
  .stack > * { transform: none; filter: none; border-radius: 0; will-change: auto; }
  .stack > * + * { box-shadow: 0 -16px 32px rgba(0,0,0,.14); }
  .slide { will-change: auto; }
  .tag { animation: none; }
  .js-motion [data-fx="tilt"] { transform: translate3d(0, calc((1 - var(--p, 1)) * 40px), 0); }
  .js-motion .publics[data-fx] .pcard { transform: translate3d(0, calc((1 - var(--p, 1)) * 30px), 0); }
}
@media (max-width: 860px) {
  /* Textes lisibles de jour comme de nuit : dégradé plus dense sous les textes. */
  .world-frame::after { background: linear-gradient(0deg, #16223b 0%, rgba(22,34,59,.94) 34%, rgba(22,34,59,.7) 50%, rgba(22,34,59,0) 68%); }
  .slide { bottom: 92px; }
  .slide p { text-shadow: 0 1px 12px rgba(22,34,59,.6); }
  .scroll-hint { bottom: 22px; font-size: 11px; gap: 6px; }
  .scroll-hint::after { height: 22px; }
}
