/* ════════════════════════════════════════════════════════════════
   LA VITRINE — feuille unique, partagée par les deux langues.

   POURQUOI ELLE EST SORTIE DES PAGES. Les styles vivaient en ligne dans
   index.html : bon choix tant qu'il n'y avait qu'une page, mauvais dès
   la deuxième. La version anglaise en portait une copie, et deux copies
   divergent toujours — `landing.test.js` compare la structure des deux
   pages, pas leur apparence : il aurait laissé passer une vitrine
   française repeinte et une anglaise restée en arrière. Un seul fichier,
   servi par notre domaine, mis en cache entre les deux langues.

   LE MÉCANISME, relevé dans les feuilles du site Bizzy plutôt que
   deviné : la page est faite de FEUILLES pleine largeur qui se
   chevauchent. Chaque chapitre porte son propre fond, a des coins hauts
   arrondis, remonte sur le précédent et projette une ombre VERS LE HAUT.
   Les fonds alternent clair et sombre. Le héros est `sticky` : il reste
   en place pendant que la première feuille le recouvre.
   ════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
  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: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
  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 {
  --lp-accent: #027974; --lp-accent-2: #8a34d0; --lp-violet: #a52df0;
  --lp-aqua: #00fefe;
  --lp-ink: #18161f; --lp-ink-deep: #0e0a1c;
  --lp-text: #18161f; --lp-muted: #4a4458; --lp-faint: #6f6880;
  --lp-card: rgba(255, 255, 255, 0.85);
  --lp-card-solid: #ffffff;
  --lp-border: rgba(165, 45, 240, 0.14);
  --lp-border-strong: rgba(165, 45, 240, 0.24);
  --lp-soft: #f3ecff;
  --lp-radius: 1.25rem;
  --lp-radius-sm: 0.75rem;
  --lp-shadow: 0 1px 2px rgba(20, 10, 40, .04), 0 12px 32px rgba(20, 10, 40, .06);
  --lp-clair:
    radial-gradient(70% 40% at 50% 0, #ece0ff 0%, transparent 70%),
    linear-gradient(#faf7ff 0%, #f6f1ff 100%);
  --lp-sombre:
    radial-gradient(60% 40% at 15% 0%, rgba(188, 69, 250, .26), transparent 70%),
    radial-gradient(50% 40% at 90% 100%, rgba(0, 254, 254, .13), transparent 70%),
    var(--lp-ink-deep);
  --lp-barre: rgba(255, 255, 255, 0.85);
}
/* En thème sombre, une feuille « claire » ne peut pas rester blanche :
   elle devient un violet d'encre plus clair que les feuilles sombres,
   pour que l'alternance des chapitres reste lisible. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lp-text: #ece8f6; --lp-muted: #b3abc6; --lp-faint: #938cab;
    --lp-card: rgba(255, 255, 255, 0.06);
    --lp-card-solid: #1a1430;
    --lp-border: rgba(255, 255, 255, 0.10);
    --lp-border-strong: rgba(165, 45, 240, 0.38);
    --lp-soft: rgba(165, 45, 240, 0.16);
    --lp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .34);
    --lp-barre: rgba(26, 20, 48, 0.78);
    --lp-clair:
      radial-gradient(70% 40% at 50% 0, #2a1a4d 0%, transparent 70%),
      linear-gradient(#17112e 0%, #150f2a 100%);
  }
}
:root[data-theme="dark"] {
  --lp-text: #ece8f6; --lp-muted: #b3abc6; --lp-faint: #938cab;
  --lp-card: rgba(255, 255, 255, 0.06);
  --lp-card-solid: #1a1430;
  --lp-border: rgba(255, 255, 255, 0.10);
  --lp-border-strong: rgba(165, 45, 240, 0.38);
  --lp-soft: rgba(165, 45, 240, 0.16);
  --lp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .34);
  --lp-barre: rgba(26, 20, 48, 0.78);
  --lp-clair:
    radial-gradient(70% 40% at 50% 0, #2a1a4d 0%, transparent 70%),
    linear-gradient(#17112e 0%, #150f2a 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--lp-text);
  /* LE FOND DU DOCUMENT EST CLAIR, et c'est un correctif, pas un goût :
     il était à l'encre sombre, et la barre du haut — translucide — se
     posait dessus. Résultat à l'écran : une bande GRISE au-dessus d'un
     héros lavande. Ce qui est derrière la barre doit être le même fond
     que ce qu'elle survole. */
  background: var(--lp-clair);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, .brand, .stat-n { font-family: "Outfit", "DM Sans", system-ui, sans-serif; letter-spacing: -0.025em; }
