/* =========================================================
   LAYBALL — Site vitrine
   Ambiance "terrain de basket éclairé la nuit"
   ========================================================= */

:root {
  --bg:        #0E0E0E;
  --bg-2:      #1A1A1A;
  --bg-3:      #161616;
  --orange:    #FF6B1A;
  --orange-2:  #D14F00;
  --cream:     #F5F1E8;
  --muted:     #8A8A8A;
  --line:      rgba(245, 241, 232, 0.10);
  --card:      rgba(255, 255, 255, 0.035);
  --card-line: rgba(255, 255, 255, 0.08);

  --glow-orange: rgba(255, 107, 26, 0.45);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.04; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--orange); color: #1a1a1a; padding: 10px 16px;
  border-radius: 10px; font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.accent { color: var(--orange); }

/* =========================================================
   Background FX (parallaxe + halos)
   ========================================================= */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  will-change: transform;
}
.glow--orange {
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  top: -16vw; right: -12vw;
  background: radial-gradient(circle, var(--glow-orange), transparent 65%);
}
.glow--deep {
  width: 52vw; height: 52vw; max-width: 640px; max-height: 640px;
  bottom: -18vw; left: -12vw;
  background: radial-gradient(circle, rgba(209,79,0,.30), transparent 65%);
}

.court-lines {
  position: absolute; inset: -10% -10% auto -10%; height: 140%;
  background-image:
    linear-gradient(transparent 0, transparent calc(100% - 1px), var(--line) 100%),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--line) 100%);
  background-size: 70px 70px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  opacity: .5; will-change: transform;
}

.grain {
  position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Aurora : nappes de couleur qui dérivent + réagissent au scroll */
.aurora {
  position: absolute; inset: -25%;
  background:
    radial-gradient(38% 46% at 18% 28%, rgba(255,107,26,.20), transparent 60%),
    radial-gradient(42% 40% at 82% 22%, rgba(209,79,0,.18), transparent 62%),
    radial-gradient(50% 50% at 65% 82%, rgba(255,140,40,.14), transparent 62%),
    radial-gradient(40% 40% at 30% 78%, rgba(120,40,0,.16), transparent 60%);
  filter: blur(42px);
  transform: translateY(calc(var(--scroll, 0) * -180px)) rotate(calc(var(--scroll, 0) * 30deg)) scale(1.1);
  will-change: transform;
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  100% { background-position: 10% -6%, -8% 8%, 6% 10%, -10% -8%; }
}

/* Traînées de lumière diagonales qui glissent au scroll */
.streaks {
  position: absolute; inset: -10%;
  background-image: repeating-linear-gradient(
    115deg, transparent 0 70px, rgba(255,107,26,.045) 70px 72px, transparent 72px 140px
  );
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent 80%);
  transform: translateY(calc(var(--scroll, 0) * 240px));
  opacity: .7; will-change: transform;
}

/* Énorme ballon de basket en fond (haut-droite), tourne au scroll */
.court-ball {
  position: absolute; top: -16%; right: -14%;
  width: min(78vw, 940px); height: auto; aspect-ratio: 1;
  color: var(--orange); opacity: .07;
  transform: rotate(calc(-8deg + var(--scroll, 0) * 46deg));
  transform-origin: 60% 40%;
  will-change: transform;
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 55%, transparent 78%);
  mask-image: radial-gradient(circle at 60% 40%, #000 55%, transparent 78%);
}

/* Projecteur qui balaie (réagit au scroll en intensité/position) */
.spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(
    34vw 60vh at calc(50% + (var(--scroll, 0) - 0.5) * 55vw) calc(var(--scroll, 0) * 100vh),
    rgba(255,140,50,.12), transparent 70%
  );
  mix-blend-mode: screen; will-change: background;
}

/* Particules type braises de gymnase */
.particles { position: absolute; inset: 0; overflow: hidden; }
.particles span {
  position: absolute; bottom: -6%; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffb277, rgba(209,79,0,.55));
  box-shadow: 0 0 10px rgba(255,107,26,.7);
  opacity: 0;
  animation: emberRise var(--d) linear infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}
