/* =========================================================
   École Des Investisseurs : vitrine
   Thèmes clair et sombre, Montserrat auto-hébergée
   ========================================================= */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/montserrat-latin-wght.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;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/montserrat-latin-ext-wght.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;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f0f0f3;
  --text: #1d1d1f;
  --text-2: #5f5f64;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .14);
  --accent: #0056ff;
  --accent-text: #0050eb;
  --accent-soft: rgba(0, 86, 255, .08);
  --accent-glow: rgba(0, 86, 255, .22);
  --btn-bg: #0056ff;
  --btn-bg-hover: #0049d9;
  --btn-text: #ffffff;
  --nav-bg: rgba(251, 251, 253, .72);
  --nav-bg-solid: rgba(251, 251, 253, .9);
  --ink-bg: #0b0d12;
  --ink-text: #f5f5f7;
  --ink-text-2: #a1a1a6;
  --bezel: #1d1d1f;
  --bezel-edge: #3a3a3d;
  --base: linear-gradient(#d9d9de, #b9b9bf);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
  --shadow-lg: 0 40px 90px -30px rgba(0, 20, 60, .28);
  --aurora-1: rgba(0, 86, 255, .16);
  --aurora-2: rgba(120, 160, 255, .16);
  --aurora-3: rgba(0, 86, 255, .08);
  --candle: rgba(0, 86, 255, .32);
  --candle-wick: rgba(0, 86, 255, .28);
  --candle-grid: rgba(0, 20, 60, .1);
  --candle-line: rgba(0, 86, 255, .44);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius-lg: 28px;
  --radius: 20px;
  --gutter: max(24px, env(safe-area-inset-left), env(safe-area-inset-right));
  --wrap: 1240px;
  --nav-h: 56px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0b0d12;
  --surface: #121419;
  --surface-2: #1a1d24;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --accent: #3b82f6;
  --accent-text: #6aa4ff;
  --accent-soft: rgba(59, 130, 246, .12);
  --accent-glow: rgba(59, 130, 246, .45);
  --btn-bg: #2563eb;
  --btn-bg-hover: #3b74f0;
  --btn-text: #ffffff;
  --nav-bg: rgba(0, 0, 0, .62);
  --nav-bg-solid: rgba(10, 11, 14, .86);
  --ink-bg: #0b0d12;
  --ink-text: #f5f5f7;
  --ink-text-2: #a1a1a6;
  --bezel: #0d0e11;
  --bezel-edge: #34363c;
  --base: linear-gradient(#3a3c42, #232429);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .04) inset;
  --shadow-lg: 0 40px 120px -30px rgba(59, 130, 246, .35);
  --aurora-1: rgba(59, 130, 246, .38);
  --aurora-2: rgba(91, 155, 255, .22);
  --aurora-3: rgba(29, 78, 216, .32);
  --candle: rgba(59, 130, 246, .76);
  --candle-wick: rgba(91, 155, 255, .52);
  --candle-grid: rgba(255, 255, 255, .09);
  --candle-line: rgba(106, 164, 255, .95);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #0b0d12;
    --surface: #121419;
    --surface-2: #1a1d24;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --accent: #3b82f6;
    --accent-text: #6aa4ff;
    --accent-soft: rgba(59, 130, 246, .12);
    --accent-glow: rgba(59, 130, 246, .45);
    --btn-bg: #2563eb;
    --btn-bg-hover: #3b74f0;
    --btn-text: #ffffff;
    --nav-bg: rgba(0, 0, 0, .62);
    --nav-bg-solid: rgba(10, 11, 14, .86);
    --bezel: #0d0e11;
    --bezel-edge: #34363c;
    --base: linear-gradient(#3a3c42, #232429);
    --shadow-sm: 0 1px 0 rgba(255, 255, 255, .04) inset;
    --shadow-lg: 0 40px 120px -30px rgba(59, 130, 246, .35);
    --aurora-1: rgba(59, 130, 246, .38);
    --aurora-2: rgba(91, 155, 255, .22);
    --aurora-3: rgba(29, 78, 216, .32);
    --candle: rgba(59, 130, 246, .76);
    --candle-wick: rgba(91, 155, 255, .52);
    --candle-grid: rgba(255, 255, 255, .09);
    --candle-line: rgba(106, 164, 255, .95);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: #fff; }

p, li, blockquote, summary { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--btn-bg); color: #fff; border-radius: 999px; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; text-decoration: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(780px + 2 * var(--gutter)); }
@media (min-width: 740px) { :root { --gutter: 32px; } }

/* Thème : images propres à chaque thème */
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

/* Transition douce du thème (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease-io); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.h2 {
  font-size: clamp(2.125rem, 1.4rem + 3.4vw, 4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: -.01em;
  max-width: 54ch;
  margin-top: 20px;
  text-wrap: pretty;
}
.accent { font-style: normal; color: var(--accent-text); }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  isolation: isolate;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--btn-text);
  background: var(--btn-bg);
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 1.0625rem;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: background-color .25s ease, box-shadow .35s var(--ease-out), transform .5s var(--ease-out);
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.btn:hover { background: var(--btn-bg-hover); text-decoration: none; box-shadow: 0 14px 34px -12px var(--accent-glow); }
/* Retour instantané à la pression */
.btn:active { transform: translate3d(var(--mx), var(--my), 0) scale(.97); transition: transform .1s ease-out; }
.btn > span { position: relative; z-index: 1; }
/* Reflet qui balaie le bouton au survol */
.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .32) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0s;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { transform: translateX(120%); transition: transform .9s var(--ease-out); }
}
.btn--sm { padding: 8px 16px; font-size: .875rem; box-shadow: none; }
.btn--lg { padding: 17px 32px; font-size: 1.125rem; }
.btn--block { width: 100%; }

.link-arrow { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow span { transition: transform .35s var(--ease-out); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color .3s ease, height .4s var(--ease-out);
}
/* Bord de défilement : un fondu, pas une bordure dure */
.nav::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto 0;
  height: 18px;
  background: linear-gradient(var(--line), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.nav.is-scrolled { background: var(--nav-bg-solid); --nav-h: 52px; }
.nav.is-scrolled::after { opacity: .9; }
.nav__inner {
  height: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.02em; font-size: .9375rem; }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.nav__links { display: none; gap: 30px; }
.nav__links a { color: var(--text-2); font-size: .875rem; font-weight: 500; transition: color .2s ease; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__progress { position: absolute; inset: auto 0 0 0; height: 2px; pointer-events: none; }
.nav__progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text); transition: background-color .2s ease; }
.theme-toggle:hover { background: var(--accent-soft); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 20px; height: 20px; overflow: visible; }
.tt-core { fill: currentColor; transform-origin: 12px 12px; transition: transform .6s var(--ease-out); }
.tt-cut { transition: cx .6s var(--ease-out), cy .6s var(--ease-out); }
.tt-rays { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; transform-origin: 12px 12px; transition: transform .6s var(--ease-out), opacity .35s ease; }
:root[data-theme="dark"] .tt-core { transform: scale(1.45); }
:root[data-theme="dark"] .tt-cut { cx: 16.5px; cy: 7.5px; }
:root[data-theme="dark"] .tt-rays { transform: rotate(-90deg) scale(.4); opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tt-core { transform: scale(1.45); }
  :root:not([data-theme="light"]) .tt-cut { cx: 16.5px; cy: 7.5px; }
  :root:not([data-theme="light"]) .tt-rays { transform: rotate(-90deg) scale(.4); opacity: 0; }
}

.burger { width: 36px; height: 36px; display: grid; place-content: center; gap: 6px; border-radius: 50%; }
.burger span { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .45s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }
@media (max-width: 420px) { .nav .btn--sm { display: none; } }

.sheet {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 49;
  background: var(--nav-bg-solid);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  padding: 12px var(--gutter) 28px;
  transform-origin: 50% 0;
  border-bottom: 1px solid var(--line);
}
.sheet nav { display: grid; gap: 4px; }
.sheet a:not(.btn) { color: var(--text); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; padding: 10px 0; }
.sheet a:not(.btn):hover { text-decoration: none; color: var(--accent-text); }
.sheet .btn { margin-top: 16px; }
.scrim { position: fixed; inset: 0; z-index: 48; background: rgba(0, 0, 0, .25); }
.sheet.is-open { animation: sheetIn .5s var(--ease-out) both; }
.scrim.is-open { animation: fadeIn .35s ease both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-12px) scale(.985); filter: blur(6px); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 10vw, 120px));
  text-align: center;
  overflow: clip;
}
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-size: clamp(2.6rem, 1.2rem + 6.4vw, 6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.045em;
  margin-bottom: 26px;
}
.hero__title .lines { display: block; }
.hero__title .lines--wide { display: none; }
@media (min-width: 1000px) { .hero__title .lines--wide { display: block; } .hero__title .lines--narrow { display: none; } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { white-space: nowrap; }
.hero__title.is-revealed .line { overflow: visible; }
.hero__lede { font-size: clamp(1.0625rem, .95rem + .55vw, 1.375rem); line-height: 1.5; color: var(--text-2); font-weight: 500; max-width: 46em; letter-spacing: -.01em; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; margin-top: 34px; }
.hero__fine { margin-top: 18px; font-size: .875rem; color: var(--text-3); }

.motion [data-hero], .motion [data-line] { opacity: 0; }
.motion [data-line] { transform: translateY(105%); }

/* Chandeliers du héros */
.candles {
  /* --mx/--my/--sr : halo qui suit la souris (js/main.js) ; hors survol, tout reste à 50 % */
  --mx: 50%; --my: 50%; --sr: 0px;
  position: absolute; inset: 0 0 auto; height: min(100%, 1100px); z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(circle var(--sr) at var(--mx) var(--my), #000, rgba(0, 0, 0, .5) 100%), radial-gradient(70% 34% at 50% 30%, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .55) 60%, #000 100%), linear-gradient(transparent 6%, #000 22%, #000 58%, transparent 80%);
  -webkit-mask-composite: source-in, source-in;
  mask-image: radial-gradient(circle var(--sr) at var(--mx) var(--my), #000, rgba(0, 0, 0, .5) 100%), radial-gradient(70% 34% at 50% 30%, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .55) 60%, #000 100%), linear-gradient(transparent 6%, #000 22%, #000 58%, transparent 80%);
  mask-composite: intersect, intersect;
}
.candles--final {
  height: 100%;
  -webkit-mask-image: radial-gradient(circle var(--sr) at var(--mx) var(--my), #000, rgba(0, 0, 0, .5) 100%), radial-gradient(60% 40% at 50% 46%, rgba(0, 0, 0, .3) 0, rgba(0, 0, 0, .6) 60%, #000 100%), linear-gradient(transparent, #000 25%, #000 75%, transparent);
  mask-image: radial-gradient(circle var(--sr) at var(--mx) var(--my), #000, rgba(0, 0, 0, .5) 100%), radial-gradient(60% 40% at 50% 46%, rgba(0, 0, 0, .3) 0, rgba(0, 0, 0, .6) 60%, #000 100%), linear-gradient(transparent, #000 25%, #000 75%, transparent);
}
.candles svg { display: block; width: 100%; height: 100%; }
.candles .grid line { stroke: var(--candle-grid); stroke-width: 1; }
.candles .wick { stroke: var(--candle-wick); stroke-width: 1.25; stroke-linecap: round; }
.candles .up { fill: var(--candle); }
.candles .down { fill: none; stroke: var(--candle); stroke-width: 1.25; }
.candles .ma { fill: none; stroke: var(--candle-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.candles .c { transform-box: fill-box; transform-origin: 50% 50%; }
.candles .c.is-hot .up, .candles .c.is-hot .down { fill: var(--accent); stroke: var(--accent); }
.candles .c.is-hot .wick { stroke: var(--accent); }
.motion .candles .c { opacity: 0; }
/* Réticule : s'aimante au chandelier le plus proche du pointeur */
.candles .xh { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.candles .xh--v { width: 1px; height: 100%; background: repeating-linear-gradient(var(--candle-line) 0 4px, transparent 4px 9px); }
.candles .xh--h { height: 1px; width: 100%; background: repeating-linear-gradient(90deg, var(--candle-line) 0 4px, transparent 4px 9px); }
.candles .xh--dot { width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 18px var(--accent-glow); }

/* Aurora */
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.aurora i:nth-child(1) { width: 60vmax; height: 40vmax; left: -10vmax; top: 10%; background: var(--aurora-1); animation: drift1 38s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 50vmax; height: 36vmax; right: -12vmax; top: 30%; background: var(--aurora-2); animation: drift2 44s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 40vmax; height: 30vmax; left: 30%; top: 55%; background: var(--aurora-3); animation: drift3 52s ease-in-out infinite alternate; }
.aurora--soft i { opacity: .7; }
@keyframes drift1 { to { transform: translate3d(12vmax, 6vmax, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-10vmax, -4vmax, 0) scale(.95); } }
@keyframes drift3 { to { transform: translate3d(-8vmax, -8vmax, 0) scale(1.15); } }

/* Container scroll : carte vidéo qui se redresse au défilement (adapté d’Aceternity UI) */
.cscroll { position: relative; z-index: 1; perspective: 1000px; }
.cscroll__stage { position: relative; width: min(72rem, calc(100% - 2 * var(--gutter))); margin: clamp(16px, 7vw, 88px) auto 0; }
@media (max-width: 768px) { .player { margin-top: 20px; } }
.cscroll__card {
  position: relative;
  padding: 8px;
  border: 4px solid #6c6c6c;
  border-radius: 30px;
  background: #222;
  transform-origin: 50% 50%;
  box-shadow:
    0 0 #0000004d,
    0 9px 20px #0000004a,
    0 37px 37px #00000042,
    0 84px 50px #00000026,
    0 149px 60px #0000000a,
    0 233px 65px #00000003;
  will-change: transform;
}
.cscroll__inner { border-radius: 16px; overflow: hidden; background: #000; }
.cscroll__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
@media (min-width: 769px) {
  .cscroll__card { padding: 24px; }
}
.motion .cscroll__card { transform: rotateX(20deg) scale(1.05); }
@media (max-width: 768px) { .motion .cscroll__card { transform: rotateX(20deg) scale(.7); } }
.device__poster, .device__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device__video { opacity: 0; transition: opacity .8s ease; }
.device__video.is-playing { opacity: 1; }
.device__video { cursor: pointer; }
.sound {
  position: absolute;
  right: clamp(10px, 2vw, 22px);
  bottom: clamp(10px, 2vw, 22px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.01em;
  background: rgba(20, 20, 24, .55);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 8px 24px -8px rgba(0, 0, 0, .5);
  transition: background-color .25s ease, transform .5s var(--ease-out);
}
.sound:hover { background: rgba(20, 20, 24, .72); }
.sound:active { transform: scale(.95); transition-duration: .1s; }
.sound__icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sound__body { fill: currentColor; stroke: none; }
.sound__waves { opacity: 0; transform: translateX(-3px); transition: opacity .3s ease, transform .4s var(--ease-out); }
.sound__off { transition: opacity .3s ease; }
.sound[aria-pressed="true"] .sound__waves { opacity: 1; transform: none; }
.sound[aria-pressed="true"] .sound__off { opacity: 0; }
/* Pulsation douce tant que le son n’a jamais été activé */
.sound:not(.was-used)::before {
  content: "";
  position: absolute; inset: -4px;
  border-radius: inherit;
  border: 1.5px solid rgba(255, 255, 255, .55);
  animation: soundPulse 2.4s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes soundPulse { 0% { opacity: .9; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.12); } }
@media (max-width: 520px) { .sound__label { font-size: .8125rem; } .sound { padding: 7px 12px 7px 9px; } }
/* Lecteur à chapitres sous l’ordinateur */
.player { position: relative; z-index: 2; width: min(72rem, 100%); margin: clamp(40px, 6vw, 72px) auto 0; text-align: left; }
@media (min-width: 769px) { .player { padding-inline: 28px; } }
.player__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.player__play {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--btn-bg); color: #fff;
  box-shadow: 0 8px 20px -8px var(--accent-glow);
  transition: background-color .2s ease, transform .5s var(--ease-out);
}
.player__play:hover { background: var(--btn-bg-hover); }
.player__play:active { transform: scale(.93); transition-duration: .1s; }
.player__play svg { width: 18px; height: 18px; fill: currentColor; }
.player__play .pp-pause { display: none; }
.player.is-playing .player__play .pp-play { display: none; }
.player.is-playing .player__play .pp-pause { display: inline; }
.player__now { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; flex: 1; min-width: 0; }
.player__chap { font-weight: 700; letter-spacing: -.015em; color: var(--text); min-width: 0; }
.player__time { font-size: .875rem; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__bar {
  --h: 6px;
  display: flex; gap: 3px;
  height: 22px; align-items: center;
  cursor: pointer; touch-action: none;
  border-radius: 6px;
}
.player__seg { position: relative; height: var(--h); border-radius: 3px; background: var(--line-strong); overflow: hidden; transition: height .25s var(--ease-out); }
.player__bar:hover .player__seg { height: 10px; }
.player__seg i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.player__seg.is-current { background: color-mix(in srgb, var(--accent) 22%, var(--line-strong)); }
.player__tip {
  position: absolute; bottom: calc(100% + 6px); left: 0;
  padding: 6px 10px; border-radius: 8px;
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
  color: #fff; background: rgba(20, 20, 24, .88);
  transform: translateX(-50%); opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.player__tip.is-on { opacity: 1; }
.player__chapters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
}
.player__chapters button {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .4s var(--ease-out);
  white-space: nowrap;
}
.player__chapters button:hover { color: var(--text); border-color: var(--line-strong); }
.player__chapters button:active { transform: scale(.96); transition-duration: .1s; }
.player__chapters button span { color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 600; }
.player__chapters button[aria-current="true"] { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
@media (max-width: 739px) {
  .player__chapters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .player__chapters::-webkit-scrollbar { display: none; }
}


/* ---------- Manifeste ---------- */
.manifesto { padding-block: clamp(110px, 16vw, 200px) clamp(80px, 10vw, 140px); }
.manifesto__text {
  font-size: clamp(1.75rem, 1rem + 3.2vw, 3.5rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.035em;
  max-width: 30ch;
  text-wrap: balance;
}
.manifesto__text .w { color: var(--text); transition: color .2s linear; }
.motion .manifesto__text .w { color: color-mix(in srgb, var(--text) 18%, var(--bg)); }
.motion .manifesto__text .w.is-lit { color: var(--text); }

.stats {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--line);
}
.stat { padding: 28px 8px 28px 0; display: grid; gap: 6px; align-content: start; }
.stat:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat strong { font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4.25rem); line-height: 1; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--text); }
.stat > span { color: var(--text-2); font-size: .9375rem; font-weight: 500; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(2n) { padding: 32px 24px; }
  .stat:nth-child(n) { border-bottom: 0; }
  .stat + .stat { border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 13vw, 160px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: clamp(48px, 7vw, 80px); }
.section__head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section__head--center .lede { margin-inline: auto; text-wrap: balance; }
.motion [data-reveal], .motion [data-tile] { opacity: 0; transform: translateY(40px); }
.motion [data-reveal].is-revealed, .motion [data-tile].is-revealed { opacity: 1; transform: none; }

/* Pour vous */
.fit { display: grid; gap: 20px; }
@media (min-width: 900px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit__card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.fit__card h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -.025em; font-weight: 700; margin-bottom: 24px; }
.ticks li, .crosses li { position: relative; padding-left: 36px; color: var(--text-2); font-weight: 500; }
.ticks li + li, .crosses li + li { margin-top: 16px; }
.ticks li::before, .crosses li::before {
  content: "";
  position: absolute; left: 0; top: .1em;
  width: 22px; height: 22px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.ticks li::before { background-color: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3 5 8.6l4.5-5' fill='none' stroke='%233b82f6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.crosses li::before { background-color: var(--surface-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5m0-5-5 5' fill='none' stroke='%2386868b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }

.fit__note { margin-top: 28px; text-align: center; color: var(--text-2); font-weight: 500; }

/* ---------- Parcours ---------- */
.journey { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .journey { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
  .journey__visual { position: sticky; top: calc(50vh - 220px); }
}
.journey__visual { display: none; flex-direction: column; align-items: center; gap: 28px; }
@media (min-width: 900px) { .journey__visual { display: flex; } }
.dial { position: relative; width: min(380px, 100%); aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dial__track { fill: none; stroke: var(--line-strong); stroke-width: 6; }
.dial__fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - 100 / 6);
  transition: stroke-dashoffset .9s var(--ease-out);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.dial__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial__label, .dial__of { font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.dial__num { display: block; height: 1em; overflow: hidden; font-size: clamp(6rem, 9vw, 9rem); line-height: 1; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.dial__roll { display: flex; flex-direction: column; transition: transform .8s var(--ease-out); }
.dial__roll b { display: block; height: 1em; font-weight: inherit; }
.dial__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; color: var(--text-2); min-height: 1.5em; transition: opacity .3s ease; }

.journey__steps { position: relative; padding-left: 28px; }
.journey__steps::before, .journey__steps::after {
  content: "";
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px;
}
.journey__steps::before { background: var(--line-strong); }
.journey__steps::after { background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--rail, 0)); box-shadow: 0 0 12px var(--accent-glow); }
.step { padding-block: 22px; transition: opacity .5s var(--ease-out); }
@media (min-width: 900px) {
  .step { min-height: 46vh; padding-block: 18vh 0; }
  .step:first-child { padding-top: 6vh; }
  .step:last-child { min-height: 52vh; }
  .motion .step { opacity: .28; }
  .motion .step.is-active { opacity: 1; }
}
.step__num { display: block; font-size: .875rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-text); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--text-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 500; max-width: 44ch; }

/* ---------- Jalon (bande sombre dans les deux thèmes) ---------- */
.section--ink { background: var(--ink-bg); color: var(--ink-text); overflow: clip; }
.section--ink .lede { color: var(--ink-text-2); max-width: 60ch; }
.section--ink .eyebrow { color: #6aa4ff; }
.milestone::before {
  content: "";
  position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(59, 130, 246, .28), transparent 70%);
  pointer-events: none;
}
.track { position: relative; margin-top: 8px; }
.track__bar { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.track__fill { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, #1d4ed8, #5b9bff); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); box-shadow: 0 0 24px rgba(91, 155, 255, .55); }
.track__dot { position: absolute; top: 50%; left: calc(var(--p, 1) * 100%); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(91, 155, 255, .3), 0 0 30px rgba(91, 155, 255, .8); }
.track__ticks { position: relative; height: 1.5em; margin-top: 22px; font-size: clamp(.75rem, .65rem + .4vw, 1rem); font-weight: 600; color: var(--ink-text-2); font-variant-numeric: tabular-nums; }
.track__ticks li { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.track__ticks li:nth-child(1) { left: 0; transform: none; }
.track__ticks li:nth-child(2) { left: 25%; }
.track__ticks li:nth-child(3) { left: 50%; }
.track__ticks li:nth-child(4) { left: 75%; }
.track__ticks li:nth-child(5) { right: 0; transform: none; }
.track__ticks li:nth-child(2), .track__ticks li:nth-child(4) { visibility: hidden; }
.track__ticks strong { color: #fff; }
@media (min-width: 640px) { .track__ticks li:nth-child(2), .track__ticks li:nth-child(4) { visibility: visible; } }

/* ---------- Cap 100 000 $ : intérêts composés (toujours sombre, épinglé) ---------- */
.growth {
  --g-bg: #05070c;
  --g-text: #f5f5f7;
  --g-text-2: #a1a1a6;
  --g-text-3: #8a8a90;
  --g-line: rgba(255, 255, 255, .08);
  --c-interest: #3b82f6;
  --c-contrib: #22a39a;
  position: relative;
  background: var(--g-bg);
  color: var(--g-text);
  overflow: clip;
}
.growth::before {
  content: "";
  position: absolute; left: 50%; bottom: -30%;
  width: 120vmax; height: 80vmax;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59, 130, 246, .22), transparent 70%);
  pointer-events: none;
}
.growth__pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 28px) 40px; }
.growth__inner { display: flex; flex-direction: column; gap: clamp(20px, 3.5vh, 44px); }
.growth .eyebrow { color: #6aa4ff; }
.growth .h2 { color: var(--g-text); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); }
.growth__title { text-wrap: wrap; }
.growth .lede { color: var(--g-text-2); max-width: 58ch; margin-top: 16px; }
.growth__head { display: grid; gap: 20px 48px; align-items: end; }
@media (min-width: 900px) { .growth__head { grid-template-columns: 1fr auto; } }
.growth__counter { display: grid; gap: 4px; justify-items: start; }
@media (min-width: 900px) { .growth__counter { justify-items: end; text-align: right; } }
.growth__counter-label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g-text-3); }
.growth__counter-value {
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  color: var(--g-text);
  white-space: nowrap;
  transition: color .5s ease, text-shadow .8s ease;
}
.growth__counter.is-done .growth__counter-value { color: #8ab8ff; text-shadow: 0 0 48px rgba(59, 130, 246, .6); }

.growth__chart { margin: 0; }
.growth__plot { position: relative; height: clamp(200px, 40vh, 440px); margin-left: 76px; }
@media (max-width: 739px) { .growth__plot { margin-left: 56px; height: clamp(200px, 34vh, 320px); } }
.growth__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.growth__grid-lines line { stroke: var(--g-line); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.growth__grid-lines line.is-base { stroke: rgba(255, 255, 255, .18); stroke-dasharray: none; }
.growth__grid-lines line.is-goal { stroke: rgba(106, 164, 255, .55); stroke-dasharray: 6 6; }
.growth__line { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
/* Espace de 2 px couleur du fond entre les deux aires empilées */
.growth__line--contrib { stroke: var(--g-bg); stroke-width: 2; }
.growth__line--total { stroke: #8ab8ff; stroke-width: 2.5; filter: drop-shadow(0 0 10px rgba(59, 130, 246, .8)); }
.growth__ylabels span { position: absolute; left: -76px; width: 64px; text-align: right; transform: translateY(-50%); font-size: .75rem; font-weight: 600; color: var(--g-text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.growth__ylabels span.is-goal { color: #8ab8ff; }
@media (max-width: 739px) { .growth__ylabels span { left: -56px; width: 48px; font-size: .6875rem; } }
.growth__tip { position: absolute; left: 0; top: 100%; width: 0; height: 0; pointer-events: none; }
.growth__tip i {
  position: absolute; left: -8px; top: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, .35), 0 0 28px 6px rgba(59, 130, 246, .75);
}
.growth__goal {
  position: absolute; right: 0; top: 12%;
  transform: translateY(-120%);
  padding: 5px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #0b0d12; background: #8ab8ff;
  opacity: 0; transition: opacity .5s ease, transform .6s var(--ease-out);
}
.growth__goal.is-on { opacity: 1; transform: translateY(-150%); }
.growth__xlabel { position: absolute; right: 0; top: calc(100% + 10px); font-size: .75rem; font-weight: 600; color: var(--g-text-3); }
.growth__hover { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.growth__hover.is-on { opacity: 1; }
.growth__hover-line { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .35); }
.growth__tooltip {
  position: absolute; top: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(20, 22, 28, .92); border: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem; line-height: 1.5; color: var(--g-text-2); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.growth__tooltip b { color: var(--g-text); font-weight: 700; }
.growth__tooltip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.growth__legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-left: 76px; font-size: .9375rem; color: var(--g-text-2); }
@media (max-width: 739px) { .growth__legend { padding-left: 0; margin-top: 34px; gap: 8px 20px; font-size: .875rem; } }
.growth__key { display: inline-flex; align-items: center; gap: 8px; }
.growth__key i { width: 12px; height: 12px; border-radius: 3px; }
.growth__key--interest i { background: var(--c-interest); }
.growth__key--contrib i { background: var(--c-contrib); }
.growth__key b { color: var(--g-text); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 739px) {
  .growth__pin { padding-block: calc(var(--nav-h) + 14px) 18px; }
  .growth__inner { gap: 14px; }
  .growth .eyebrow { margin-bottom: 8px; }
  .growth .h2 { font-size: clamp(1.625rem, 7.4vw, 2rem); }
  .growth .lede { font-size: .9375rem; line-height: 1.45; margin-top: 10px; }
  .growth__head { gap: 12px; }
  .growth__counter { gap: 2px; justify-items: start; text-align: left; }
  .growth__counter-value { font-size: clamp(2.125rem, 10vw, 2.75rem); }
  .growth__plot { height: clamp(170px, 28svh, 280px); }
  .growth__legend { margin-top: 30px; font-size: .8125rem; }
}
@media (max-width: 739px) and (max-height: 700px) { .growth .lede { display: none; } }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tile {
  --sx: 50%; --sy: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 300px;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
}
/* Projecteur qui suit le curseur */
.tile::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--sx) var(--sy), var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); letter-spacing: -.03em; line-height: 1.12; font-weight: 700; margin-bottom: 10px; }
.tile p { color: var(--text-2); font-weight: 500; font-size: 1rem; }
/* Puits média uniforme : même rayon, même fond, même marge pour toutes les tuiles */
.tile__media {
  position: relative;
  margin-top: auto;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tile__media > picture { position: absolute; inset: 0; display: grid; place-items: center; }
.tile__media > picture > source { display: none; }
.media--device img { width: 88%; height: auto; transition: transform .8s var(--ease-out); }
.media--apps { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 7%, 32px); }
.media--apps > picture.apps__phone { position: static; display: block; height: 84%; flex: none; }
.media--apps .apps__phone img { height: 100%; width: auto; transition: transform .8s var(--ease-out); }
.apps__badges { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.apps__badges a { display: block; border-radius: 8px; transition: transform .4s var(--ease-out), opacity .2s ease; }
.apps__badges a:hover { transform: translateY(-2px); }
.apps__badges a:active { transform: scale(.96); transition-duration: .1s; }
.apps__badges img { display: block; width: clamp(112px, 10.5vw, 150px); height: auto; }
.tile:hover .tile__media .apps__badges img { transform: none; }
.media--phone img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6% 0; object-fit: contain; transition: transform .8s var(--ease-out); }
.media--ui > picture > img, .media--ui > video {
  width: 86%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .25);
  background: #fff;
  transition: transform .8s var(--ease-out);
}
.media--ui > video { aspect-ratio: 16 / 10; object-fit: cover; }
.tile:hover .tile__media img, .tile:hover .tile__media video { transform: scale(1.035); }
@media (min-width: 1000px) {
  .tile--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 36px; min-height: 360px; }
  .tile--wide .tile__text { flex: 0 0 34%; }
  .tile--wide .tile__media { flex: 1; margin-top: 0; }
  .tile--reverse { flex-direction: row-reverse; }
}

/* ---------- Guide ---------- */
.guide__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .guide__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.guide__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.guide__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.guide__note { margin-top: 20px; color: var(--text-2); font-weight: 500; max-width: 56ch; }

/* ---------- Témoignages ---------- */
.quotes { padding-bottom: clamp(72px, 9vw, 120px); }
.marquee { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; padding-block: 8px 24px; }
.marquee.is-dragging { cursor: grabbing; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: max(16px, 6vw); z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-alt), transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; padding-inline: var(--gutter); will-change: transform; }
.quote {
  width: min(400px, 80vw);
  flex: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.quote blockquote { font-size: 1.0625rem; line-height: 1.55; font-weight: 500; letter-spacing: -.01em; color: var(--text); }
.quote__who { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .9375rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
/* Sans animation : défilement natif */
html:not(.motion) .marquee { overflow-x: auto; scroll-snap-type: x mandatory; cursor: auto; }
html:not(.motion) .quote { scroll-snap-align: start; }

/* ---------- Tarifs ---------- */
.plan { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.segmented {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.segmented button { position: relative; z-index: 1; padding: 10px 22px; border-radius: 999px; font-size: .9375rem; font-weight: 600; color: var(--text-2); transition: color .3s ease; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.segmented button[aria-checked="true"] { color: var(--text); }
.segmented button:active { transform: scale(.97); }
.segmented__pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .1), 0 0 0 1px var(--line); }
:root[data-theme="dark"] .segmented__pill { background: #2a2d35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented__pill { background: #2a2d35; } }
.save { font-size: .75rem; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }

.plan__card {
  width: min(520px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.plan__card::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, var(--accent-glow), transparent); opacity: .35; pointer-events: none; }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan__name { font-weight: 700; letter-spacing: -.02em; }
.badge { font-size: .8125rem; font-weight: 700; color: #fff; background: var(--btn-bg); padding: 5px 12px; border-radius: 999px; }
.price { display: flex; align-items: flex-end; gap: 10px; margin-top: 24px; }
.price__amount { display: inline-flex; font-size: clamp(4rem, 3rem + 4vw, 5.75rem); line-height: 1; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
/* Coupe seulement en hauteur (le rouleau) : le 0 et le 9 dépassent un peu de leur chasse à cause de l’interlettrage serré */
.digit { display: inline-block; height: 1em; clip-path: inset(0 -.2em); transition: width .6s var(--ease-out), opacity .4s ease; }
.digit__col { display: flex; flex-direction: column; transition: transform .8s var(--ease-out); }
.digit__col span { height: 1em; display: block; text-align: center; }
.price__meta { display: flex; flex-direction: column; padding-bottom: .55em; font-weight: 600; color: var(--text-2); line-height: 1.25; }
.price__cur { font-size: .9375rem; color: var(--text); }
.price__per { font-size: .9375rem; display: inline-block; }
.plan__billed { margin-top: 14px; font-size: 1.0625rem; font-weight: 500; color: var(--text-2); }
.plan__billed strong { color: var(--text); font-weight: 700; }
.plan__sub { color: var(--text-3); font-size: .9375rem; font-weight: 500; margin-top: 4px; min-height: 1.5em; }
.plan__list { margin: 28px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.plan__fine { margin-top: 14px; text-align: center; color: var(--text-3); font-size: .8125rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--accent-text); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 26px; color: var(--text-2); font-weight: 500; max-width: 62ch; }

/* ---------- CTA final ---------- */
.final { position: relative; overflow: clip; padding-block: clamp(120px, 16vw, 200px); text-align: center; }
.final__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final__title { font-size: clamp(2.25rem, 1.2rem + 4.6vw, 5rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; max-width: 16ch; text-wrap: balance; }
.final .lede { margin-bottom: 36px; text-wrap: balance; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px 40px; background: var(--bg-alt); font-size: .8125rem; color: var(--text-3); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--text-2); font-weight: 500; }
.footer__legal { max-width: 90ch; line-height: 1.6; }
.footer__legal + .footer__legal { margin-top: 10px; }
.footer__legal strong { color: var(--text-2); }
.footer__copy { margin-top: 24px; }

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .aurora i { animation: none; }
  .btn::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .sheet { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(0, 0, 0, .3); --text-2: #3a3a3c; }
  :root[data-theme="dark"] { --line: rgba(255, 255, 255, .35); --text-2: #d1d1d6; }
}

/* ---------- Page légale ---------- */
.legal { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 96px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin-bottom: 12px; }
.legal h2 { font-size: 1.375rem; letter-spacing: -.02em; font-weight: 700; margin: 48px 0 14px; }
.legal h3 { font-size: 1.0625rem; font-weight: 700; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text-2); font-size: 1rem; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.4em; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); }

/* ---------- Très petits écrans (≤ 380 px) ---------- */
.brand__name { white-space: nowrap; }
@media (max-width: 380px) {
  .btn--lg { padding: 15px 22px; font-size: 1rem; max-width: 100%; white-space: normal; text-align: center; }
  .brand { gap: 8px; }
  .brand__name { font-size: .8125rem; }
  .brand__mark { width: 28px; height: 28px; }
  .nav__actions { gap: 4px; }
}
@media (max-width: 340px) { .brand__name { display: none; } }
@media (max-width: 739px) {
  /* Badge « Votre cap » : sous la ligne des 100 000 $, côté gauche (zone vide), pour ne pas toucher le montant */
  .growth__goal { right: auto; left: 8px; top: calc(12% + 10px); transform: translateY(6px); }
  .growth__goal.is-on { transform: none; }
}
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---------- Fenêtre : redirection vers Skool ---------- */
html.modal-open { overflow: hidden; }
.redirect {
  width: min(780px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100svh - 32px);
  padding: 0; border: 0; margin: auto;
  background: transparent; color: var(--text);
  overflow: visible;
}
.redirect::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.redirect[open] { animation: redirectIn .5s var(--ease-out) both; }
.redirect[open]::backdrop { animation: fadeIn .35s ease both; }
.redirect.is-closing { animation: redirectOut .22s ease-in both; }
.redirect.is-closing::backdrop { animation: fadeOut .22s ease-in both; }
@keyframes redirectIn { from { opacity: 0; transform: translateY(16px) scale(.96); filter: blur(6px); } }
@keyframes redirectOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fadeOut { to { opacity: 0; } }
.redirect__panel {
  position: relative;
  display: grid;
  max-height: calc(100svh - 32px);
  overflow: auto;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .45);
}
@media (min-width: 760px) { .redirect__panel { grid-template-columns: 300px 1fr; } }
.redirect__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2);
  transition: background-color .2s ease, transform .3s var(--ease-out);
}
.redirect__close:hover { color: var(--text); }
.redirect__close:active { transform: scale(.92); }
.redirect__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.redirect__shot { margin: 0; padding: 24px; background: var(--surface-2); display: grid; place-items: center; }
.redirect__frame { position: relative; display: block; cursor: pointer; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.redirect__frame img { display: block; width: 100%; height: auto; max-height: 52svh; object-fit: contain; }
/* Anneau qui pointe le bouton jaune (positions mesurées sur la capture : 9,3 % / 85,9 % → 90,3 % / 94,5 %) */
.redirect__ring {
  position: absolute; left: 7.8%; top: 85%; width: 84%; height: 10.4%;
  border-radius: 10px;
  border: 3px solid #0056ff;
  box-shadow: 0 0 0 6px rgba(0, 86, 255, .18);
  animation: ringPulse 1.8s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes ringPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(0, 86, 255, .25); } 50% { box-shadow: 0 0 0 12px rgba(0, 86, 255, 0); } }
.redirect__body { padding: clamp(28px, 3.4vw, 40px) clamp(24px, 3vw, 36px); padding-top: clamp(36px, 4vw, 48px); }
.redirect__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin-bottom: 12px; padding-right: 32px; }
.redirect__text { color: var(--text-2); font-weight: 500; }
.redirect__steps { margin: 18px 0 26px; display: grid; gap: 12px; }
.redirect__panel:focus { outline: none; }
.redirect__steps li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); font-weight: 500; }
.redirect__steps li strong { color: var(--text); }
.redirect__steps .n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: .8125rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-text);
  transform: translateY(-1px);
}
.redirect__actions { display: flex; }
.redirect__actions .btn { flex: 1; }
.redirect__back { font-weight: 600; color: var(--text-2); padding: 10px 4px; }
.redirect__back:hover { color: var(--text); }
:root[data-theme="dark"] .redirect__ring { border-color: #6aa4ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .redirect__ring { border-color: #6aa4ff; } }

.redirect__frame:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -18px rgba(0, 0, 0, .45); }
.redirect__frame:active { transform: scale(.98); transition-duration: .1s; }

/* Fenêtre Skool sur mobile : plein écran, tout visible sans défiler */
@media (max-width: 759px) {
  .redirect { width: 100%; max-width: 100%; height: 100svh; max-height: 100svh; margin: 0; }
  .redirect__panel {
    height: 100%; max-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    border-radius: 0; border: 0;
    padding-block: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-bottom));
  }
  .redirect__close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
  .redirect__shot { padding: 40px var(--gutter) 0; background: transparent; }
  .redirect__frame { width: min(320px, 100%); }
  .redirect__frame img { max-height: none; }
  /* Capture mobile : statistiques + bouton jaune (bouton à 9,4–90,3 % × 52,7–85,7 %) */
  .redirect__ring { left: 7.6%; width: 84.6%; top: 50.3%; height: 37.8%; }
  .redirect__body { padding: 22px var(--gutter) 8px; }
  .redirect .eyebrow { margin-bottom: 8px; }
  .redirect__title { font-size: clamp(1.25rem, 6.2vw, 1.5rem); padding-right: 0; margin-bottom: 10px; }
  .redirect__text, .redirect__steps li { font-size: .9375rem; line-height: 1.45; }
  .redirect__steps { margin: 14px 0 20px; gap: 10px; }
}
@media (max-width: 759px) and (min-width: 360px) { .redirect__title .chunk { white-space: nowrap; } }
@media (max-width: 759px) and (max-height: 700px) {
  .redirect__shot { padding-top: 36px; }
  .redirect__frame { width: min(250px, 100%); }
  .redirect__body { padding-top: 16px; }
  .redirect__steps { margin: 10px 0 16px; gap: 8px; }
}
@media (max-width: 759px) and (max-height: 600px) {
  .redirect__shot { padding-top: 30px; }
  .redirect__frame { width: min(210px, 100%); }
  .redirect__text, .redirect__steps li { font-size: .875rem; }
  .redirect__steps { margin: 8px 0 14px; gap: 6px; }
}