a { color: inherit; }

.inner { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── La barre : une PILULE FLOTTANTE, pas une bande ───────────────
   C'est ainsi chez Bizzy (`sticky top-4 mx-auto w-[min(1040px,92%)]`
   autour d'un `<nav>` en `rounded-full bg-white/85`), et ce n'est pas
   cosmétique : une bande pleine largeur coupe le héros en deux, une
   pilule flotte dessus et le laisse entier. La marge négative retire sa
   hauteur du flux — le héros commence donc EN HAUT de la page, et la
   pilule le survole. */
.head {
  position: sticky; top: 1rem; z-index: 40;
  width: min(1040px, calc(100% - 1.5rem));
  margin: 1rem auto -4.5rem;
}
.head .top {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .5rem .5rem .5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-barre);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 10px 30px -12px rgba(20, 10, 40, .25);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.0625rem; text-decoration: none; white-space: nowrap; }
.brand img { width: 1.75rem; height: 1.75rem; border-radius: .5rem; }
.nav { display: flex; gap: 1.125rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--lp-muted); text-decoration: none; font-size: .875rem; }
.nav a:hover { color: var(--lp-text); }
/* Sous 52 rem la pilule ne tient plus la rangée : les liens de section
   passent à la ligne et encombrent. On garde ce qui agit. */
@media (max-width: 52rem) {
  .nav a:not(.btn) { display: none; }
  .nav a[hreflang] { display: inline; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .625rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .875rem;
  text-decoration: none; border: 1px solid var(--lp-border-strong); color: var(--lp-text);
  background: var(--lp-card-solid);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--lp-shadow); }
