/* =========================================================================
   FlowSphere — Feuille de styles
   SaaS / Startup tech · Clair & moderne · Indigo → Violet → Cyan
   Sommaire :
   1.  Design tokens (:root)
   2.  Reset & base
   3.  Utilitaires & layout
   4.  Boutons & badges
   5.  Header & navigation
   6.  Hero + mockup produit
   7.  Bandeau confiance
   8.  Fonctionnalités
   9.  Comment ça marche
   10. Statistiques
   11. Tarifs
   12. Témoignages
   13. Intégrations
   14. FAQ (accordéon)
   15. CTA final + formulaire
   16. Footer
   17. Animations au scroll (reveal)
   18. Responsive
   ========================================================================= */

/* ============================ 1. DESIGN TOKENS ========================== */
:root {
  /* Couleurs */
  --c-bg: #FFFFFF;
  --c-surface: #F7F8FC;
  --c-surface-2: #EEF0F8;
  --c-ink: #0B1020;
  --c-ink-soft: #4A5168;
  --c-ink-mute: #8A91A8;
  --c-border: #E6E9F2;
  --c-white: #FFFFFF;

  --c-indigo: #6366F1;
  --c-violet: #8B5CF6;
  --c-cyan: #06B6D4;

  /* Dégradés */
  --grad-brand: linear-gradient(120deg, #6366F1 0%, #8B5CF6 50%, #06B6D4 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(99,102,241,.12), rgba(6,182,212,.12));
  --grad-text: linear-gradient(120deg, #6366F1, #8B5CF6 55%, #06B6D4);

  /* Échelle d'espacement (base 8) */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Rayons */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Ombres douces colorées */
  --sh-xs: 0 1px 2px rgba(11,16,32,.06);
  --sh-sm: 0 4px 14px rgba(11,16,32,.06);
  --sh-md: 0 12px 30px rgba(99,102,241,.12);
  --sh-lg: 0 24px 60px rgba(99,102,241,.18);
  --sh-glow: 0 20px 50px rgba(139,92,246,.28);

  /* Transitions */
  --t-fast: .18s ease;
  --t-med: .3s cubic-bezier(.22,1,.36,1);
  --t-slow: .6s cubic-bezier(.22,1,.36,1);

  /* Typo */
  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --header-h: 72px;
}

/* ============================ 2. RESET & BASE =========================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--c-ink); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 3px solid rgba(99,102,241,.5);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ========================== 3. UTILITAIRES / LAYOUT ===================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.container.narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-violet);
  margin-bottom: var(--sp-3);
}
.section-title { font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
.section-lead {
  margin-top: var(--sp-4);
  color: var(--c-ink-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========================== 4. BOUTONS & BADGES ======================== */
.btn {
  --b-pad-y: .72rem;
  --b-pad-x: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .95rem;
  padding: var(--b-pad-y) var(--b-pad-x);
  border-radius: var(--r-pill);
  transition: transform var(--t-fast), box-shadow var(--t-med), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-lg { --b-pad-y: .95rem; --b-pad-x: 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-glow); }

.btn-outline {
  background: var(--c-white);
  color: var(--c-ink);
  border-color: var(--c-border);
  box-shadow: var(--sh-xs);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--c-indigo); color: var(--c-indigo); box-shadow: var(--sh-sm); }

.btn-ghost { color: var(--c-ink-soft); }
.btn-ghost:hover { color: var(--c-ink); background: var(--c-surface); }

.btn-light {
  background: #fff;
  color: var(--c-indigo);
  box-shadow: var(--sh-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.18); }

/* Badge "Nouveau" */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .82rem;
  padding: .42rem .9rem;
  border-radius: var(--r-pill);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  color: var(--c-ink-soft);
  box-shadow: var(--sh-xs);
  margin-bottom: var(--sp-5);
  transition: transform var(--t-fast), box-shadow var(--t-med);
}
.badge:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,.30); }
  50% { box-shadow: 0 0 0 6px rgba(99,102,241,0); }
}

