/* ==========================================================================
   Divital Patient — Design System & Styles (v2)
   Palette dérivée du logo : bleu pervenche / mauve lavande / bleu ciel
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --blue: #849FF1;
  --blue-dark: #526FD0;
  --mauve: #D1B3F8;
  --mauve-dark: #9574D8;
  --sky: #96D5F5;
  --sky-dark: #4FA8D1;

  /* Texte */
  --ink: #172033;
  --ink-soft: #5F687A;

  /* Fonds */
  --bg: #FFFFFF;
  --bg-blue: #F7F8FE;
  --bg-mauve: #F7F1FF;
  --bg-sky: #EEF8FD;

  /* Bordures & états */
  --border: #E4E8F2;
  --success: #36A978;
  --warning: #E5A43A;
  --danger: #D95663;

  /* Dégradé officiel — usage limité et décoratif */
  --gradient: linear-gradient(135deg, #849FF1 0%, #D1B3F8 50%, #96D5F5 100%);
  /* Variante foncée : surfaces portant du texte blanc (contraste AA) */
  --gradient-deep: linear-gradient(135deg, #4560BD 0%, #7D5BC4 50%, #3E93BD 100%);

  /* Textures */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  --dots: radial-gradient(rgba(82, 111, 208, 0.32) 1.4px, transparent 1.4px);

  /* Ombres */
  --shadow-card: 0 10px 30px rgba(73, 86, 135, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(73, 86, 135, 0.14);
  --shadow-nav: 0 6px 24px rgba(73, 86, 135, 0.10);

  /* Rayons */
  --r-card: 22px;
  --r-card-sm: 18px;
  --r-btn: 14px;
  --r-pill: 999px;

  /* Typo */
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Espacement sections */
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --container: 72rem;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* compense la nav sticky sur les ancres */
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(132, 159, 241, 0.25); }

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
  outline-offset: -3px;
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 4.8vw, 3.45rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }

.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  color: var(--ink-soft);
  line-height: 1.65;
  text-wrap: pretty;
}

/* Surlignage marqueur sur les mots clés */
.hl {
  font-style: normal;
  background: linear-gradient(transparent 58%, rgba(209, 179, 248, 0.5) 58%, rgba(209, 179, 248, 0.5) 94%, transparent 94%);
  border-radius: 3px;
  padding-inline: 0.06em;
}

.hl--sky {
  background: linear-gradient(transparent 58%, rgba(150, 213, 245, 0.55) 58%, rgba(150, 213, 245, 0.55) 94%, transparent 94%);
}

/* Kicker éditorial : —— 01 · TITRE DE SECTION */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.kicker::before {
  content: "";
  width: 2.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.kicker .num {
  color: var(--mauve-dark);
  font-variant-numeric: tabular-nums;
}

.section-head {
  max-width: 46rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-head .kicker { justify-content: center; }
.section-head .lead { margin-top: 1.1rem; }

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-y); }
.section--blue { background: var(--bg-blue); }
.section--mauve { background: var(--bg-mauve); }
.section--sky { background: var(--bg-sky); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--r-btn);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  touch-action: manipulation;
  text-decoration: none;
  min-height: 3rem;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  color: #fff;
  background: var(--blue-dark);
  box-shadow: 0 8px 22px rgba(82, 111, 208, 0.32);
}

.btn--primary:hover {
  background: #4560bd;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(82, 111, 208, 0.4);
}

/* Variante dégradé — réservée au hero et à la section finale */
.btn--gradient {
  color: #fff;
  background: var(--gradient-deep);
  background-size: 150% 150%;
  box-shadow: 0 10px 26px rgba(132, 159, 241, 0.45);
  position: relative;
}

.btn--gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(23, 32, 51, 0);
  transition: background-color 0.18s ease;
}

.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(132, 159, 241, 0.55);
}

.btn--gradient:hover::after { background: rgba(23, 32, 51, 0.08); }

.btn--outline {
  color: var(--blue-dark);
  background: #fff;
  border: 2px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--blue);
  background: var(--bg-blue);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; border-radius: 16px; }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.95rem; min-height: 2.5rem; border-radius: 12px; }

.btn--white {
  color: var(--blue-dark);
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.18);
}

.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(23, 32, 51, 0.24); }

