/* Synapses ESMS — site vitrine.
   Le violet de la marque comme accent, des neutres chauds, et la typographie pour
   porter la hiérarchie. Les autres couleurs du logo (turquoise, rose, violet
   profond) restent discrètes : pastilles d'icônes, dégradé du hero. Icônes en SVG
   inline (trait, currentColor), animations courtes et désactivées si l'utilisateur
   réduit les animations. Pas de framework : la CSP n'autorise aucun CDN de script. */

/* Polices hébergées avec le site (OFL, Google Fonts) : aucune requête vers un
   tiers — ni blocage du rendu, ni adresse IP transmise à Google. Les deux
   familles sont variables : un seul fichier couvre les graisses 400 à 500. */
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dmsans-latin.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dmsans-latin-ext.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin-ext.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ailerons';
  src: url('/Ailerons-Typeface.otf') format('opentype');
  font-display: swap;
}

:root {
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #17151d;
  --text: #3b3844;
  --muted: #6b6775;
  --line: #e7e3db;
  --line-strong: #d6d1c7;
  --accent: #673de6;
  --accent-hover: #5a2fb8; /* = --bleu-active de l'application */
  --accent-soft: #f1edfd;
  /* Couleurs secondaires du logo, reprises de l'ancien site. */
  --teal: #42c4a1;
  --teal-ink: #1f8a6d;
  --rose: #f44e92;
  --rose-ink: #c42a6b;
  --violet: #9b2cb6;
  --orange: #fcbe82;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 12px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.4rem; line-height: 1.25; }

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

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--white { background: var(--surface); }

.eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--text); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; line-height: 1.55; }

/* ── Liens et boutons ───────────────────────────────────────────────────── */

.link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transition: text-decoration-color .15s;
}
.link:hover { text-decoration-color: currentColor; }
.link--arrow::after { content: ' →'; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: #fff;
  font: 600 1rem/1 var(--sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); }
.btn--outline { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.btn--outline:hover { background: color-mix(in srgb, var(--accent) 14%, #fff); }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: #f1edfd; color: var(--accent-hover); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ── En-tête ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(1.4) blur(10px); }
}
/* - 1px : la bordure basse fait partie de --header-h, dont dépendent les écrans de l'accueil. */
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: calc(var(--header-h) - 1px); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: 32px; }
.brand span { font-family: 'Ailerons', var(--sans); font-size: 1.05rem; letter-spacing: 0.22em; }
/* Sur grand écran la marque a la place de respirer ; sur mobile elle doit rester
   à côté du bouton Menu. */
@media (min-width: 1280px) {
  .site-header .brand img { width: 42px; height: 40px; }
  .site-header .brand span { font-size: 1.3rem; }
}

.nav { display: flex; align-items: center; gap: 22px; margin-right: auto; white-space: nowrap; }
.nav a, .nav-side a:not(.btn) {
  color: var(--text); font-size: 0.9375rem; text-decoration: none; transition: color .15s;
}
.nav a:hover, .nav-side a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.nav-side { display: flex; align-items: center; gap: 10px; }

.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer;
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--ink); font-size: 0.9375rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  padding: 12px var(--gutter) 24px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.menu-panel a:not(.btn) {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 1.0625rem; text-decoration: none;
}
.menu-panel .btn { width: 100%; margin-top: 12px; }
.menu-panel .btn:first-of-type { margin-top: 20px; }

/* Quatre entrées de navigation plus trois actions : l'en-tête a besoin de plus
   de largeur que le contenu, et d'un pas plus serré. */
.site-header .wrap { max-width: calc(1360px + 2 * var(--gutter)); gap: 18px; }
.nav { gap: 18px; }
.nav a { font-size: 0.9rem; }
.nav-side { gap: 8px; }
.nav-side .btn { padding: 0 14px; font-size: 0.9rem; }