/* ========================== 5. HEADER & NAV ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.site-header.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--sh-sm);
  border-bottom-color: var(--c-border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { display: grid; place-items: center; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav-list { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.nav-list a {
  position: relative;
  font-weight: 500;
  font-size: .95rem;
  color: var(--c-ink-soft);
  padding: .4rem 0;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.nav-list a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width var(--t-med);
}
.nav-list a:hover { color: var(--c-ink); }
.nav-list a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: .6rem; }

/* Téléphone du menu mobile : masqué en desktop (visible uniquement dans
   l'overlay burger, cf. media query responsive). */
.nav-phone { display: none; }

/* Voile (backdrop) du tiroir tablette : créé en JS et ajouté au <body>.
   Masqué PARTOUT par défaut (téléphone, desktop) ; il n'est activé
   (display:block) que dans la tranche tablette 601px–768px (cf. §18). */
.nav-scrim { display: none; }

/* Verrou de défilement de la page quand le menu mobile est ouvert.
   On bloque le scroll du body (pas de <html> overflow-x : préserve le
   header sticky). On compense la disparition de la barre de défilement via
   une variable injectée en JS (--sbw) pour éviter le saut de mise en page. */
body.nav-open {
  overflow: hidden;
  /* Pas de padding-right de compensation : html.nav-open ci-dessous retire déjà
     la barre de défilement, donc compenser créerait une fausse gouttière de 15px
     (et un scroll horizontal sous le tiroir tablette). */
}
/* Header sticky : on verrouille aussi le <html> pour faire disparaître la
   barre de défilement à l'ouverture. Cela élimine la gouttière de scrollbar
   que le tiroir tablette (ancré à droite, en position fixe) atteindrait,
   donc zéro scroll horizontal — sans décrocher le header sticky. */
html.nav-open { overflow: hidden; }
/* Le panneau du menu peut défiler tout seul (overflow-y:auto + overscroll
   contain), donc on ne pose PAS touch-action:none sur le body : cela
   bloquerait le scroll tactile à l'intérieur d'un menu plus haut que l'écran. */

/* Burger mobile */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.burger span {
  width: 22px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Sélecteur de langue FR / NL (commutateur segmenté) ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-xs);
}
.lang-btn {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--c-ink-soft);
  padding: .3rem .68rem;
  border-radius: var(--r-pill);
  line-height: 1;
  transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.lang-btn:hover { color: var(--c-ink); }
.lang-btn:focus-visible { outline: 3px solid rgba(99,102,241,.5); outline-offset: 2px; }
/* Langue active : pastille dégradée de la marque */
.lang-btn.active,
.lang-btn[aria-pressed="true"] {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--sh-xs);
}
/* Version desktop : visible dans le header ; cachée en mobile */
.lang-switch--desktop { margin-left: var(--sp-2); }
/* Version mobile : intégrée au menu burger ; cachée en desktop */
.lang-switch--mobile { display: none; align-self: flex-start; margin-top: var(--sp-3); }

/* ============================== 6. HERO ================================ */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.blob-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(99,102,241,.55), transparent 70%); }
.blob-2 { width: 480px; height: 480px; top: -60px; right: -120px; background: radial-gradient(circle, rgba(6,182,212,.45), transparent 70%); }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,16,32,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,16,32,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-title { font-size: clamp(2.3rem, 6vw, 4rem); }
.hero-sub {
  margin-top: var(--sp-5);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--c-ink-soft);
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.hero-note { margin-top: var(--sp-4); font-size: .88rem; color: var(--c-ink-mute); }

/* ---- Mockup produit ---- */
.hero-mockup { position: relative; }
.app-window {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform var(--t-slow);
}
.hero-mockup:hover .app-window { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }

