/* Les polices sont chargées par un <link> dans le <head> de chaque page : un
   @import ici obligerait le navigateur à télécharger styles.css en entier
   avant de découvrir la requête vers Google Fonts, puis la police elle-même. */

/* ==========================================================================
   airlok — site vitrine
   Design system Nautili, accent teal (#0D9488) aligné sur l'application.
   ========================================================================== */

:root {
  /* Encres */
  --navy: #0E113A;        /* texte principal */
  --navy-bg: #124549;     /* fond sombre vert pétrole */
  --navy-deep: #0C3336;   /* pied de page */
  --white: #FFFFFF;
  --cream: #F8F9FE;       /* fond de page neutre */

  /* Surfaces pastel — c'est le bloc qui porte la couleur, jamais un filet.
     Chaque section prend un aplat, et le contraste vient de l'alternance. */
  --sand: #FFF4E8;        /* pastel chaud : le monde du papier */
  --sand-deep: #FFE7D0;   /* même famille, un cran plus soutenu */
  --sky: #EBF2FE;         /* pastel froid */
  --mint: #E4F6F1;        /* pastel de marque, dérivé du teal */

  /* Marque */
  --teal: #0D9488;        /* accent, pastilles, puces */
  --teal-deep: #0F766E;   /* aplats portant du texte blanc (contraste AA) */
  --teal-ink: #0A5148;    /* texte de marque sur pastel clair */
  --teal-soft: #99F6E4;   /* surlignage, badges */

  /* Alerte (usage strictement limité aux états bloquants) */
  --alert: #B42318;
  --alert-soft: #FEE4E2;

  /* Transparences d'encre (sur fond clair) */
  --ink-70: rgba(14, 17, 58, 0.70);
  --ink-60: rgba(14, 17, 58, 0.60);
  --ink-40: rgba(14, 17, 58, 0.40);
  --ink-14: rgba(14, 17, 58, 0.14);
  --ink-08: rgba(14, 17, 58, 0.08);

  /* Transparences crème (sur fond navy) */
  --cream-70: rgba(248, 249, 254, 0.70);
  --cream-60: rgba(248, 249, 254, 0.60);
  --cream-24: rgba(248, 249, 254, 0.24);
  --cream-12: rgba(248, 249, 254, 0.12);

  /* Formes. Aucune bordure dans ce système : la hiérarchie passe par
     l'aplat, le rayon et l'ombre. */
  --r-xl: 32px;           /* grands blocs de section */
  --r-lg: 24px;           /* cartes, maquettes */
  --r-md: 16px;           /* éléments internes */
  --r-sm: 10px;
  --r-pill: 100px;
  --r-btn: 8px;           /* boutons : rectangulaires, pas en pilule */

  /* Ombres : très diffuses, jamais dures. */
  --lift: 0 1px 2px rgba(14, 17, 58, 0.04), 0 10px 28px rgba(14, 17, 58, 0.07);
  --lift-lg: 0 2px 6px rgba(14, 17, 58, 0.04), 0 24px 56px rgba(14, 17, 58, 0.11);

  --display: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1380px;
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(36px, 4.5vw, 62px); font-weight: 600; }
h2 { font-size: clamp(28px, 3.8vw, 48px); font-weight: 600; }
h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 600; }

p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: inherit; }

/* --------------------------------------------------------------- Structure */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

section { padding-block: clamp(72px, 8vw, 128px); }

/* Le bloc de section : un aplat arrondi encarté, qui porte lui-même sa
   couleur. C'est la brique de base de la direction artistique — le contraste
   vient de l'alternance des aplats, pas d'un filet de séparation. */
.band {
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 96px) clamp(28px, 4vw, 72px);
}

.band--sand { background: var(--sand); }
.band--sky { background: var(--sky); }
.band--mint { background: var(--mint); }
.band--white { background: var(--white); }

.band--navy {
  background: #124549;
  color: var(--cream);
}

/* Les sections à fond plein conservent leurs classes, mais sans filet. */
.sec--n {
  background: #124549;
  color: var(--cream);
}

.sec--wash { background: var(--mint); }

/* Texte secondaire selon le fond du bloc */
.band--navy .lede,
.sec--n .lede { color: var(--cream-70); }

.band--navy .eyebrow,
.sec--n .eyebrow { color: var(--teal-soft); }

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 14px;
}

.sec--n .eyebrow { color: var(--teal-soft); }

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-60);
  max-width: 62ch;
  margin-top: 20px;
}

.sec--n .lede { color: var(--cream-60); }

.head { max-width: 74ch; }

/* Surlignage signature */
.hl {
  background: linear-gradient(transparent 60%, var(--teal-soft) 60%, var(--teal-soft) 96%, transparent 96%);
  padding-inline: 2px;
}

.sec--n .hl {
  background: linear-gradient(transparent 60%, var(--teal) 60%, var(--teal) 96%, transparent 96%);
}

/* ----------------------------------------------------------------- Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  background: var(--teal-deep);
  border-radius: var(--r-btn);
  padding: 15px 24px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift);
}

.btn:active { transform: translateY(0); box-shadow: none; }

.btn--ghost {
  background: var(--white);
  color: var(--navy);
}

.sec--n .btn--ghost,
.band--navy .btn--ghost {
  background: var(--cream-12);
  color: var(--cream);
}

.sec--n .btn--ghost:hover,
.band--navy .btn--ghost:hover { background: var(--cream-24); box-shadow: none; }

.btn--sm { padding: 10px 18px; font-size: 14px; }

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}

/* -------------------------------------------------------------- Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Barre défilée, valeurs relevées sur qonto.com : blanc à 70 % d'opacité et
   flou de 6px, sans ombre ni filet. Le fond reste volontairement translucide —
   c'est le flou qui détache la barre, pas un aplat opaque. */
.nav.nav--scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

/* Le logo est un mot, sans vignette : c'est le parti de Qonto, dont la marque
   ne repose que sur son signe typographique. Le resserrement des lettres fait
   tout le travail — sans lui, « airlok » se lit comme du texte courant et non
   comme une marque. */
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.045em;
  text-decoration: none;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}