/* En dessous, les sept entrées ne tiennent plus : menu déroulant. */
@media (max-width: 1279px) {
  .nav, .nav-side { display: none; }
  .menu { display: block; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

/* Accueil : un écran par étape du parcours. min-height et non height : si le
   contenu dépasse (petit écran, texte agrandi), l'écran s'allonge au lieu de
   couper. svh = hauteur visible sur mobile, barre d'adresse comprise. */
.screen {
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: clamp(40px, 6vh, 72px) 0;
}
.screen + .screen { border-top: 1px solid var(--line); }
.screen-next { margin-top: clamp(24px, 4vh, 40px); text-align: center; }

/* Accueil : l'en-tête flotte au-dessus du contenu et se cache sur le hero
   (site.js, initHomeHeader). Il réapparaît s'il reçoit le focus clavier. */
.home .site-header { position: fixed; left: 0; right: 0; transition: transform .35s ease, opacity .35s ease; }
.home .site-header.is-hidden { transform: translateY(-100%); opacity: 0; }
.home .site-header.is-hidden:focus-within { transform: none; opacity: 1; }
.home main { display: block; }

/* Hero : dégradé animé de l'ancien site (couleurs du logo), plein écran. */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(48px, 8vh, 96px) 0 clamp(28px, 4vh, 40px);
  justify-content: space-between; gap: 32px;
  color: #fff; text-align: center;
  /* Teintes du logo assombries : le texte blanc doit rester lisible (AA) sur
     chaque zone du dégradé, y compris l'orange et le turquoise. */
  background:
    radial-gradient(circle at 0% 0%, var(--accent), transparent 52%),
    radial-gradient(circle at 100% 0%, var(--violet), transparent 50%),
    radial-gradient(circle at 100% 100%, #e8447f, transparent 50%),
    radial-gradient(circle at 0% 100%, #2f9c80, transparent 50%),
    radial-gradient(circle at 50% 50%, #d9944f, transparent 60%)
    var(--accent);
  background-size: 200% 200%;
  animation: hero-drift 25s ease-in-out infinite;
}
/* Voile sombre léger : garantit le contraste du texte blanc sur les zones claires. */
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(23, 10, 60, .45); pointer-events: none; }
.hero > * { position: relative; }
@keyframes hero-drift {
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}
.hero-inner { display: flex; flex-direction: column; align-items: center; margin: auto; max-width: calc(900px + 2 * var(--gutter)); }
.hero-brand { display: inline-flex; align-items: center; gap: 12px; margin: 26px 0 22px; }
.hero-brand img { width: 48px; height: 45px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .2)); }
.hero-brand span { font-family: 'Ailerons', var(--sans); font-size: 1.5rem; letter-spacing: 0.24em; }
.hero h1 {
  color: #fff; font-family: var(--sans); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(30, 10, 80, .25);
}
.hero .lede { margin: 22px auto 0; max-width: 36em; color: #efeaf9; }
.hero .lede strong { color: #fff; font-weight: 500; }
.hero .actions { justify-content: center; margin-top: 34px; }
.hero-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 22px; color: #e3dcf4; font-size: 0.875rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note a { color: #fff; text-underline-offset: 3px; }
.hero-note a:hover { color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.hero .hero-types { justify-content: center; padding: 0 var(--gutter); color: #e3dcf4; font-size: 0.8125rem; }
.hero .hero-types li:not(:last-child)::after { color: rgba(255, 255, 255, .55); }

/* Entrée du hero : fondu montant échelonné, en CSS seul (visible sans JS). */
.hero-anim { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-anim:nth-child(2) { animation-delay: .08s; }
.hero-anim:nth-child(3) { animation-delay: .16s; }
.hero-anim:nth-child(4) { animation-delay: .24s; }
.hero-anim:nth-child(5) { animation-delay: .32s; }
.hero-anim:nth-child(6) { animation-delay: .4s; }
.hero-types.hero-anim { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 0.8125rem;
}
@supports (backdrop-filter: blur(1px)) { .pill { backdrop-filter: blur(6px); } }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(66, 196, 161, .6); animation: pulse-dot 2.4s ease-out infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 7px rgba(66, 196, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(66, 196, 161, 0); } }

.shot {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 21, 29, .04), 0 24px 48px -24px rgba(23, 21, 29, .18);
}
figcaption { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }

/* ── Types d'établissements ─────────────────────────────────────────────── */

.types {
  display: flex; flex-wrap: wrap; gap: 6px 0;
  color: var(--muted); font-size: 0.9375rem; letter-spacing: 0.06em;
}
.types li:not(:last-child)::after { content: '·'; margin: 0 14px; color: var(--line-strong); }

/* ── Éditorial deux colonnes (titre collant / texte) ────────────────────── */

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.split-head { position: sticky; top: 112px; }
.split-body h3 { margin: 48px 0 14px; }
.split-body h3:first-child { margin-top: 0; }
.split-body p { max-width: 36em; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-head { position: static; }
}

.figure-time { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.figure-time .row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.figure-time .before { color: var(--muted); font-family: var(--serif); font-size: 2rem; text-decoration: line-through; text-decoration-thickness: 1px; }
.figure-time .after { color: var(--accent); font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.figure-time p { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; max-width: 26em; }

/* ── Produit : étapes, captures, liste des écrits ───────────────────────── */

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head .lede { margin-top: 20px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  color: var(--accent); font: 500 0.875rem/1 var(--sans); letter-spacing: 0.06em;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 10px; }
.steps p { font-size: 0.975rem; color: var(--text); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.doclist { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 6vw, 88px); margin-top: clamp(56px, 7vw, 88px); }
.doclist h3 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.doclist li { border-bottom: 1px solid var(--line); }
.doclist a {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; color: var(--ink); text-decoration: none; transition: color .15s;
}
.doclist a:hover { color: var(--accent); }
.doclist abbr { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.06em; text-decoration: none; align-self: center; }
@media (max-width: 760px) { .doclist { grid-template-columns: 1fr; } }

/* ── Bénéfices : lignes horizontales ────────────────────────────────────── */

.rows > li {
  display: grid; grid-template-columns: 5fr 7fr; gap: 16px clamp(40px, 7vw, 112px);
  padding: 36px 0; border-top: 1px solid var(--line);
}
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.rows p { max-width: 36em; }
@media (max-width: 760px) { .rows > li { grid-template-columns: 1fr; padding: 28px 0; } }

/* ── Appel à l'action final ─────────────────────────────────────────────── */

/* Seule surface pleine couleur du site : le violet de la marque, celui des boutons. */
.cta { background: var(--accent); color: #ece6fd; padding: var(--section) 0; }
.cta h2 { color: #fff; max-width: 15em; }
.cta .lede { color: #ece6fd; margin-top: 24px; }
.cta .actions { margin-top: 40px; }
.cta .link { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.cta :focus-visible { outline-color: #fff; }
.cta-family { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 0.9375rem; color: #ddd4fb; }

/* ── Pages intérieures ──────────────────────────────────────────────────── */

.page-head { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 6vw, 80px); }
.page-head .lede { margin-top: 28px; }

.prose h2 { margin: 0 0 24px; }
.prose h3 { margin: 40px 0 12px; }
.prose p, .prose ul { max-width: 40em; }
.prose ul { margin: 0 0 1em; }
.prose li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.prose li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--muted); }

.defs > div { display: grid; grid-template-columns: 4fr 8fr; gap: 8px clamp(32px, 5vw, 72px); padding: 24px 0; border-top: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { color: var(--ink); font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.defs dt abbr { display: block; margin-top: 4px; color: var(--muted); font: 500 0.8125rem/1.4 var(--sans); letter-spacing: 0.06em; text-decoration: none; }
.defs dd { margin: 0; }
@media (max-width: 760px) { .defs > div { grid-template-columns: 1fr; } }

/* Liste des écrits : deux colonnes et un pas vertical resserré. Elle sert à
   vérifier d'un coup d'œil qu'un type de document est couvert, pas à se lire
   ligne à ligne ; le filet du bas ferme la grille (le :last-child de .defs ne
   borderait que la dernière colonne). */
.defs--cols { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.defs--cols > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
.defs--cols > div:last-child { border-bottom: 0; }
.defs--cols dt { font-size: 1.1rem; }
.defs--cols dd { font-size: 0.9375rem; line-height: 1.55; }
@media (max-width: 760px) { .defs--cols { grid-template-columns: 1fr; } }

.defs-group + .defs-group { margin-top: 64px; }
.defs-group > h3 { margin-bottom: 20px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px clamp(40px, 6vw, 88px); }
.cols h3 { font-size: 1.25rem; margin-bottom: 12px; }
.cols li { padding: 7px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .cols { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--muted); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.compare tbody th { color: var(--ink); font-weight: 500; width: 24%; }
.compare td:last-child { color: var(--ink); }
.table-scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { border: 0; padding: 2px 0; }
  .compare td::before { content: attr(data-label) ' : '; color: var(--muted); }
}

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  color: var(--ink); font-family: var(--serif); font-size: 1.3rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-family: var(--sans); font-weight: 300; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; max-width: 40em; }

.team-photo { margin: 0 0 clamp(48px, 6vw, 80px); }
.team-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; object-position: center 40%; }

.people > li { display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 40px 0; border-top: 1px solid var(--line); }
.people > li:last-child { border-bottom: 1px solid var(--line); }
.people img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--line); }
.people h3 { font-size: 1.6rem; }
.people .role { margin: 4px 0 16px; color: var(--muted); font-size: 0.9375rem; }
.people p { max-width: 40em; }
@media (max-width: 600px) { .people > li { grid-template-columns: 1fr; gap: 16px; } .people img { width: 72px; height: 72px; } }

/* Frise : un filet continu ponctué d'un repère par étape, l'année posée dans la
   gouttière. Les filets horizontaux d'avant hachaient la section ; ici un seul
   trait porte la chronologie. Le dernier repère est plein : on y est. */
.timeline { --rail: 96px; position: relative; padding-left: calc(var(--rail) + 28px); }
.timeline::before {
  content: ''; position: absolute; left: var(--rail); top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(var(--line-strong) 0%, var(--line-strong) 78%, var(--line) 100%);
}
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; top: 5px; left: -32px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); }
.timeline time {
  position: absolute; left: calc(var(--rail) * -1 - 28px); top: 2px; width: var(--rail);
  color: var(--accent); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.04em;
}
.timeline strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
/* Sous la gouttière : l'année repasse au fil du texte, le trait reste à gauche. */
@media (max-width: 560px) {
  .timeline { --rail: 4px; padding-left: 30px; }
  .timeline li::before { left: -30px; }
  .timeline time { position: static; display: block; width: auto; margin-bottom: 2px; font-size: 0.875rem; }
}

.statement { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.2; color: var(--ink); letter-spacing: -0.015em; max-width: 22em; }

/* ── Formulaire ─────────────────────────────────────────────────────────── */

.form { display: grid; gap: 18px; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .pair { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; color: var(--ink); font-size: 0.9375rem; font-weight: 500; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback { padding: 12px 14px; border-radius: 10px; font-size: 0.9375rem; }
.feedback[hidden] { display: none; }
.feedback--ok { background: #edf7f0; color: #1e5b33; }
.feedback--error { background: #fbeeee; color: #8a2424; }

/* ── Pied de page ───────────────────────────────────────────────────────── */

/* Fond sombre, comme l'ancien site : présentation, navigation, légal, et un
   formulaire de contact direct. */
.site-footer { padding: 72px 0 32px; background: #0f0e1a; color: #9a96a6; font-size: 0.9375rem; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.6fr; gap: 48px clamp(32px, 5vw, 72px); }
.footer-grid h2 { margin-bottom: 16px; color: #fff; font: 500 0.9375rem/1.4 var(--sans); letter-spacing: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a, .footer-grid button.textlink { color: #9a96a6; text-decoration: none; transition: color .15s; text-align: left; }
.footer-grid a:hover, .footer-grid button.textlink:hover { color: #fff; }
.footer-about > p { margin-top: 18px; max-width: 24em; line-height: 1.6; }
.footer-facts { margin-top: 22px; }
.footer-facts li { display: flex; align-items: center; gap: 10px; }
.footer-facts .i { color: #6c6879; }
.footer-facts a, .footer-facts button.textlink { color: #d6d3dd; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.footer-badges li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border: 1px solid #2a2836; border-radius: 999px; color: #8d899a; font-size: 0.8125rem; }
.footer-badges .i { width: 14px; height: 14px; }
.footer-links { display: grid; gap: 32px; align-content: start; }
.footer-contact-title { font-size: 1.15rem !important; margin-bottom: 6px !important; }
.footer-contact > p { margin-bottom: 22px; color: #a5a1b4; font-size: 0.875rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid #22202c; color: #8f8b9c; font-size: 0.8125rem; }
.site-footer :focus-visible { outline-color: #fff; }
/* La page Contact a déjà son formulaire. */
.page-contact .footer-contact { display: none; }
.page-contact .footer-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid, .page-contact .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-made { display: none; }
}


button.textlink { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

.textsize { display: inline-flex; align-items: center; gap: 4px; }
.textsize button {
  width: 30px; height: 30px; padding: 0;
  border: 1px solid transparent; border-radius: 6px; background: none;
  color: var(--muted); font-family: var(--sans); cursor: pointer; line-height: 1;
}
.textsize button { color: #8f8a9a; }
.textsize button:hover { color: #fff; }
.textsize button[aria-pressed="true"] { border-color: rgba(255, 255, 255, .25); color: #fff; }

/* ── Cookies ────────────────────────────────────────────────────────────── */

.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin-left: auto;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 16px 40px -16px rgba(23, 21, 29, .25);
  font-size: 0.875rem; line-height: 1.55;
}
.consent[hidden] { display: none; }
.consent strong { color: var(--ink); font-weight: 500; }
.consent .actions { margin-top: 14px; gap: 10px 18px; }

.modal {
  width: min(680px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.modal::backdrop { background: rgba(23, 21, 29, .45); }
.modal-body { padding: 28px; font-size: 0.9375rem; }
.modal h2 { font-size: 1.6rem; margin-bottom: 16px; }
.modal h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin: 20px 0 8px; }
.modal table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; margin: 8px 0 16px; }
.modal th, .modal td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.modal th { color: var(--muted); font-weight: 500; }
.modal code { font-size: 0.8125rem; color: var(--ink); }
.modal .actions { justify-content: flex-end; margin-top: 20px; }

/* ── Documents légaux ───────────────────────────────────────────────────── */

.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal-nav a { color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.legal-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.legal-doc header { margin-bottom: 32px; }
.legal-doc h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.legal-doc .meta { margin-top: 12px; color: var(--muted); font-size: 0.875rem; }
.legal-doc .note { margin: 24px 0 8px; padding: 12px 14px; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: 0.875rem; font-style: italic; }
.legal-doc section { margin-top: 36px; }
.legal-doc h2 { font-size: 1.5rem; margin-bottom: 12px; }
.legal-doc ul { margin: 0 0 1em; }
.legal-doc li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.legal-doc li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--muted); }

@media print {
  .site-header, .site-footer, .consent, .legal-nav { display: none !important; }
  body { background: #fff; }
}
.textsize button[data-size="14"] { font-size: 13px; }
.textsize button[data-size="16"] { font-size: 15px; }
.textsize button[data-size="18"] { font-size: 17px; }
.textsize button[data-size="20"] { font-size: 19px; }

/* ── Compléments des pages intérieures ──────────────────────────────────── */

.subhead { margin: clamp(56px, 7vw, 88px) 0 20px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.subhead + .lede { margin-bottom: 32px; }
.faq-title { margin-bottom: 40px; }
.h2-small { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 16px; }
.split-body .shot { margin-top: 40px; }

.steps--stack { grid-template-columns: 1fr; gap: 24px; margin: 32px 0 36px; }
.steps--stack h3 { margin-bottom: 6px; }

.vision { margin-top: 48px; }
.doclist-simple { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }

/* ── Démo du hero (animée par demo.js) ──────────────────────────────────── */

.demo {
  overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 21, 29, .04), 0 24px 48px -24px rgba(23, 21, 29, .18);
}
.demo-bar {
  display: flex; align-items: center; gap: 16px;
  height: 46px; padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.8125rem;
}
.demo-dots { display: inline-flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.demo-type { margin-left: auto; color: var(--accent); font-weight: 500; }

.demo-body { display: grid; grid-template-columns: 5fr 7fr; min-height: 400px; }
.demo-pane { padding: 28px 32px 32px; }
.demo-notes { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fcfbf9; }
.demo-label {
  display: flex; justify-content: space-between; gap: 12px; margin: 0;
  color: var(--muted); font: 500 0.75rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
}
.demo-live, .demo-ok { color: var(--accent); letter-spacing: 0.04em; text-transform: none; font-size: 0.8125rem; transition: opacity .3s; }
/* visibility et pas seulement opacity : un texte invisible ne doit pas compter
   comme du texte illisible (contraste) ni être lu par un lecteur d'écran. */
.demo-live { opacity: 0; visibility: hidden; }
.demo-live::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 1px;
  border-radius: 50%; background: var(--accent); animation: demo-pulse 1.2s ease-in-out infinite;
}
.demo.is-typing .demo-live { opacity: 1; visibility: visible; }
.demo.is-running:not(.is-done) .demo-ok { opacity: 0; visibility: hidden; }

.demo-source { margin: 14px 0 18px; color: var(--muted); font-size: 0.8125rem; }
.demo-text { flex: 1; margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.7; min-height: 8.5em; }
.demo-caret { display: none; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -3px; background: var(--accent); animation: demo-blink 1s steps(1) infinite; }
.demo.is-typing .demo-caret { display: inline-block; }
.demo-btn {
  align-self: flex-start; display: inline-flex; align-items: center;
  min-height: 38px; margin-top: 24px; padding: 0 16px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 0.875rem; font-weight: 500;
  transition: opacity .2s, transform .15s;
}
.demo.is-generating .demo-btn { opacity: .75; transform: scale(.98); }

.demo-title {
  margin: 18px 0 6px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-hover); font-size: 1.05rem; font-weight: 600; line-height: 1.35;
}
[data-demo="sections"] { transition: opacity .35s; }
.demo.is-generating [data-demo="sections"] { opacity: .55; }
.demo-section-label { margin: 16px 0 4px; color: var(--ink); font-size: 0.9375rem; font-weight: 600; }
.demo-section p:not(.demo-section-label) { margin: 0 0 2px; color: var(--text); font-family: Georgia, var(--serif); font-size: 0.975rem; line-height: 1.6; }
.demo-skeleton { height: .7em; margin: 9px 0 !important; border-radius: 4px; background: #eeeae3; }
.demo-skeleton--0 { width: 100%; }
.demo-skeleton--1 { width: 86%; }
.demo-skeleton--2 { width: 70%; }
.demo.is-generating .demo-skeleton { animation: demo-pulse 1.1s ease-in-out infinite; }

@keyframes demo-blink { 50% { opacity: 0; } }
@keyframes demo-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .demo-live::before, .demo-caret, .demo.is-generating .demo-skeleton { animation: none; }
}

@media (max-width: 760px) {
  .demo-body { grid-template-columns: 1fr; min-height: 0; }
  .demo-notes { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-pane { padding: 20px; }
  .demo-url { display: none; }
  .demo-text { min-height: 7em; font-size: 0.9375rem; }
}

/* ── Icônes ─────────────────────────────────────────────────────────────── */

.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.btn .i { margin-right: 8px; }
.btn .i:last-child:not(:first-child) { margin: 0 0 0 8px; }
.hero-note .i { width: 14px; height: 14px; }

/* Pastille d'icône : fond très pâle, trait de la couleur du logo. */
.ico { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; }
.ico .i { width: 22px; height: 22px; }
.ico--accent { background: var(--accent-soft); color: var(--accent); }
.ico--violet { background: color-mix(in srgb, var(--violet) 10%, #fff); color: var(--violet); }
.ico--teal { background: color-mix(in srgb, var(--teal) 14%, #fff); color: var(--teal-ink); }
.ico--rose { background: color-mix(in srgb, var(--rose) 10%, #fff); color: var(--rose-ink); }

.btn--lg { min-height: 54px; padding: 0 26px; border-radius: 14px; font-size: 1.0625rem; }
.btn--light { box-shadow: 0 14px 30px -12px rgba(20, 8, 70, .45); transition: background-color .15s, transform .2s; }
.btn--light:hover { transform: translateY(-1px); }
.btn--glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }

.eyebrow--accent { color: var(--accent); }

/* ── Apparition au défilement (site.js, initReveal) ─────────────────────── */

[data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-on [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(18px); }
[data-reveal].d1 { transition-delay: .1s; }
[data-reveal].d2 { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  .hero, .hero-anim, .pill-dot { animation: none; }
  [data-reveal] { transition: none; }
  .reveal-on [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}

/* ── Accueil : écrans du parcours ───────────────────────────────────────── */

.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.screen .section-head { margin-bottom: clamp(28px, 4vh, 48px); }
.actions--center { justify-content: center; margin-top: clamp(24px, 4vh, 36px); }

/* Comment ça marche : étapes à gauche, démo à droite. */
.how { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.how-steps { display: grid; gap: 8px; counter-reset: step; }
.how-steps li { display: flex; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.how-steps li:first-child { border-top: 0; }
.how-steps h3 { margin-bottom: 6px; font-size: 1.2rem; }
.how-steps h3::before { counter-increment: step; content: counter(step) ". "; color: var(--muted); }
.how-steps p { color: var(--text); font-size: 0.975rem; }
.demo-logo { width: 18px; height: 17px; }
.how .demo-label { white-space: nowrap; }
.how .demo-body { min-height: 360px; }

/* Bénéfices, dans la colonne de droite de .split. */
.benefits { display: grid; gap: 8px; }
.benefits li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.benefits li:first-child { border-top: 0; padding-top: 0; }
.benefits h3 { margin-bottom: 8px; font-size: 1.3rem; }
.benefits p { max-width: 34em; }

/* Avis : cartes à filet de couleur ; sur mobile, défilement horizontal. */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.review {
  --tone: var(--accent); --tone-soft: var(--accent-soft);
  display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--tone); border-radius: var(--radius);
  background: var(--paper);
  transition: transform .25s ease, box-shadow .25s ease;
}
.review:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(23, 21, 29, .3); }
.review--teal { --tone: var(--teal); --tone-soft: color-mix(in srgb, var(--teal) 14%, #fff); }
.review--rose { --tone: var(--rose); --tone-soft: color-mix(in srgb, var(--rose) 10%, #fff); }
.review-tag { margin: 0 0 16px; color: var(--muted); font: 500 0.75rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.review blockquote { flex: 1; margin: 0; }
.review blockquote p { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; letter-spacing: -0.01em; }
.review blockquote p::before { content: '« '; }
.review blockquote p::after { content: ' »'; }
.review-author { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.review-author strong { display: block; color: var(--ink); font-weight: 500; font-size: 0.9375rem; }
.review-initials { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--tone-soft); color: var(--tone); font-weight: 500; font-size: 0.875rem; }
.review--teal .review-initials { color: var(--teal-ink); }
.review--rose .review-initials { color: var(--rose-ink); }
.reviews-note { margin-top: 18px; color: var(--muted); font-size: 0.8125rem; text-align: center; }

/* Équipe : onglets horizontaux, bios qui glissent latéralement. La position vient
   de data-active (classes et attributs seulement : la CSP bloque les styles inline). */
.team { max-width: 880px; margin: 0 auto; }
.team-tabs { position: relative; display: flex; justify-content: center; gap: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.team-tabs [role="tab"] {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 16px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 400 0.875rem/1.35 var(--sans); text-align: left; white-space: nowrap;
}
.team-tabs [role="tab"] img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); filter: grayscale(1); opacity: .7; box-shadow: 0 0 0 2px transparent; transition: filter .25s, opacity .25s, box-shadow .25s; }
.team-tabs [role="tab"] strong { display: block; color: var(--text); font-weight: 500; font-size: 0.9375rem; }
.team-tabs [role="tab"]:hover img { filter: none; opacity: 1; }
.team-tabs [aria-selected="true"] img { filter: none; opacity: 1; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.team-tabs [aria-selected="true"] strong { color: var(--ink); }
/* Filet sous l'onglet actif ; pendant le défilement automatique il se remplit
   sur la durée d'affichage (TEAM_DELAY dans site.js). */
.team-tabs [role="tab"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.team-tabs [aria-selected="true"]::after { transform: scaleX(1); }
.team.is-auto .team-tabs [aria-selected="true"]::after { animation: team-progress 7s linear; }
@keyframes team-progress { from { transform: scaleX(0); } }

.team-viewport { overflow: hidden; }
.team-track { display: flex; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.team-track[data-active="1"] { transform: translateX(-100%); }
.team-track[data-active="2"] { transform: translateX(-200%); }
.team-track[data-active="3"] { transform: translateX(-300%); }
.team-bio { flex: 0 0 100%; padding: clamp(24px, 4vh, 40px) 4px 0; transition: opacity .4s; }
.team-bio[inert] { opacity: 0; }
.team-bio h3 { font-size: 1.6rem; }
.team-bio .role { margin: 4px 0 16px; color: var(--accent); font-size: 0.9375rem; }
.team-bio p:not(.role) { max-width: 44em; }
@media (prefers-reduced-motion: reduce) {
  .team-track, .team-bio { transition: none; }
  .team.is-auto .team-tabs [aria-selected="true"]::after { animation: none; }
}

/* Détail : liste des écrits et FAQ côte à côte. */
.detail-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px clamp(40px, 6vw, 88px); align-items: start; }
.doclist--stack { grid-template-columns: 1fr; gap: 28px; margin-top: 0; }
.doclist--stack a { padding: 8px 0; }
.detail-subhead { margin-bottom: 8px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.faq--compact summary { padding: 16px 0; font-size: 1.1rem; }
.faq--compact summary::after { color: var(--accent); }
.faq--compact details > div { padding-bottom: 18px; font-size: 0.975rem; }
.detail-grid .screen-next { text-align: left; }

/* Appel final : fond sombre, halos de couleur et grille fine (ancien site). */
.cta-dark {
  position: relative; overflow: hidden; color: #b3afc0; text-align: center;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(103, 61, 230, .22), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(155, 44, 182, .16), transparent 55%),
    radial-gradient(ellipse at 60% 90%, rgba(244, 78, 146, .1), transparent 50%),
    #14121f;
}
.cta-dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 40px 40px;
}
.screen.cta-dark { border-top: 0; }
.cta-dark-inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: calc(720px + 2 * var(--gutter)); }
.pill--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #d9d5e4; }
.cta-dark-logo { width: 56px; height: 53px; margin: 32px 0 24px; filter: drop-shadow(0 10px 24px rgba(103, 61, 230, .5)); }
.cta-dark h2 { color: #fff; font-family: 'Ailerons', var(--sans); font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; letter-spacing: 0.12em; text-transform: uppercase; }
.cta-dark-lede { margin: 22px 0 0; max-width: 32em; font-size: 1.0625rem; }
.cta-dark .actions { margin-top: 36px; }
.cta-dark .btn:not(.btn--glass) { box-shadow: 0 16px 36px -14px rgba(103, 61, 230, .8); }
.cta-dark .cta-family { margin: 32px 0 0; padding: 0; border: 0; color: #a5a1b4; font-size: 0.9375rem; }
.cta-dark .cta-family a { color: #e6e3ec; text-underline-offset: 4px; }
.cta-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 40px; color: #918da0; font-size: 0.8125rem; }
.cta-trust li { display: inline-flex; align-items: center; gap: 7px; }
.cta-trust .i { width: 15px; height: 15px; }
.cta-dark :focus-visible { outline-color: #fff; }

/* Formulaire sur fond sombre (pied de page). */
.form--dark { gap: 14px; }
.form--dark label { color: #b3afc0; font-size: 0.875rem; }
.form--dark input, .form--dark textarea { background: #181624; border-color: #2e2b3c; color: #fff; }
.form--dark textarea { min-height: 110px; }
.form--dark input:focus, .form--dark textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(103, 61, 230, .3); }
.form--dark .btn { width: 100%; }

/* ── Tablette et mobile ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .how { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .how-steps li { flex-direction: column; gap: 12px; padding: 0; border: 0; }
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .split { gap: 32px; }
}
@media (max-width: 860px) {
  .reviews {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 360px);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none;
    margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
  }
  .review { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  h2 { font-size: clamp(1.65rem, 7vw, 2rem); }
  h3 { font-size: 1.2rem; }
  .lede { font-size: 1.0625rem; }
  .screen { padding: 48px 0; }
  .hero { padding-top: 40px; }
  .hero-brand { margin: 20px 0 16px; }
  .hero-brand span { font-size: 1.15rem; }
  .hero-brand img { width: 38px; height: 36px; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .hero .lede { font-size: 1rem; }
  .hero .actions { flex-direction: column; align-self: stretch; gap: 10px; }
  .hero .actions .btn { width: 100%; }
  .hero .hero-types { font-size: 0.75rem; }
  .hero-note > span[aria-hidden] { display: none; }
  .hero-note { flex-direction: column; }
  .hero .hero-types li:not(:last-child)::after { margin: 0 8px; }
  .how-steps { grid-template-columns: 1fr; gap: 20px; }
  .how-steps li { flex-direction: row; gap: 14px; }
  .ico { width: 40px; height: 40px; border-radius: 10px; }
  .ico .i { width: 20px; height: 20px; }
  .benefits li { gap: 14px; padding: 18px 0; }
  .benefits h3 { font-size: 1.15rem; }
  .figure-time { margin-top: 28px; }
  .review { padding: 22px; }
  .review blockquote p { font-size: 1.075rem; }
  .team-tabs { justify-content: flex-start; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .team-tabs [role="tab"] { flex-direction: column; gap: 6px; padding: 10px 8px 14px; text-align: center; font-size: 0.8125rem; }
  .team-bio h3 { font-size: 1.35rem; }
  .team-bio p:not(.role) { font-size: 0.975rem; }
  .faq--compact summary { font-size: 1.025rem; }
  .cta-dark h2 { letter-spacing: 0.08em; }
  .cta-dark .actions { flex-direction: column; align-self: stretch; }
  .cta-dark .actions .btn { width: 100%; }
}

/* ── Signature : le papillon du logo comme ponctuation ──────────────────── */

/* Discret, décoratif : jamais porteur d'information, donc aria-hidden côté HTML. */
.mark { margin: 24px 0 0; }
.mark img { width: 26px; height: 25px; opacity: .85; }
.mark--rule { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; }
.mark--rule::before, .mark--rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mark--rule img { flex-shrink: 0; }