.btn.primary {
  background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-2) 55%, var(--lp-violet) 100%);
  border-color: transparent; color: #fff;
}
.cta .btn { padding: .8125rem 1.625rem; font-size: .9375rem; }
.sheet.sombre .btn { background: rgba(255,255,255,.07); color: #f3ecff; border-color: rgba(255,255,255,.18); }
.sheet.sombre .btn.primary { background: linear-gradient(135deg, var(--lp-violet), var(--lp-aqua)); color: #0e0a1c; border-color: transparent; }

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--lp-accent-2); background: var(--lp-soft);
  border: 1px solid var(--lp-border); border-radius: 999px; padding: .375rem .875rem;
}
.kicker::before {
  content: ""; width: .375rem; height: .375rem; border-radius: 50%;
  background: var(--lp-accent); animation: live 2.4s ease-out infinite;
}
.sheet.sombre .kicker { color: #e4cfff; background: rgba(165, 45, 240, .18); }
.sheet.sombre .kicker::before { background: var(--lp-aqua); }

/* ── Le héros ─────────────────────────────────────────────────────
   `sticky` : il reste sous la première feuille pendant qu'elle le
   recouvre. `overflow: hidden` pour que les orbes floues ne débordent
   pas, et `isolation` pour qu'elles restent derrière le texte. */
.hero {
  position: sticky; top: 0; z-index: 0; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 9rem 0 7rem; min-height: 92vh;
  background: var(--lp-clair);
}
.hero .inner { display: flex; flex-direction: column; align-items: center; }
/* LES BLOCS DU HÉROS SONT CENTRÉS PAR MARGE AUTO, pas seulement par
   `text-align`. Sans `margin-inline: auto`, un `max-width` colle le bloc
   à GAUCHE du conteneur et seul son texte est centré — le titre
   paraissait alors décalé par rapport au paragraphe. C'est le défaut
   qu'on voyait à l'écran. */
.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 4.5rem); line-height: 1.02; font-weight: 700;
  margin: 1.75rem auto; max-width: 17ch; text-wrap: balance;
}
.grad {
  background: linear-gradient(100deg, var(--lp-accent) 0%, var(--lp-accent-2) 55%, var(--lp-violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1rem, 1.4vw, 1.1875rem); color: var(--lp-muted); max-width: 52ch; margin: 0 auto 2.25rem; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.chips { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin: 2.25rem auto 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; color: var(--lp-faint); }
.chips li::before {
  content: "✓"; display: grid; place-items: center; width: 1.125rem; height: 1.125rem;
  border-radius: 50%; background: var(--lp-soft); color: var(--lp-accent); font-size: .6875rem; font-weight: 700;
}
.scroll-cue { margin: 3.5rem 0 0; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-faint); }

/* Les orbes : deux taches de couleur très floues qui dérivent derrière
   le texte. C'est ce qui empêche un grand aplat lavande de paraître
   mort. Purement décoratif, sans prise au clic. */
.orbe {
  position: absolute; z-index: -1; width: 22rem; height: 22rem; border-radius: 50%;
  filter: blur(80px); opacity: .34; pointer-events: none;
  animation: orbe 16s ease-in-out infinite;
}
.orbe.violette { background: #a855f7; top: 8%; right: 6%; }
.orbe.aqua { background: #06b6d4; bottom: 4%; left: 4%; animation-direction: reverse; animation-delay: -7s; }

/* ── Les feuilles ────────────────────────────────────────────────── */
.sheet {
  position: relative; z-index: 1;
  margin-top: -2.5rem;
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -30px 80px -30px rgba(20, 10, 40, .35);
  padding: 5rem 0;
}
@media (min-width: 48rem) { .sheet { border-radius: 3.5rem 3.5rem 0 0; padding: 7rem 0; } }
/* La barre du haut survole la page : sans cette marge, un lien d'ancre
   amène le titre SOUS la pilule. */
.sheet[id] { scroll-margin-top: 5.5rem; }
.sheet.clair { background: var(--lp-clair); }
.sheet.sombre {
  background: var(--lp-sombre);
  color: #f3ecff;
  --lp-text: #f3ecff; --lp-muted: #bdb2d8; --lp-faint: #9b90b8;
  --lp-card: rgba(255, 255, 255, 0.055);
  --lp-card-solid: rgba(255, 255, 255, 0.05);
  --lp-border: rgba(255, 255, 255, 0.12);
  --lp-border-strong: rgba(255, 255, 255, 0.2);
  --lp-soft: rgba(165, 45, 240, 0.22);
  --lp-shadow: none;
}
/* Le grain : il empêche les aplats sombres de paraître plastiques. */
.sheet.grain { overflow: hidden; }
.sheet.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.sheet h2 { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.08; margin: 1.25rem 0 1rem; max-width: 20ch; text-wrap: balance; }
.sheet .sub { color: var(--lp-muted); margin: 0 0 3.5rem; max-width: 56ch; font-size: 1.0625rem; }
.centre { text-align: center; }
.centre h2, .centre .sub, .centre .cta { margin-left: auto; margin-right: auto; }

/* ── Cartes ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card {
  border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
  padding: 1.75rem 1.5rem; background: var(--lp-card); box-shadow: var(--lp-shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--lp-border-strong); }
.card h3 { margin: .875rem 0 .5rem; font-size: 1.125rem; }
.card p { margin: 0; color: var(--lp-muted); font-size: .9375rem; }
.ico { font-size: 1.75rem; line-height: 1; }
.num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-violet)); color: #fff; font-weight: 700; font-size: .875rem;
}

/* ── La maquette ──────────────────────────────────────────────────── */
.mock {
  width: min(30rem, 100%); margin: 3.5rem auto 0; text-align: left;
  background: var(--lp-card); border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius); box-shadow: 0 30px 70px -24px rgba(20, 10, 40, .32);
  backdrop-filter: saturate(140%) blur(10px);
  padding: 1rem; display: grid; gap: .75rem;
}
.mock-bar { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--lp-faint); }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--lp-border-strong); }
.post { background: var(--lp-card-solid); border: 1px solid var(--lp-border); border-radius: var(--lp-radius-sm); padding: .875rem; }
.post p { margin: .5rem 0 0; font-size: .875rem; color: var(--lp-muted); }
.tag {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .6875rem; font-weight: 600;
  border-radius: 999px; padding: .2rem .55rem; background: var(--lp-soft);
  color: var(--lp-accent-2); border: 1px solid var(--lp-border);
}
.tag.ok { color: var(--lp-accent); }
.tag.ok::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--lp-accent); animation: live 2.4s ease-out infinite; }
.mock-actions { display: flex; gap: .5rem; }
.mini {
  flex: 1; text-align: center; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .45rem .5rem;
  border: 1px solid var(--lp-border-strong); color: var(--lp-muted); background: var(--lp-card-solid);
}
.mini.primary { background: linear-gradient(135deg, var(--lp-accent), var(--lp-violet)); color: #fff; border-color: transparent; }

/* ── Le ruban des réseaux ─────────────────────────────────────────── */
.ruban { overflow: hidden; margin-top: 3.5rem; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ruban-piste { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ruban-piste span {
  display: inline-flex; align-items: center; padding: 0 2rem;
  font-family: "Outfit", sans-serif; font-size: 1.125rem; font-weight: 600; color: var(--lp-faint); white-space: nowrap;
}

/* ── Chiffres ─────────────────────────────────────────────────────── */
.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); background: var(--lp-border); border: 1px solid var(--lp-border); border-radius: var(--lp-radius); overflow: hidden; }
.stat { background: var(--lp-card-solid); padding: 2.25rem 1.25rem; text-align: center; }
.sheet.sombre .stat { background: rgba(255, 255, 255, .04); }
.stat-n {
  display: block; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sheet.sombre .stat-n { background: linear-gradient(135deg, #d9a6ff, var(--lp-aqua)); -webkit-background-clip: text; background-clip: text; }
.stat p { margin: .625rem 0 0; font-size: .8125rem; color: var(--lp-muted); }

/* ── Questions ────────────────────────────────────────────────────── */
.faq details {
  border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
  padding: 1.125rem 1.375rem; margin-bottom: .75rem; background: var(--lp-card);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary::marker { color: var(--lp-violet); }
.faq p { color: var(--lp-muted); margin: .75rem 0 0; }

/* ── Pied ─────────────────────────────────────────────────────────── */
.foot { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.foot a { color: #bdb2d8; text-decoration: none; font-size: .9375rem; }
.foot a:hover { color: #fff; }
.foot p { color: #9b90b8; font-size: .9375rem; max-width: 34ch; }
.foot-end {
  margin-top: 3rem; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8125rem; color: #9b90b8;
}
.foot-end .right { margin-left: auto; }

:focus-visible { outline: 2px solid var(--lp-violet); outline-offset: 3px; border-radius: .25rem; }

/* ════════════════════════════════════════════════════════════════
   LES ANIMATIONS.

   LE TEXTE ARRIVE MOT PAR MOT. C'est la signature de la référence, et
   c'est ce qui manquait : `assets/vitrine.js` enveloppe chaque mot d'un
   titre dans un masque à `overflow: hidden`, et le mot monte de sa
   propre hauteur, légèrement incliné. Les mots s'enchaînent avec un
   retard croissant (`--w`), ce qui donne la vague.

   TOUT S'ÉTEINT sous `prefers-reduced-motion` — et pas en coupant la
   seule transition : les blocs doivent alors être VISIBLES d'emblée,
   sinon une page sans animation est une page vide.
   ════════════════════════════════════════════════════════════════ */
@keyframes float   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes cue     { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(6px); } }
@keyframes live    { 0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 70% { box-shadow: 0 0 0 .4rem transparent; opacity: .6; } 100% { box-shadow: 0 0 0 0 transparent; opacity: 1; } }
@keyframes orbe    { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3%, -4%) scale(1.12); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Le découpage en mots. `.mot` part en bas, incliné, et remonte quand le
   titre reçoit `vu`. Le masque coupe ce qui dépasse : le mot semble
   surgir de la ligne. */
.decoupe .masque { display: inline-block; overflow: hidden; vertical-align: bottom;
  margin: -.1em -.06em -.18em; padding: .1em .06em .18em; }
.decoupe .mot {
  display: inline-block; will-change: transform;
  transform: translateY(115%) rotate(2deg);
  transition: transform .72s cubic-bezier(.22, .9, .25, 1);
  transition-delay: calc(var(--w, 0) * 55ms + var(--d, 0s));
}
.decoupe.vu .mot { transform: none; }

/* Les blocs qui ne sont pas des titres montent simplement. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); transition-delay: var(--d, 0s); }
.reveal.vu { opacity: 1; transform: none; }

.scroll-cue span { display: block; animation: cue 2.2s ease-in-out infinite; }
.flotte { animation: float 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .decoupe .mot { transform: none; transition: none; }
  .orbe, .scroll-cue span, .flotte, .ruban-piste, .tag.ok::before, .kicker::before { animation: none; }
  .card:hover, .btn:hover { transform: none; }
}
