/* ==========================================================================
   TIPSTER — Feuille de style
   --------------------------------------------------------------------------
   Sommaire
     1. Polices (hébergées sur le site)
     2. Couleurs & réglages — modifie les couleurs ICI
     3. Base
     4. Éléments communs (boutons, titres, logo…)
     5. En-tête
     6. Sections : hero, étapes, aperçu, enquête,
        liste d'attente, FAQ, pied de page
     7. Pages légales, page 404
     8. Animations & préférences d'accessibilité
     9. Motion design (hero, titres, téléphone, cercles…)
   Approche « mobile d'abord » : les règles de base visent le téléphone,
   les @media (min-width: …) ajoutent la mise en page ordinateur.
   ========================================================================== */


/* 1. POLICES ---------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-roman.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* DM Sans : la police de l'app, utilisée seulement dans l'écran du téléphone */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}


/* 2. COULEURS & RÉGLAGES ------------------------------------------------------ */
:root {
  /* Palette officielle Tipster */
  --marine: #0A1F44;       /* couleur principale : fonds forts, textes */
  --or: #C9A84C;           /* accent rare : point du logo, détails */
  --creme: #F5F0E8;        /* fonds clairs */
  --vert: #1A3D2B;         /* couleur secondaire */
  --blanc: #FAFAF7;        /* fond neutre */
  --action: #1D9E75;       /* boutons d'action */

  /* Dérivés (lisibilité) */
  --ink-soft: #46566F;     /* texte secondaire sur fond clair */
  --line: rgba(10, 31, 68, .12);
  --error: #A8261B;
  --focus: var(--marine);

  /* Typographie */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rythme */
  --gutter: 20px;
  --container: 1120px;
  --section-space: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}


/* 3. BASE -------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--marine);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1rem; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; }
strong, b { font-weight: 600; }

::selection { background: rgba(201, 168, 76, .35); color: var(--marine); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--marine);
  color: var(--creme);
  font-weight: 600;
  text-decoration: none;
  --focus: var(--or);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { position: relative; padding-block: var(--section-space); } /* position : les ombres ne débordent pas sur la section suivante */
.section--blanc { background: var(--blanc); }
.section--creme { background: var(--creme); }
.section--vert  { background: var(--vert); }
.section--marine { background: var(--marine); }

/* Réglages communs à toutes les zones sombres */
.section--dark {
  color: var(--creme);
  --ink-soft: rgba(245, 240, 232, .78);
  --line: rgba(245, 240, 232, .14);
  --focus: var(--or);
}


/* 4. ÉLÉMENTS COMMUNS --------------------------------------------------------- */

/* Logo : « Tipster » en Fraunces 600 + point final doré */
.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  text-decoration: none;
  color: inherit;
}
.logo-dot { color: var(--or); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.25rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vert);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--or);
}
.section--dark .eyebrow { color: var(--or); }

.title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.018em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
  text-wrap: pretty;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), filter .25s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; }

/* Bouton d'action : vert action + texte marine (contraste AA) */
.btn--primary {
  background: var(--action);
  color: var(--marine);
}
.btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -14px rgba(29, 158, 117, .8);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: var(--line);
}
.btn--ghost:hover { border-color: currentColor; }

.btn--small {
  min-height: 2.75rem;
  padding: .5rem 1.15rem;
  font-size: .875rem;
}
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color .25s;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover .icon { transform: translateX(3px); }


