/* ─────────────────────────────────────────────────────────────
   Selfpeak — page vitrine
   Les couleurs reprennent la charte Velvet Obsidian de l'application
   (selfpeak_client/src/style.css). Même source de vérité, recopiée ici
   parce que ce package est volontairement indépendant de l'app.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --bg:        #1A1C26;
  --bg-deep:   #13141A;
  --surface:   #262834;
  --surface2:  #31323E;
  --hairline:  rgba(191,192,209,0.10);
  --hairline2: rgba(191,192,209,0.18);

  --textHi:  #F4F4F8;
  --textMid: #BFC0D1;
  --textLo:  rgba(191,192,209,0.55);
  --textMuted: #60617a;

  --primary: #60519B;
  --glow:    #B9AFE3;
  --success: #1e8a62;
  --danger:  #b83030;

  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;

  --wrap: 1140px;
  --head: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg-deep);
  color: var(--textHi);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15px;
  color: #fff; text-decoration: none; white-space: nowrap;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 82%, #fff 18%),
    var(--primary));
  box-shadow:
    0 8px 28px color-mix(in srgb, var(--primary) 45%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--primary) 58%, transparent),
              inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ─── En-tête ─────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  display: flex; align-items: center; gap: 24px;
  padding-inline: clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.01em; text-decoration: none;
  font-size: 18px;
}
.brand img { width: 36px; height: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--textMid); text-decoration: none; font-size: 15px; font-weight: 600;
  transition: color .15s;
}
.nav-links a:hover { color: var(--textHi); }
.head-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-links + .head-right { margin-left: 0; }

.lang {
  display: flex; border: 1px solid var(--hairline2);
  border-radius: var(--r-pill); overflow: hidden;
}
.lang button {
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--textLo); padding: 7px 12px;
  transition: background .15s, color .15s;
}
.lang button:hover { color: var(--textHi); }
.lang button.is-on { background: var(--surface2); color: var(--textHi); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  /* Le travail de peinture du hero ne déborde pas sur le reste de la page. */
  contain: paint;
  padding: clamp(48px, 8vw, 104px) 0 clamp(120px, 16vw, 200px);
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  width: min(var(--wrap), 100% - 40px); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

/* Aurores : trois taches floues qui dérivent lentement. */
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  /* Sur sa propre couche : le flou est calculé une fois, puis seule la
     translation est recomposée — sinon il est refait à chaque image. */
  will-change: transform;
  transform: translateZ(0);
  /* Surtout pas de `contain` ici : le flou de 90 px déborde largement de la
     boîte, et le confiner découperait la lueur sur des bords nets. */
}
.aurora .a1 {
  width: 46vw; height: 46vw; left: -6vw; top: -8vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 85%, transparent), transparent 68%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora .a2 {
  width: 38vw; height: 38vw; right: -4vw; top: 4vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow) 42%, transparent), transparent 66%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora .a3 {
  width: 50vw; height: 32vw; left: 28vw; top: 28vw;
  background: radial-gradient(circle, color-mix(in srgb, #3b2f6e 80%, transparent), transparent 70%);
  animation: drift1 38s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate3d(5vw, 3vw, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-4vw, 5vw, 0) scale(0.92); } }

/* Crêtes en bas du hero. --p est alimenté par le défilement (main.js). */
.ridges {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(160px, 26vw, 420px);
  z-index: -1;
}
.ridges path { will-change: transform; }
.ridges .r3 { fill: #221f36; transform: translateY(calc(var(--p, 0) * -26px)); }
.ridges .r2 { fill: #2b2748; transform: translateY(calc(var(--p, 0) * -14px)); }
.ridges .r1 { fill: #39336040; transform: translateY(calc(var(--p, 0) * -6px)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--glow);
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--glow) 28%, transparent);
  padding: 7px 15px; border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--glow);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--glow) 70%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
  margin-bottom: 20px;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--glow), #8f7fd4 55%, var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  color: var(--textMid); font-size: clamp(16px, 1.5vw, 18.5px);
  max-width: 54ch; margin-bottom: 30px;
}