.nav__links a {
  text-decoration: none;
  color: var(--navy);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

/* Seul le survol colore le lien. La page courante garde `aria-current` pour
   les lecteurs d'écran, mais plus de pastille verte : signaler une page où
   l'on se trouve déjà n'apporte rien et alourdit la barre. */
.nav__links a:hover {
  color: var(--teal-ink);
  background: var(--mint);
}

/* Qonto-Style Navbar Action Group */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav__login {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 100px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__login:hover {
  color: var(--teal-ink);
  background: var(--mint);
}

/* Même traitement que l'ancien bouton WhatsApp : aplat teal profond, et au
   survol l'aplat s'éclaircit avec une ombre teintée. */
/* Aucune reprise du rayon ni du calage : le bouton hérite de `.btn` et
   `.btn--sm`, donc de la pilule commune à tous les boutons du site. Il n'ajoute
   que sa couleur. */
.btn--register {
  background: var(--teal-deep);
  color: #FFFFFF !important;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn--register:hover {
  background: var(--teal);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* Libellé court du bouton de navigation sur petit écran */
.nav__in .btn .short { display: none; }

@media (max-width: 640px) {
  .nav__in { gap: 8px; }
  .logo { font-size: 20px; }
  .nav__login { display: none; }
}

/* ============================================== Diagramme « avant / après » */

.flows {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: clamp(30px, 4vw, 48px);
}

@media (max-width: 860px) { .flows { grid-template-columns: 1fr; } }

.flow-card {
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--white);
  box-shadow: var(--lift);
}

.flow-card--new {
  background: var(--navy);
  box-shadow: none;
  color: var(--cream);
}

.flow-tag {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin: 0 0 22px;
}

.flow-card--new .flow-tag { color: var(--teal-soft); }

/* Le rail vertical et ses étapes */
.flow {
  list-style: none;
  margin: 0;
  padding: 0 0 0 44px;
}

.flow li {
  position: relative;
  padding-bottom: 26px;
}

.flow li:last-child { padding-bottom: 0; }

/* Le segment de rail appartient à l'étape : il s'arrête donc tout seul
   après la dernière, sans dépasser. */
.flow li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 27px;
  bottom: -5px;
  width: 2px;
  background: var(--ink-14);
}

.flow-card--new .flow li::before { background: var(--cream-24); }

.flow li:last-child::before { display: none; }

.flow b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.25;
}

.flow span {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--ink-60);
}

.flow-card--new .flow span { color: var(--cream-60); }

/* La pastille posée sur le rail.
   Sélecteur à deux classes : il doit battre `.flow span`, qui style les
   descriptions et écraserait sinon le display:flex du centrage. */
.flow .flow-mark {
  position: absolute;
  left: -44px;
  top: -4px;
  margin: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  background: var(--sand-deep);
  color: var(--ink-60);
}

.flow-card--new .flow-mark {
  background: var(--cream-12);
  color: var(--teal-soft);
}

/* Aboutissement : l'échec d'un côté, le résultat de l'autre */
.flow li.is-bad b { color: var(--alert); }
.flow li.is-bad .flow-mark {
  background: var(--alert-soft);
  color: var(--alert);
}

.flow li.is-good .flow-mark {
  background: var(--teal);
  color: var(--white);
}

/* Révélation en cascade des étapes, pilotée par la carte parente */
.js .flow li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .rv.in .flow li { opacity: 1; transform: none; }

.js .flow li:nth-child(2) { transition-delay: 0.12s; }
.js .flow li:nth-child(3) { transition-delay: 0.24s; }
.js .flow li:nth-child(4) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .js .flow li { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------------------- Hero */

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 88px); }

/* ================================================= ALAN STYLE FULL-BLEED HERO */
.hero-alan {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  background: #F7F0E6;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: clamp(80px, 9vh, 120px);
  padding-bottom: clamp(40px, 5vh, 70px);
}

.hero-alan__bg-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-alan__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  filter: contrast(1.02) brightness(1.01);
}

.hero-alan__fade {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Dégradé Alan parfait : couleur 100% unie à gauche (0% à 22%), puis fondu extrêmement doux vers la droite */
    linear-gradient(90deg, #F7F0E6 0%, #F7F0E6 22%, rgba(247, 240, 230, 0.95) 36%, rgba(247, 240, 230, 0.5) 54%, rgba(247, 240, 230, 0.1) 68%, transparent 80%);
  z-index: 2;
  pointer-events: none;
}

.hero-alan__content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: 100%;
}

.hero-alan__text {
  /* 620px et non 540 : à 540, le titre à 54px retombait sur quatre lignes.
     Élargir la colonne plutôt que réduire le corps préserve l'impact de
     l'accroche, qui est l'élément le plus important de la page. */
  max-width: 620px;
}

.hero-alan__text h1 {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.08;
  color: var(--navy);
}

.hero-alan__widget-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-alan__widget {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  box-shadow: 0 16px 44px rgba(14, 17, 58, 0.15);
  width: 100%;
  max-width: 440px;
  animation: floatBounce 4s ease-in-out infinite;
}

.hero-alan__widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--navy);
}

.hero-alan__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-ink);
  background: var(--mint);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

.hero-alan__widget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-alan__widget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: var(--r-md);
  gap: 12px;
}

.hero-alan__num {
  display: block;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-40);
}

.hero-alan__item {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 980px) {
  .hero-alan__content {
    grid-template-columns: 1fr;
  }
  .hero-alan__bg-wrap {
    width: 100%;
    opacity: 0.3;
  }
  .hero-alan__fade {
    width: 100%;
    background: linear-gradient(to bottom, #FAF7F2 40%, rgba(250, 247, 242, 0.95) 100%);
  }
  .hero-alan__widget-wrap {
    justify-content: center;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(34px, 3.7vw, 53px);
  max-width: 24ch;
}

.hero .lede { font-size: clamp(16.5px, 1.25vw, 18.5px); margin-top: 18px; }

.hero__note {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  background: var(--white);
  box-shadow: var(--lift);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

/* ------------------------------------------------------------------ Cartes */

.card {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--r-lg);
  padding: clamp(26px, 2.6vw, 34px);
  box-shadow: var(--lift);
}

.card--n {
  background: var(--navy);
  color: var(--cream);
  box-shadow: none;
}

.card h3 { margin-bottom: 10px; }

.card p { color: var(--ink-60); font-size: 15.5px; }
.card--n p { color: var(--cream-60); }

.grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 52px);
}

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* Bandeau « ce qui se perd » : trois constats, une ligne chacun */
.strip { padding-block: clamp(44px, 5vw, 72px); }

.facts {
  display: grid;
  gap: 0;
  margin-top: clamp(22px, 3vw, 32px);
}

.facts p {
  padding: 15px 18px;
  border-radius: var(--r-md);
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-60);
}

.facts b { color: var(--navy); font-weight: 600; }

/* Listes serrées de la page fonctionnalités */
ul.tight {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

ul.tight li {
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 11px;
  line-height: 1.4;
}

ul.tight li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 8px;
}

/* ------------------------------------------------------ Partage LGO/airlok */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 48px);
}

@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

.split ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 15.5px;
}

.split li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.split li::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
  margin-top: 5px;
  opacity: 0.3;
}

.split .card--n li::before { background: var(--teal); opacity: 1; }

.split__tag {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 12px;
}

