/* =============================================================================
   Flowta — Landing page (v2, premium)
   Palette terracotta #C17B5C + crème #FAF3EE · dégradés subtils · Lora + Inter
   Tokens transposés de frontend/lib/core/theme/flow_tokens.dart
   ========================================================================== */

/* ─── Polices auto-hébergées ────────────────────────────────────────────────
   Inter et Lora étaient auparavant chargées depuis fonts.googleapis.com : les
   polices étant demandées dans le <head>, l'adresse IP de chaque visiteur
   partait chez Google AVANT toute interaction — un transfert qu'aucun bandeau
   de consentement n'aurait pu couvrir (cf. LG München, 3 O 17493/20).
   Elles sont désormais servies depuis nos propres serveurs.

   Fichiers produits depuis les TTF déjà présents dans le dépôt
   (frontend/assets/google_fonts/, mêmes fichiers que ceux servis par
   fonts.gstatic.com), convertis en WOFF2 et sous-ensemblés en latin + latin-ext
   + flèches + coche. Licences OFL dans assets/fonts/.

   `font-display: swap` : le texte s'affiche immédiatement dans la police de
   repli, puis bascule — pas d'écran vide pendant le chargement.
   ────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}
/* 700 et 800 partagent le Bold : la graisse 800 (.stamp) est synthétisée par le
   navigateur, exactement comme avant avec Google Fonts qui ne servait pas non
   plus de fichier 800. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/Lora-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/Lora-Bold.woff2') format('woff2');
}
/* Véritable italique Lora — dessin calligraphique, et non un romain penché par
   le navigateur. Seul usage : `<em>` du titre du hero (.hero__title em).
   Produit depuis la police variable officielle Lora-Italic[wght] (OFL,
   github.com/google/fonts), instanciée à wght=600 puis sous-ensemblée. */
@font-face {
  font-family: 'Lora'; font-style: italic; font-weight: 600; font-display: swap;
  src: url('../fonts/Lora-SemiBoldItalic.woff2') format('woff2');
}

/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  /* Couleurs — marque */
  --cream:          #FAF3EE;
  --cream-2:        #F5EAE0;
  --cream-3:        #F0E2D5;
  --surface:        #FFFDFB;
  --brand:          #C17B5C;
  --brand-bright:   #D89C6E;
  --brand-deep:     #A5613F;
  --brand-ink:      #7A4327;
  --sage:           #4F8A60;
  --sage-deep:      #3D6E4B;

  /* Couleurs — texte */
  --ink:            #2E2219;
  --ink-2:          #6B5A4D;
  --ink-3:          #8A7768;
  --ink-inverse:    #FBF3EC;

  /* Couleurs — accents par fonctionnalité (repris des cartes de listes de l'app) */
  --acc-terra: #C17B5C; --acc-terra-2: #A5613F;
  --acc-blue:  #5A82C9; --acc-blue-2:  #3E63A8;
  --acc-teal:  #2E8B82; --acc-teal-2:  #227068;
  --acc-green: #4F9160; --acc-green-2: #3D7A4E;
  --acc-plum:  #8B5CA0; --acc-plum-2:  #6E4483;
  --acc-coral: #CE6A47; --acc-coral-2: #B04E2E;

  /* Dégradés */
  --grad-brand:  linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 45%, var(--brand-deep) 100%);
  --grad-cta:    linear-gradient(135deg, #C9835F 0%, #A5613F 55%, #8E4E2C 100%);
  --grad-page:   linear-gradient(180deg, #FCF7F2 0%, #FAF3EE 100%);
  --sheen:       linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 42%);

  /* Lignes & ombres (teinte chaude) */
  --border:         rgba(46, 34, 25, .09);
  --border-2:       rgba(46, 34, 25, .14);
  --shadow-xs:      0 1px 2px rgba(120, 72, 40, .06);
  --shadow-sm:      0 2px 6px rgba(120, 72, 40, .07), 0 6px 16px rgba(120, 72, 40, .05);
  --shadow-md:      0 6px 16px rgba(120, 72, 40, .09), 0 18px 40px rgba(120, 72, 40, .08);
  --shadow-lg:      0 14px 30px rgba(120, 72, 40, .12), 0 34px 70px rgba(120, 72, 40, .14);
  --shadow-brand:   0 10px 24px rgba(165, 97, 63, .30);

  /* Espacement — grille 8px (mirroir FlowSpacing) */
  --space-nano: 4px;  --space-xs: 8px;   --space-sm: 16px;  --space-md: 24px;
  --space-lg: 32px;   --space-xl: 40px;  --space-2xl: 48px; --space-3xl: 72px; --space-4xl: 112px;

  /* Rayons (mirroir FlowRadius, enrichis) */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px;
  --radius-2xl: 32px; --radius-3xl: 40px; --radius-pill: 100px;

  /* Layout */
  --content-max: 1160px; --prose-max: 720px; --bp-mobile: 600px; --bp-tablet: 900px;

  /* Motion */
  --motion-fast: 160ms; --motion-normal: 260ms; --motion-slow: 420ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, .14, .3, 1);

  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.65;
  color: var(--ink);
  background: var(--grad-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: 600; line-height: 1.12;
  color: var(--ink); margin: 0 0 var(--space-sm); letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 3.85rem); }