/* 5. EN-TÊTE ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  /* État par défaut : barre claire (aussi utilisé si JavaScript est désactivé) */
  color: var(--marine);
  --focus: var(--marine);
  background: rgba(250, 250, 247, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 64px;
}
.header-logo {
  font-size: 1.5rem;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.header-nav { display: none; }
.header-nav ul {
  display: flex;
  gap: 2rem;
  padding: 0;
  list-style: none;
}
.header-nav a {
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  opacity: .82;
  transition: opacity .2s;
}
.header-nav a:hover { opacity: 1; }
.header-cta { margin-left: auto; }

/* En haut de page (par-dessus le hero) : barre transparente, sans logo.
   Le logo apparaît une fois le grand logo du hero dépassé. */
.header-ready .site-header:not(.is-scrolled) {
  color: var(--creme);
  --focus: var(--or);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.header-ready .site-header:not(.is-scrolled) .header-logo {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
}

@media (min-width: 900px) {
  .header-inner { height: 76px; }
  .header-nav { display: block; margin-left: auto; }
  .header-cta { margin-left: 0; }
}


/* 6a. HERO -------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 7rem 5.5rem;
  background: var(--marine);
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(60% 45% at 85% 105%, rgba(26, 61, 43, .85), transparent 70%),
    radial-gradient(50% 40% at 10% -5%, rgba(255, 255, 255, .06), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .eyebrow { color: var(--creme); gap: .6rem; letter-spacing: .22em; margin-bottom: 0; }
.hero .eyebrow::before { display: none; }
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--or);
}
.hero-logo {
  font-size: clamp(4.75rem, 1.5rem + 17vw, 11.5rem);
  letter-spacing: -.035em;
  margin: .32em 0 .28em;
  color: var(--creme);
}
.hero-slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.25rem);
  line-height: 1.25;
  margin: 0 0 2.5rem;
  color: var(--creme);
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}
.hero-actions .btn { width: 100%; max-width: 22rem; }

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; justify-content: center; gap: 2rem; }
  .hero-actions .btn { width: auto; }
}


/* 6c. COMMENT ÇA MARCHE ----------------------------------------------------- */
.steps {
  display: grid;
  gap: 2.75rem;
  padding: 0;
  list-style: none;
}
.step {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.step-num {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.step-title {
  margin: 0 0 .6rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
}
.step p { margin: 0; color: var(--ink-soft); max-width: 28em; }

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}


/* 6d. APERÇU DE L'APP ---------------------------------------------------------- */
.apercu-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.apercu-text .lead { margin-bottom: 0; }
.features {
  display: grid;
  margin-top: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.features .icon { margin-top: .15rem; color: var(--creme); opacity: .85; }
.features strong { display: block; color: var(--creme); font-weight: 600; }

/* Bloc futur : accès à l'app (masqué tant que config.js est vide) */
.app-access {
  margin-top: 2.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.app-access-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}
.app-access-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.app-access-links { display: grid; gap: 1rem; justify-items: start; }
.store-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.store-badge img { height: 44px; width: auto; }
.app-qr { margin: 0; text-align: center; }
.app-qr img {
  width: 132px; height: 132px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
}
.app-qr figcaption { margin-top: .6rem; font-size: .75rem; color: var(--ink-soft); max-width: 11rem; }
@media (max-width: 959px) {
  .app-qr { display: none !important; } /* QR code inutile sur téléphone */
}

/* Le téléphone est centré dans sa colonne (et sous le texte sur mobile) */
.apercu-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Maquette de téléphone (100 % HTML/CSS)
   L'écran reprend le fil de la maquette « Tipster V1.1 » (octobre 2026).
   Il est dessiné pour un écran de 390 px de large : toutes les mesures
   sont en cqw (1 cqw = 1 % de la largeur de l'écran), si bien que l'écran
   garde exactement ses proportions quelle que soit la taille du téléphone. */
.phone {
  position: relative;
  width: min(78vw, 300px);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(150deg, #1a3363 0%, #0A1F44 40%, #06142f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 50px 90px -40px rgba(0, 0, 0, .7),
    0 20px 40px -24px rgba(0, 0, 0, .55);
  container-type: inline-size;
}
.phone-screen {
  /* Couleurs de l'app (thème clair de la maquette V1) */
  --bg: #FAFAF7;
  --bg-blur: rgba(250, 250, 247, .86);
  --surface: #FFFFFF;
  --surface-2: #F5F0E8;
  --surface-3: #EDE6DA;
  --ink: #0A1F44;
  --ink-2: #47546E;
  --ink-3: #636D86;
  --line: rgba(10, 31, 68, .10);
  --line-2: rgba(10, 31, 68, .18);
  --accent: #1D9E75;
  --accent-ink: #FFFFFF;
  --accent-btn: #168463;
  --accent-text: #137A59;
  --deep: #1A3D2B;
  --gold-c: #C9A84C;
  --danger: #B8402C;
  --tpl-marine: #0A1F44;
  --tpl-marine-ink: #F5F0E8;
  --chip-mix: 100%;
  --shadow-1: 0 0.2564cqw 0.5128cqw rgba(10, 31, 68, .06), 0 0.5128cqw 2.0513cqw rgba(10, 31, 68, .06);
  --font-display: var(--font-serif);
  --font-ui: "DM Sans", var(--font-sans);
  --sat: 12.0513cqw;   /* barre d'état (47 px) */
  --sab: 5.641cqw;     /* barre d'accueil (22 px) */

  position: relative;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12.8205cqw;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 3.8462cqw;
  line-height: 1.4;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
}
/* Remises à zéro : les réglages généraux du site ne s'appliquent pas à l'écran */
.phone-screen .a-b { display: inline-block; }
.phone-screen p { margin: 1em 0; }
.phone-screen b { font-weight: 700; }
.phone-screen img { max-width: none; }

/* --- Styles repris de la maquette V1 (préfixe « a- ») --- */
.phone-screen .a-b { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.phone-screen .a-tnum { font-variant-numeric: tabular-nums; }
.phone-screen h1,
.phone-screen h2,
.phone-screen h3 { text-wrap: balance; margin: 0; }
.phone-screen svg.a-i { display: block; flex: none; }
.phone-screen .a-logo { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1; color: var(--ink); }
.phone-screen .a-logo .a-dot { color: var(--gold-c); }
.phone-screen .a-island { position: absolute; top: 2.8205cqw; left: 50%; transform: translateX(-50%); width: 31.2821cqw; height: 8.9744cqw; border-radius: 5.1282cqw; background: #000; z-index: 191; pointer-events: none; }
.phone-screen .a-statusbar { position: absolute; top: 0; left: 0; right: 0; height: 12.0513cqw; display: flex; align-items: center; justify-content: space-between; padding: 1.5385cqw 7.6923cqw 0 10.2564cqw; z-index: 190; font-weight: 600; font-size: 3.8462cqw; color: var(--ink); pointer-events: none; }
.phone-screen .a-statusbar .a-sb-icons { display: flex; gap: 1.5385cqw; align-items: center; }
.phone-screen .a-home-ind { position: absolute; bottom: 2.0513cqw; left: 50%; transform: translateX(-50%); width: 34.359cqw; height: 1.2821cqw; border-radius: 0.7692cqw; background: var(--ink); opacity: .85; z-index: 195; pointer-events: none; }
.phone-screen .a-app { --tabh: 14.359cqw;  
  position: absolute; inset: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); font-size: 3.8462cqw;
  overflow: hidden; }
.phone-screen .a-tabs-host { position: absolute; left: 0; right: 0; top: 0; bottom: calc(var(--tabh) + var(--sab)); isolation: isolate; z-index: 0; }
.phone-screen .a-tab-layer { position: absolute; inset: 0; }
.phone-screen .a-tab-layer[hidden] { display: none !important; }
.phone-screen .a-screen { position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  background: var(--bg);
  padding-top: var(--sat);
  scrollbar-width: none;
  overscroll-behavior: contain; }
.phone-screen .a-screen::-webkit-scrollbar { display: none; }
.phone-screen .a-topbar { position: sticky; top: calc(-1 * var(--sat)); z-index: 20;
  margin-top: calc(-1 * var(--sat)); padding-top: var(--sat);
  background: var(--bg-blur);
  -webkit-backdrop-filter: saturate(160%) blur(4.1026cqw); backdrop-filter: saturate(160%) blur(4.1026cqw); }
.phone-screen .a-topbar-row { height: 12.8205cqw; display: flex; align-items: center; gap: 1.0256cqw; padding: 0 1.5385cqw 0 2.0513cqw; }
.phone-screen .a-feed-logo { font-size: 7.1795cqw; padding-left: 2.0513cqw; flex: 1; }
.phone-screen .a-icon-btn { width: 11.2821cqw; height: 11.2821cqw; display: grid; place-items: center; border-radius: 3.0769cqw; position: relative; color: var(--ink); flex: none; }
.phone-screen .a-icon-btn:active { transform: scale(.94); }
.phone-screen .a-icon-btn .a-dotb { position: absolute; top: 2.0513cqw; right: 2.0513cqw; min-width: 4.359cqw; height: 4.359cqw; padding: 0 1.0256cqw; border-radius: 2.3077cqw; background: var(--danger); color: #fff; font-size: 2.6923cqw; font-weight: 700; display: grid; place-items: center; border: 0.5128cqw solid var(--bg); }
.phone-screen .a-tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tabh) + var(--sab));
  padding-bottom: var(--sab);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg-blur);
  -webkit-backdrop-filter: saturate(160%) blur(4.1026cqw); backdrop-filter: saturate(160%) blur(4.1026cqw);
  border-top: 0.2564cqw solid var(--line); }
.phone-screen .a-tabbar .a-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7692cqw; color: var(--ink-3); font-size: 2.6923cqw; font-weight: 600; letter-spacing: .01em; }
.phone-screen .a-tabbar .a-b.a-is-current { color: var(--ink); }
.phone-screen .a-tabbar .a-plus { width: 11.7949cqw; height: 8.7179cqw; border-radius: 3.0769cqw; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.phone-screen .a-tabbar .a-me-av { width: 6.6667cqw; height: 6.6667cqw; border-radius: 50%; overflow: hidden; border: 0.3846cqw solid transparent; }
.phone-screen .a-tabbar .a-b.a-is-current .a-me-av { border-color: var(--ink); }
.phone-screen .a-btn { height: 11.2821cqw; padding: 0 4.6154cqw; border-radius: 3.0769cqw; font-weight: 600; font-size: 3.8462cqw; display: inline-flex; align-items: center; justify-content: center; gap: 2.0513cqw; white-space: nowrap; transition: transform .12s, background .2s, opacity .2s; }
.phone-screen .a-btn:active { transform: scale(.97); }
.phone-screen .a-btn-primary { background: var(--accent-btn); color: var(--accent-ink); }
.phone-screen .a-btn-sm { height: 8.7179cqw; padding: 0 3.5897cqw; font-size: 3.5897cqw; border-radius: 2.5641cqw; }
.phone-screen .a-btn[disabled] { opacity: .4; pointer-events: none; }
.phone-screen .a-avatar { position: relative; flex: none; border-radius: 50%; display: grid; place-items: center; }
.phone-screen .a-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--surface-2); }
.phone-screen .a-avatar.a-ring { padding: 0.641cqw; background: conic-gradient(from 200deg, var(--accent), #2FC48F, var(--deep), var(--accent)); }
.phone-screen .a-avatar.a-ring img { border: 0.641cqw solid var(--bg); }
.phone-screen .a-avatar .a-plus-badge { position: absolute; right: -0.5128cqw; bottom: -0.5128cqw; width: 5.641cqw; height: 5.641cqw; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; border: 0.641cqw solid var(--bg); }
.phone-screen .a-chip { --c: var(--ink);
  height: 6.6667cqw; padding: 0 2.5641cqw 0 2.0513cqw; border-radius: 3.3333cqw;
  display: inline-flex; align-items: center; gap: 1.2821cqw; white-space: nowrap;
  font-size: 3.2051cqw; font-weight: 600;
  color: color-mix(in srgb, var(--c) var(--chip-mix), var(--ink));
  background: color-mix(in srgb, var(--c) 12%, transparent); }
.phone-screen .a-muted { color: var(--ink-3); }
.phone-screen .a-media { position: relative; overflow: hidden; background: var(--surface-3); }
.phone-screen .a-media img.a-m { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-screen .a-media.a-grain::after { content: ""; position: absolute; inset: 0; background-image: url("../images/app/grain.png"); mix-blend-mode: overlay; opacity: .55; pointer-events: none; }
.phone-screen .a-tpl { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 3.5897cqw; padding: 5.641cqw 5.641cqw 4.6154cqw; }
.phone-screen .a-tpl .a-logo { color: currentColor; }
.phone-screen .a-tpl.a-marine { background: var(--tpl-marine); color: var(--tpl-marine-ink); }
.phone-screen .a-tpl .a-watermark { position: absolute; right: -6.6667cqw; bottom: -7.6923cqw; opacity: .08; }
.phone-screen .a-tpl .a-tpl-top { display: flex; align-items: center; justify-content: space-between; gap: 2.5641cqw; position: relative; }
.phone-screen .a-tpl .a-tpl-cat { display: inline-flex; align-items: center; gap: 2.0513cqw; font-size: 3.0769cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.phone-screen .a-tpl .a-tpl-cat .a-bubble { width: 8.7179cqw; height: 8.7179cqw; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.phone-screen .a-tpl blockquote { margin: 0; position: relative; font-family: var(--font-display); font-style: italic; font-weight: 450; font-size: 5.641cqw; line-height: 1.28; letter-spacing: -.005em; text-wrap: pretty; }
.phone-screen .a-tpl blockquote::before { content: "“"; font-family: var(--font-display); font-style: normal; font-weight: 600; font-size: 15.3846cqw; line-height: 1; display: block; height: 7.6923cqw; margin-top: 1.5385cqw; opacity: .45; }
.phone-screen .a-tpl .a-tpl-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5641cqw; position: relative; }
.phone-screen .a-tpl .a-tpl-place { font-weight: 700; font-size: 3.8462cqw; line-height: 1.2; }
.phone-screen .a-tpl .a-tpl-place small { display: block; font-weight: 500; font-size: 3.2051cqw; opacity: .72; margin-top: 0.5128cqw; }
.phone-screen .a-golddots { display: inline-flex; gap: 1.2821cqw; }
.phone-screen .a-golddots i { width: 1.7949cqw; height: 1.7949cqw; border-radius: 50%; background: var(--gold-c); display: block; }
.phone-screen .a-stories { display: flex; gap: 3.5897cqw; overflow-x: auto; padding: 1.5385cqw 3.5897cqw 3.0769cqw; scrollbar-width: none; }
.phone-screen .a-stories::-webkit-scrollbar { display: none; }
.phone-screen .a-story-btn { display: flex; flex-direction: column; align-items: center; gap: 1.2821cqw; width: 17.9487cqw; flex: none; }
.phone-screen .a-story-btn .a-nm { font-size: 2.9487cqw; color: var(--ink); max-width: 17.9487cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-screen .a-feed-sep { height: 0.2564cqw; background: var(--line); }
.phone-screen .a-post { padding: 0 0 1.5385cqw; }
.phone-screen .a-post + .a-post,
.phone-screen .a-post + .a-req,
.phone-screen .a-req + .a-post,
.phone-screen .a-req + .a-req { border-top: 0.2564cqw solid var(--line); }
.phone-screen .a-post-head { display: flex; align-items: center; gap: 2.5641cqw; padding: 3.0769cqw 1.5385cqw 2.5641cqw 3.5897cqw; }
.phone-screen .a-post-head .a-who { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.phone-screen .a-post-head .a-who b { font-size: 3.7179cqw; font-weight: 700; display: flex; align-items: center; gap: 1.5385cqw; }
.phone-screen .a-post-head .a-who b span.a-t { font-weight: 400; color: var(--ink-3); font-size: 3.4615cqw; }
.phone-screen .a-post-head .a-where { font-size: 3.3333cqw; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 1.0256cqw; }
.phone-screen .a-post-media { position: relative; aspect-ratio: 4 / 5; width: 100%; user-select: none; -webkit-user-select: none; }
.phone-screen .a-post-media > .a-media,
.phone-screen .a-post-media > .a-tpl { position: absolute; inset: 0; }
.phone-screen .a-post-tpl { position: relative; margin: 0 3.5897cqw; border-radius: 4.6154cqw; overflow: hidden; user-select: none; }
.phone-screen .a-post-tpl .a-tpl { min-height: 58.9744cqw; }
.phone-screen .a-actions { display: flex; align-items: center; padding: 1.5385cqw 1.5385cqw 0 1.5385cqw; }
.phone-screen .a-act { height: 11.2821cqw; min-width: 11.2821cqw; padding: 0 2.0513cqw; display: inline-flex; align-items: center; gap: 1.5385cqw; font-size: 3.5897cqw; font-weight: 600; color: var(--ink); border-radius: 3.0769cqw; }
.phone-screen .a-act .a-cnt { font-variant-numeric: tabular-nums; }
.phone-screen .a-act-spacer { flex: 1; }
.phone-screen .a-caption { padding: 1.5385cqw 3.5897cqw 0; font-size: 3.7179cqw; line-height: 1.42; }
.phone-screen .a-caption b { font-weight: 700; margin-right: 1.2821cqw; }
.phone-screen .a-mini-comments { padding: 0.7692cqw 3.5897cqw 0; display: flex; flex-direction: column; gap: 0.5128cqw; font-size: 3.5897cqw; }
.phone-screen .a-mini-comments b { font-weight: 700; margin-right: 1.2821cqw; }
.phone-screen .a-post-time { padding: 1.5385cqw 3.5897cqw 2.0513cqw; font-size: 3.0769cqw; color: var(--ink-3); }
.phone-screen .a-req { padding: 3.5897cqw; }
.phone-screen .a-req-card { border-radius: 5.1282cqw; padding: 4.1026cqw; background: var(--surface); border: 0.2564cqw solid var(--line); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 3.0769cqw; }
.phone-screen .a-req-top { display: flex; align-items: center; gap: 2.5641cqw; }
.phone-screen .a-req-top .a-who { flex: 1; min-width: 0; font-size: 3.4615cqw; color: var(--ink-2); line-height: 1.3; text-align: left; }
.phone-screen .a-req-top .a-who b { color: var(--ink); }
.phone-screen .a-req-label { font-size: 2.8205cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); display: inline-flex; align-items: center; gap: 1.5385cqw; }
.phone-screen .a-req-q { font-family: var(--font-display); font-weight: 600; font-size: 5.3846cqw; line-height: 1.22; letter-spacing: -.005em; text-align: left; }
.phone-screen .a-req-meta { display: flex; gap: 1.5385cqw; flex-wrap: wrap; align-items: center; }
.phone-screen .a-req-foot { display: flex; align-items: center; justify-content: space-between; gap: 2.5641cqw; }
.phone-screen .a-hint { font-size: 3.3333cqw; color: var(--ink-3); line-height: 1.4; }

/* --- Adaptations pour le site --- */
/* Le fil défile tout seul (voir 9e) : la barre du haut reste fixe au-dessus */
.phone-screen .a-screen { overflow: hidden; padding-top: 0; }
.phone-screen .a-topbar { position: absolute; top: 0; left: 0; right: 0; margin-top: 0; }
.phone-screen .a-feed { padding-top: calc(var(--sat) + 12.8205cqw); }
.phone-screen .a-cnt-swap { display: inline-grid; }
.phone-screen .a-cnt-swap > span { grid-area: 1 / 1; }
.phone-screen .a-cnt-swap > span + span { opacity: 0; }

.phone-caption {
  margin: 1.5rem 0 0;
  font-size: .8125rem;
  color: rgba(245, 240, 232, .7);
}

@media (min-width: 960px) {
  .apercu-grid {
    grid-template-columns: 1.05fr .95fr;
    grid-template-areas: "text visual" "features visual";
    column-gap: 5rem;
    row-gap: 2.5rem;
  }
  .apercu-text { grid-area: text; align-self: end; }
  .apercu-visual { grid-area: visual; }
  .apercu-features { grid-area: features; align-self: start; }
  .phone { width: 320px; }
}


/* 6e. LISTE D'ATTENTE ------------------------------------------------------ */
.waitlist-inner,
.enquete-inner {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}
.waitlist-head .lead,
.enquete-head .lead { margin-bottom: 0; }

/* Carte « invitation » crème posée sur le fond marine (liste d'attente et enquête) */
.waitlist-card,
.enquete-card {
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
  border-radius: 26px;
  background: var(--creme);
  color: var(--marine);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
  --ink-soft: #46566F;
  --line: rgba(10, 31, 68, .12);
  --focus: var(--marine);
}
.field-label {
  display: block;
  margin-bottom: .5rem;
  font-size: .9375rem;
  font-weight: 600;
}
.field-input {
  width: 100%;
  min-height: 3.25rem;
  padding: .85rem 1.05rem;
  border: 1px solid rgba(10, 31, 68, .28);
  border-radius: 14px;
  background: #fff;
  color: var(--marine);
  font: inherit;
  font-size: 1rem; /* 16px minimum : évite le zoom automatique sur iPhone */
  transition: border-color .2s, box-shadow .2s;
}
.field-input::placeholder { color: #69758A; opacity: 1; }
.field-input:hover { border-color: rgba(10, 31, 68, .45); }
.field-input:focus { border-color: var(--marine); box-shadow: 0 0 0 4px rgba(10, 31, 68, .12); outline: none; }
.field-input[aria-invalid="true"] { border-color: var(--error); }
.field-error {
  margin: .45rem 0 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--error);
}
.field-error:empty { display: none; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: start;
  margin-top: 1.35rem;
}
.consent-input {
  width: 1.25rem; height: 1.25rem;
  margin: .15rem 0 0;
  accent-color: var(--marine);
  cursor: pointer;
}
.consent-label {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent-label a { color: var(--marine); font-weight: 500; text-underline-offset: .2em; }

.waitlist-form .btn { margin-top: 1.5rem; }
.waitlist-form .btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.form-status { margin: .75rem 0 0; font-size: .9rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-note {
  margin: 1rem 0 0;
  font-size: .8125rem;
  text-align: center;
  color: var(--ink-soft);
}

.waitlist-success { text-align: center; padding: 1rem 0 .5rem; }
.success-mark {
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--marine);
  color: var(--or);
}
.success-mark .icon { width: 1.6rem; height: 1.6rem; stroke-width: 2; }
.success-title {
  margin: 0 0 .75rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  line-height: 1.15;
}
.success-title:focus { outline: none; }
.waitlist-success p { color: var(--ink-soft); max-width: 26em; margin-inline: auto; }
.success-sign {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--vert) !important;
}
.success-survey { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.success-survey .link-arrow { color: var(--marine); }

/* Section enquête : mêmes bases que la liste d'attente */
.enquete-facts {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.enquete-facts li {
  display: flex;
  gap: .9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.enquete-facts li:first-child { padding-top: 0; }
.enquete-facts .icon { margin-top: .1rem; color: var(--vert); stroke-width: 2; }
.enquete-facts strong {
  display: block;
  margin-bottom: .1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--marine);
}
.enquete-note {
  margin: 1rem 0 0;
  font-size: .8125rem;
  text-align: center;
  color: var(--ink-soft);
}

@media (min-width: 960px) {
  .waitlist-inner,
  .enquete-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}


/* Enquête puis liste d'attente : deux sections marine qui se suivent,
   un filet discret les sépare */
.enquete:not([hidden]) + .waitlist { border-top: 1px solid rgba(245, 240, 232, .12); }


/* 6f. FAQ --------------------------------------------------------------------- */
.faq-inner { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1.35rem 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  width: 1.1em; height: 1.1em;
  color: var(--ink-soft);
  transition: transform .35s var(--ease);
}
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-answer p { margin: 0 0 1.5rem; color: var(--ink-soft); max-width: 40em; }
.faq-answer a { color: var(--marine); font-weight: 500; text-underline-offset: .2em; }

/* Ouverture en douceur (navigateurs récents uniquement) */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: clip;
    transition: height .4s var(--ease), content-visibility .4s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}


/* 6g. PIED DE PAGE ------------------------------------------------------------ */
.site-footer {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem) 2rem;
  background: var(--marine);
  color: var(--creme);
}
.footer-inner {
  display: grid;
  gap: 3rem;
}
.footer-logo { display: inline-block; font-size: 2.75rem; }
.footer-tagline {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.footer-cols { display: grid; gap: 2rem; }
.footer-cols p { margin: 0; }
.footer-label {
  margin-bottom: .6rem !important;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or);
}
.footer-cols a { text-decoration: none; overflow-wrap: anywhere; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer-links { padding: 0; list-style: none; display: grid; gap: .35rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--ink-soft);
}
.footer-bottom p { margin: 0; }

@media (min-width: 560px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-bottom { grid-column: 1 / -1; }
}


/* 7. PAGES LÉGALES, 404 ---------------------------------------------------------- */
.legal-header {
  background: var(--marine);
  color: var(--creme);
  --focus: var(--or);
}
.legal-header .header-inner { height: 72px; }
.legal-header .header-logo { font-size: 1.6rem; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  opacity: .85;
}
.legal-back:hover { opacity: 1; text-decoration: underline; text-underline-offset: .25em; }
.legal-back .icon { transform: rotate(180deg); width: 1em; height: 1em; }

.legal { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.legal-inner { max-width: 760px; }
.legal h1 {
  margin: 0 0 .75rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}
.legal-updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2.5rem; }
.legal-intro {
  font-size: 1.125rem;
  color: var(--ink-soft);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  margin: 2.75rem 0 .85rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
}
.legal p, .legal li { color: #2E3B55; }
.legal ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--marine); font-weight: 500; text-underline-offset: .2em; overflow-wrap: anywhere; }
.legal dl { margin: 0 0 1rem; display: grid; gap: .1rem; }
.legal dt { font-weight: 600; margin-top: .75rem; }
.legal dd { margin: 0; color: #2E3B55; }

/* Champ à compléter : bien visible pour ne pas l'oublier */
.todo {
  display: inline-block;
  padding: .05rem .5rem;
  border-radius: 6px;
  background: #FFF1C9;
  border: 1px dashed #9A7A1F;
  color: #5C4508;
  font-weight: 600;
  font-size: .95em;
}

.legal-footer { padding-block: 2.5rem; }
.legal-footer .footer-bottom { border-top: 0; padding-top: 0; }
.legal-footer a { color: var(--creme); }

/* Page 404 */
.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 3rem var(--gutter);
  background: var(--marine);
  color: var(--creme);
  text-align: center;
  --ink-soft: rgba(245, 240, 232, .78);
  --focus: var(--or);
}
.notfound .logo { font-size: clamp(3.5rem, 2rem + 8vw, 6rem); }
.notfound p { color: var(--ink-soft); margin: 1.25rem auto 2rem; max-width: 26em; }
.notfound .notfound-title { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.5rem; line-height: 1.3; color: var(--creme); margin: 1.5rem auto 0; max-width: 18em; text-wrap: balance; }


/* 8. ANIMATIONS & ACCESSIBILITÉ ----------------------------------------------------- */

/* Apparition du hero au chargement */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero-anim {
  animation: rise 1s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

/* Apparition discrète au défilement (activée par main.js) */
.reveal-on [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}
.reveal-on [data-reveal] {
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* Confirmation de la liste d'attente */
@keyframes pop {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: none; }
}
.waitlist-success:not([hidden]) .success-mark { animation: pop .6s var(--ease) both; }
.waitlist-success:not([hidden]) > :not(.success-mark) { animation: rise .8s var(--ease) both; animation-delay: .15s; }


/* 9. MOTION DESIGN ---------------------------------------------------------------
   Le fil rouge : le bouche-à-oreille. Le point doré du logo émet des ondes,
   la liste d'attente dessine des cercles qui s'élargissent, et les filets
   dorés se tracent au fil de la lecture. Uniquement des mouvements légers
   (transform, opacity) pour rester fluide sur téléphone.
   Tout est coupé si l'appareil demande moins d'animations (tout en bas).
   ------------------------------------------------------------------------------ */

:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* arrivée très douce */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);  /* aller-retour */
}

/* Rotation du téléphone (pilotée par main.js), animable en douceur */
@property --rx { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: false; initial-value: 0deg; }


/* 9a. HERO : le logo s'écrit, le point se pose et fait des ondes ------------- */
.hero-word { display: inline-block; white-space: nowrap; }
.hero-word .ch {
  display: inline-block;
  animation: letter-in 1.1s var(--ease-out) both;
  animation-delay: calc(120ms + var(--i) * 55ms);
}
/* Les lettres étant séparées, on recrée l'approche d'origine entre T-i et t-e */
.hero-word .ch--i { margin-left: -.042em; }
.hero-word .ch--e { margin-left: -.007em; }

@keyframes letter-in {
  from { opacity: 0; transform: translateY(.32em) rotate(3deg); filter: blur(12px); }
  60%  { filter: blur(0); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Le point doré tombe et rebondit à peine */
.hero-dot {
  position: relative;
  display: inline-block;
  transform-origin: 50% 80%;
  animation: dot-drop 1s 560ms both;
}
@keyframes dot-drop {
  0%   { opacity: 0; transform: translateY(-1em); animation-timing-function: cubic-bezier(.55, 0, .9, .45); }
  48%  { opacity: 1; transform: translateY(0) scale(1.14, .84); animation-timing-function: var(--ease-out); }
  72%  { transform: translateY(-.045em) scale(.97, 1.03); }
  100% { opacity: 1; transform: none; }
}
/* « Bientôt à Liège » : le point pulse doucement, comme un signal en direct */
.eyebrow-dot { position: relative; }
.eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--or);
  opacity: 0;
  animation: ping 2.8s var(--ease-out) 1.4s infinite;
}
@keyframes ping {
  0%        { opacity: .65; transform: scale(1); }
  70%, 100% { opacity: 0;   transform: scale(3.4); }
}

/* Le slogan apparaît mot à mot */
.hero-slogan-words .w {
  display: inline-block;
  animation: word-in .9s var(--ease-out) both;
  animation-delay: calc(850ms + var(--i) * 35ms);
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(.45em); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Lueurs du fond qui dérivent lentement */
.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow::before { /* vert, en bas à droite */
  right: -25vmax;
  bottom: -38vmax;
  width: 75vmax;
  height: 75vmax;
  background: radial-gradient(closest-side, rgba(29, 158, 117, .17), transparent);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.hero-glow::after { /* doré, en haut à gauche */
  left: -22vmax;
  top: -30vmax;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(closest-side, rgba(201, 168, 76, .1), transparent);
  animation: drift-b 28s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(-14vmax, -9vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(16vmax, 11vmax, 0) scale(1.1); } }

/* Halo discret qui suit la souris (ordinateur uniquement, via main.js) */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 240, 232, .075), transparent);
  opacity: 0;
  transform: translate3d(calc(var(--mx, 50vw) - 50%), calc(var(--my, 50vh) - 50%), 0);
  transition: opacity .8s var(--ease), transform .6s var(--ease-out);
  pointer-events: none;
}
.hero.is-pointer::before { opacity: 1; }

/* La barre du haut arrive après le logo */
.header-ready .site-header { animation: header-in .9s var(--ease-out) .5s both; }
@keyframes header-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* Liens du menu : filet doré au survol */
.header-nav a { position: relative; }
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.35rem;
  height: 1px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.header-nav a:hover::after,
.header-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Boutons verts : un reflet traverse le bouton au survol */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .42) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn--primary:hover::after { transform: translateX(120%); transition: transform .9s var(--ease-in-out); }
/* … et une fois tout seul, juste après l'arrivée du hero */
.hero .btn--primary::after { animation: sheen 1.3s var(--ease-in-out) 2.7s; }
@keyframes sheen {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}


/* 9b. TITRES ET FILETS : ils s'écrivent au défilement ----------------------- */
/* Les titres sont découpés en mots par main.js */
.split-word { display: inline-block; }
.reveal-on [data-reveal] .split-word {
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out), filter .8s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + 80ms + var(--wi, 0) * 45ms);
}
.reveal-on [data-reveal]:not(.is-visible) .split-word {
  opacity: 0;
  transform: translateY(.5em);
  filter: blur(6px);
}

/* Le petit filet doré des sur-titres se trace */
.reveal-on [data-reveal] .eyebrow::before {
  transform-origin: left;
  transition: transform 1s var(--ease-out) calc(var(--d, 0ms) + 150ms);
}
.reveal-on [data-reveal]:not(.is-visible) .eyebrow::before { transform: scaleX(0); }


/* 9d. COMMENT ÇA MARCHE ----------------------------------------------------- */
.step { position: relative; }
.step::after { /* petit filet doré au-dessus de chaque étape */
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 1px;
  background: var(--or);
  transform-origin: left;
}
.reveal-on .step::after { transition: transform 1.1s var(--ease-out) calc(var(--d, 0ms) + 250ms); }
.reveal-on .step:not(.is-visible)::after { transform: scaleX(0); }
.reveal-on .step .step-num {
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + 120ms);
}
.reveal-on .step:not(.is-visible) .step-num { opacity: 0; transform: translateY(.35em); }