@keyframes emberRise {
  0%   { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
  10%  { opacity: .65; }
  50%  { transform: translate3d(18px, -55vh, 0) scale(1); }
  85%  { opacity: .5; }
  100% { transform: translate3d(-12px, -112vh, 0) scale(.6); opacity: 0; }
}

/* =========================================================
   Jauge de scroll — ballon de basket (desktop)
   ========================================================= */
.scroll-gauge {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%);
  height: min(54vh, 460px); width: 40px; z-index: 80;
  display: none; flex-direction: column; align-items: center;
  pointer-events: none;
}
.scroll-gauge__track {
  position: relative; width: 3px; height: 100%;
  background: rgba(245,241,232,.12); border-radius: 999px;
}
.scroll-gauge__fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--orange), var(--orange-2));
  border-radius: 999px; box-shadow: 0 0 14px var(--glow-orange);
}
.scroll-gauge__ball {
  position: absolute; left: 50%; top: 0;
  width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(255,107,26,.5));
  will-change: top, transform;
}
.scroll-gauge__ball svg { display: block; width: 100%; height: 100%; max-width: none; }

/* Cerceau en bas : le ballon "marque" en fin de page */
.scroll-gauge__hoop {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.scroll-gauge__rim {
  width: 30px; height: 8px; border: 2.5px solid var(--orange);
  border-radius: 50%; box-shadow: 0 0 12px var(--glow-orange);
}
.scroll-gauge__net {
  width: 24px; height: 16px; margin-top: -2px;
  background:
    repeating-linear-gradient(90deg, rgba(245,241,232,.45) 0 1px, transparent 1px 5px);
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

@media (min-width: 1120px) and (pointer: fine) {
  .scroll-gauge { display: flex; }
}

/* =========================================================
   Header — capsule flottante (style glassmorphism)
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: clamp(14px, 2.4vw, 22px) var(--gutter) 0;
  display: flex; justify-content: center;
  pointer-events: none; /* seuls les enfants captent les clics */
}

.navbar {
  pointer-events: auto;
  width: 100%; max-width: 920px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 30px -8px rgba(0, 0, 0, 0.35),
    0 2px 6px -2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: max-width .4s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.site-header.is-scrolled .navbar {
  max-width: 860px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 14px 38px -10px rgba(0, 0, 0, 0.45),
    0 2px 6px -2px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Logo (sombre sur fond clair) */
.logo { display: inline-flex; align-items: center; gap: 9px; justify-self: start; }
.logo__mark { color: var(--orange); display: inline-flex; transition: transform .4s var(--ease); }
.logo:hover .logo__mark { transform: rotate(75deg); }
.logo__text { font-family: var(--font-display); font-size: 22px; letter-spacing: .05em; color: #1A1A1A; }

/* Liens centraux */
.navbar__links { display: flex; align-items: center; gap: 26px; justify-self: center; }
.navbar__links a {
  font-size: 14.5px; font-weight: 600; color: #2A2A2A;
  position: relative; transition: color .25s var(--ease);
}
.navbar__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--orange); border-radius: 2px; transition: width .3s var(--ease);
}
.navbar__links a:hover { color: var(--orange); }
.navbar__links a:hover::after { width: 100%; }

/* Bouton d'action capsule noir */
.navbar__cta {
  justify-self: end;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  color: #fff; background: #141414;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .3s var(--ease);
}
.navbar__cta:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); }
.navbar__cta:active { transform: translateY(0); }

.site-header :focus-visible { outline-offset: 4px; }