.card--n .split__tag { color: var(--teal-soft); }

/* --------------------------------------------------- Maquette d'interface */

/* `color` est réaffirmé : sur une section navy, la maquette hériterait
   sinon du texte crème et son contenu deviendrait invisible. */
.mock {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--lift-lg);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--cream);
}

.mock__bar strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
}

.mock__filter {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  background: var(--teal-deep);
  color: var(--white);
  border-radius: 100px;
  padding: 5px 13px;
  white-space: nowrap;
}

.mock__scroll { overflow-x: auto; }

.mock table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.mock th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding: 13px 11px;
  white-space: nowrap;
}

.mock td {
  padding: 13px 11px;
  box-shadow: inset 0 1px 0 var(--ink-08);
  vertical-align: middle;
}

.mock td.num { white-space: nowrap; }

.mock tbody tr:first-child td { box-shadow: none; }

.mock td.num { font-variant-numeric: tabular-nums; font-weight: 600; }

.mock__foot {
  padding: 12px 18px;
  background: var(--cream);
  font-size: 12.5px;
  color: var(--ink-60);
}

.mock__cap {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-40);
}

.sec--n .mock__cap { color: var(--cream-60); }

/* ------------------------------------------------- Démonstration animée
   Trois scènes qui se relaient toutes les 5 s. Toute l'animation est en
   keyframes CSS, déclenchée par `.scene.is-on` : le JS ne fait que basculer
   cette classe, et comme les scènes inactives sont en display:none, les
   animations repartent d'elles-mêmes à chaque passage. */

/* Même respiration titre → contenu que le reste du site */
.demo { margin-top: clamp(32px, 4vw, 52px); }

.demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: clamp(20px, 2.4vw, 28px);
}

.demo__tab {
  position: relative;
  overflow: hidden;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 17px;
  border-radius: 100px;
  background: var(--cream-12);
  color: var(--cream-70);
  border: 0;                 /* les <button> portent une bordure par défaut */
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.demo__tab:hover { color: var(--cream); background: var(--cream-24); }

.demo__tab.is-on {
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
}

/* Jauge d'avancement : elle montre que ça tourne tout seul */
.demo__tab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--teal);
  transform-origin: left;
  transform: scaleX(0);
}

.demo.is-playing .demo__tab.is-on::after { animation: demoFill 5s linear both; }

@keyframes demoFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.demo__screen { max-width: 780px; margin-inline: auto; }

/* La colonne d'action colle au bord droit : sans ça le bouton flotte au milieu
   d'une cellule trop large et le tableau paraît inachevé. */
#scene-0 .mock th:last-child,
#scene-0 .mock td:last-child {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

/* La ligne qui vient de changer d'état reste teintée : le changement se lit
   même si on arrive après le clic. */
#scene-0.is-on tbody tr:first-child { animation: rowFlash 0.6s ease 2.5s both; }

@keyframes rowFlash {
  from { background: transparent; }
  40% { background: var(--teal-soft); }
  to { background: var(--teal-wash); }
}

.scene { display: none; }
.scene.is-on { display: block; }

.demo__frame { position: relative; }

/* Deux états au même endroit : l'un s'efface, l'autre apparaît */
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
.swap__to { opacity: 0; }

.scene.is-on .swap__from { animation: demoOut 0.4s ease 2.5s both; }
.scene.is-on .swap__to { animation: demoIn 0.4s ease 2.6s both; }

@keyframes demoOut { to { opacity: 0; } }
@keyframes demoIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Le curseur qui va cliquer */
.cur {
  position: absolute;
  left: 26%;
  top: 86%;
  width: 20px;
  height: 20px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(14, 17, 58, 0.35));
}

.cur svg { display: block; width: 100%; height: 100%; }

.scene.is-on .cur { animation: curIn 0.3s ease 0.35s both, curGo 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both; }

@keyframes curIn { from { opacity: 0; } to { opacity: 1; } }

/* Vers le bouton de la première ligne : la pointe arrive sur son bord gauche
   (mesuré à 78 % / 47 % du cadre), le corps de la flèche part vers la droite
   et ne recouvre donc pas le libellé. */
@keyframes curGo {
  from { left: 26%; top: 86%; }
  to { left: 85%; top: 47%; }
}

/* Scène 3 : le bouton est plus bas et à gauche */
#scene-2 .cur { left: 62%; top: 26%; }
#scene-2.is-on .cur { animation: curIn 0.3s ease 0.35s both, curGo2 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both; }

/* Bouton mesuré à 14 % / 71 % du cadre : la pointe arrive dessus, et à droite
   du libellé « Enregistré » qui le remplace. */
@keyframes curGo2 {
  from { left: 62%; top: 26%; }
  to { left: 15%; top: 71%; }
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Le bouton d'action dans la ligne du tableau */
.demo__btn {
  position: relative;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--mint);
  color: var(--teal-ink);
  white-space: nowrap;
}

/* Boutons de décor : présents pour que le tableau ait l'air réel, mais rien
   ne les anime. */
.demo__btn--off { opacity: 0.45; }

/* L'anneau du clic. Reste à zéro tant que l'animation ne le réveille pas. */
.demo__btn::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 100px;
  border: 2px solid var(--teal);
  opacity: 0;
}

/* `forwards` et non `both` : avec `both`, la phase de remplissage arrière
   applique l'état `from` du keyframe pendant tout le délai — l'anneau du clic
   resterait affiché dès le départ, ce qui donne une double bordure au bouton.
   Réservé au bouton qui reçoit le clic ; les autres ne sont que du décor. */
.scene.is-on .demo__btn--act { animation: demoPress 0.32s ease 2.1s forwards; }
.scene.is-on .demo__btn--act::after { animation: demoRing 0.55s ease 2.1s forwards; }

@keyframes demoPress {
  50% { transform: scale(0.93); background: var(--teal-deep); color: var(--white); }
}

@keyframes demoRing {
  from { opacity: 0.9; transform: scale(0.72); }
  to { opacity: 0; transform: scale(1.3); }
}

/* Panneau de dossier, pour les scènes 2 et 3 */
.pane {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--lift-lg);
}

.pane__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--cream);
}

.pane__bar strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
}

.pane__body { padding: 16px; }

/* Ligne d'alerte, la brique centrale du produit */
.line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.line svg { width: 17px; height: 17px; flex: none; }
.line--red { background: var(--alert-soft); color: var(--alert); }
.line--teal { background: var(--mint); color: var(--teal-ink); }

.scene.is-on .line--in { animation: demoIn 0.45s ease 0.3s both; }

/* Les champs du dossier */
.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}