/* 9e. APERÇU : un téléphone vivant ------------------------------------------ */
.section--vert { overflow: hidden; } /* le halo ne déborde pas sur les côtés */
.apercu-visual { position: relative; }
.apercu-visual::before { /* halo derrière le téléphone */
  content: "";
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(560px, 100vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(29, 158, 117, .3), rgba(201, 168, 76, .06) 60%, transparent);
  transform: translate(-50%, -50%);
  animation: halo 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halo {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(.94); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.04); }
}
.phone-caption { position: relative; }

/* Le téléphone flotte et s'incline légèrement vers la souris */
.phone {
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: --rx 1.1s var(--ease-out), --ry 1.1s var(--ease-out);
  animation: phone-float 7s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}
/* Arrivée : il se redresse en entrant dans l'écran */
.reveal-on .apercu-visual:not(.is-visible) .phone { --rx: 16deg; --ry: -18deg; }

/* À l'arrivée, les stories et le fil apparaissent l'un après l'autre */
.reveal-on .apercu-visual .a-story-btn,
.reveal-on .apercu-visual .a-post-head,
.reveal-on .apercu-visual .a-post-media {
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + 420ms);
}
.reveal-on .apercu-visual .a-story-btn:nth-child(2) { transition-delay: calc(var(--d, 0ms) + 500ms); }
.reveal-on .apercu-visual .a-story-btn:nth-child(3) { transition-delay: calc(var(--d, 0ms) + 580ms); }
.reveal-on .apercu-visual .a-story-btn:nth-child(4) { transition-delay: calc(var(--d, 0ms) + 660ms); }
.reveal-on .apercu-visual .a-story-btn:nth-child(n+5) { transition-delay: calc(var(--d, 0ms) + 740ms); }
.reveal-on .apercu-visual .a-post-head { transition-delay: calc(var(--d, 0ms) + 820ms); }
.reveal-on .apercu-visual .a-post-media { transition-delay: calc(var(--d, 0ms) + 900ms); }
.reveal-on .apercu-visual:not(.is-visible) .a-story-btn { opacity: 0; transform: translateY(1.2em) scale(.92); }
.reveal-on .apercu-visual:not(.is-visible) .a-post-head,
.reveal-on .apercu-visual:not(.is-visible) .a-post-media { opacity: 0; transform: translateY(2em); }