.app-topbar {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem 1rem;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.app-topbar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F57; } .dot.yellow { background: #FEBC2E; } .dot.green { background: #28C840; }
.app-url {
  margin-left: auto; margin-right: auto;
  font-size: .72rem; color: var(--c-ink-mute);
  background: var(--c-white);
  padding: .2rem .8rem; border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
}

.app-body { display: grid; grid-template-columns: 56px 1fr; min-height: 360px; }
.app-side {
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column; align-items: center;
  gap: .9rem; padding: 1rem .6rem;
}
.side-logo { margin-bottom: .4rem; }
.side-item { width: 26px; height: 26px; border-radius: 8px; background: var(--c-surface-2); }
.side-item.active { background: var(--grad-brand); }
.side-bottom { margin-top: auto; }

.app-main { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; }
.app-eyebrow { font-size: .68rem; color: var(--c-ink-mute); text-transform: uppercase; letter-spacing: .1em; }
.app-h { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; }
.app-pill {
  font-size: .68rem; color: var(--c-ink-soft);
  background: var(--c-surface); border: 1px solid var(--c-border);
  padding: .25rem .7rem; border-radius: var(--r-pill);
}

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.mini-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: .65rem .7rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.mini-label { font-size: .62rem; color: var(--c-ink-mute); }
.mini-value { font-family: var(--f-head); font-weight: 700; font-size: .98rem; }
.mini-trend { font-size: .62rem; font-weight: 600; }
.mini-trend.up { color: #10B981; }
.mini-trend.down { color: #EF4444; }

.chart-card, .bars-card, .donut-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: .75rem .85rem;
}
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.chart-title { font-family: var(--f-head); font-weight: 600; font-size: .8rem; }
.chart-title.sm { font-size: .72rem; }
.chart-legend { font-size: .6rem; color: var(--c-ink-mute); display: flex; align-items: center; gap: .3rem; }
.lg { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lg-1 { background: var(--c-indigo); } .lg-2 { background: #CBD2E0; margin-left: .4rem; }
.area-chart { width: 100%; height: 80px; }

.dual-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem; }
.bar-chart { width: 100%; height: 64px; margin-top: .35rem; }
.donut-card { display: flex; flex-direction: column; align-items: center; }
.donut { width: 64px; height: 64px; margin-top: .3rem; }

/* Carte flottante */
.float-card {
  position: absolute;
  display: flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: .7rem .9rem;
  box-shadow: var(--sh-md);
  animation: floaty 5s ease-in-out infinite;
}
.float-1 { bottom: -22px; left: -26px; }
.fc-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.fc-icon.ok { background: linear-gradient(135deg,#10B981,#06B6D4); }
.fc-title { font-family: var(--f-head); font-weight: 700; font-size: .8rem; }
.fc-sub { font-size: .68rem; color: var(--c-ink-soft); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ========================= 7. BANDEAU CONFIANCE ======================== */
.trusted { padding-block: clamp(2rem, 5vw, 3rem); border-block: 1px solid var(--c-border); background: var(--c-surface); }
.trusted-label { text-align: center; font-size: .9rem; color: var(--c-ink-mute); margin-bottom: var(--sp-5); }
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: clamp(1.4rem, 5vw, 3.2rem);
  color: var(--c-ink-mute);
}
.logo-item { opacity: .7; transition: opacity var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.logo-item:hover { opacity: 1; color: var(--c-indigo); transform: translateY(-2px); }

/* =========================== 8. FONCTIONNALITÉS ======================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.feature-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-brand-soft);
  opacity: 0;
  transition: opacity var(--t-med);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; }
.feature-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  color: #fff;
  margin-bottom: var(--sp-4);
  box-shadow: var(--sh-md);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: var(--sp-3); }
.feature-card p { color: var(--c-ink-soft); font-size: .96rem; }

/* ========================= 9. COMMENT ÇA MARCHE ======================== */
.how { background: var(--c-surface); }
.steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  counter-reset: step;
  position: relative;
}
.step {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.step-num {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 2.4rem;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
  opacity: .9;
}
.step-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  color: var(--c-violet);
  margin: var(--sp-3) 0 var(--sp-4);
}
.step h3 { font-size: 1.18rem; margin-bottom: var(--sp-3); }
.step p { color: var(--c-ink-soft); font-size: .96rem; }

/* ============================ 10. STATISTIQUES ========================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: clamp(1rem, 3vw, 2rem);
  background: var(--grad-brand);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--sh-glow);
  text-align: center;
  color: #fff;
}
.stat-num {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  display: block;
  line-height: 1;
}
.stat-label { display: block; margin-top: var(--sp-3); font-size: .95rem; opacity: .92; }

/* =============================== 11. TARIFS ============================ */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.bt-label { font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: var(--c-ink-soft); transition: color var(--t-fast); }
.bt-label.is-active { color: var(--c-ink); }
.save-pill {
  font-size: .68rem; font-weight: 700;
  background: rgba(16,185,129,.14); color: #059669;
  padding: .15rem .5rem; border-radius: var(--r-pill);
  margin-left: .25rem;
}
.switch {
  width: 54px; height: 30px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  position: relative;
  transition: background var(--t-med);
}
.switch[aria-checked="true"] { background: var(--grad-brand); border-color: transparent; }
.switch-knob {
  position: absolute; top: 50%; left: 3px;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med);
}
.switch[aria-checked="true"] .switch-knob { transform: translate(24px, -50%); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: start;
}
.price-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--sh-xs);
  position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.price-card.popular {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--c-white), var(--c-white)) padding-box,
    var(--grad-brand) border-box;
  box-shadow: var(--sh-lg);
  transform: scale(1.03);
}
.price-card.popular:hover { transform: scale(1.03) translateY(-5px); }
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 600; font-size: .72rem;
  letter-spacing: .04em;
  padding: .35rem .9rem; border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  white-space: nowrap;
}
.plan-name { font-size: 1.35rem; }
.plan-desc { color: var(--c-ink-soft); font-size: .9rem; margin-top: var(--sp-2); min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: .1rem; margin: var(--sp-5) 0; }
.currency { font-family: var(--f-head); font-weight: 600; font-size: 1.4rem; color: var(--c-ink-soft); align-self: flex-start; margin-top: .35rem; }
.amount { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.2rem); line-height: 1; }
.period { color: var(--c-ink-mute); font-size: .92rem; margin-left: .35rem; }
.plan-features { margin-top: var(--sp-6); display: grid; gap: .7rem; }
.plan-features li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .95rem; color: var(--c-ink-soft);
}
.plan-features li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    var(--grad-brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* ============================ 12. TÉMOIGNAGES ========================== */
.testimonials { background: var(--c-surface); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.testi-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  box-shadow: var(--sh-xs);
  display: flex; flex-direction: column; gap: var(--sp-4);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.stars { color: #FBBF24; letter-spacing: 2px; font-size: 1rem; }
.testi-card blockquote { color: var(--c-ink); font-size: 1rem; line-height: 1.6; }
.testi-author { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700; font-size: .9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: var(--sh-sm);
}
.testi-author strong { display: block; font-size: .95rem; font-family: var(--f-head); }
.testi-author small { color: var(--c-ink-mute); font-size: .82rem; }

/* ============================ 13. INTÉGRATIONS ========================= */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.7rem, 2vw, 1.1rem);
}
.integ-card {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-ink-soft);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), color var(--t-fast), border-color var(--t-fast);
}
.integ-card span { font-size: .78rem; font-weight: 500; }
.integ-card:hover { transform: translateY(-4px); color: var(--c-indigo); border-color: var(--c-indigo); box-shadow: var(--sh-md); }