@media (max-width: 760px) {
  .navbar { grid-template-columns: auto 1fr auto; padding-left: 18px; }
  .navbar__links { display: none; }
  .navbar__cta { padding: 11px 18px; font-size: 13.5px; }
}
@media (max-width: 420px) {
  .navbar__cta { font-size: 0; padding: 11px; }
  .navbar__cta::before { content: "Liste d'attente"; font-size: 13px; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #160a02;
  box-shadow: 0 8px 30px -8px var(--glow-orange);
}
.btn--primary:hover { box-shadow: 0 14px 44px -8px var(--glow-orange); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--card-line);
  color: var(--cream); padding: 10px 18px; font-size: 14px;
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* App Store badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 14px;
  border: 1px solid var(--card-line); background: rgba(255,255,255,.04);
  color: var(--cream); transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.appstore-badge:hover { transform: translateY(-2px); border-color: rgba(245,241,232,.3); background: rgba(255,255,255,.07); }
.appstore-badge__icon { color: var(--cream); flex: none; }
.appstore-badge__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore-badge__small { font-size: 11px; letter-spacing: .04em; opacity: .7; text-transform: uppercase; }
.appstore-badge__big { font-family: var(--font-display); font-size: 19px; letter-spacing: .02em; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: clamp(150px, 18vh, 220px); padding-bottom: 60px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center; width: 100%; }

.hero__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
  padding: 7px 14px; border: 1px solid rgba(255,107,26,.35); border-radius: 999px;
  background: rgba(255,107,26,.06); margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 118px);
  letter-spacing: .005em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; gap: 0 .28em;
}
.hero__title .word {
  display: inline-block; opacity: 0; transform: translateY(40%) rotate(4deg);
}
.hero__title .word--accent {
  color: transparent;
  background: linear-gradient(180deg, var(--orange), var(--orange-2));
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 0 38px rgba(255,107,26,.35);
}
.is-loaded .hero__title .word { animation: wordIn .8s var(--ease) forwards; }
.is-loaded .hero__title .word:nth-child(1) { animation-delay: .05s; }
.is-loaded .hero__title .word:nth-child(2) { animation-delay: .12s; }
.is-loaded .hero__title .word:nth-child(3) { animation-delay: .19s; }
.is-loaded .hero__title .word:nth-child(4) { animation-delay: .30s; }
.is-loaded .hero__title .word:nth-child(5) { animation-delay: .37s; }
.is-loaded .hero__title .word:nth-child(6) { animation-delay: .44s; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0) rotate(0); } }

.hero__subtitle { font-size: clamp(16px, 2vw, 19px); color: rgba(245,241,232,.78); max-width: 32em; margin-top: 26px; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }

.hero__stats {
  display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 46px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__stats li { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 44px); color: var(--orange); line-height: 1; }
.stat__unit { font-family: var(--font-display); font-size: 15px; color: var(--cream); margin-top: 4px; }
.stat__label { font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }

/* Device mockup (vrai screenshot d'app) */
.device {
  position: relative; padding: 9px; border-radius: 40px;
  background: linear-gradient(155deg, #2c2c2c, #0b0b0b);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.85),
    inset 0 0 0 1.5px rgba(0,0,0,.5),
    inset 0 2px 2px rgba(255,255,255,.06);
}
.device img {
  display: block; width: 100%; height: auto; border-radius: 31px;
}
/* reflet vitré subtil */
.device::after {
  content: ""; position: absolute; inset: 9px; border-radius: 31px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 35%);
  mix-blend-mode: screen;
}

.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__phone {
  width: min(300px, 74%); z-index: 2;
  box-shadow:
    0 50px 90px -34px rgba(0,0,0,.9),
    0 0 80px -10px var(--glow-orange),
    inset 0 0 0 1.5px rgba(0,0,0,.5);
  transition: transform .4s var(--ease);
}
.device__floor {
  position: absolute; bottom: -4%; left: 50%; transform: translateX(-50%);
  width: 78%; height: 50px; z-index: 1;
  background: radial-gradient(ellipse, rgba(255,107,26,.22), transparent 70%);
  filter: blur(14px);
}
.hero__chip {
  position: absolute; z-index: 3; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--cream);
  padding: 9px 14px; border-radius: 999px;
  background: rgba(20,20,20,.75); backdrop-filter: blur(8px);
  border: 1px solid var(--card-line);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.8);
  animation: floatChip 5s ease-in-out infinite;
}
.hero__chip--1 { top: 16%; right: -2%; border-color: rgba(255,107,26,.4); color: #ffd0ad; }
.hero__chip--2 { bottom: 14%; left: -6%; animation-delay: -2.5s; }
@keyframes floatChip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(245,241,232,.35); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 999px; background: var(--orange); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-bottom: 8px; }
  .hero__phone { width: min(248px, 62%); }
  .hero__chip--1 { right: 2%; }
  .hero__chip--2 { left: 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .hero__chip { display: none; }
}

/* =========================================================
   Capabilities — bande défilante (preuve de capacité)
   ========================================================= */