/* Lien secondaire avec flèche (CTA léger à côté du bouton primaire) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-dark);
  padding: 0.9rem 0.4rem;
  min-height: 3rem;
}

.link-arrow svg { transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Réassurance sous un CTA */
.cta-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cta-note svg { flex: none; color: var(--success); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-nav);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
}

.nav__logo { flex: none; }
.nav__logo img { height: 2.4rem; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin-inline: auto;
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav__links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav__links a:hover::after { transform: scaleX(1); }

/* CTA du menu mobile — masqué sur desktop (le CTA de la barre suffit) */
.nav__links-cta { display: none; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}

.lang-switch {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-switch:hover { border-color: var(--blue); color: var(--blue-dark); text-decoration: none; }

/* Burger mobile */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
}

.nav__toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4.5rem, 8vw, 8rem);
  background:
    radial-gradient(56rem 34rem at 85% -10%, rgba(150, 213, 245, 0.22), transparent 60%),
    radial-gradient(50rem 32rem at -10% 20%, rgba(209, 179, 248, 0.20), transparent 60%),
    var(--bg);
}

/* Grain discret sur tout le hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.kicker--hero { color: var(--mauve-dark); margin-bottom: 1.5rem; }
.kicker--hero::before { background: var(--mauve); }
.kicker--hero svg { color: var(--mauve-dark); }

.hero h1 { margin-bottom: 1.4rem; }

.hero .lead { max-width: 33rem; margin-bottom: 2.3rem; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

/* Visuel hero : mockup + panneau incliné + motif pointillé */
.hero__visual { position: relative; }

.hero__visual::before {
  content: "";
  position: absolute;
  top: -2.4rem;
  right: -1.8rem;
  width: 9.5rem;
  height: 9.5rem;
  background-image: var(--dots);
  background-size: 17px 17px;
  z-index: 0;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 10% -5% -6% 7%;
  background: var(--gradient);
  opacity: 0.3;
  border-radius: 28px;
  transform: rotate(-3.5deg);
  z-index: 0;
}

.hero__visual .mockup-dashboard {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  box-shadow: 0 30px 70px rgba(73, 86, 135, 0.20);
}

.hero__chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-card-hover);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.hero__chip small { display: block; font-weight: 500; color: var(--ink-soft); }

.hero__chip--tl { top: -1.2rem; left: -1.4rem; }
.hero__chip--br { bottom: -1.4rem; right: -1rem; }

.chip-icon {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}

.chip-icon--success { background: var(--success); position: relative; }
.chip-icon--blue { background: var(--blue); }

/* Point de statut « vivant » (micro-animation perpétuelle, repris de taste) */
.chip-icon--success::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 16px;
  border: 2px solid var(--success);
  opacity: 0;
  animation: breathe 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes breathe {
  0% { transform: scale(0.82); opacity: 0.5; }
  70%, 100% { transform: scale(1.18); opacity: 0; }
}

/* Téléphone illustré, en avant-plan du tableau de bord */
.hero__phone {
  position: absolute;
  z-index: 2;
  left: -7%;
  bottom: -10%;
  width: 35%;
  height: auto;
  filter: drop-shadow(0 26px 44px rgba(40, 52, 92, 0.30));
}

@media (max-width: 48rem) {
  .hero__phone { left: -2%; bottom: -7%; width: 40%; }
}

/* Illustration d'appareil dans les cas d'usage */
.uc-viz { height: 64px; width: auto; margin-bottom: 1.15rem; }

/* --------------------------------------------------------------------------
   Cartes génériques (encore utilisées par confidentialité / divers)
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  color: var(--blue-dark);
  background: var(--bg-blue);
}

.card-icon--mauve { color: var(--mauve-dark); background: var(--bg-mauve); }
.card-icon--sky { color: var(--sky-dark); background: var(--bg-sky); }
.card-icon--success { color: var(--success); background: #EAF7F1; }

/* Grands numéros au contour (style éditorial) */
.big-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--blue-dark);
}

@supports not (-webkit-text-stroke: 1px black) {
  .big-num { color: var(--blue); }
}

/* --------------------------------------------------------------------------
   Section problème — liste éditoriale
   -------------------------------------------------------------------------- */