/* ─── Formulaire liste d'attente ──────────────────────────── */
.waitlist { max-width: 520px; }
.field {
  display: flex; gap: 8px; padding: 7px;
  background: var(--surface);
  border: 1px solid var(--hairline2);
  border-radius: var(--r-pill);
  transition: border-color .18s, box-shadow .18s;
}
.field:focus-within {
  border-color: color-mix(in srgb, var(--glow) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent);
}
.field input {
  flex: 1 1 auto; min-width: 0;
  background: none; border: 0; outline: none;
  font: inherit; font-size: 15px; color: var(--textHi);
  padding: 10px 8px 10px 18px;
}
.field input::placeholder { color: var(--textMuted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--textLo); margin-top: 12px; }
.form-msg { font-size: 14px; margin-top: 10px; min-height: 1.4em; font-weight: 600; }
.form-msg.ok { color: #7fd3b0; }
.form-msg.ko { color: #fca5a5; }

/* ─── Maquette téléphone ──────────────────────────────────── */
.hero-phone { position: relative; display: grid; place-items: center; }
.phone {
  width: min(300px, 76vw);
  aspect-ratio: 390 / 844;
  background: linear-gradient(160deg, #3a3550, #1d1f2b);
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 50px 90px -30px rgba(0,0,0,.85),
    0 0 0 1px var(--hairline2),
    inset 0 1px 0 rgba(255,255,255,.12);
  transform: rotate(-3deg);
}
.phone picture { display: block; height: 100%; }
.phone-shot {
  width: 100%; height: 100%;
  border-radius: 34px;
  object-fit: cover;
  display: block;
}

.float {
  position: absolute;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline2);
  border-radius: var(--r-md);
  padding: 11px 14px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.8);
  display: grid; gap: 3px;
  animation: bob 7s ease-in-out infinite;
  will-change: transform;
}
/* Posée bas et à gauche : plus haut, elle masquait le minuteur de repos. */
.f1 { left: -7%; bottom: 3%; width: 182px; }
.f2 { right: -2%; top: 10%; width: 150px; animation-delay: -3.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.f-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--textMuted); font-weight: 700; }
.f-value { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.f-value i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--textLo); }
.f-bar { height: 4px; background: var(--surface2); border-radius: var(--r-pill); margin-top: 5px; overflow: hidden; }
.f-bar i { display: block; height: 100%; background: linear-gradient(90deg, #E8835A, #E8C964); }

/* ─── Bandes de contenu ───────────────────────────────────── */
.band { padding: clamp(64px, 9vw, 120px) 0; background: var(--bg-deep); }
.band-alt { background: var(--bg); }

.kicker {
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--glow); margin-bottom: 14px;
}
h2 {
  font-size: clamp(26px, 3.6vw, 42px); line-height: 1.12;
  letter-spacing: -0.03em; font-weight: 800;
  max-width: 20ch;
}
.band .sub { color: var(--textMid); max-width: 62ch; margin-top: 16px; font-size: 17px; }

.duo {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px; margin-top: 46px;
}
.card {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 60%, var(--bg-deep)));
  border: 1px solid var(--hairline); border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
  position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 180px at 85% -10%,
    color-mix(in srgb, var(--primary) 28%, transparent), transparent 70%);
}
.card-ic {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--primary) 32%, transparent);
  border: 1px solid color-mix(in srgb, var(--glow) 24%, transparent);
}
.card-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--glow);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.card ul { list-style: none; display: grid; gap: 11px; }
.card li {
  position: relative; padding-left: 26px; color: var(--textMid); font-size: 15.5px;
}
.card li::before {
  content: ''; position: absolute; left: 0; top: .58em;
  width: 11px; height: 7px; border-left: 2px solid var(--glow);
  border-bottom: 2px solid var(--glow); transform: rotate(-45deg);
}

/* ─── Galerie de captures ─────────────────────────────────── */
.shots {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px); align-items: end; margin-top: 52px;
}
.shot { display: grid; justify-items: center; gap: 18px; }
.shot-frame {
  width: 100%; max-width: 260px;
  border-radius: 34px; padding: 8px;
  background: linear-gradient(160deg, #3a3550, #1d1f2b);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.85), 0 0 0 1px var(--hairline2),
              inset 0 1px 0 rgba(255,255,255,.12);
}
.shot-frame img { border-radius: 27px; width: 100%; height: auto; }
/* Celle du milieu est mise en avant, comme sur une fiche de store. */
.shot-lead .shot-frame { max-width: 290px; }
.shot-lead { transform: translateY(-18px); }
.shot figcaption {
  color: var(--textMid); font-size: 14.5px; text-align: center; max-width: 30ch;
}

/* ─── Bande photo ─────────────────────────────────────────── */
.photo { position: relative; isolation: isolate; min-height: clamp(360px, 48vw, 560px);
  display: grid; align-items: center; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-wash {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--bg-deep) 2%, color-mix(in srgb, var(--bg-deep) 72%, transparent) 46%, transparent 86%),
    radial-gradient(70% 90% at 20% 50%, color-mix(in srgb, var(--primary) 52%, transparent), transparent 70%);
  mix-blend-mode: normal;
}
.photo-copy { padding: clamp(40px, 6vw, 72px) 0; }
.photo-copy h2 { max-width: 17ch; }
.photo-copy p { color: var(--textMid); max-width: 48ch; margin-top: 16px; font-size: 16.5px; }