/* Les valeurs s'alignent sur une même ligne de base, quel que soit le nombre de
   lignes du libellé au-dessus : la cellule s'étire, `margin-top:auto` pousse la
   valeur en bas. Pas de hauteur en dur à maintenir. */
.kv > div {
  display: flex;
  flex-direction: column;
}

.kv dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.kv dd {
  margin: 3px 0 0;
  margin-top: auto;
  padding-top: 3px;
  font-size: 14px;
  font-weight: 500;
}

/* La trace : qui a fait quoi, et quand */
.logline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  box-shadow: inset 0 1px 0 var(--ink-08);
  font-size: 12.5px;
  color: var(--ink-60);
  opacity: 0;
}

.logline b { font-weight: 600; color: var(--navy); }

.logline i {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-soft);
  color: #084F47;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene.is-on .logline { animation: demoIn 0.45s ease 3.1s both; }

/* Scène 2 : le dossier et le SMS côte à côte */
.demo__duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 20px;
  align-items: start;
}

.phone {
  background: var(--navy);
  border-radius: 26px;
  padding: 10px;
  opacity: 0;
}

.scene.is-on .phone { animation: phoneUp 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) 1.1s both; }

@keyframes phoneUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.phone__top {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--cream-60);
  text-align: center;
  padding: 4px 0 10px;
}

.bubble {
  background: var(--cream);
  color: var(--navy);
  border-radius: 14px 14px 14px 4px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0;
}

.scene.is-on .bubble { animation: demoIn 0.5s ease 1.75s both; }

.bubble__meta {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--ink-40);
}

@media (max-width: 720px) {
  .demo__duo { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 240px; }
  .cur { display: none; }
}

/* Sur petit écran on ne garde que le dossier et son état. « Matériel » et la
   colonne d'action sortent : sinon la cellule où se produit le changement
   d'état est hors cadre, et l'animation ne se voit pas. Le curseur étant déjà
   masqué ici, le bouton n'a plus rien à montrer. */
@media (max-width: 560px) {
  .demo__tab { font-size: 12.5px; padding: 8px 13px; }
  .pane__bar { flex-wrap: wrap; }
  #scene-0 .mock table { min-width: 0; font-size: 12.5px; }
  #scene-0 .mock th:nth-child(2),
  #scene-0 .mock td:nth-child(2),
  #scene-0 .mock th:nth-child(4),
  #scene-0 .mock td:nth-child(4) { display: none; }
  #scene-0 .st { font-size: 11.5px; padding: 3px 9px; }
}

/* Sans animation : on affiche directement l'état d'arrivée de chaque scène */
@media (prefers-reduced-motion: reduce) {
  .demo .cur { display: none; }
  .scene .swap__from { opacity: 0; }
  .scene .swap__to,
  .scene .logline,
  .scene .phone,
  .scene .bubble { opacity: 1; }
}

/* Pastilles d'état */
.st {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-pill);
  padding: 4px 12px;
  background: var(--sand-deep);
  white-space: nowrap;
}

.st.is-done { background: var(--navy); color: var(--cream); }
.st.is-due { background: var(--teal-soft); color: var(--teal-ink); font-weight: 600; }
.st.is-late { background: var(--alert-soft); color: var(--alert); font-weight: 600; }
.st.is-teal { background: var(--teal-deep); color: var(--white); font-weight: 600; }

/* ---------------------------------------------------------------- Tableau  */

.cmp {
  width: 100%;
  border-collapse: collapse;
  margin-top: clamp(32px, 4vw, 48px);
  background: var(--white);
  border-radius: var(--r-lg);
  font-size: 15px;
  overflow: hidden;
  box-shadow: var(--lift);
}

.cmp th, .cmp td {
  text-align: left;
  padding: 17px 20px;
  box-shadow: inset 0 1px 0 var(--ink-08);
  vertical-align: top;
}

.cmp thead th {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--sand);
  white-space: nowrap;
}

.cmp thead th:nth-child(2) { color: var(--ink-40); }
.cmp thead th:nth-child(3) { color: var(--teal-deep); }

/* Le nom de marque s'écrit toujours en minuscules, même dans un label capitalisé */
.brand, .cmp thead th.brand {
  text-transform: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.cmp tbody th { font-weight: 600; font-size: 15px; width: 26%; }
.cmp td:nth-child(2) { color: var(--ink-40); width: 37%; }
.cmp td:nth-child(3) { font-weight: 500; width: 37%; }
/* Le séparateur est porté par le haut de chaque cellule : la première ligne du
   corps n'en a donc pas besoin, elle touche déjà l'en-tête. */
.cmp tbody tr:first-child th, .cmp tbody tr:first-child td { box-shadow: none; }

.cmp__wrap { overflow-x: auto; }
@media (max-width: 780px) { .cmp { min-width: 660px; } }

/* -------------------------------------------------------------------- FAQ  */

.faq {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  gap: 10px;
}

details {
  background: var(--white);
  border-radius: var(--r-lg);
  padding-inline: clamp(18px, 2vw, 26px);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 20px);
  position: relative;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-weight: 400;
  font-size: 24px;
  color: var(--teal-deep);
  line-height: 1;
}

details[open] summary::after { content: "–"; }

details > p {
  padding: 0 clamp(0px, 6vw, 80px) 24px 0;
  color: var(--ink-60);
  max-width: 74ch;
}

/* ---------------------------------------------------------------- Formulaire */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: block; margin-bottom: 18px; }

.field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--navy);
  /* Champ rempli plutôt que cerclé. Le fond doit se détacher de la carte
     blanche : le crème du fond de page y était invisible. */
  background: var(--sky);
  border: 0;
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: box-shadow 0.15s ease;
}

.field textarea { min-height: 96px; resize: vertical; }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

.form-note { font-size: 13px; color: var(--ink-40); margin-top: 14px; max-width: 52ch; }

.checks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 15.5px;
}

.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }

.checks li::before {
  content: "✓";
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ Footer */

.footer {
  background: #0C3336;
  color: var(--cream-60);
  padding-block: 56px 36px;
  font-size: 14.5px;
}

.footer a { color: var(--cream); text-decoration: none; transition: opacity 0.2s; }
.footer a:hover { opacity: 0.8; text-decoration: none; }
.footer .logo { color: var(--cream); display: inline-block; }

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  max-width: 380px;
}

.footer__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(248, 249, 254, 0.7);
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: rgba(248, 249, 254, 0.6);
}

.footer__legal-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.footer__legal-links a {
  color: rgba(248, 249, 254, 0.75);
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Bandeau de certification, en pied de page */
.hds {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 9px 16px 9px 12px;
  background: var(--cream-12);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cream);
}

.hds b {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hds svg {
  width: 17px;
  height: 17px;
  flex: none;
  display: block;
}

/* -------------------------------------------------------- Révélation scroll */

.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  border-radius: var(--r-pill);
  box-shadow: var(--lift);
  padding: 10px 18px;
  font-weight: 600;
}