.caps {
  position: relative; padding: 26px 0 30px; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,107,26,.06), transparent 70%);
}
.caps__label {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px; padding-inline: var(--gutter); text-align: center;
}
.caps__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none;
  box-shadow: 0 0 0 0 rgba(255,107,26,.6); animation: pulse 2s ease-out infinite;
}
.marquee {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.caps__group { display: flex; align-items: center; flex: none; }
.caps__group li {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 30px);
  letter-spacing: .02em; text-transform: uppercase; color: var(--cream);
  padding-left: 26px; opacity: .92;
}
.caps__group li::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,107,26,.55); margin-left: 26px;
}
.caps__group li.cap--accent { color: var(--orange); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   Sections génériques
   ========================================================= */
.section { position: relative; padding: clamp(72px, 12vw, 140px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title { font-family: var(--font-display); font-size: clamp(34px, 6vw, 64px); text-transform: uppercase; letter-spacing: .01em; }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.lead { font-size: clamp(16px, 2vw, 19px); color: rgba(245,241,232,.78); }

/* ---------- Variantes de fond de section ---------- */
/* Panneau sombre légèrement relevé + halo orange */
.section--panel {
  position: relative;
  background: linear-gradient(180deg, #0b0b0b 0%, #151515 45%, #0b0b0b 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section--panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 50% at 50% 0%, rgba(255,107,26,.10), transparent 60%);
}
.section--panel > .container { position: relative; z-index: 1; }

/* Bande teintée orange (ambiance projecteur) */
.section--tint {
  position: relative;
  background:
    radial-gradient(80% 90% at 50% 50%, rgba(255,107,26,.10), transparent 70%),
    linear-gradient(180deg, transparent, rgba(209,79,0,.06) 50%, transparent);
}

/* Section claire (rupture crème, texte sombre) */
.section--light {
  background: var(--cream);
  color: #1A1A1A;
}
.section--light::before,
.section--light::after {
  content: ""; position: absolute; left: 0; right: 0; height: 140px; z-index: 2; pointer-events: none;
}
.section--light::before { top: 0; background: linear-gradient(180deg, #0E0E0E, transparent); }
.section--light::after { bottom: 0; background: linear-gradient(0deg, #0E0E0E, transparent); }
.section--light .kicker { color: var(--orange-2); }
.section--light .kicker::before { background: var(--orange-2); }
.section--light .section__title { color: #161616; }
.section--light .accent { color: var(--orange-2); text-shadow: none; }
.section--light p { color: #5a5346; }

/* Effet de fond clair pour les sections Mon histoire + Fonctionnalités */
.features.section--light,
.founder.section--light {
  background:
    radial-gradient(60% 55% at 50% -5%, rgba(255,107,26,.12), transparent 60%),
    radial-gradient(rgba(26,26,26,.055) 1.4px, transparent 1.5px) 0 0 / 26px 26px,
    linear-gradient(180deg, #F7F2E8, #EFE8DA);
}
.features.section--light > .container,
.founder.section--light > .container { position: relative; z-index: 1; }

/* Jonction crème continue entre Mon histoire et Fonctionnalités (pas de fondu sombre intermédiaire) */
.founder.section--light::after,
.features.section--light::before { display: none; }

/* Cartes adaptées au fond clair */
.section--light .feature-card {
  background: linear-gradient(180deg, #ffffff, #fbf6ec);
  border-color: rgba(26,26,26,.08);
  box-shadow: 0 20px 44px -26px rgba(40,20,0,.35);
}
.section--light .feature-card::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,107,26,.14), transparent 55%);
}
.section--light .feature-card:hover {
  border-color: rgba(255,107,26,.45);
  background: #ffffff;
  box-shadow: 0 28px 56px -26px rgba(209,79,0,.45);
}
.section--light .feature-card h3 { color: #161616; }
.section--light .feature-card p { color: #5f5848; }
.section--light .feature-card__icon {
  background: rgba(255,107,26,.12); border-color: rgba(255,107,26,.35); color: var(--orange-2);
}

/* ---------- Concept ---------- */
.concept__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.concept__points { margin-top: 28px; display: grid; gap: 14px; }
.concept__points li { display: flex; align-items: flex-start; gap: 12px; color: rgba(245,241,232,.85); }
.concept__points .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); margin-top: 9px; flex: none; box-shadow: 0 0 12px var(--glow-orange); }

.concept__visual { display: flex; justify-content: center; }
.live-shot {
  position: relative; margin: 0; width: 100%; max-width: 440px;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-line);
  box-shadow: 0 40px 80px -34px rgba(0,0,0,.85), 0 0 70px -18px var(--glow-orange);
  transform: rotate(-1.5deg); transition: transform .5s var(--ease);
}
.live-shot:hover { transform: rotate(0); }
.live-shot img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 50%;
}
.live-shot__badge {
  position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--cream);
  padding: 7px 13px; border-radius: 999px;
  background: rgba(10,10,10,.7); backdrop-filter: blur(8px); border: 1px solid var(--card-line);
}
.live-shot__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,107,26,.6); animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,107,26,.55); }
  100% { box-shadow: 0 0 0 12px rgba(255,107,26,0); }
}

@media (max-width: 820px) {
  .concept__grid { grid-template-columns: 1fr; }
}

/* ---------- Mon histoire / Fondateur ---------- */
.founder__grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.founder__visual { display: flex; justify-content: center; }
.founder__photo {
  position: relative; margin: 0; width: 100%; max-width: 420px;
  aspect-ratio: 791 / 1024; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-line);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.9), 0 0 80px -20px var(--glow-orange);
  transform: rotate(-1.5deg); transition: transform .5s var(--ease);
}
.founder__photo:hover { transform: rotate(0); }
.founder__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.founder__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,107,26,.16), transparent 60%),
    radial-gradient(80% 50% at 50% 120%, rgba(255,107,26,.22), transparent 60%),
    linear-gradient(180deg, #1c1c1c, #0e0e0e);
}
.founder__ph svg { width: 48px; height: 48px; color: var(--orange); opacity: .85; }
.founder__ph p {
  margin: 0; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .04em; color: rgba(245,241,232,.58); font-size: 14px; line-height: 1.4;
}
.founder__ph p span {
  display: block; margin-top: 5px; font-family: var(--font-body);
  text-transform: none; letter-spacing: 0; font-size: 12px; color: rgba(245,241,232,.4);
}
.founder__badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--cream);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(10,10,10,.7); backdrop-filter: blur(8px); border: 1px solid var(--card-line);
}
.founder__badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,107,26,.6); animation: pulse 2s ease-out infinite;
}