/* En boucle, comme si quelqu'un faisait défiler le fil (14 s) :
   la photo d'Antoine → on appuie sur « Moi aussi » (29 → 30)
   → la demande de bon plan → retour en haut. */
.phone .a-feed { animation: feed-scroll 14s infinite; }
@keyframes feed-scroll {
  0%, 20%   { transform: translateY(0); animation-timing-function: var(--ease-in-out); }
  28%, 50%  { transform: translateY(var(--stop-1)); animation-timing-function: var(--ease-in-out); }
  58%, 84%  { transform: translateY(var(--stop-2)); animation-timing-function: var(--ease-in-out); }
  94%, 100% { transform: translateY(0); }
}
.phone .a-feed { --stop-1: -48.72cqw; --stop-2: -213.33cqw; } /* 190 px et 832 px de l'écran de 390 px */

.phone .a-act-moi { animation: moi-color 14s infinite; }
.phone .a-act-moi svg { animation: moi-pop 14s infinite; }
.phone .a-cnt-swap > span:first-child { animation: moi-before 14s infinite; }
.phone .a-cnt-swap > span:last-child { animation: moi-after 14s infinite; }
@keyframes moi-color  { 0%, 33% { color: var(--ink); } 33.5%, 96% { color: var(--accent-text); } 96.5%, 100% { color: var(--ink); } }
@keyframes moi-pop    { 0%, 33% { transform: none; } 34.5% { transform: scale(1.32); } 36.5%, 100% { transform: none; } }
@keyframes moi-before { 0%, 33% { opacity: 1; } 33.5%, 96% { opacity: 0; } 96.5%, 100% { opacity: 1; } }
@keyframes moi-after  { 0%, 33% { opacity: 0; } 33.5%, 96% { opacity: 1; } 96.5%, 100% { opacity: 0; } }