/* ------------------------------------------------------- Illustrations SVG
   Dessins originaux, dans la palette pastel. Ils remplacent la photographie
   que ce type de mise en page appelle : à défaut de visuels d'officine, ils
   donnent au bloc la matière qui lui manquerait. */

.illu {
  display: block;
  width: 100%;
  height: auto;
}

.illu--sm { max-width: 132px; margin-bottom: 20px; }

/* Le bloc du hero porte l'aplat sable et cale la maquette dedans */
.hero .band { padding-block: clamp(34px, 4.6vw, 64px); }

/* Bandeau d'illustration en tête de carte de flux */
.flow-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.flow-head svg { width: 72px; height: 72px; flex: none; }

/* Vignette pastel derrière une illustration */
.ico {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex: none;
}

.ico--sand { background: var(--sand-deep); }
.ico--mint { background: var(--mint); }
.ico--sky { background: var(--sky); }
.ico svg { width: 28px; height: 28px; }

/* La maquette du hero partage sa colonne avec le texte : en dessous de 1240px
   elle n'a plus la place de ses quatre colonnes. « Échéance » sort en premier,
   c'est « À facturer » qui porte le message. */
@media (max-width: 1240px) {
  .hero .mock th:nth-child(4),
  .hero .mock td:nth-child(4) { display: none; }
}

/* Sous 900px la maquette repasse pleine largeur : la colonne revient. */
@media (max-width: 900px) {
  .hero .mock th:nth-child(4),
  .hero .mock td:nth-child(4) { display: table-cell; }
}

/* ==========================================================================
   ALAN / QONTO STYLE EDITORIAL SCENES & OVERLAYS
   ========================================================================== */

#parcours {
  background: #FFFFFF;
}

/* Alan Section Header */
.alan-sec__title {
  text-align: left;
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: none;
}

.alan-sec__lede {
  text-align: left;
  font-size: clamp(16px, 1.25vw, 18px);
  color: var(--ink-60);
  margin-top: 12px;
  max-width: 60ch;
}

/* Alan Grid & Cards */
.alan-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 4.5vw, 64px);
}

.alan-card {
  display: flex;
  flex-direction: column;
}

.alan-card__media {
  position: relative;
  width: 100%;
  /* Hauteur explicite et non `aspect-ratio` : l'image enfant est en
     `height: 100%`, ce qui rend la hauteur du parent indéterminée et fait
     ignorer le rapport. La photo passe de 260 à ~317px au format desktop,
     soit un rapport de 1,27 au lieu de 1,54 — l'étiquette flottante n'occupe
     plus qu'un sixième de l'image au lieu d'un quart. */
  height: clamp(290px, 22vw, 340px);
  border-radius: 20px;
  background: #FAF0E6;
  overflow: visible; /* Permet aux badges Alan de déborder de la photo */
}

.alan-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* Badges Flottants Asymétriques Débordants (Alan style exact) */
.alan-badge {
  position: absolute;
  background: #FAF0E6;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: none; /* AUCUNE OMBRE DE BORDURE — PUR ALAN STYLE */
  border: none;
  z-index: 10;
  max-width: 255px; /* Largeur rectangulaire compacte identique à Alan */
}

/* CARTE 1 : Débordant sur le bord gauche au milieu de la hauteur */
.alan-badge--top-left {
  top: 36%;
  left: -28px;
  transform: translateY(-50%);
}

/* CARTE 2 : Débordant en bas à gauche de la carte */
.alan-badge--bottom-left {
  bottom: -28px;
  left: -12px;
}

/* CARTE 3 : Débordant en haut à droite de la carte */
.alan-badge--top-right {
  top: -28px;
  right: -28px;
}

.alan-badge__val {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.alan-badge__text {
  font-size: 12.5px;
  color: var(--ink-70);
  line-height: 1.35;
  margin: 0;
}

.alan-card__body {
  padding-top: 44px;
}

.alan-card__h3 {
  font-size: clamp(16px, 1.25vw, 18.5px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.alan-card__meta {
  font-size: 13px;
  color: var(--ink-50);
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
}

/* Overlays UI Flottants (Qonto & Alan Style) */
.overlay-ui {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(14, 17, 58, 0.16);
  border-radius: var(--r-md);
  padding: 14px 18px;
  animation: floatBounce 4s ease-in-out infinite;
}

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

.overlay-ui--order {
  bottom: 18px;
  left: 18px;
  right: 18px;
}

.overlay-ui__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.overlay-ui__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.overlay-ui__status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--mint);
  color: var(--teal-ink);
}

.overlay-ui__body {
  font-size: 12px;
  color: var(--ink-70);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Overlay SMS Alan-style */
.overlay-ui--sms {
  top: 18px;
  right: 16px;
  left: 16px;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.overlay-ui__sms-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.overlay-ui__sms-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: bold;
}

.overlay-ui__sms-text {
  font-size: 12.5px;
  color: var(--navy);
  line-height: 1.35;
}

.overlay-ui__sms-time {
  font-size: 10px;
  color: var(--ink-40);
  margin-left: auto;
}

/* Overlay Billing Cockpit */
.overlay-ui--billing {
  bottom: 16px;
  left: 16px;
  right: 16px;
}

.overlay-ui__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding-block: 4px;
}

.overlay-ui__row + .overlay-ui__row {
  border-top: 1px solid var(--ink-08);
}

/* ROI Calculator Component */
.roi-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  margin-top: clamp(48px, 6vw, 80px);
  box-shadow: var(--lift-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

@media (max-width: 860px) {
  .roi-card { grid-template-columns: 1fr; }
}

.roi-card__title {
  color: var(--white);
  margin-bottom: 12px;
}

.roi-card__lede {
  color: var(--cream-70);
  font-size: 16px;
  margin-bottom: 24px;
}

.roi-slider-group {
  margin-block: 20px;
}

.roi-slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--cream);
}

.roi-slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--teal-soft);
  cursor: pointer;
}

.roi-result {
  background: var(--cream-12);
  border: 1px solid var(--cream-24);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  text-align: center;
}

.roi-result__amount {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--teal-soft);
  line-height: 1;
  margin-block: 8px 12px;
}