.problem {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.problem__intro h2 { margin-bottom: 1.2rem; }

.problem__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.problem__list li {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 1.4rem;
  align-items: start;
  padding-block: 1.9rem;
  border-top: 1px solid var(--border);
}

.problem__list li:last-child { border-bottom: 1px solid var(--border); }

.problem__list h3 { margin-bottom: 0.45rem; }
.problem__list p { color: var(--ink-soft); font-size: 0.99rem; }

.problem__list li:nth-child(2) .big-num { -webkit-text-stroke-color: var(--mauve-dark); }
.problem__list li:nth-child(3) .big-num { -webkit-text-stroke-color: var(--sky-dark); }

/* Statistique d'ancrage sourcée (idée reprise de la variante taste) */
.proof-stat {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--mauve);
  max-width: 26rem;
}

.proof-stat b {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--blue-dark);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.proof-stat span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.proof-stat a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.proof-stat a:hover { color: var(--blue-dark); }

/* --------------------------------------------------------------------------
   Comment ça marche — étapes reliées
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  position: relative;
  border-radius: var(--r-card);
  padding: 2.25rem 2rem 2.1rem;
  background: var(--bg-blue);
}

.step:nth-child(2) { background: var(--bg-mauve); }
.step:nth-child(3) { background: var(--bg-sky); }

.step .big-num { margin-bottom: 1.3rem; }
.step:nth-child(2) .big-num { -webkit-text-stroke-color: var(--mauve-dark); }
.step:nth-child(3) .big-num { -webkit-text-stroke-color: var(--sky-dark); }

.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* Flèche de liaison entre les étapes (desktop) */
.step + .step::before {
  content: "";
  position: absolute;
  top: 2.6rem;
  left: calc(-0.75rem - 1.2rem);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526FD0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: var(--shadow-card);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Fonctionnalités — bento grid
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.bento__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  padding: 1.9rem;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bento__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.bento__card--w2 { grid-column: span 2; }

.bento__card--blue { background: var(--bg-blue); border-color: transparent; }
.bento__card--mauve { background: var(--bg-mauve); border-color: transparent; }
.bento__card--sky { background: var(--bg-sky); border-color: transparent; }
.bento__card--grad {
  background: linear-gradient(135deg, rgba(132, 159, 241, 0.13), rgba(209, 179, 248, 0.17) 50%, rgba(150, 213, 245, 0.13));
  border-color: transparent;
}

.bento__card h3 { margin-bottom: 0.5rem; font-size: 1.12rem; }
.bento__card p { color: var(--ink-soft); font-size: 0.94rem; }

.bento__icon {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 1.15rem;
  color: var(--blue-dark);
  background: var(--bg-blue);
}

.bento__card--blue .bento__icon,
.bento__card--grad .bento__icon { background: #fff; }
.bento__icon--mauve { color: var(--mauve-dark); background: var(--bg-mauve); }
.bento__icon--sky { color: var(--sky-dark); background: var(--bg-sky); }
.bento__card--mauve .bento__icon--mauve,
.bento__card--sky .bento__icon--sky { background: #fff; }

/* Mini-illustration dans les cartes larges */
.bento__viz {
  margin: 0 0 1.2rem;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Bénéfices (avant / après)
   -------------------------------------------------------------------------- */
/* Comparaison en colonnes éditoriales séparées par un filet (structure taste) */
.before-after { align-items: stretch; gap: 0; }

.ba-card {
  padding: 0.5rem 3rem 0.5rem 0;
  border: none;
  background: transparent;
}

.ba-card--before h3 { color: var(--ink-soft); }

.ba-card--after {
  border-left: 1px solid var(--border);
  padding-left: 3rem;
  padding-right: 0;
}

.ba-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.ba-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; }

.ba-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.99rem;
}

.ba-list svg { flex: none; margin-top: 0.22rem; }
.ba-list--cons svg { color: var(--danger); }
.ba-list--pros svg { color: var(--success); }

/* --------------------------------------------------------------------------
   Section rapport de rendez-vous
   -------------------------------------------------------------------------- */
.report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.report__visual { position: relative; }

/* feuille blanche inclinée derrière le rapport */
.report__visual::before {
  content: "";
  position: absolute;
  inset: 3% -3% -3% 3%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transform: rotate(3deg);
  z-index: 0;
}

.report__visual::after {
  content: "";
  position: absolute;
  bottom: -2.2rem;
  left: -1.8rem;
  width: 8.5rem;
  height: 8.5rem;
  background-image: var(--dots);
  background-size: 17px 17px;
  z-index: 0;
}

.report__visual .mockup-report {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  transform: rotate(-1.6deg);
  box-shadow: 0 26px 60px rgba(73, 86, 135, 0.17);
}

.report__content h2 { margin-bottom: 1.1rem; }
.report__content .lead { font-size: 1.1rem; margin-bottom: 1.75rem; }

.check-list { list-style: none; padding: 0; display: grid; gap: 0.85rem; margin-bottom: 2rem; }

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.check-list svg { flex: none; color: var(--success); margin-top: 0.2rem; }

/* --------------------------------------------------------------------------
   Cas d'usage — panneaux teintés
   -------------------------------------------------------------------------- */
.usecase-card {
  border-radius: var(--r-card);
  padding: 2.1rem 2rem;
}

.usecase-card--blue { background: var(--bg-blue); }
.usecase-card--mauve { background: var(--bg-mauve); }
.usecase-card--sky { background: var(--bg-sky); }

.usecase-card h3 { margin-bottom: 0.6rem; }
.usecase-card p { color: var(--ink-soft); font-size: 0.97rem; }

.usecase-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: 0 3px 10px rgba(73, 86, 135, 0.07);
  margin-bottom: 1.1rem;
}

.tag--blue { color: var(--blue-dark); }
.tag--mauve { color: var(--mauve-dark); }
.tag--sky { color: var(--sky-dark); }

/* --------------------------------------------------------------------------
   Forfaits
   -------------------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.3rem;
  margin: 0 auto 3rem;
}

.billing-toggle button {
  padding: 0.55rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--blue-dark);
  color: #fff;
}

.billing-toggle .save {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--success);
  margin-left: 0.3rem;
}

.billing-toggle button[aria-pressed="true"] .save { color: #CFF3E3; }

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 24rem));
  justify-content: center;
  gap: 1.75rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow-card);
}

.plan--plus {
  border: none;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 2px solid transparent;
  box-shadow: 0 18px 48px rgba(149, 116, 216, 0.22);
}

.plan__badge {
  position: absolute;
  top: -0.95rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--gradient-deep);
  padding: 0.38rem 1.1rem;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 16px rgba(149, 116, 216, 0.35);
  white-space: nowrap;
}

.plan__name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.plan__desc { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.plan__amount {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan__period { color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }

.plan__hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  min-height: 1.4em;
  margin-bottom: 1.6rem;
}

.plan__features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan__features li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--bg-blue);
}

.plan__features li:last-child { border-bottom: none; }
.plan__features li span { color: var(--ink-soft); }

.plan__features li b {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan--plus .plan__features li b { color: var(--blue-dark); }

.plan .btn { width: 100%; }

.pricing-note {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Confidentialité — panneau unique
   -------------------------------------------------------------------------- */
.privacy-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.privacy-panel > div { padding: 2.4rem 2.2rem; }
.privacy-panel > div + div { border-left: 1px solid var(--border); }

.privacy-panel h3 { font-size: 1.08rem; margin: 1.1rem 0 0.45rem; }
.privacy-panel p { color: var(--ink-soft); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Témoignages
   -------------------------------------------------------------------------- */
.testimonials { align-items: start; }

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-top: 3.4rem;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 1.4rem;
  left: 1.7rem;
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--mauve);
  pointer-events: none;
}

