/* ==========================================================================
   AfterCom Performance — Feuille de style principale
   Pour changer les couleurs de la marque : modifiez uniquement les variables
   ci-dessous (section :root). Tout le site s'adapte automatiquement.
   ========================================================================== */

:root {
  /* Couleurs de marque (issues du logo) */
  --blue: #0a4bb5;
  --blue-deep: #0b1e6b;
  --violet: #6b5bd2;
  --pink: #c86de6;
  --gradient: linear-gradient(100deg, #0a4bb5 0%, #4f5bd5 45%, #9a63de 75%, #c86de6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(10, 75, 181, .08), rgba(200, 109, 230, .10));

  /* Neutres */
  --ink: #0b1030;          /* fonds sombres */
  --ink-2: #121a45;
  --text: #1a1f3d;
  --muted: #5b6285;
  --line: #e4e6f2;
  --bg: #ffffff;
  --bg-alt: #f5f6fc;
  --surface: #ffffff;     /* cartes, formulaires */
  --heading: #0b1030;     /* couleur des titres */
  --header-bg: rgba(255, 255, 255, .88);

  /* Mise en forme */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(11, 30, 107, .25);
  --shadow-lg: 0 40px 80px -30px rgba(11, 30, 107, .40);
  --container: 1200px;

  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Thème sombre (bouton lune/soleil dans l'en-tête) */
:root[data-theme="dark"] {
  --ink: #060920;
  --ink-2: #10163a;
  --text: #dfe2f5;
  --muted: #9aa1cf;
  --line: rgba(255, 255, 255, .10);
  --bg: #0a0e27;
  --bg-alt: #0e1332;
  --surface: #141a3d;
  --heading: #ffffff;
  --header-bg: rgba(10, 14, 39, .85);
  --gradient-soft: linear-gradient(135deg, rgba(79, 91, 213, .22), rgba(200, 109, 230, .22));
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
:root[data-theme="dark"] .text-gradient { background-image: linear-gradient(100deg, #7fa8ff 0%, #a99bff 50%, #e3a2f7 100%); }
:root[data-theme="dark"] .card--featured { background: linear-gradient(160deg, #1b2156, #121842); }
:root[data-theme="dark"] .section--dark { border-block: 1px solid var(--line); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.12; margin: 0 0 .6em; color: var(--heading); letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #c9cdea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section--dark .lead { color: #aab0d8; }
.skip-link { position: absolute; left: -999px; top: 10px; background: #fff; padding: 10px 16px; z-index: 999; border-radius: 8px; }
.skip-link:focus { left: 10px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gradient); border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow { color: #d6a8f0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-title); font-weight: 700; font-size: .98rem;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-position .5s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--gradient); background-size: 160% 100%; color: #fff;
  box-shadow: 0 12px 30px -10px rgba(107, 91, 210, .7);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 40px -12px rgba(200, 109, 230, .8); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--heading); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--violet); color: var(--violet); }
.btn--white { background: #fff; color: var(--blue-deep); }
.btn--white:hover { color: var(--violet); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 14px 0;
}
.header.is-scrolled, .header--solid {
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 8px 0;
}
.header__inner { display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 6px 12px; }
.header.is-scrolled .logo, .header--solid .logo { padding: 4px 6px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a:not(.btn) {
  font-weight: 600; font-size: .96rem; color: #fff; padding: 10px 14px; border-radius: 10px;
  transition: background .2s, color .2s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); }
.header.is-scrolled .nav a:not(.btn), .header--solid .nav a:not(.btn) { color: var(--text); }
.header.is-scrolled .nav a:not(.btn):hover, .header--solid .nav a:not(.btn):hover,
.header.is-scrolled .nav a[aria-current="page"], .header--solid .nav a[aria-current="page"] { background: var(--bg-alt); color: var(--violet); }
.nav .btn { margin-left: 10px; padding: 12px 22px; }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: rgba(255,255,255,.14); cursor: pointer; position: relative; }
.header.is-scrolled .burger, .header--solid .burger { background: var(--bg-alt); }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transform: translateX(-50%); transition: .3s;
}
.header.is-scrolled .burger span, .header.is-scrolled .burger span::before, .header.is-scrolled .burger span::after,
.header--solid .burger span, .header--solid .burger span::before, .header--solid .burger span::after { background: var(--heading); }
.burger span { top: 50%; }
.burger span::before { content: ""; top: -6px; }
.burger span::after { content: ""; top: 6px; }
.nav-open .burger span { background: transparent !important; }
.nav-open .burger span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* Bouton thème clair / sombre */
.theme-toggle {
  width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff;
  transition: background .25s, transform .25s;
}
.theme-toggle:hover { transform: rotate(-12deg); background: rgba(255,255,255,.24); }
.theme-toggle svg { width: 20px; height: 20px; }
.header.is-scrolled .theme-toggle, .header--solid .theme-toggle { background: var(--bg-alt); color: var(--heading); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #c9cdea;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(200,109,230,.35), transparent 60%),
              radial-gradient(900px 600px at -10% 110%, rgba(10,75,181,.55), transparent 60%),
              var(--ink);
  padding: 170px 0 110px;
}
.hero--page { padding: 160px 0 90px; }
.hero h1 { color: #fff; }
.hero .text-gradient, .section--dark .text-gradient { background-image: linear-gradient(100deg, #7fa8ff 0%, #a99bff 50%, #e3a2f7 100%); }
.hero .lead { color: #b8bee3; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero__grid--single { grid-template-columns: 1fr; max-width: 860px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: #e6e8ff;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee6a8; box-shadow: 0 0 0 4px rgba(94,230,168,.2); }
.hero__proof { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 46px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1); }
.hero__proof strong { display: block; font-family: var(--font-title); font-size: 2rem; color: #fff; line-height: 1; }
.hero__proof span { font-size: .9rem; }

/* Grille animée en fond */
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0; animation: float 14s ease-in-out infinite; }
.blob--1 { width: 380px; height: 380px; background: #4f5bd5; top: 10%; right: 8%; }
.blob--2 { width: 300px; height: 300px; background: #c86de6; bottom: -80px; right: 30%; animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px, 30px) scale(1.08); } }

/* Carte « tableau de bord » du hero */
.dash {
  position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px; padding: 28px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.dash__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; color: #fff; font-family: var(--font-title); font-weight: 700; }
.dash__head small { font-family: var(--font-body); font-weight: 500; color: #9aa1cf; font-size: .8rem; }
.dash__tag { font-size: .75rem; padding: 5px 10px; border-radius: 999px; background: rgba(94,230,168,.15); color: #5ee6a8; font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-bottom: 22px; }
.bars span { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--gradient); opacity: .9; transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2,.8,.2,1) both; }
.bars span:nth-child(odd) { opacity: .55; }
@keyframes grow { from { transform: scaleY(0); } }
.dash__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: rgba(255,255,255,.06); border-radius: 16px; padding: 14px 16px; }
.kpi b { display: block; font-family: var(--font-title); font-size: 1.1rem; color: #fff; }
.kpi small { color: #9aa1cf; font-size: .8rem; }
.dash__float {
  position: absolute; left: -36px; bottom: -28px; background: #fff; color: var(--ink);
  border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center;
  font-size: .88rem; animation: float 8s ease-in-out infinite;
}
.dash__float b { font-family: var(--font-title); display: block; }
.dash__float .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--gradient); display: grid; place-items: center; color: #fff; }
.dash__float .ico svg { width: 20px; height: 20px; }

/* Fil d'Ariane */
.breadcrumb { font-size: .88rem; margin-bottom: 22px; color: #9aa1cf; }
.breadcrumb a { color: #d6a8f0; }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--gradient); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: scroll 32s linear infinite; }
.marquee__track span { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; opacity: .7; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- En-têtes de section ---------- */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }
.section-head--split .lead { max-width: 440px; margin: 0; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--gradient); opacity: 0; transition: opacity .35s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--gradient-soft); color: var(--violet); margin-bottom: 22px;
  transition: background .35s, color .35s, transform .35s;
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--gradient); color: #fff; transform: rotate(-6deg); }
.card__num { position: absolute; top: 24px; right: 28px; font-family: var(--font-title); font-weight: 800; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-family: var(--font-title); font-size: .92rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }
.card--featured { background: var(--ink); border-color: transparent; color: #c9cdea; }
.card--featured h3 { color: #fff; }
.card--featured p { color: #aab0d8; }
.card--featured .card__icon { background: var(--gradient); color: #fff; }

.section--dark .card { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.section--dark .card p { color: #aab0d8; }
.section--dark .card__icon { background: rgba(255,255,255,.07); color: #d6a8f0; }
.section--dark .card__num { -webkit-text-stroke-color: rgba(255,255,255,.12); }

/* Liste à puces cochées */
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gradient) ;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2l-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2l-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section--dark .checks li, .card--featured .checks li { color: #dfe2ff; }

/* ---------- Bloc split (texte + visuel) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.visual {
  position: relative; border-radius: 28px; padding: 40px; min-height: 420px;
  background: radial-gradient(500px 300px at 80% 0%, rgba(200,109,230,.45), transparent 60%),
              radial-gradient(500px 300px at 0% 100%, rgba(10,75,181,.6), transparent 60%), var(--ink);
  color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}
.visual__big { font-family: var(--font-title); font-weight: 800; font-size: clamp(3.5rem, 8vw, 6rem); line-height: .9; letter-spacing: -.04em; }
.visual__mark { position: absolute; top: 34px; right: 34px; width: 110px; height: 110px; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 26px; padding: 16px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); }
.visual p { color: #c9cdea; max-width: 380px; margin: 14px 0 0; }

/* ---------- Méthode / étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; color: #fff;
  background: var(--gradient); box-shadow: 0 10px 24px -10px rgba(107,91,210,.8);
}
.step::after { content: ""; position: absolute; top: 26px; left: 64px; right: -12px; height: 2px; background: linear-gradient(90deg, rgba(107,91,210,.5), transparent); }
.step:last-child::after { display: none; }
.step p { color: var(--muted); }
.section--dark .step p { color: #aab0d8; }

/* ---------- Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 16px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.stat b { display: block; font-family: var(--font-title); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; margin-bottom: 8px; }

/* ---------- Formations (catalogue) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  font-family: var(--font-title); font-weight: 600; font-size: .9rem; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  transition: .2s;
}
.filter:hover { border-color: var(--violet); color: var(--violet); }
.filter.is-active { background: var(--gradient); border-color: transparent; color: #fff; }
.course { display: flex; flex-direction: column; }
.course.is-hidden { display: none; }
.course__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.tag--accent { background: var(--gradient-soft); color: var(--violet); }
.course .checks { flex: 1; margin-bottom: 8px; }
.course .checks li { font-size: .94rem; color: var(--muted); }
.course__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; margin-top: 12px; border-top: 1px solid var(--line); }
.course__foot span { font-size: .88rem; color: var(--muted); }

/* ---------- Témoignages ---------- */
.quote { display: flex; flex-direction: column; }
.quote__stars { color: #f5b301; letter-spacing: 3px; margin-bottom: 14px; }
.quote blockquote { margin: 0 0 24px; font-size: 1.04rem; color: var(--text); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; }
.quote figcaption b { display: block; font-family: var(--font-title); color: var(--heading); }
.quote figcaption small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 12px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; position: relative;
  font-family: var(--font-title); font-weight: 700; color: var(--heading); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-soft); color: var(--violet);
  display: grid; place-items: center; font-size: 1.3rem; transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--gradient); color: #fff; }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* ---------- Appel à l'action final ---------- */
.section--cta { padding: clamp(60px, 8vw, 100px) 0; }
.cta {
  position: relative; border-radius: 34px; padding: clamp(44px, 7vw, 80px); overflow: hidden;
  background: var(--gradient); color: #fff; text-align: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,.25), transparent 60%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; max-width: 780px; margin-left: auto; margin-right: auto; }
.cta p { color: rgba(255,255,255,.88); max-width: 620px; margin: 0 auto 30px; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.contact-info .card { padding: 26px; margin-bottom: 16px; display: flex; gap: 16px; align-items: flex-start; }
.contact-info .card__icon { margin: 0; flex-shrink: 0; width: 50px; height: 50px; }
.contact-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.form { background: var(--surface); border-radius: 28px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-alt);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: var(--surface); box-shadow: 0 0 0 4px rgba(107,91,210,.12); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-bottom: 22px; }
.consent input { margin-top: 4px; accent-color: var(--violet); }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; display: none; }
.form-msg.is-ok { display: block; background: #e8fbf2; color: #0c7a4b; }
.form-msg.is-error { display: block; background: #fdecee; color: #b3261e; }

/* ---------- Contenu texte (mentions légales) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #9aa1cf; padding: 80px 0 30px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer .logo { display: inline-flex; margin-bottom: 20px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #c9cdea; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); transition: .25s; }
.socials a:hover { background: var(--gradient); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer__credit a { color: #d6a8f0; font-weight: 600; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .86rem; }

/* Bouton retour en haut */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  border: 0; background: var(--gradient); color: #fff; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4, .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .header.is-scrolled, .header--solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .theme-toggle { margin-left: auto; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); flex-direction: column; align-items: stretch;
    background: var(--surface); padding: 100px 24px 30px; gap: 4px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
  .nav a:not(.btn) { color: var(--text) !important; padding: 14px 16px; font-size: 1.05rem; }
  .nav .btn { margin: 16px 0 0; }
  .nav-open .nav { transform: none; }
  .burger { z-index: 2; }
  .nav-open .burger { background: var(--bg-alt); }
  .nav-open .burger span::before, .nav-open .burger span::after { background: var(--heading); }
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .split--reverse > :first-child { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .dash__float { left: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .grid--2, .grid--3, .grid--4, .steps, .form__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero { padding: 130px 0 80px; }
  .hero--page { padding: 130px 0 60px; }
  .logo img { height: 38px; }
  .card { padding: 26px; }
  .btn { white-space: normal; text-align: center; }
  .btn-row .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .visual { min-height: 340px; padding: 28px; }
  .visual__mark { width: 80px; top: 22px; right: 22px; }
  .hero__proof { gap: 22px; }
}