.roi-result__label {
  font-size: 14px;
  color: var(--cream-70);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ==========================================================================
   QONTO STYLE TALL FEATURE CARDS (CAUTION, RENOUVELLEMENT, FOURNISSEUR)
   ========================================================================== */

#fonctionnalites { background: var(--white); }

/* ------------------------------------------------- Galerie de fonctionnalités
   Le texte tient à gauche, les photos à droite. Au survol, la carte visée
   s'ouvre et les deux autres se resserrent — la largeur est pilotée par
   `flex-grow`, qui s'anime, contrairement à `width` sur une grille. */

.feat {
  display: grid;
  /* Proportions relevées sur qonto.com à 1440px : colonne de texte 25,4 % du
     contenu, galerie 74,6 %, séparées par 40px. Le rapport est ici de 1:2,7
     et non 1:3,3 : l'intitulé d'airlok fait 58 caractères contre 40 au leur,
     et il lui faut cette largeur pour tenir sur trois lignes sans réduire le
     corps sous 32px. Mesuré : colonne 336px contre 318px chez Qonto. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.7fr);
  gap: clamp(24px, 2.8vw, 40px);
  align-items: stretch;
  margin-top: clamp(8px, 2vw, 24px);
}

/* Comme chez Qonto : le titre en haut, le bouton calé en bas de la colonne,
   qui s'étire sur toute la hauteur de la galerie. */
.feat__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.feat__title {
  /* Qonto titre à 40px/48px, soit une interligne de 1,2. Le corps est ici un
     cran en dessous : l'intitulé d'airlok est plus long que le leur et doit
     tenir sur trois lignes dans une colonne de même largeur. */
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.2;
  max-width: none;
}

.feat__intro .btn { margin-top: clamp(28px, 3vw, 40px); }

/* Bouton « ligne », repris de Qonto : fond clair, filet fin, rayon court.
   Seule entorse à la règle « aucune bordure » du design system — le repère
   visuel de ce bouton tient précisément à son contour. */
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(14, 17, 58, 0.28);
  border-radius: var(--r-btn);
  font-weight: 500;
  padding: 14px 22px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn--outline:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: none;
  box-shadow: none;
}

.feat__gallery {
  display: flex;
  gap: 24px;
  /* Carte ouverte 530x448 chez Qonto, soit un rapport de 1,18. La hauteur
     suit ici la largeur disponible pour conserver ce rapport. */
  height: clamp(340px, 28vw, 448px);
}

.feat-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  display: block;
  transition: flex-grow 0.55s cubic-bezier(0.22, 0.7, 0.25, 1);
}

/* État par défaut : la première carte est ouverte. */
.feat-card--open { flex-grow: 2.5; }

/* Dès qu'on survole la galerie, le défaut cède et c'est la carte visée qui
   commande. Ces deux règles ont la même spécificité : l'ordre les départage. */
.feat__gallery:hover .feat-card,
.feat__gallery:focus-within .feat-card { flex-grow: 1; }

.feat__gallery:hover .feat-card:hover,
.feat__gallery:focus-within .feat-card:focus-visible { flex-grow: 2.5; }

.feat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* La photo garde son cadrage quand la carte se resserre : sans ça, le sujet
     part hors champ dès que la largeur tombe. */
  object-position: 50% 40%;
}

.feat-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 38, 0.72) 0%, rgba(8, 10, 38, 0.28) 42%, rgba(8, 10, 38, 0.55) 100%);
}

.feat-card__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(20px, 2vw, 30px);
}