.founder__lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--cream); font-weight: 500; margin-top: 20px; }
.founder__text > p { margin-top: 16px; color: rgba(245,241,232,.78); max-width: 58ch; }
.founder__quote {
  margin: 26px 0; padding: 16px 22px; border-left: 3px solid var(--orange); border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(255,107,26,.10), transparent);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; line-height: 1.15;
  font-size: clamp(20px, 2.6vw, 28px); color: var(--cream);
}
.founder__sign { margin-top: 30px; display: flex; align-items: center; gap: 16px; }
.founder__sign-line { width: 34px; height: 2px; background: var(--orange); flex: none; }
.founder__sign-name { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 22px; letter-spacing: .02em; color: var(--cream); }
.founder__sign-role { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Adaptation au fond clair (crème) */
.founder.section--light .founder__lead { color: #161616; }
.founder.section--light .founder__text > p { color: #5a5346; }
.founder.section--light .founder__quote {
  color: #161616; border-left-color: var(--orange-2);
  background: linear-gradient(90deg, rgba(255,107,26,.14), transparent);
}
.founder.section--light .founder__sign-line { background: var(--orange-2); }
.founder.section--light .founder__sign-name { color: #161616; }
.founder.section--light .founder__sign-role { color: #6a6357; }

@media (max-width: 820px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__photo { max-width: 360px; }
}

/* Sur mobile : photo au-dessus du texte */
@media (max-width: 820px) {
  .founder .founder__visual { order: -1; }
}

/* ---------- Features ---------- */
.features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  position: relative; padding: 34px 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-line);
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  will-change: transform;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,107,26,.14), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(255,107,26,.4); background: rgba(255,255,255,.05); }
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,107,26,.12); border: 1px solid rgba(255,107,26,.3); color: var(--orange);
  margin-bottom: 22px; transition: transform .4s var(--ease);
}
.feature-card:hover .feature-card__icon { transform: scale(1.08) rotate(-4deg); }
.feature-card__icon svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.01em; }
.feature-card p { color: rgba(245,241,232,.7); font-size: 15.5px; position: relative; }

@media (max-width: 720px) { .features__grid { grid-template-columns: 1fr; } }