/* ─── Étapes du coaching ──────────────────────────────────── */
.steps { list-style: none; counter-reset: s; margin-top: 46px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.steps li {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 26px 26px 26px 72px; position: relative;
}
.step-n {
  position: absolute; left: 24px; top: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: var(--glow);
  background: color-mix(in srgb, var(--primary) 34%, transparent);
  border: 1px solid color-mix(in srgb, var(--glow) 28%, transparent);
}
.steps h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 7px; }
.steps p { color: var(--textMid); font-size: 15px; }
.aside {
  margin-top: 28px; color: var(--textLo); font-size: 14.5px;
  border-left: 2px solid color-mix(in srgb, var(--glow) 40%, transparent);
  padding-left: 16px; max-width: 60ch;
}

/* ─── Grille « tout le reste » ────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.tile {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tile:hover {
  border-color: color-mix(in srgb, var(--glow) 32%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--primary) 80%, transparent);
}
.tile h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.015em; }
.tile p { color: var(--textMid); font-size: 14.5px; }

/* ─── Appel final ─────────────────────────────────────────── */
.final {
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--hairline);
}
.final-peak { width: 110px; height: auto; margin: 0 auto 22px;
  filter: drop-shadow(0 6px 26px color-mix(in srgb, var(--primary) 70%, transparent)); }
.final h2 { max-width: none; margin-inline: auto; }
.final p { color: var(--textMid); max-width: 52ch; margin: 16px auto 30px; font-size: 17px; }
.waitlist-end { margin-inline: auto; }
.waitlist-end .form-msg { text-align: center; }

/* ─── Pied de page ────────────────────────────────────────── */
.site-foot { background: var(--bg-deep); border-top: 1px solid var(--hairline);
  padding: 42px 0 48px; }
.foot-inner { display: grid; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--textMid); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover { color: var(--textHi); text-decoration: underline; }
.foot-note { color: var(--textMuted); font-size: 13px; max-width: 70ch; }

/* ─── Apparition au défilement ────────────────────────────── */
/* Le contenu est visible par défaut. Il n'est masqué que si le script a pu
   poser la classe « js » sur <html> : sans JavaScript, ou si main.js échoue,
   la page reste entièrement lisible au lieu de rester blanche. */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }

/* ─── Adaptatif ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* La maquette passe sous le texte : sur un téléphone, le titre et le champ
     d'inscription doivent tenir dans le premier écran, pas être repoussés
     en dessous par une image de 600 px de haut. */
  .hero-phone { margin-top: 16px; }
  .phone { transform: none; width: min(260px, 66vw); }
  .f1 { left: 0; bottom: 8%; }
  .f2 { right: 0; top: 4%; }
  .duo, .steps { grid-template-columns: 1fr; }
  /* Les trois captures deviennent un carrousel qui s'aligne au doigt :
     côte à côte, elles seraient illisibles sur un téléphone. */
  .shots {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(50% - 50vw); padding-inline: max(20px, calc(50vw - 50%));
    padding-bottom: 8px; scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 min(260px, 72vw); scroll-snap-align: center; }
  .shot-lead { transform: none; }
  .shot-lead .shot-frame { max-width: 260px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  h2 { max-width: 24ch; }
}
@media (max-width: 620px) {
  /* L'en-tête devient à l'étroit : le bouton disparaît, le formulaire est de
     toute façon juste en dessous, dans le premier écran. */
  .head-right .btn { display: none; }
  .brand { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .field { flex-direction: column; border-radius: var(--r-lg); padding: 10px; }
  .field input { padding: 10px 12px; }
  .btn { width: 100%; }
  .float { display: none; }
  .photo-wash { background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-deep) 55%, transparent), var(--bg-deep) 92%),
    radial-gradient(80% 60% at 50% 30%, color-mix(in srgb, var(--primary) 46%, transparent), transparent 72%); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora span, .eyebrow .dot, .float { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .ridges path { transition: none; transform: none; }
  .tile:hover, .btn:hover { transform: none; }
}