/* Sur la demande de bon plan, le bouton « Répondre » est effleuré */
.phone .a-reply-pulse { animation: reply-pulse 14s infinite; }
@keyframes reply-pulse {
  0%, 68%   { transform: none; box-shadow: 0 0 0 0 rgba(29, 158, 117, .45); }
  70%       { transform: scale(.95); }
  72%       { transform: none; }
  78%, 100% { box-shadow: 0 0 0 2.5cqw rgba(29, 158, 117, 0); }
}

/* Les fonctionnalités arrivent une à une */
.reveal-on .apercu-features .features li { transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.reveal-on .apercu-features .features li:nth-child(2) { transition-delay: 70ms; }
.reveal-on .apercu-features .features li:nth-child(3) { transition-delay: 140ms; }
.reveal-on .apercu-features .features li:nth-child(4) { transition-delay: 210ms; }
.reveal-on .apercu-features .features li:nth-child(5) { transition-delay: 280ms; }
.reveal-on .apercu-features:not(.is-visible) .features li { opacity: 0; transform: translateX(-14px); }


/* 9f. LISTE D'ATTENTE : « Rejoins le cercle. » ------------------------------ */
.waitlist { overflow: hidden; }
.waitlist-inner { position: relative; z-index: 1; }
.cercle {
  position: absolute;
  top: 70%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cercle span {
  position: absolute;
  top: -22rem;
  left: -22rem;
  width: 44rem;
  height: 44rem;
  border: 1px solid rgba(201, 168, 76, .55);
  border-radius: 50%;
  opacity: 0;
  animation: cercle 14s linear infinite;
  animation-delay: calc(var(--k) * -3.5s);
}
@keyframes cercle {
  0%   { opacity: 0;   transform: scale(.12); }
  12%  { opacity: .7; }
  100% { opacity: 0;   transform: scale(1.5); }
}
@media (min-width: 960px) {
  .cercle { top: 50%; left: 75%; }
}

/* Inscription réussie : la coche se trace et deux ondes partent du cercle */
.success-mark { position: relative; }
.success-mark::before,
.success-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--marine);
  border-radius: 50%;
  opacity: 0;
}
.waitlist-success:not([hidden]) .success-mark::before { animation: ring-out 1.4s var(--ease-out) .35s; }
.waitlist-success:not([hidden]) .success-mark::after  { animation: ring-out 1.4s var(--ease-out) .6s; }
.waitlist-success:not([hidden]) .success-mark .icon {
  stroke-dasharray: 23;
  animation: draw .6s var(--ease-out) .3s both;
}
@keyframes ring-out {
  from { opacity: .5; transform: scale(1); }
  to   { opacity: 0;  transform: scale(2.6); }
}
@keyframes draw { from { stroke-dashoffset: 23; } to { stroke-dashoffset: 0; } }


/* 9g. FAQ : la réponse glisse doucement à l'ouverture ------------------- */
.faq-item[open] .faq-answer { animation: rise .6s var(--ease-out) both; }
.faq-item summary { transition: color .25s var(--ease); }
.faq-item summary:hover { color: var(--vert); }


/* 9h. PERFORMANCES ---------------------------------------------------------- */
/* Les animations en boucle s'arrêtent quand leur section n'est pas à l'écran */
.is-paused *,
.is-paused *::before,
.is-paused *::after { animation-play-state: paused !important; }


/* MOUVEMENT RÉDUIT ---------------------------------------------------------------
   Si l'appareil demande moins d'animations (réglage d'accessibilité),
   tout s'affiche directement, sans mouvement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal-on [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
  .eyebrow-dot::after,
  .cercle,
  .hero::before,
  .btn--primary::after { display: none; }
  .phone,
  .phone .a-feed,
  .phone .a-act-moi,
  .phone .a-act-moi svg,
  .phone .a-cnt-swap > span,
  .phone .a-reply-pulse,
  .hero-glow::before,
  .hero-glow::after,
  .apercu-visual::before { animation: none !important; }
}