/* ---------- Showcase (galerie iPhones en escalier, entiers) ---------- */
.showcase { overflow: hidden; }
.showcase__stage {
  position: relative; display: flex; justify-content: center; align-items: center;
  margin-top: 36px; padding: 30px 0;
}
/* halo derrière la galerie */
.showcase__stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72%; height: 86%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,26,.24), transparent 65%);
  filter: blur(56px); z-index: 0;
}
.device--showcase {
  width: clamp(186px, 22vw, 270px); flex: none; position: relative; z-index: 1;
  transition: transform .5s var(--ease);
}
.device--showcase figcaption {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--cream);
  padding: 6px 13px; border-radius: 999px;
  background: rgba(10,10,10,.72); backdrop-filter: blur(8px);
  border: 1px solid var(--card-line); box-shadow: 0 10px 24px -12px rgba(0,0,0,.8);
}
.showcase__phone--a { transform: translateY(26px) rotate(-6deg); margin-right: -26px; z-index: 1; }
.showcase__phone--b { transform: translateY(-8px) scale(1.05); z-index: 3; }
.showcase__phone--c { transform: translateY(26px) rotate(6deg); margin-left: -26px; z-index: 1; }
.showcase__phone--a:hover { transform: translateY(14px) rotate(-2deg); z-index: 4; }
.showcase__phone--c:hover { transform: translateY(14px) rotate(2deg); z-index: 4; }

@media (max-width: 720px) {
  .showcase__stage { flex-wrap: wrap; gap: 26px; padding: 16px 0; }
  .device--showcase { width: min(66%, 232px); }
  .showcase__phone--a, .showcase__phone--b, .showcase__phone--c {
    transform: none; margin: 0; z-index: 1;
  }
}

/* =========================================================
   Story — scrollytelling épinglé "Comment ça marche"
   ========================================================= */
.story { position: relative; height: 440vh; }
.story__sticky {
  position: sticky; top: 0; height: 100vh; min-height: 640px;
  display: flex; align-items: center; overflow: hidden;
}
.story__layout {
  display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(30px, 6vw, 80px);
  align-items: center; width: 100%;
}

.story__steps { margin-top: clamp(24px, 4vw, 40px); display: grid; gap: 10px; }
.story__step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 20px; border-radius: 16px;
  border: 1px solid transparent; opacity: .38;
  transition: opacity .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.story__step.is-active {
  opacity: 1; background: rgba(26,26,26,.05);
  border-color: rgba(209,79,0,.25); transform: translateX(4px);
}
.story__index {
  font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--orange-2);
  min-width: 44px;
}
.story__step.is-active .story__index { color: var(--orange); }
.story__copy h3 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; margin-bottom: 4px; }
.story__copy p { font-size: 15.5px; line-height: 1.55; }

/* Progress bar à gauche des étapes */
.story__steps { position: relative; padding-left: 4px; }

/* Stage : téléphone qui change d'écran */
.story__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.story__phone {
  position: relative; width: min(300px, 78%); aspect-ratio: 472 / 1024;
  box-shadow: 0 50px 90px -34px rgba(0,0,0,.55), 0 0 80px -16px var(--glow-orange);
  transform-origin: 50% 50%;
  transition: transform .85s cubic-bezier(.65,.02,.25,1);
}
/* Étape "Joue" : le téléphone bascule à l'horizontal (session caméra) */
.story__phone.is-landscape { transform: rotate(90deg) scale(.62); }
.story__phone.is-landscape .story__tag { opacity: 0; }
.story__screen {
  position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px);
  object-fit: cover; border-radius: 31px; max-width: none;
  opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.story__screen.is-active { opacity: 1; transform: none; }