h2 { font-size: clamp(1.95rem, 4vw, 2.85rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-sm); }
a { color: var(--brand-ink); text-decoration: none; transition: color var(--motion-fast) var(--ease-out); }
a:hover { color: var(--brand-deep); }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; border-radius: var(--radius-sm); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--brand-deep);
  color: #fff; padding: var(--space-sm) var(--space-md); border-radius: 0 0 var(--radius-md) 0; }
.skip-link:focus { left: 0; color: #fff; }

/* ─── Layout utilitaires ────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--space-lg); }
.section { padding-block: var(--space-4xl); position: relative; }
.section--tight { padding-block: var(--space-3xl); }
.section--alt { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }

.section-head { max-width: var(--prose-max); margin-bottom: var(--space-2xl); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-deep); margin-bottom: var(--space-md);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.section-head--center .eyebrow::before { display: none; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; line-height: 1.6; }
.section-head--center .lead { margin-inline: auto; }

/* ─── Boutons ───────────────────────────────────────────────────────────── */
.btn {
  --_bg: var(--brand-deep); --_fg: #fff;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 28px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1;
  color: var(--_fg); background: var(--_bg);
  border: 1px solid transparent; border-radius: var(--radius-pill); cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-normal) var(--ease-out),
              background var(--motion-normal) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-2px); color: var(--_fg); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--grad-cta); box-shadow: var(--shadow-brand); }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: var(--sheen); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(165,97,63,.42); }

.btn--outline { --_bg: transparent; --_fg: var(--brand-ink); border-color: var(--border-2); }
.btn--outline:hover { --_bg: rgba(193,123,92,.09); border-color: var(--brand); }

.btn--light { --_bg: #fff; --_fg: var(--brand-ink); box-shadow: var(--shadow-md); }
.btn--light:hover { --_bg: #fff; }

.btn--lg { min-height: 58px; padding: 17px 36px; font-size: 1.06rem; }
.btn--block { display: flex; width: 100%; }

/* ─── En-tête / navigation ──────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100;
  background: rgba(250, 243, 238, .78);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: var(--space-lg); min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head);
  font-weight: 600; font-size: 1.3rem; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.beta-badge { display: inline-flex; align-items: center; font-size: .6rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep);
  background: rgba(193,123,92,.14); border: 1px solid rgba(193,123,92,.3);
  padding: 3px 7px; border-radius: var(--radius-pill); line-height: 1; margin-left: -2px; }
.site-footer .beta-badge { color: #F3D9C6; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }

/* Tampon « Bientôt » — marqueur provisoire incliné (plus pro qu'un badge droit) */
.stamp { position: absolute; z-index: 6; top: -9px; right: -8px; transform: rotate(8deg);
  display: inline-flex; align-items: center; gap: 5px; font-size: .6rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  padding: 4px 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 5px 12px rgba(120,72,40,.32); pointer-events: none; }
.stamp::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.stamp--inline { position: static; transform: rotate(6deg); top: auto; right: auto;
  font-size: .55rem; padding: 2px 7px 3px; margin-left: 8px; box-shadow: 0 2px 6px rgba(120,72,40,.28); }

/* Carrousel d'écrans dans l'iPhone */
.iphone__screen .pscreen { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top; opacity: 0; transition: opacity var(--motion-slow) var(--ease-out); }
.iphone__screen .pscreen.is-active { opacity: 1; }
.carousel-controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: var(--space-lg); }
.carousel-nav { display: flex; align-items: center; gap: 14px; }
.carousel-label { min-width: 152px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--ink); }
.carousel-arrow { width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  color: var(--brand-deep); background: var(--surface); border: 1px solid var(--border-2); border-radius: 50%;
  box-shadow: var(--shadow-sm); transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast) var(--ease-out); }