/* ========================= 14. FAQ (ACCORDÉON) ======================== */
.accordion { display: grid; gap: var(--sp-3); }
.acc-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--t-med), border-color var(--t-med);
}
.acc-item.open { box-shadow: var(--sh-sm); border-color: rgba(99,102,241,.4); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  text-align: left;
  padding: 1.15rem 1.3rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--c-ink);
  transition: color var(--t-fast);
}
.acc-trigger:hover { color: var(--c-indigo); }
.acc-icon { position: relative; flex: none; width: 18px; height: 18px; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: currentColor; border-radius: 2px;
  transition: transform var(--t-med);
}
.acc-icon::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.acc-icon::after { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.acc-trigger[aria-expanded="true"] .acc-icon { color: var(--c-indigo); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med);
}
.acc-panel p { padding: 0 1.3rem 1.2rem; color: var(--c-ink-soft); font-size: .96rem; }

/* ========================= 15. CTA FINAL + FORM ======================== */
.cta-final { padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(2.4rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--grad-brand);
  box-shadow: var(--sh-glow);
  overflow: hidden;
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .4; }
.cb1 { width: 360px; height: 360px; background: #fff; top: -140px; left: -80px; opacity: .2; }
.cb2 { width: 320px; height: 320px; background: #06B6D4; bottom: -160px; right: -60px; opacity: .35; }
.cta-content { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; color: #fff; }
.cta-content h2 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.8rem); }
.cta-content > p { margin-top: var(--sp-4); font-size: clamp(1rem, 2.2vw, 1.15rem); opacity: .95; }

.cta-form { margin-top: var(--sp-6); }
.field {
  display: flex; gap: .6rem;
  background: rgba(255,255,255,.18);
  padding: .4rem;
  border-radius: var(--r-pill);
  max-width: 520px; margin-inline: auto;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
}
.field input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  padding: .6rem 1.1rem;
  outline: none;
}
.field input::placeholder { color: rgba(255,255,255,.75); }
.field input:focus-visible { outline: none; }
.field .btn { flex: none; }
.form-error { margin-top: var(--sp-3); color: #FFE2E2; font-size: .88rem; font-weight: 600; }
/* L'attribut hidden doit l'emporter sur le display ci-dessous. */
.form-success[hidden] { display: none; }

.form-success {
  margin-top: var(--sp-4);
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.18);
  padding: .55rem 1.1rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: .92rem; color: #fff;
}
.cta-note { margin-top: var(--sp-4); font-size: .85rem; opacity: .85; }