.feat-card__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* La flèche n'apparaît que sur la carte ouverte, comme repère d'action. */
.feat-card__arrow {
  margin-left: auto;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: rgba(248, 249, 254, 0.22);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.feat-card__arrow svg { width: 17px; height: 17px; }

/* Une seule ligne, révélée à l'ouverture. Fermée, la carte ne porte que son
   libellé : c'est ce qui la garde lisible à 140px de large. */
.feat-card__line {
  position: absolute;
  left: clamp(20px, 2vw, 30px);
  right: clamp(20px, 2vw, 30px);
  bottom: clamp(20px, 2vw, 30px);
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.feat-card--open .feat-card__arrow,
.feat-card--open .feat-card__line { opacity: 1; transform: none; }

.feat__gallery:hover .feat-card__arrow,
.feat__gallery:hover .feat-card__line,
.feat__gallery:focus-within .feat-card__arrow,
.feat__gallery:focus-within .feat-card__line { opacity: 0; transform: translateY(8px); }

.feat__gallery:hover .feat-card:hover .feat-card__arrow,
.feat__gallery:focus-within .feat-card:focus-visible .feat-card__arrow { opacity: 1; transform: none; }

.feat__gallery:hover .feat-card:hover .feat-card__line,
.feat__gallery:focus-within .feat-card:focus-visible .feat-card__line { opacity: 1; transform: none; }

/* Sous 960px l'accordéon n'a plus la place de fonctionner : les cartes
   reprennent une largeur pleine et s'empilent, toutes ouvertes. */
@media (max-width: 960px) {
  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat__title { max-width: 24ch; }

  .feat__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    height: auto;
  }

  .feat-card { height: 340px; }

  .feat-card__arrow,
  .feat-card__line { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .feat-card,
  .feat-card__arrow,
  .feat-card__line { transition: none; }
}

/* ==========================================================================
   ALAN STYLE INTERACTIVE AVANT / APRÈS DYNAMIC TOGGLE & QUINCONCE GRID
   ========================================================================== */

.ba-sec {
  transition: background-color 0.4s ease, color 0.4s ease;
  padding-block: clamp(72px, 8vw, 128px);
}

/* Fond sombre vert/bleu pétrole emblématique d'Alan */
.ba-sec--before {
  background: #124549;
  color: #FFFFFF;
}

/* Fond clair pèche/sable chaud emblématique d'Alan */
.ba-sec--after {
  background: #F7F0E6;
  color: var(--navy);
}

/* Toggle Switch Pill Alan */
.ba-toggle-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.ba-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  backdrop-filter: blur(12px);
}

.ba-sec--after .ba-toggle {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(14, 17, 58, 0.06);
}

.ba-toggle__btn {
  padding: 14px 30px;
  border-radius: 100px;
  border: none;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ba-sec--after .ba-toggle__btn {
  color: var(--ink-70);
}

/* L'onglet actif reprend les traitements déjà en place dans le système, et
   change selon le fond de la section — le violet d'Alan n'appartient pas à
   notre palette. Sur le teal profond : pastille crème et texte navy, comme
   les onglets de la démonstration. Sur le sable : l'aplat teal des boutons. */
.ba-sec--before .ba-toggle__btn--active {
  background: var(--cream);
  color: var(--navy);
}

.ba-sec--after .ba-toggle__btn--active {
  background: var(--teal-deep);
  color: #FFFFFF;
  box-shadow: var(--lift);
}

/* Panels */
.ba-panel {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ba-panel--active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Grid 3-columns Asymétrique Quinconce (Exact Alan Style) */
.ba-grid--quinconce {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr 1.1fr;
  gap: clamp(20px, 2.5vw, 32px);
}

@media (max-width: 992px) {
  .ba-grid--quinconce {
    grid-template-columns: 1fr;
  }
}

/* Base Card Style Alan */
.ba-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 28px;
  padding: 36px 32px;
  min-height: 290px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Carte Sombre Vert Pétrole (Alan Dark Card #113D3B) */
.ba-card--dark {
  background: #0E3639;
  color: #FFFFFF;
  border: none;
}

.ba-card--dark:hover {
  transform: translateY(-4px);
}

/* Carte Claire Pèche (Alan Light Card #FFF4E8) */
.ba-card--light {
  background: #FFF4E8;
  color: var(--navy);
  box-shadow: none;
  border: none;
}

.ba-card--light:hover {
  transform: translateY(-4px);
}

/* Badges de Cartes */
.ba-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: auto;
}

.ba-card__badge--dark {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.ba-card__badge--teal {
  background: #EAF7F4;
  color: #0D9488;
}

/* Titres de Cartes (Alan Bold Statement Style) */
.ba-card__title {
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.ba-card--dark .ba-card__title { color: #FFFFFF; }
.ba-card--light .ba-card__title { color: var(--navy); }

.ba-card__desc {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}

.ba-card--dark .ba-card__desc { color: rgba(255, 255, 255, 0.78); }
.ba-card--light .ba-card__desc { color: var(--ink-70); }

/* Cartes photos immersives */
.ba-card--photo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 290px;
  justify-content: flex-end;
  padding: 32px 30px;
}

.ba-card__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}

.ba-card--photo:hover .ba-card__photo-img {
  transform: scale(1.04);
}

.ba-card__photo-img--dark {
  filter: brightness(0.55) contrast(1.15);
}

.ba-card__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 27, 28, 0.1) 0%, rgba(8, 27, 28, 0.88) 100%);
  z-index: 2;
}

.ba-card__photo-overlay--light {
  background: linear-gradient(180deg, rgba(8, 10, 38, 0.1) 0%, rgba(8, 10, 38, 0.82) 100%);
}

.ba-card__photo-content {
  position: relative;
  z-index: 3;
}

.ba-card__quote {
  font-size: clamp(14.5px, 1.1vw, 16px);
  line-height: 1.45;
  color: #FFFFFF;
  font-weight: 500;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.ba-card__quote--light {
  color: #FFFFFF;
}

.ba-card__author {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

/* WhatsApp Button Style (Teal Brand Color) */
.btn--wa {
  background: var(--teal-deep);
  color: #FFFFFF !important;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn--wa:hover {
  background: var(--teal);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.btn--wa svg {
  flex-shrink: 0;
}

/* ==========================================================================
   PRICING SECTION (HERO PRICE + 2 SUB-CARDS LAYOUT)
   ========================================================================== */

.pricing-sec {
  padding-block: clamp(72px, 8vw, 112px);
  background: var(--cream);
}

.pricing-sec .alan-sec__title {
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

/* ---------------------------------------------------------- Tarification
   Un bloc unique : le prix, son explication et les deux lignes Stripe vivent
   dans le même aplat. Les séparations sont des filets internes en `inset`
   à 8 % — assez ténus pour se lire comme une teinte, jamais comme un cadre. */

/* ==========================================================================
   PRICING SECTION - AIRY 3-CARD GRID DESIGN
   ========================================================================== */

.price {
  background: var(--sand);
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* Prix et explication */
.price__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(34px, 4.6vw, 56px) clamp(28px, 4vw, 56px);
}

.price__amount { display: flex; flex-direction: column; }

.price__num {
  font-family: var(--display);
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.price__unit {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--navy);
}

.price__text {
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-70);
}

.price__text strong { color: var(--navy); font-weight: 600; }

/* Bloc Stripe unifié */
.price__items {
  display: block;
  box-shadow: inset 0 1px 0 var(--ink-08);
}

.price__item {
  padding: clamp(28px, 3.5vw, 44px) clamp(28px, 4vw, 56px);
}

.price__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.price__tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.price__stripe { width: 56px; height: auto; opacity: 0.85; flex-shrink: 0; }

.price__item-title {
  font-family: var(--display);
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 10px;
}

.price__item-title .price__sub {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-70);
}

.price__item-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
}

.price__item-desc strong { color: var(--navy); font-weight: 600; }

@media (max-width: 860px) {
  .price__head { grid-template-columns: 1fr; gap: 22px; }
  .price__items { grid-template-columns: 1fr; }
  .price__item + .price__item { box-shadow: inset 0 1px 0 var(--ink-08); }
}

/* ==========================================================================
   QONTO BENTO GRID (PAGE FONCTIONNALITÉS ALAN/QONTO LAYOUT)
   ========================================================================== */

.page-fonctionnement,
.page-fonctionnement .qb-sec,
.page-fonctionnement .alan-cta-sec {
  background: #FFFFFF !important;
}

.qb-sec {
  padding-block: clamp(48px, 6vw, 80px);
}

.qb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 48px);
  flex-wrap: wrap;
  gap: 16px;
}

.qb-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
}

.qb-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--mint);
  color: var(--teal-ink);
  font-size: 13.5px;
  font-weight: 600;
}

.qb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}

@media (max-width: 992px) {
  .qb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .qb-grid {
    grid-template-columns: 1fr;
  }
}

.qb-card--span-col-2 {
  grid-column: span 2;
}

.qb-card--tall-left {
  grid-row: span 2;
}

/* Pleine largeur : sert à clore une grille dont la dernière ligne n'aurait
   qu'une carte, ce qui laisserait deux colonnes vides. */
.qb-card--span-col-3 {
  grid-column: span 3;
}

@media (max-width: 992px) {
  .qb-card--span-col-2,
  .qb-card--span-col-3,
  .qb-card--tall-left {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Styles des Cartes Bento Qonto & Alan Pastels (Sans aucune ombre) */
.qb-card {
  background: #124549;
  border-radius: 28px;
  padding: clamp(28px, 3.5vw, 36px);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s ease;
  min-height: 250px;
}

.qb-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

/* Thèmes Pastels Alan (Sans aucune bordure ni ombre) */
.qb-card--peach {
  background: #FFF3EB;
  color: var(--navy);
  border: none;
  box-shadow: none;
}

.qb-card--mint {
  background: #EBF6F3;
  color: var(--navy);
  border: none;
  box-shadow: none;
}

.qb-card--lavender {
  background: #F0F3FF;
  color: var(--navy);
  border: none;
  box-shadow: none;
}

.qb-card--sand {
  background: #FAF5ED;
  color: var(--navy);
  border: none;
  box-shadow: none;
}

.qb-card--light {
  background: #FFFFFF;
  color: var(--navy);
  border: none;
  box-shadow: none;
}

.qb-card--photo {
  position: relative;
  min-height: 320px;
  box-shadow: none;
}

.qb-card__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}

.qb-card--photo:hover .qb-card__bg-img {
  transform: scale(1.03);
}

.qb-card__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 69, 73, 0.35) 0%, rgba(18, 69, 73, 0.92) 100%);
  z-index: 2;
}