.carousel-arrow:hover { transform: scale(1.08); background: var(--cream-2); }
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-dots .cdot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: var(--border-2); transition: width var(--motion-normal) var(--ease-out), background var(--motion-normal) var(--ease-out); }
.carousel-dots .cdot.is-active { width: 24px; border-radius: 5px; background: var(--brand); }

.nav__links { display: flex; align-items: center; gap: var(--space-xl); }
.nav__link { position: relative; color: var(--ink-2); font-weight: 500; font-size: .98rem; padding: 6px 0; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  border-radius: 2px; background: var(--grad-brand); transition: width var(--motion-normal) var(--ease-out); }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: var(--space-sm); }

.nav__toggle { display: none; width: 48px; height: 48px; padding: 0; background: transparent;
  border: 1px solid var(--border-2); border-radius: var(--radius-md); cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .nav { gap: var(--space-sm); }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__menu { position: fixed; inset: 74px 0 auto 0; background: var(--cream);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: var(--space-md); display: none; flex-direction: column; gap: var(--space-xs); }
  .nav__menu.is-open { display: flex; }
  .nav__menu .nav__links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__menu .nav__link { padding: var(--space-sm); border-radius: var(--radius-md); font-size: 1.05rem; }
  .nav__menu .nav__link:hover { background: var(--cream-2); }
  .nav__menu .nav__actions { flex-direction: column; align-items: stretch; margin-top: var(--space-sm); gap: var(--space-xs); }
  .nav__menu .btn { width: 100%; }
}
@media (min-width: 901px) { .nav__menu { display: contents; } }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: var(--space-4xl) var(--space-3xl);
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(216,156,110,.28) 0%, transparent 60%),
    radial-gradient(50% 50% at 8% 4%, rgba(193,123,92,.16) 0%, transparent 55%),
    linear-gradient(180deg, #FCF6F1 0%, #F8EEE6 100%); }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: var(--space-2xl); align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px;
  background: rgba(255,255,255,.7); border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  font-size: .86rem; font-weight: 600; color: var(--brand-ink); margin-bottom: var(--space-md); box-shadow: var(--shadow-xs); }
.hero__badge svg { color: var(--sage); }
.hero__title { margin-bottom: var(--space-md); }
.hero__title em { font-style: italic; color: var(--brand-deep);
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { font-size: 1.22rem; color: var(--ink-2); margin-bottom: var(--space-lg); max-width: 47ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); }
.hero__note { font-size: .93rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { color: var(--sage); flex: none; }
.hero__beta { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; margin-bottom: 0;
  font-size: .86rem; color: var(--ink-3); }
.hero__beta .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-bright); flex: none;
  box-shadow: 0 0 0 3px rgba(216,156,110,.25); }

/* Showcase : iPhone 3D + cartes flottantes */
.showcase { position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 560px; perspective: 1800px; }
.showcase__glow { position: absolute; width: 78%; height: 68%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216,156,110,.5), transparent 72%); filter: blur(36px); z-index: 0; }

.iphone { position: relative; z-index: 2; width: 300px; max-width: 76vw;
  transform: rotateY(-13deg) rotateX(5deg) rotate(-1deg);
  transform-style: preserve-3d; transition: transform var(--motion-slow) var(--ease-out);
  filter: drop-shadow(0 34px 46px rgba(90, 52, 28, .30)); }