.testimonials .testimonial:nth-child(2) { margin-top: 1.8rem; }
.testimonials .testimonial:nth-child(3) { margin-top: 3.6rem; }
.testimonial:nth-child(2)::before { color: var(--blue); }
.testimonial:nth-child(3)::before { color: var(--sky-dark); }

.testimonial blockquote {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.6;
  flex-grow: 1;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  flex: none;
}

.avatar--blue { background: var(--blue); }
.avatar--mauve { background: var(--mauve-dark); }
.avatar--sky { background: var(--sky-dark); }

.testimonial figcaption strong { display: block; font-size: 0.95rem; }
.testimonial figcaption span { font-size: 0.85rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   FAQ — deux colonnes, titre sticky
   -------------------------------------------------------------------------- */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.faq-side { position: sticky; top: 6.5rem; }
.faq-side h2 { margin-bottom: 1rem; }
.faq-side .lead { margin-bottom: 1.5rem; }

.faq { min-width: 0; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card-sm);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:has(.faq-item__btn[aria-expanded="true"]) {
  border-color: rgba(132, 159, 241, 0.5);
  box-shadow: var(--shadow-card);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1.25rem 1.5rem;
  color: var(--ink);
}

.faq-item__btn svg {
  flex: none;
  color: var(--blue-dark);
  transition: transform 0.25s ease;
}

.faq-item__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-item__panel > div { overflow: hidden; }

.faq-item__panel p {
  padding: 0 1.5rem 1.4rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.faq-item:has(.faq-item__btn[aria-expanded="true"]) .faq-item__panel { grid-template-rows: 1fr; }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--gradient-deep);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(38rem 22rem at 50% -30%, rgba(255, 255, 255, 0.28), transparent 65%);
  pointer-events: none;
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.final-cta > * { position: relative; z-index: 1; }

.final-cta h2 { color: #fff; margin-bottom: 1rem; }

.final-cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.final-cta .cta-note { justify-content: center; color: rgba(255, 255, 255, 0.9); }
.final-cta .cta-note svg { color: #fff; }

/* Formulaire de liste d'attente */
.waitlist-form {
  display: grid;
  gap: 0.65rem;
  max-width: 30rem;
  margin: 0 auto 1.2rem;
  text-align: left;
}

/* Étiquette visible au-dessus du champ (discipline formulaire taste) */
.waitlist-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.waitlist-row { display: flex; gap: 0.75rem; }

.waitlist-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.95rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  min-height: 3rem;
}

.waitlist-form input::placeholder { color: var(--ink-soft); }

.waitlist-form input:focus-visible {
  outline: none;
  border-color: var(--ink);
}

.waitlist-form .btn { flex: none; }

.waitlist-msg {
  min-height: 1.5em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.waitlist-msg.is-error { color: #FFD7DC; }

/* Masquage visuel accessible */
.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;
}

@media (max-width: 48rem) {
  .waitlist-row { flex-direction: column; }

  .ba-card { padding: 1.75rem 0; }

  .ba-card--after {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-blue);
  border-top: 1px solid var(--border);
  padding: 4rem 0 1.5rem;
  font-size: 0.95rem;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__brand img { height: 2.6rem; width: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--ink-soft); max-width: 24rem; }

.footer h4 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer ul a { color: var(--ink); font-weight: 500; }

.footer__disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Grande signature en filigrane */
.footer__watermark {
  display: block;
  text-align: center;
  font-size: clamp(4.5rem, 15vw, 11.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.85;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.28;
  margin-top: 3.5rem;
  margin-bottom: -0.18em;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Barre CTA collante (mobile uniquement)
   -------------------------------------------------------------------------- */
.mobile-cta { display: none; }

@media (max-width: 48rem) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0.7rem clamp(1.25rem, 4vw, 2.5rem) calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }

  .mobile-cta.is-visible { transform: translateY(0); }
  .mobile-cta .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Reveal au scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal-group > * { transition-delay: calc(var(--stagger, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 34rem; margin-inline: auto; }

  .grid-3 { grid-template-columns: 1fr 1fr; }

  .problem { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .step + .step::before { display: none; }

  .bento { grid-template-columns: 1fr 1fr; }

  .report, .privacy { grid-template-columns: 1fr; }
  .report__visual { order: 2; max-width: 30rem; margin-inline: auto; }

  .privacy-panel { grid-template-columns: 1fr; }
  .privacy-panel > div + div { border-left: none; border-top: 1px solid var(--border); }

  .testimonials .testimonial:nth-child(2),
  .testimonials .testimonial:nth-child(3) { margin-top: 0; }

  .faq-wrap { grid-template-columns: 1fr; }
  .faq-side { position: static; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 48rem) {
  body { font-size: 1rem; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-nav);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
    margin: 0;
  }

  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.8rem 1rem; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .nav__links-cta { display: block; margin-top: 0.6rem; }
  .nav__links-cta .btn { width: 100%; }

  .grid-3, .grid-2, .pricing, .bento { grid-template-columns: 1fr; }
  .bento__card--w2 { grid-column: auto; }

  .problem__list li { grid-template-columns: 3.2rem 1fr; gap: 1rem; }
  .big-num { font-size: 2.1rem; }

  .hero__chip--tl { left: 0.5rem; top: -1rem; }
  .hero__chip--br { right: 0.5rem; bottom: -1rem; }
  .hero__visual::before { display: none; }

  .hero__ctas .btn { width: 100%; }
  .final-cta__actions .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