.qb-card__content {
  position: relative;
  z-index: 3;
}

.qb-card__title {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: inherit;
}

.qb-card__desc {
  font-size: 14.5px;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0;
}

.qb-card--peach .qb-card__desc,
.qb-card--mint .qb-card__desc,
.qb-card--lavender .qb-card__desc,
.qb-card--sand .qb-card__desc,
.qb-card--light .qb-card__desc {
  color: var(--ink-70);
  opacity: 1;
}

/* UI Mockups & Badges dans les cartes Qonto (Sans aucune ombre) */
.qb-ui-box {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px 20px;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 3;
  border: none;
  box-shadow: none;
}

.qb-card--peach .qb-ui-box,
.qb-card--mint .qb-ui-box,
.qb-card--lavender .qb-ui-box,
.qb-card--sand .qb-ui-box,
.qb-card--light .qb-ui-box {
  background: #FFFFFF;
  color: var(--navy);
  border: none;
  box-shadow: none;
}

.qb-ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 12.5px;
  font-weight: 600;
  width: fit-content;
}

.qb-card--peach .qb-ui-pill {
  background: #FFE2D4;
  color: #9A3412;
}

.qb-card--mint .qb-ui-pill {
  background: #D1FAE5;
  color: #047857;
}

.qb-card--lavender .qb-ui-pill {
  background: #E0E7FF;
  color: #3730A3;
}

.qb-card--sand .qb-ui-pill {
  background: #FEF3C7;
  color: #92400E;
}

.qb-card--light .qb-ui-pill {
  background: #F1F5F9;
  color: #334155;
}

/* ==========================================================================
   SECTION CTA FINALE — panneau photo, d'après qonto.com
   ========================================================================== */

/* La section reprend le crème de celle qui la précède, sans dégradé. */
.alan-cta-sec {
  position: relative;
  background: var(--cream);
  padding-block: clamp(48px, 6vw, 80px);
}

/* Valeurs relevées sur qonto.com à 1440px : panneau 1344x504, rayon 24px,
   titre 56/64px, voile en dégradé horizontal, bouton à contour blanc.
   L'image est posée en fond CSS par-dessus un aplat teal profond : si le
   fichier manque, on obtient un panneau uni propre et non une image cassée. */
.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 35vw, 504px);
  border-radius: 24px;
  overflow: hidden;
  background: #124549 url("images/cta_bg.webp") center / cover no-repeat;
}

.cta-panel--features {
  background: #124549 url("images/cta_bg_features.webp") center / cover no-repeat;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.67) 0%, rgba(5, 5, 5, 0.67) 20%, rgba(5, 5, 5, 0) 60%);
}

.cta-panel__inner {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 4.4vw, 64px);
  /* Pas d'unité `ch` ici : elle se calcule sur la police héritée (16,5px) et
     non sur les 56px du titre, ce qui réduisait la colonne à ~320px. Qonto
     laisse son titre tenir sur 660px de large, soit 49 % du panneau. */
  max-width: 59%;
}

.cta-panel__title {
  font-family: var(--display);
  font-size: clamp(32px, 3.9vw, 56px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.cta-panel__lede {
  margin-top: 16px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 470px;   /* 482px chez Qonto */
}

/* Bouton à contour, comme chez Qonto. Deuxième exception assumée à la règle
   « aucune bordure » : sur une photo, un aplat plein alourdirait le panneau. */
.cta-panel__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(26px, 3vw, 36px);
  padding: 13px 20px;
  border: 1px solid #FFFFFF;
  border-radius: var(--r-btn);
  background: transparent;
  color: #FFFFFF;
  font-family: var(--body);
  font-size: 16.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.cta-panel__btn:hover {
  background: #FFFFFF;
  color: var(--navy);
}

.cta-panel__btn svg { flex: none; }

@media (max-width: 720px) {
  /* Le voile bascule à la verticale : en colonne étroite, un dégradé
     horizontal laisserait le bas du texte sur la partie claire de la photo. */
  .cta-panel::before {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.55) 60%, rgba(5, 5, 5, 0.45) 100%);
  }
  .cta-panel__inner { max-width: none; }
}

/* ------------------------------------------------------------ Menu mobile
   Le bouton n'apparaît qu'en dessous de 860px, là où `.nav__links` disparaît :
   sans lui, la navigation était simplement inaccessible sur téléphone. */

.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Ouvert : les deux traits extrêmes forment une croix, celui du milieu s'efface */
.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); }

.menu {
  position: fixed;
  /* Le panneau part du haut absolu et se réserve la hauteur de la barre en
     padding : caler `top` sur 72px laissait passer un liseré de la page dès
     que la barre ne faisait pas exactement cette hauteur. */
  inset: 0;
  z-index: 39;
  background: var(--cream);
  padding: 88px clamp(20px, 5vw, 32px) clamp(20px, 5vw, 32px);
  overflow-y: auto;
}

.menu[hidden] { display: none; }

.menu__nav {
  display: grid;
  gap: 4px;
}

.menu__nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  color: var(--navy);
  padding: 16px 4px;
  box-shadow: inset 0 -1px 0 var(--ink-08);
}

.menu__actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.menu__actions .btn { justify-content: center; }

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav__actions { display: none; }
}

/* Au-dessus de 860px le panneau ne doit jamais rester ouvert, même si la
   fenêtre a été agrandie pendant qu'il l'était. */
@media (min-width: 861px) {
  .menu { display: none !important; }
}

/* ------------------------------------------------------------ SMS patient
   Avis de mise à disposition tel que le patient le reçoit. C'est un SMS et
   non une notification d'application : le patient n'installe rien. D'où la
   bulle de message, avec son angle inférieur gauche cassé. */

/* ==========================================================================
   iOS LIQUID GLASS NOTIFICATION BANNER (SMS)
   ========================================================================== */

.ios-notif {
  position: relative;
  z-index: 3;
  margin-top: auto;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-radius: 26px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 16px 40px -8px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
}

.ios-notif__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
}

.ios-notif__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A4C8F0 0%, #6896D8 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.ios-notif__app-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #34C759;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1.5px solid #FFFFFF;
}

.ios-notif__app-icon svg {
  width: 10px;
  height: 10px;
  fill: #FFFFFF;
}

.ios-notif__body {
  flex: 1;
  min-width: 0;
}

.ios-notif__top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.ios-notif__sender {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-notif__time {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.ios-notif__msg {
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