/* =============================== 16. FOOTER ============================ */
.site-footer { background: var(--c-ink); color: #C7CCDB; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: var(--sp-8);
}
.footer-brand .brand-name { color: #fff; }
.footer-tag { margin: var(--sp-4) 0; font-size: .92rem; max-width: 300px; line-height: 1.6; color: #9AA1B8; }
.socials { display: flex; gap: .6rem; }
.social {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #C7CCDB;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.social:hover { transform: translateY(-3px); background: var(--grad-brand); color: #fff; border-color: transparent; }

.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: var(--sp-4); }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { color: #9AA1B8; font-size: .92rem; transition: color var(--t-fast); }
.footer-col a:hover { color: #fff; }

.footer-newsletter p { font-size: .9rem; color: #9AA1B8; margin-bottom: var(--sp-4); }
.news-form { display: flex; gap: .5rem; }
.news-form input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: .65rem .9rem;
  border-radius: var(--r-sm);
}
.news-form input::placeholder { color: #8089A0; }
.news-form .btn { flex: none; padding: .65rem .9rem; }
.news-msg { margin-top: var(--sp-3); font-size: .85rem; color: #6EE7B7; font-weight: 600; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: space-between;
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
  color: #8089A0;
}
.legal { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.legal a { color: #8089A0; transition: color var(--t-fast); }
.legal a:hover { color: #fff; }

/* ========================= 17. ANIMATIONS REVEAL ======================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Décalage en cascade dans les grilles */
.feature-grid .reveal:nth-child(2), .testi-grid .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.feature-grid .reveal:nth-child(3), .testi-grid .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.feature-grid .reveal:nth-child(4), .testi-grid .reveal:nth-child(4) { transition-delay: .24s; }
.feature-grid .reveal:nth-child(5), .testi-grid .reveal:nth-child(5) { transition-delay: .32s; }
.feature-grid .reveal:nth-child(6), .testi-grid .reveal:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================== 18. RESPONSIVE ========================= */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-mockup { max-width: 560px; margin: 1rem auto 1.5rem; }
  .app-window { transform: none; }
  .feature-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* =====================================================================
     Navigation mobile — OVERLAY plein écran (sous le header)
     ---------------------------------------------------------------------
     Principe anti-scroll horizontal :
     - Le panneau N'EST JAMAIS positionné hors-écran (pas de translateX,
       pas de left/right négatif). Il reste calé sur le viewport
       (left:0 / right:0, width:100%, max-width:100%).
     - À l'état FERMÉ il est neutralisé via opacity / visibility /
       pointer-events (et une micro-translation verticale décorative),
       ce qui n'élargit jamais le document.
     - Le header reste cliquable AU-DESSUS de l'overlay : l'overlay démarre
       sous le header (top: var(--header-h)) et son z-index est < header.
     ===================================================================== */
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0; /* calé sur le viewport, jamais hors-écran */
    /* Hauteur : sous le header jusqu'en bas. dvh avec repli vh. */
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    width: auto;          /* left:0 + right:0 suffisent à fixer la largeur */
    max-width: 100vw;     /* garde-fou : ne dépasse jamais le viewport */
    z-index: 90; /* < .site-header (100) : le burger reste cliquable */

    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;

    /* Fond OPAQUE pour masquer la page derrière (avec léger blur) */
    background: var(--c-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid var(--c-border);
    box-shadow: var(--sh-lg);

    padding: var(--sp-6) clamp(1.5rem, 6vw, 2rem) calc(var(--sp-8) + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    /* ÉTAT FERMÉ : neutralisé sans sortir du viewport */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--t-med), visibility var(--t-med), transform var(--t-med);
  }
  /* ÉTAT OUVERT */
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Le voile ne sert qu'à la version TIROIR sur tablette (cf. 601px–768px).
     En plein écran téléphone, il reste masqué. */
  .nav-scrim { display: none; }

  /* Mouvement réduit : pas de micro-translation décorative (apparition
     instantanée par opacity/visibility uniquement). */
  @media (prefers-reduced-motion: reduce) {
    .main-nav { transform: none; }
  }

  /* Liens empilés, grandes zones tactiles */
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: .85rem .9rem;
    border-bottom: 1px solid var(--c-border);
    border-radius: var(--r-md);
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--c-ink);
    transition: color var(--t-fast), background var(--t-fast);
  }
  /* L'ancien soulignement desktop (::after) est neutralisé : on utilise
     ::before pour une barre d'accent verticale qui se déploie à gauche. */
  .nav-list a::after { display: none; }
  .nav-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 22px;
    border-radius: 3px;
    background: var(--c-indigo);
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    transition: transform var(--t-fast);
  }
  /* Survol (pointeur tablette) · appui tactile (:active) · clavier
     (:focus-visible). Menu CLAIR (fond blanc) → texte indigo foncé +
     fond légèrement teinté d'indigo. */
  .nav-list a:hover,
  .nav-list a:focus-visible,
  .nav-list a:active {
    color: #4338CA;
    background: rgba(99, 102, 241, .12);
  }
  .nav-list a:hover::before,
  .nav-list a:focus-visible::before,
  .nav-list a:active::before {
    transform: translateY(-50%) scaleY(1);
  }

  /* Bloc CTA : téléphone, boutons pleine largeur, sélecteur de langue */
  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    gap: .8rem;
    margin-top: var(--sp-6);
  }
  .nav-cta .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1.02rem;
  }

  /* Téléphone cliquable, intégré au menu mobile */
  .nav-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    margin-top: var(--sp-2);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--c-ink);
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-pill);
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  }
  .nav-phone svg { color: var(--c-indigo); }
  .nav-phone:hover { color: var(--c-indigo); border-color: var(--c-indigo); background: var(--c-surface); }

  .burger { display: flex; }

  /* Sélecteur de langue : on bascule du header (desktop) vers le menu burger */
  .lang-switch--desktop { display: none; }
  .lang-switch--mobile {
    display: inline-flex;
    align-self: stretch;
    justify-content: center;
    margin-top: var(--sp-4);
  }
  .lang-switch--mobile .lang-btn { padding: .45rem 1rem; font-size: .9rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; order: -1; }
  .price-card.popular:hover { transform: translateY(-5px); }
  .field { flex-direction: column; background: transparent; border: none; padding: 0; gap: .6rem; }
  .field input { background: rgba(255,255,255,.95); color: var(--c-ink); border-radius: var(--r-pill); }
  .field input::placeholder { color: var(--c-ink-mute); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Navigation TABLETTE — TIROIR latéral ancré à droite + voile
   ---------------------------------------------------------------------
   De 601px jusqu'au breakpoint burger (768px), le menu mobile devient un
   tiroir latéral ancré à droite, accompagné d'un voile (backdrop) sombre
   cliquable. Le panneau garde son comportement d'overlay (top: header,
   masqué via opacity/visibility — jamais de translateX) : on ne fait que
   le recadrer à droite. Anti-scroll horizontal assuré par le verrou de
   scroll étendu au <html> (html.nav-open { overflow:hidden }).
   ===================================================================== */
@media (min-width: 601px) and (max-width: 768px) {
  .main-nav {
    left: auto;
    right: 0;
    width: min(80vw, 400px);
    max-width: 100vw;
    border-top: none;
    border-left: 1px solid var(--c-border);
    box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .5);
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 89; /* juste sous le panneau (.main-nav = 90) et sous le header (100) */
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s, visibility .3s;
  }
  .nav-scrim.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 540px) {
  .feature-grid, .testi-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-cta .btn-ghost { display: none; }
  .float-1 { left: 0; bottom: -16px; transform: scale(.9); }
}