.story__tag {
  position: absolute; top: 16px; left: 50%; transform: translate(-50%, -8px);
  font-family: var(--font-display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: #160a02; background: linear-gradient(135deg, var(--orange), var(--orange-2));
  padding: 6px 16px; border-radius: 999px; z-index: 4;
  opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease);
  box-shadow: 0 10px 24px -10px var(--glow-orange);
}
.story__tag.is-active { opacity: 1; transform: translate(-50%, 0); }
.story__dots { display: flex; gap: 10px; }
.story__dots span {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(26,26,26,.2);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.story__dots span.is-active { background: var(--orange); transform: scale(1.35); }

/* Jauge de progression verticale (mobile) */
.story__rail { display: none; }

@media (max-width: 820px) {
  /* Mobile : animation épinglée mais compacte (1 étape visible à la fois) */
  .story { height: 360vh; }
  .story__sticky { height: 100svh; min-height: 0; padding: 84px 0 28px; }
  .story__layout {
    grid-template-columns: 1fr; gap: 16px; text-align: center; justify-items: center;
  }
  .story__intro { min-width: 0; order: 2; width: 100%; }
  .story__intro .section__title { display: none; }
  .story__intro .kicker { justify-content: center; margin-bottom: 4px; }
  .story__stage { order: 1; gap: 16px; }
  .story__phone { width: min(190px, 50vw); }

  /* une seule étape affichée : l'active */
  .story__steps { margin-top: 0; display: block; max-width: 420px; min-height: 96px; }
  .story__step {
    display: none; opacity: 1; padding: 0; border: 0; background: none !important;
    transform: none !important; text-align: center; justify-content: center;
  }
  .story__step.is-active { display: flex; }
  .story__step .story__index { display: none; }
  .story__copy h3 { font-size: 20px; }
  .story__copy p { font-size: 15px; }
  .story__tag { display: none; }
  .story__dots { display: flex; }

  .story__rail {
    display: block; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 4px; height: min(48vh, 320px); border-radius: 999px;
    background: rgba(26,26,26,.14); z-index: 5;
  }
  .story__rail-fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 0; border-radius: 999px;
    background: linear-gradient(180deg, var(--orange), var(--orange-2));
    box-shadow: 0 0 10px rgba(255,107,26,.5);
  }
  .story__rail-tick {
    position: absolute; left: 50%; transform: translate(-50%, -50%);
    width: 11px; height: 11px; border-radius: 50%;
    background: #d8d0c0; border: 2px solid var(--cream);
    transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
  }
  .story__rail-tick.is-active {
    background: var(--orange); transform: translate(-50%, -50%) scale(1.25);
    box-shadow: 0 0 0 4px rgba(255,107,26,.18);
  }
}
@media (max-width: 820px) and (max-height: 720px) {
  .story__sticky { padding-top: 68px; }
  .story__phone { width: min(152px, 40vw); }
  .story__copy p { display: none; }
}

/* ---------- Waitlist ---------- */
.waitlist { text-align: center; }
.waitlist__inner {
  max-width: 720px; margin-inline: auto; padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  border-radius: 28px; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(255,107,26,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid rgba(255,107,26,.25);
}
.waitlist .kicker { justify-content: center; }
.waitlist .lead { margin: 18px auto 0; max-width: 46ch; }
.waitlist__form { margin-top: 32px; }
.field {
  display: flex; gap: 10px; max-width: 520px; margin: 0 auto;
  background: rgba(0,0,0,.4); border: 1px solid var(--card-line); border-radius: 999px; padding: 7px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,107,26,.12); }
.field input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--cream);
  font-size: 16px; padding: 10px 18px; font-family: inherit;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; }
.field .btn { white-space: nowrap; }
.field__hint { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.field__hint.is-error { color: #ff8f6b; }
.field__hint.is-success { color: var(--orange); }

@media (max-width: 520px) {
  .field { flex-direction: column; border-radius: 18px; background: transparent; border: 0; padding: 0; gap: 12px; }
  .field input { background: rgba(0,0,0,.4); border: 1px solid var(--card-line); border-radius: 14px; }
  .field .btn { width: 100%; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); margin-top: 20px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 48px; }
.footer__tagline { color: var(--muted); margin-top: 16px; font-size: 15px; max-width: 24ch; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.footer__col a { display: block; color: rgba(245,241,232,.78); font-size: 15px; padding: 5px 0; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--orange); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--card-line); background: rgba(255,255,255,.03); color: var(--cream);
  transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.socials a:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--orange); }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 34px; border-top: 1px solid var(--line); margin-top: 4px;
  font-size: 13px; color: var(--muted);
}

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%);
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #160a02;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: 0 16px 40px -10px var(--glow-orange); z-index: 300; max-width: 90vw;
  transition: transform .5s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* stagger automatique pour grilles */
.features__grid .feature-card:nth-child(2) { transition-delay: .08s; }
.features__grid .feature-card:nth-child(3) { transition-delay: .16s; }
.features__grid .feature-card:nth-child(4) { transition-delay: .24s; }
.steps__list .step:nth-child(2) { transition-delay: .1s; }
.steps__list .step:nth-child(3) { transition-delay: .2s; }
.concept__points li:nth-child(2) { transition-delay: .08s; }
.concept__points li:nth-child(3) { transition-delay: .16s; }

/* =========================================================
   prefers-reduced-motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__title .word { opacity: 1 !important; transform: none !important; }
  .glow, .court-lines, .hero__visual { transform: none !important; }
  .ball { display: none; }
  .scroll-cue span { animation: none; }
}