.showcase:hover .iphone { transform: rotateY(-6deg) rotateX(3deg); }
.iphone__frame { position: relative; padding: 11px; border-radius: 52px;
  background: linear-gradient(150deg, #d8ccc3 0%, #8d7d72 22%, #4a3f37 50%, #8d7d72 78%, #d8ccc3 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), inset 0 0 3px 1px rgba(0,0,0,.4); }
.iphone__frame::before, .iphone__frame::after { /* boutons latéraux */
  content: ""; position: absolute; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #6b5d53, #3a322c); }
.iphone__frame::before { left: -3px; top: 132px; height: 58px; box-shadow: 0 74px 0 #4a3f37, 0 -0px 0 #4a3f37; }
.iphone__frame::after  { right: -3px; top: 150px; height: 78px; }
.iphone__screen { position: relative; border-radius: 42px; overflow: hidden; background: #FAF3EE;
  aspect-ratio: 487 / 1006; }
.iphone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.iphone__island { position: absolute; z-index: 3; top: 18px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 27px; background: #0d0b0a; border-radius: 100px; }
.iphone__glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 42px;
  background: linear-gradient(128deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 100%); }

.float-card { position: absolute; z-index: 3;
  background: rgba(255,253,251,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px 15px; box-shadow: var(--shadow-lg); }
.float-card__inner { display: flex; align-items: center; gap: 11px;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.float-card.is-out .float-card__inner { opacity: 0; transform: translateY(6px) scale(.96); }
.float-card__ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; color: #fff;
  border-radius: 11px; box-shadow: 0 4px 10px rgba(120,72,40,.2); }
.float-card__body { min-width: 0; max-width: 185px; }
.float-card__t { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.float-card__s { display: block; font-size: .74rem; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.float-card--a { top: 24px; left: -10px; animation: floaty 6s var(--ease-out) infinite; }
.float-card--b { bottom: 56px; right: -18px; animation: floaty 7s var(--ease-out) .8s infinite; }
.float-card[data-color="terra"] .float-card__ic { background: linear-gradient(135deg, var(--acc-terra), var(--acc-terra-2)); }
.float-card[data-color="blue"]  .float-card__ic { background: linear-gradient(135deg, var(--acc-blue), var(--acc-blue-2)); }
.float-card[data-color="teal"]  .float-card__ic { background: linear-gradient(135deg, var(--acc-teal), var(--acc-teal-2)); }
.float-card[data-color="green"] .float-card__ic { background: linear-gradient(135deg, var(--acc-green), var(--acc-green-2)); }
.float-card[data-color="plum"]  .float-card__ic { background: linear-gradient(135deg, var(--acc-plum), var(--acc-plum-2)); }
.float-card[data-color="coral"] .float-card__ic { background: linear-gradient(135deg, var(--acc-coral), var(--acc-coral-2)); }
.float-card__bar { display: block; width: 66px; height: 6px; border-radius: 6px; background: rgba(46,34,25,.12); margin-top: 6px; overflow: hidden; }
.float-card__bar > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand-bright), var(--brand)); }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* Séparateur adouci hero → suite */
.section-fade { height: 96px; margin-top: -48px; background: linear-gradient(180deg, transparent, var(--cream) 78%); position: relative; z-index: 1; }

/* ─── Bandeau confiance ─────────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.trust__item { position: relative; display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.trust__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; color: #fff;
  background: var(--grad-brand); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.trust__label { font-weight: 600; font-size: .96rem; }
.trust__sub { font-size: .84rem; color: var(--ink-2); }

/* ─── Fonctionnalités ───────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.feature { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-2xl); padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal) var(--ease-out),
              border-color var(--motion-normal) var(--ease-out); }
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; opacity: .9;
  background: linear-gradient(90deg, var(--_c1), var(--_c2)); transform: scaleX(0); transform-origin: left;
  transition: transform var(--motion-slow) var(--ease-out); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.feature:hover::before { transform: scaleX(1); }
.feature__icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: var(--space-md);
  color: #fff; border-radius: var(--radius-lg); position: relative;
  background: linear-gradient(140deg, var(--_c1), var(--_c2)); box-shadow: 0 8px 18px rgba(120,72,40,.22); }
.feature__icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--sheen); }
.feature h3 { margin-bottom: var(--space-xs); }
.feature p { color: var(--ink-2); margin: 0; font-size: .99rem; }
.feature--terra { --_c1: var(--acc-terra); --_c2: var(--acc-terra-2); }
.feature--blue  { --_c1: var(--acc-blue);  --_c2: var(--acc-blue-2); }
.feature--teal  { --_c1: var(--acc-teal);  --_c2: var(--acc-teal-2); }
.feature--green { --_c1: var(--acc-green); --_c2: var(--acc-green-2); }
.feature--plum  { --_c1: var(--acc-plum);  --_c2: var(--acc-plum-2); }
.feature--coral { --_c1: var(--acc-coral); --_c2: var(--acc-coral-2); }

/* ─── Spotlight équité ──────────────────────────────────────────────────── */
.spotlight { position: relative; overflow: hidden; color: var(--ink-inverse);
  background: linear-gradient(150deg, #45694E 0%, #37583F 60%, #2F4A37 100%); }
.spotlight::before { content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -160px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(216,156,110,.28), transparent 70%); }
.spotlight .container { position: relative; z-index: 1; }
.spotlight .eyebrow { color: #CFE6D3; }
.spotlight .eyebrow::before { background: #CFE6D3; }
.spotlight h2 { color: #fff; }
.spotlight__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.spotlight__lead { color: rgba(251,243,236,.86); font-size: 1.15rem; max-width: 62ch; margin-inline: auto; }
.spotlight__points { display: grid; gap: var(--space-lg); align-content: center; }
.spotlight__points li { display: flex; gap: var(--space-md); align-items: flex-start; }
.spotlight__points .chk { flex: none; width: 34px; height: 34px; display: grid; place-items: center; margin-top: 2px;
  border-radius: 50%; background: rgba(255,255,255,.15); color: #C7E8CD; }
.spotlight__point strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: 1.14rem; margin-bottom: 4px; }
.spotlight__point > span { display: block; color: rgba(251,243,236,.8); font-size: .98rem; line-height: 1.55; }

.equity-card { background: rgba(255,255,255,.96); border-radius: var(--radius-2xl); padding: var(--space-lg);
  box-shadow: var(--shadow-lg); color: var(--ink); }
.equity-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); }
.equity-card__title { font-family: var(--font-head); font-size: 1.18rem; color: var(--ink); }
.equity-card__chip { font-size: .74rem; font-weight: 600; color: var(--sage-deep);
  background: rgba(79,138,96,.14); padding: 5px 11px; border-radius: var(--radius-pill); }
.equity-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; margin-bottom: var(--space-md); }
.equity-row:last-child { margin-bottom: 0; }
.equity-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-size: .82rem; font-weight: 600; }
.equity-meta { min-width: 0; }
.equity-name { display: block; font-size: .96rem; font-weight: 600; color: var(--ink); }
.equity-bar { display: block; height: 10px; border-radius: 100px; background: rgba(46,34,25,.08); overflow: hidden; margin-top: 6px; }
.equity-bar > span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--_g1), var(--_g2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.equity-val { font-size: 1.05rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.equity-row--terra .equity-av { background: linear-gradient(135deg, #C17B5C, #A5613F); }
.equity-row--terra .equity-bar > span { width: 88%; --_g1: #D89C6E; --_g2: #A5613F; }
.equity-row--blue  .equity-av { background: linear-gradient(135deg, #5A82C9, #3E63A8); }
.equity-row--blue  .equity-bar > span { width: 69%; --_g1: #7BA0DE; --_g2: #3E63A8; }
.equity-row--plum  .equity-av { background: linear-gradient(135deg, #8B5CA0, #6E4483); }
.equity-row--plum  .equity-bar > span { width: 52%; --_g1: #A97ABE; --_g2: #6E4483; }

/* ─── Comment ça marche ─────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 16.6%; right: 16.6%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px); opacity: .4; z-index: 0; }
.step { position: relative; z-index: 1; padding-top: var(--space-xs); text-align: center; }
.step__num { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto var(--space-md);
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: #fff;
  background: var(--grad-cta); border-radius: var(--radius-pill); box-shadow: var(--shadow-brand);
  border: 4px solid var(--cream); }
.step h3 { margin-bottom: var(--space-xs); }
.step p { color: var(--ink-2); margin: 0; }

/* ─── Installer l'application ───────────────────────────────────────────── */
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-lg);
  max-width: 900px; margin-inline: auto; }
.install-card { background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-2xl); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
.install-card__head { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.install-card__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  color: var(--brand-deep); background: var(--cream-2); border-radius: var(--radius-md); }
.install-card__head h3 { margin: 0; font-size: 1.15rem; }
.install-card__browser { margin-left: auto; flex: none; font-size: .8rem; color: var(--ink-3); }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.install-steps li { display: flex; gap: var(--space-sm); align-items: baseline; color: var(--ink-2); }
.install-steps strong { color: var(--ink); }
.install-step__num { flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  font-size: .85rem; font-weight: 700; color: #fff; background: var(--grad-cta); border-radius: var(--radius-pill); }
.install-inline-icon { vertical-align: -3px; color: var(--brand-deep); }
.install-qr { display: flex; align-items: center; justify-content: center; gap: var(--space-md);
  max-width: 640px; margin: var(--space-xl) auto 0; }
.install-qr img { flex: none; background: #fff; border: 1px solid var(--border-2);
  border-radius: var(--radius-md); padding: var(--space-xs); }
.install-qr__title { margin: 0 0 var(--space-nano); font-weight: 600; color: var(--ink); }
.install-qr__sub { margin: 0; font-size: .92rem; color: var(--ink-2); }
.install-open-mobile { display: none; margin: var(--space-lg) auto 0; }
@media (max-width: 600px) {
  .install-grid { grid-template-columns: 1fr; }
  .install-qr { display: none; }                 /* QR inutile sur mobile : on ouvre directement */
  .install-open-mobile { display: flex; width: fit-content; }
}

/* ─── Tarifs ────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-lg);
  max-width: 900px; margin-inline: auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--radius-2xl); padding: var(--space-xl); box-shadow: var(--shadow-sm); }
.plan--featured { border: none; box-shadow: var(--shadow-lg); background: var(--surface);
  background-clip: padding-box; }
.plan--featured::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: inherit;
  background: var(--grad-brand);
  /* Ordre impératif : les raccourcis `-webkit-mask`/`mask` réinitialisent
     `mask-composite` — les déclarer après annulerait le `exclude` et le liseré
     redeviendrait un aplat. */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan__badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; background: var(--grad-cta); color: #fff;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em; padding: 9px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-brand); white-space: nowrap; }
.plan__badge svg { color: #FFE7C9; }
.plan__name { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 6px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.plan__amount { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.plan__period { color: var(--ink-2); font-size: 1rem; }
.plan__sub { color: var(--ink-2); font-size: .93rem; margin: 10px 0 var(--space-lg); min-height: 1.4em; }
.plan__unlock { font-size: .9rem; font-weight: 600; color: var(--brand-ink); margin: 0 0 12px; }
.plan__features { display: grid; gap: 14px; margin-bottom: var(--space-xl); }
.plan__features li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--ink); }
.plan__features .chk { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(79,138,96,.15); color: var(--sage-deep); margin-top: 1px; }
.plan--featured .plan__features .chk { background: rgba(165,97,63,.14); color: var(--brand-deep); }
.plan__cta { margin-top: auto; }

/* ─── FAQ (accordéon animé) ─────────────────────────────────────────────── */
.faq { max-width: var(--prose-max); margin-inline: auto; display: grid; gap: var(--space-sm); }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs); overflow: hidden; transition: box-shadow var(--motion-normal) var(--ease-out),
  border-color var(--motion-normal) var(--ease-out); }
.faq__item.is-open { box-shadow: var(--shadow-sm); border-color: var(--border-2); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg); background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.faq__chev { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  color: var(--brand-deep); background: rgba(193,123,92,.12); transition: transform var(--motion-normal) var(--ease-out); }
.faq__item.is-open .faq__chev { transform: rotate(180deg); background: var(--grad-brand); color: #fff; }
.faq__a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--motion-normal) var(--ease-soft); }
.faq__item.is-open .faq__a-wrap { grid-template-rows: 1fr; }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 var(--space-lg) var(--space-md); margin: 0; color: var(--ink-2); max-width: 62ch; }

/* ─── CTA final ─────────────────────────────────────────────────────────── */
.cta-band { padding-block: var(--space-3xl) var(--space-4xl); }
.cta-card { position: relative; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: #fff;
  background: linear-gradient(135deg, #C9835F 0%, #A5613F 52%, #874A29 100%);
  border-radius: var(--radius-3xl); padding: var(--space-3xl) var(--space-lg); box-shadow: var(--shadow-lg); }
.cta-card__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
.cta-card__deco svg { width: 100%; height: 100%; }
.cta-card > :not(.cta-card__deco) { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; margin-bottom: var(--space-sm); max-width: 22ch; }
.cta-card p { color: rgba(255,255,255,.92); max-width: 50ch; margin: 0 0 var(--space-lg); font-size: 1.12rem; }

/* ─── Pied de page ──────────────────────────────────────────────────────── */
.site-footer { background: linear-gradient(180deg, #2C2018 0%, #241A13 100%); color: rgba(251,243,236,.72);
  padding-block: var(--space-4xl) var(--space-xl); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
.footer__brand { display: inline-flex; align-items: center; gap: 11px; color: #fff;
  font-family: var(--font-head); font-size: 1.3rem; margin-bottom: var(--space-md); }
.footer__brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer__tagline { color: rgba(251,243,236,.6); max-width: 36ch; font-size: .96rem; margin-bottom: var(--space-md); }
.footer__platforms { display: flex; flex-wrap: wrap; gap: 20px 12px; margin-top: 14px; }
.footer__platform { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 500; color: rgba(251,243,236,.85); white-space: nowrap; }
.footer__platform svg { color: rgba(251,243,236,.7); }
.footer__platform .stamp { top: -11px; right: -4px; font-size: .5rem; padding: 3px 7px; letter-spacing: .08em; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-md); }
.footer__links { display: grid; gap: 12px; }
.footer__links a { color: rgba(251,243,236,.72); font-size: .96rem; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-lg);
  display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); justify-content: space-between; align-items: center;
  font-size: .88rem; color: rgba(251,243,236,.55); }
.footer__made { display: inline-flex; align-items: center; gap: 7px; }
.footer__made svg { color: var(--brand-bright); }

/* ─── Pages légales ─────────────────────────────────────────────────────── */
.legal { padding-block: var(--space-3xl) var(--space-4xl); }
.legal__inner { max-width: var(--prose-max); margin-inline: auto; }
.legal__updated { font-size: .88rem; color: var(--ink-2); margin-bottom: var(--space-lg); }
.legal h1 { margin-bottom: var(--space-xs); }
.legal section { margin-bottom: var(--space-xl); }
.legal section h2 { font-size: 1.38rem; margin-bottom: var(--space-sm); }
.legal p { color: var(--ink-2); }
.legal ul { display: grid; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.legal ul li { display: flex; gap: var(--space-sm); color: var(--ink-2); }
.legal ul li::before { content: "•"; color: var(--brand); font-weight: 700; flex: none; }
.legal__note { background: rgba(193,123,92,.10); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: var(--space-md); color: var(--ink-2); font-size: .93rem; margin-bottom: var(--space-lg); }
.legal__note strong { color: var(--brand-ink); }
/* Bloc d'opposition à la mesure d'audience (cookies.html §4) */
.optout { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: var(--space-md); margin-bottom: var(--space-md); }
.optout__status { margin: 0; flex: 1 1 16rem; font-size: .93rem; color: var(--ink-2); }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: var(--space-lg); font-weight: 500; }

/* ─── Reveal ────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--motion-slow) var(--ease-out),
  transform var(--motion-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .container { padding-inline: var(--space-md); }
  .hero__grid { grid-template-columns: 1fr; text-align: center; gap: var(--space-2xl); }
  .hero__cta, .hero__note, .hero__badge { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .hero__art { order: -1; }
  .showcase { min-height: 500px; }
  .spotlight__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: var(--space-xl); max-width: 460px; margin-inline: auto; }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --space-4xl: 76px; --space-3xl: 56px; }
  body { font-size: 16px; }
  .container { padding-inline: var(--space-sm); }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .trust { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; }
  .footer__brand-col { display: flex; flex-direction: column; align-items: center; }
  .footer__tagline { max-width: 34ch; }
  .footer__platforms { justify-content: center; }
  .footer__links { justify-items: center; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: var(--space-sm); }
  .float-card { padding: 9px 12px; }
  .float-card__ic { width: 32px; height: 32px; }
  .float-card__body { max-width: 140px; }
  .float-card__t { font-size: .76rem; }
  .float-card__s { font-size: .7rem; }
  .float-card--a { top: 6px; left: -6px; }
  .float-card--b { bottom: 26px; right: -8px; }
  .iphone { transform: rotateY(-8deg) rotateX(3deg); }

  /* Centrage mobile — meilleure lecture */
  .feature { text-align: center; }
  .feature__icon { margin-inline: auto; }
  .step { text-align: center; }
  .step__num { margin-inline: auto; }
  .spotlight__grid > div { text-align: center; }
  .spotlight__points { max-width: 420px; margin-inline: auto; }
  .trust__item { flex-direction: column; text-align: center; }
  .plan { text-align: center; }
  .plan__price { justify-content: center; }
  .plan__features { justify-items: center; }
  .plan__features li { max-width: 30ch; }
}

/* ─── Mouvement réduit ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .iphone { transform: none; }
}
