/* ==========================================================================
   Altiora — feuille de style unique
   Direction : éditorial clair. Fond blanc partout, un seul accent, photos réelles.
   Ordre : tokens → reset → primitives → header → hero → sections → révélations
           → responsive → accessibilité
   ========================================================================== */

/* --------------------------------------------------------- 1. Design tokens */
:root {
  /* Thème clair « greige éditorial » — gris-beige chaud, neutre, pas blanc */
  --paper:   #ECE9E2;   /* fond greige */
  --tint:    #E1DDD3;   /* bandes alternées (un cran plus profond) */

  /* Encre — ratios mesurés sur le greige */
  --ink:     #1A1A18;
  --ink-2:   #56544E;   /* ~7:1 */
  --ink-3:   #6D6B63;   /* ~4.6:1 — reste au-dessus du seuil AA */

  --line:    #D6D1C4;
  --line-2:  #BEB8A8;

  /* Accent — violet de marque, contraste franc sur l'ivoire */
  --accent:  #6D28D9;
  --accent-2:#4F46E5;   /* indigo d'appoint pour les dégradés */

  --on-ink:  #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(14, 14, 14, .05);
  --shadow-md: 0 12px 32px -18px rgba(14, 14, 14, .3);
  --shadow-lg: 0 40px 90px -45px rgba(14, 14, 14, .45);

  /* Rythme */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shell:     1280px;
  --gutter:    clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --dur:      300ms;
  --dur-slow: 700ms;

  --header-h: 76px;

  /* Typo */
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

/* --------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------- 3. Primitives */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 900px; }

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

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-200%);
  background: #0E0E0E; color: #FFFFFF;
  padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 500; text-decoration: none;
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.icon {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* Titres display ---------------------------------------------------------- */
.hero__title, .sec-title, .cta-final__title, .quote__text, .footer__baseline {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.06;
  text-wrap: balance;
}
.hero__title em, .sec-title em, .cta-final__title em {
  font-style: italic;
  color: var(--accent);
}

/* Boutons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
/* Remplissage inversé qui monte au survol */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fg);
  transform: translateY(101%);
  transition: transform 420ms var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--btn-bg); }
.btn:active { transform: scale(.985); transition-duration: 90ms; }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn__arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--on-ink); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); border-color: var(--ink); }

.btn--sm  { min-height: 44px; padding: .55rem 1.15rem; font-size: .875rem; }
.btn--lg  { min-height: 56px; padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; padding-inline: 1rem; }

.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }

.btn__spinner {
  display: none;
  width: 1.05em; height: 1.05em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn__arrow { display: none; }
.btn.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Lien souligné animé ---------------------------------------------------- */
.link-u {
  position: relative;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px;
  font-size: .9375rem; font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 11px;
  height: 1px; background: currentColor;
  transform: scaleX(1); transform-origin: right;
  transition: transform 420ms var(--ease-out);
}
.link-u:hover::after { transform: scaleX(0); }

/* Œil-de-bœuf de section -------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}
.eyebrow__rule { width: 2.5rem; height: 1px; flex: none; background: var(--line-2); }

.sec-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--center {
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 6rem) 0;
}
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .sec-lede { margin-inline: auto; }

.sec-title {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.75rem);
  margin-bottom: 1.25rem;
}

.sec-lede {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  color: var(--ink-2);
  max-width: 40rem;
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }

/* ------------------------------------------------------------- 4. Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  /* Fond quasi opaque, SANS backdrop-filter : le flou se recalcule à chaque
     frame de scroll et fait ramer les machines modestes. */
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-io), background-color var(--dur) var(--ease-io);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 98%, transparent);
}
/* Thème clair : bande du header en blanc franc, par-dessus le fond greige */
[data-theme="light"] .header { background: rgba(255, 255, 255, .92); }
[data-theme="light"] .header.is-scrolled { background: #FFFFFF; }

.header__inner {
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h);
  transition: height var(--dur) var(--ease-io);
}
.header.is-scrolled .header__inner { height: 62px; }

.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px;
  text-decoration: none; color: var(--ink);
  font-family: var(--display);
  font-weight: 400; font-size: 1.5rem;
  margin-right: auto;
}
.logo__mark { width: 22px; height: 22px; flex: none; }
.logo__word { line-height: 1; }

.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__list a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 .8rem;
  color: var(--ink-2);
  font-size: .875rem; font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.nav__list a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 13px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--ink); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn .icon { width: 18px; height: 18px; }

.nav-toggle { display: none; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Bouton thème clair/sombre : lune en clair, soleil en sombre */
.theme-toggle .icon--sun { display: none; }
.theme-toggle .icon--moon { display: block; }
[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
[data-theme="dark"] .theme-toggle .icon--moon { display: none; }

.header__progress { height: 1px; background: transparent; }
.header__progress span {
  display: block; height: 100%; width: 0%;
  background: var(--ink);
  transition: width 80ms linear;
}

/* Menu mobile ------------------------------------------------------------ */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: 2rem var(--gutter) 3rem;
  background: var(--paper);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a {
  display: flex; align-items: center;
  min-height: 60px; padding-block: .5rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------- 5. Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 10vw, 7rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

/* Photo réelle sous un voile blanc : la texture reste, la page reste blanche
   et le texte garde son contraste encre-sur-blanc. */
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(236, 233, 226, .78) 0%,
    rgba(236, 233, 226, .93) 42%,
    #ECE9E2 88%);
}

.hero__eyebrow { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.hero__title {
  font-size: clamp(2.75rem, 1rem + 10vw, 8.5rem);
  line-height: .96;
  letter-spacing: -.03em;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 15ch;
}

.hero__meta {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}

.hero__lede {
  font-size: clamp(1.125rem, 1rem + .6vw, 1.4375rem);
  line-height: 1.45;
  max-width: 26rem;
}

.hero__side { display: grid; gap: 1.5rem; align-content: start; }

.hero__kicker {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  line-height: 1.1;
  color: var(--ink-2);
}
.rotator {
  display: inline-block; overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .1em; margin-bottom: -.1em;
}
.rotator__i { display: inline-block; font-style: italic; color: var(--ink); white-space: nowrap; }
.rotator__dot { color: var(--accent); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.hero__note { font-size: .875rem; color: var(--ink-2); }

/* ------------------------------------------------------------ 6. Constat */
.pains { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pain {
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.pain h3 {
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem);
  font-weight: 500;
  margin-bottom: .35rem;
}
.pain p { color: var(--ink-2); font-size: .9375rem; max-width: 46rem; }

/* ------------------------------------------- 7. Blocs services alternés */
.feature { padding-block: clamp(3rem, 6vw, 5.5rem); }
.feature--tint { background: var(--tint); border-block: 1px solid var(--line); }

.feature__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.feature__text h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 2.875rem);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.feature__text > p { color: var(--ink-2); max-width: 34rem; margin-bottom: 1.5rem; }

.feature__list { display: grid; gap: .5rem; margin-bottom: 1.5rem; }
.feature__list li {
  padding: .8rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9375rem;
  transition: transform var(--dur) var(--ease-out), border-left-color var(--dur) var(--ease-out);
}
.feature__list li:hover { transform: translateX(6px); border-left-color: var(--accent); }

.feature__meta { font-size: .8125rem; color: var(--ink-3); }

.feature__visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.feature__visual img {
  width: 100%; height: auto;
  transition: transform 700ms var(--ease-out);
}
.feature__visual:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------- 8. Méthode */
.steps {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.5rem; letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.step p { color: var(--ink-2); font-size: .9375rem; }

.steps__cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; justify-content: center; }

/* ----------------------------------------------------------- 9. Résultats */
.stats { display: grid; gap: 1.5rem; }
.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.stat__value {
  display: flex; align-items: baseline; gap: .05em;
  font-family: var(--display);
  font-size: clamp(3.5rem, 2rem + 6vw, 6rem);
  font-weight: 400; letter-spacing: -.04em; line-height: .95;
  font-variant-numeric: tabular-nums;
  margin-bottom: .5rem;
}
.stat__prefix { font-size: .45em; color: var(--ink-3); }
.stat__suffix { font-size: .34em; margin-left: .1em; color: var(--ink-2); }
.stat__label { font-size: 1.0625rem; font-weight: 500; margin-bottom: .25rem; }
.stat__hint { font-size: .875rem; color: var(--ink-2); }

/* ------------------------------------------------------------- 10. Équipe */
.team {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.team__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--tint);
  margin-bottom: 1.1rem;
}
.team__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms var(--ease-out);
}
.team__member:hover .team__photo img { transform: scale(1.04); }
.team__member h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.75rem; letter-spacing: -.02em;
  margin-bottom: .15rem;
}
.team__member p { color: var(--ink-2); font-size: .9375rem; }

.team__note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.875rem);
  line-height: 1.25;
  max-width: 42rem;
}

/* --------------------------------------------------------- 11. Témoignage */
.quote__text {
  font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2.75rem);
  line-height: 1.15;
  color: var(--ink-2);
  margin-bottom: 2rem;
}
.quote__text::before { content: "“"; margin-left: -.4em; }
.quote__text::after  { content: "”"; }
.quote figcaption { display: grid; gap: .25rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); }
.quote__logo { font-family: var(--display); font-size: 1.375rem; }
.quote__who { font-size: .8125rem; color: var(--ink-2); }

/* Signature avec photo */
.quote__cite {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1.5rem; margin-top: .5rem;
  border-top: 1px solid var(--line-2);
}
.quote__avatar {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line-2);
}
.quote__by { display: grid; gap: .1rem; }
.quote__name { font-family: var(--display); font-size: 1.375rem; line-height: 1.1; }

/* Avis en bulles */
.reviews {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.bubble {
  position: relative;
  display: grid; gap: 1.5rem; align-content: space-between;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 20px 20px 20px 6px;   /* coin bas-gauche = queue de bulle */
  box-shadow: var(--shadow-md);
}
.bubble__text {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  line-height: 1.55; color: var(--ink);
}
.bubble__cite { display: flex; align-items: center; gap: .85rem; }
.bubble__ava {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  font-family: var(--display); font-size: 1.7rem; line-height: 1;
}
.bubble__ava img { width: 100%; height: 100%; object-fit: cover; }
.bubble__by { display: grid; gap: .1rem; }
.bubble__name { font-weight: 600; font-size: .95rem; }
.bubble__role { font-size: .8125rem; color: var(--ink-2); }
.bubble--feature .bubble__text {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); line-height: 1.28;
}
@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .bubble--feature { grid-column: 1 / -1; }
}

/* Équipe sans photo : cartes texte */
.team--text { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.team--text .team__member {
  padding: 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.team__role {
  display: block; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem;
}
.team--text .team__member h3 {
  font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: -.02em;
}

/* ------------------------------------------------------------- 12. Ticker */
.ticker {
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.ticker__viewport { overflow: hidden; }
.ticker__track {
  display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  width: max-content;
  font-family: var(--display);
  font-size: clamp(1.125rem, 1rem + 1vw, 1.75rem);
  color: var(--ink-2);
  white-space: nowrap;
  will-change: transform;
}
.ticker__track li[aria-hidden="true"] { color: var(--accent); font-size: .6em; }

/* ---------------------------------------------------------------- 13. FAQ */
.faq__layout { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; min-height: 64px;
  padding: 1.25rem 0;
  background: none; border: 0;
  text-align: left;
  font-size: clamp(1rem, .95rem + .35vw, 1.125rem);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--dur) var(--ease-out);
}
.faq__q:hover { color: var(--accent); }

/* Signe + / − dessiné en CSS */
.faq__sign { position: relative; width: 14px; height: 14px; flex: none; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 1px; background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: rotate(0deg); }

.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--ease-io);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p {
  padding-bottom: 1.5rem;
  max-width: 42rem;
  color: var(--ink-2);
  opacity: 0;
  transition: opacity 260ms var(--ease-io) 80ms;
}
.faq__item.is-open .faq__a-inner p { opacity: 1; }

/* -------------------------------------------- 14. CTA final & formulaire */
.cta-final__inner { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
.cta-final__title {
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4rem);
  margin-bottom: 1.25rem;
}
.cta-final__lede {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  color: var(--ink-2);
  max-width: 32rem;
  margin-bottom: 2rem;
}
.cta-final__list { display: grid; margin-bottom: 1.5rem; }
.cta-final__list li {
  padding-block: .8rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.cta-final__list li:last-child { border-bottom: 1px solid var(--line); }
.cta-final__alt {
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .85rem;
  font-size: .9375rem; color: var(--ink-2);
}

/* Formulaire ------------------------------------------------------------- */
.formwrap { position: relative; }

.form {
  display: grid; gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.form.is-hidden { display: none; }

.form__intro {
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.field { display: grid; gap: .4rem; }
.field-row { display: grid; gap: 1.25rem; }

.field label { font-size: .8125rem; font-weight: 500; }
.req { color: var(--accent); }
.opt { color: var(--ink-2); font-weight: 400; }

.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem 0;
  border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  border-bottom-width: 2px;
  padding-bottom: calc(.75rem - 1px);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-bottom-color: var(--accent);
}

.field__hint { font-size: .75rem; color: var(--ink-2); }
.field__error { font-size: .75rem; font-weight: 500; color: var(--accent); }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__legal { font-size: .6875rem; color: var(--ink-2); line-height: 1.5; }
.form__status:empty { display: none; }
.form__status {
  font-size: .8125rem; font-weight: 500;
  color: var(--accent);
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
}

.form-success {
  display: grid; gap: .85rem; justify-items: start;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.form-success[hidden] { display: none; }
.form-success__badge {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink); color: var(--on-ink);
}
.form-success__badge .icon { width: 22px; height: 22px; stroke-width: 2; }
.form-success h3 { font-family: var(--display); font-weight: 400; font-size: 1.875rem; }
.form-success p { color: var(--ink-2); max-width: 28rem; }

/* --------------------------------------------------------------- 15. Footer */
.footer {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: 1.5rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer__baseline { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); max-width: 16ch; }
.footer__h {
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .75rem;
}
.footer__nav ul, .footer__contact ul { display: grid; margin-bottom: 1.25rem; }
/* :not(.btn) — sinon cette règle (0,1,1) l'emporte sur .btn (0,1,0)
   et le bouton « Audit gratuit » du footer perd sa couleur de texte. */
.footer__nav a:not(.btn), .footer__contact a:not(.btn) {
  display: inline-flex; align-items: center;
  min-height: 44px; min-width: 44px;
  color: var(--ink-2);
  font-size: .9375rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.footer__nav a:not(.btn):hover,
.footer__contact a:not(.btn):hover { color: var(--ink); }

/* Wordmark surdimensionné, coupé par l'overflow du footer */
.footer__word {
  display: block;
  font-family: var(--display);
  font-size: clamp(4rem, 20vw, 17rem);
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--ink);
  text-decoration: none;
  padding-block: clamp(1rem, 3vw, 2rem);
  opacity: .1;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.footer__word:hover { opacity: .22; }

.footer__legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .75rem; color: var(--ink-2);
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal a {
  display: inline-flex; align-items: center;
  min-height: 44px; min-width: 44px;
  text-decoration: none;
}
.footer__legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------- 16. Révélations */
/* Les blocs entrent depuis la gauche, la droite ou le bas, et rejouent
   l'animation quand on remonte — comme sur le site Croisia. */
.js-anim [data-reveal] {
  opacity: 0;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: transform, opacity;
}
.js-anim [data-reveal="up"]    { transform: translate3d(0, 60px, 0); }
.js-anim [data-reveal="left"]  { transform: translate3d(-70px, 0, 0); }
.js-anim [data-reveal="right"] { transform: translate3d(70px, 0, 0); }
.js-anim [data-reveal].is-in   { opacity: 1; transform: none; }

/* Masques de lignes posés par le JS sur [data-split] */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln__i { display: block; will-change: transform; }
.js-anim .ln__i { transform: translate3d(0, 110%, 0); }
/* Sans GSAP, les lignes se révèlent par transition CSS */
.js-anim.no-gsap .ln__i { transition: transform var(--dur-slow) var(--ease-out); }
.js-anim.no-gsap .is-in .ln__i, .js-anim.no-gsap .ln__i.is-in { transform: none; }

/* --------------------------------------------------------- 17. Breakpoints */
@media (min-width: 768px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1.6fr 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  /* Bloc inversé : le visuel passe à gauche sans changer l'ordre du DOM,
     donc sans casser l'ordre de lecture ni la tabulation. */
  .feature__inner--reverse .feature__text  { order: 2; }
  .feature__inner--reverse .feature__visual { order: 1; }
  .faq__layout { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
  .faq__aside { position: sticky; top: calc(var(--header-h) + 3rem); }
  .cta-final__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .header__cta { display: none; }
}

@media (min-width: 900px) {
  .mobile-nav { display: none !important; }
}

/* ------------------------------------------------------- 18. Accessibilité */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  /* Rien ne doit rester masqué si les animations sont coupées. */
  .js-anim [data-reveal], .ln__i { opacity: 1 !important; transform: none !important; }
  .ln { overflow: visible; }
  .ticker__track { transform: none !important; }
  .btn:hover::before { transform: translateY(101%); }
  .btn:hover { color: var(--btn-fg); }
}

@media (prefers-contrast: more) {
  :root { --line: #B0B0AD; --line-2: #85857F; --ink-2: #3D3D3D; --ink-3: #555555; }
}

/* ------------------------------------------- 19. Motion « signature Apple » */
/* Couche additive pilotée par assets/js/motion.js (scrub GSAP + Lenis).
   Tout part d'états visibles : sans JS / en reduced-motion, rien ne casse. */

/* Le visuel des services se « résout » (net + posé) en entrant dans l'écran.
   L'état de départ (flou/échelle) est posé en JS uniquement quand ça anime. */
.feature__visual img { will-change: transform; backface-visibility: hidden; }

/* Méthode — timeline qui se remplit et étapes qui s'allument en séquence */
.steps { position: relative; padding-top: 2.75rem; }
.steps__rail {
  position: absolute; top: .5rem; left: 2px; right: 2px; height: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.steps__rail i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #6366F1));
  transform: scaleX(1); transform-origin: left;
  will-change: transform;
}
.step { position: relative; transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.step__n {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: 1.0625rem; letter-spacing: .08em;
  color: var(--ink-3);
  margin-bottom: .5rem;
  transition: color var(--dur-slow) var(--ease-out);
}
.step.is-active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 20px 44px -30px color-mix(in srgb, var(--accent) 65%, transparent);
}
.step.is-active .step__n { color: var(--accent); }

/* Compteurs & valeurs : légère montée à l'entrée (opacité gérée par le reveal) */
.stat__value { will-change: transform; }

/* Photos d'équipe : parallaxe interne (l'image glisse plus lentement) */
.team__photo img { will-change: transform; }

/* Le hero se « recule » en profondeur pendant qu'on le dépasse */
.hero__inner { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  /* La timeline reste pleine, les étapes lisibles, aucun mouvement. */
  .steps__rail i { transform: scaleX(1) !important; }
  .feature__visual img { filter: none !important; transform: none !important; }
  .hero__inner, .stat__value, .team__photo img { transform: none !important; opacity: 1 !important; }
}

@media print {
  .header, .mobile-nav, .ticker, .btn, .footer__word, .hero__bg { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ============================================================ 20. Thème sombre
   Direction premium sombre (inspiration Ciao Energy, mais sobre et éditorial).
   Le site est en sombre par défaut ; tout part des tokens, comme en clair. */
[data-theme="dark"] {
  --paper:   #0A0A0D;
  --tint:    #111116;

  --ink:     #F5F5F7;
  --ink-2:   #B6B6C0;   /* ~7:1 sur #0A0A0D */
  --ink-3:   #8B8B95;   /* ~4.6:1 — reste AA */

  --line:    rgba(255, 255, 255, .09);
  --line-2:  rgba(255, 255, 255, .20);

  --accent:  #A78BFA;   /* violet lumineux, tranche sur le noir */
  --accent-2:#7Cc4FA;   /* bleu d'appoint pour les dégradés */

  --on-ink:  #0A0A0D;   /* texte sur les boutons clairs */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 20px 44px -22px rgba(0, 0, 0, .75);
  --shadow-lg: 0 60px 120px -55px rgba(0, 0, 0, .9);

  color-scheme: dark;
}

/* Voile sombre sur la photo du hero */
[data-theme="dark"] .hero__bg::after {
  background: linear-gradient(180deg,
    rgba(10, 10, 13, .55) 0%,
    rgba(10, 10, 13, .82) 45%,
    #0A0A0D 88%);
}
/* Un halo violet diffus derrière le hero, très léger */
[data-theme="dark"] .hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 70%;
  z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 20%,
    color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(30px);
}

/* Boutons pleins : pastille claire qui vire au violet au survol */
[data-theme="dark"] .btn--ink::before { background: var(--accent); }
[data-theme="dark"] .btn--ink:hover { color: #FFFFFF; }

/* Barre de progression du scroll en dégradé (accent → bleu) */
#scroll-progress {
  background: linear-gradient(90deg, var(--accent, #A78BFA), var(--accent-2, #7CC4FA)) !important;
}
.header__progress { height: 2px; }

/* Cartes / surfaces : un filet plus net que l'ombre sur fond noir */
[data-theme="dark"] .step,
[data-theme="dark"] .stat,
[data-theme="dark"] .feature__list li,
[data-theme="dark"] .form,
[data-theme="dark"] .form-success { border-color: var(--line-2); }

/* Les visuels services (panneaux clairs) : léger cadre lumineux sur le noir */
[data-theme="dark"] .feature__visual {
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9),
              inset 0 0 0 1px rgba(255, 255, 255, .06);
}

/* ================================================================ 21. Loader
   Rideau d'intro : wordmark + compteur %, puis il se lève sur le hero. */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--paper);
  transition: transform .9s var(--ease-out);
  will-change: transform;
}
.loader.is-done { transform: translateY(-100%); }
.loader[hidden] { display: none; }
.loader__inner { display: grid; justify-items: center; gap: 1.25rem; }
.loader__word {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5rem);
  letter-spacing: -.03em; line-height: 1;
  color: var(--ink);
}
.loader__pct {
  font-family: var(--sans); font-variant-numeric: tabular-nums;
  font-size: .8125rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-3);
}
.loader__bar {
  width: min(220px, 40vw); height: 2px; margin-top: .25rem;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.loader__bar i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--accent, #A78BFA), var(--accent-2, #7CC4FA));
}
/* Tant que le loader tourne, on fige le scroll. */
body.is-loading { overflow: hidden; }

/* ==================================================== 22. Scène « flux » épinglée
   Équivalent de la canette Ciao : le flux d'automatisation se construit au scroll.
   Section haute + intérieur collant ; l'animation est scrubbée en JS. */
.flux { position: relative; background: var(--paper); min-height: 320vh; }
.flux__sticky {
  position: sticky; top: 0;
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2rem);
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  overflow: hidden;
}
.flux__head { text-align: center; }
.flux__head .sec-title { margin-bottom: 0; }
.eyebrow--center { justify-content: center; }
.flux__stage {
  position: relative;
  display: block;
  width: 100%; max-width: 1100px;
  margin-inline: auto; padding-inline: var(--gutter);
}
.flux__canvas {
  display: block; width: 100%;
  height: min(70vh, 660px);
  touch-action: pan-y;           /* le scroll vertical reste au doigt sur mobile */
}
.flux__fallback { text-align: center; color: var(--ink-2); max-width: 40rem; margin-inline: auto; }

/* Nœuds & liens : états de départ posés en CSS, l'anim les révèle */
.flux-node { transform-box: fill-box; transform-origin: center; }
.flux-node__box { fill: var(--paper); stroke: var(--line-2); stroke-width: 1.5; }
.flux-hub__box  { fill: color-mix(in srgb, var(--accent) 90%, #000); stroke: none; }
.flux-label { fill: var(--ink-2); font-family: var(--sans); font-size: 15px; font-weight: 500; }
.flux-hub__label { fill: #FFFFFF; font-family: var(--display); font-size: 22px; }
.flux-link {
  fill: none; stroke: var(--line-2); stroke-width: 2;
  stroke-linecap: round;
}
.flux-link--flow { stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }

.flux__captions {
  position: relative; text-align: center; min-height: 4.5em;
  padding-inline: var(--gutter);
}
.flux__cap {
  position: absolute; inset: 0;
  display: grid; align-content: center; gap: .35rem;
  opacity: 0;
}
.flux__cap b {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  letter-spacing: -.02em; color: var(--ink);
}
.flux__cap span { color: var(--ink-2); font-size: clamp(.95rem, .9rem + .3vw, 1.0625rem); }
.flux__cap--first { opacity: 1; }
.flux__gain {
  font-family: var(--display); font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* Sur mobile, le schéma est petit : on raccourcit la course de scroll. */
@media (max-width: 720px) {
  .flux { min-height: 220vh; }
  .flux__sticky { padding-top: calc(var(--header-h) + 1rem); }
}

/* Sans JS / reduced-motion : la scène est montrée assemblée (état final lisible) */
@media (prefers-reduced-motion: reduce) {
  .flux { min-height: 0 !important; }
  .flux__sticky { position: static; min-height: 0; }
  .flux-node, .flux-link, .flux__cap { opacity: 1 !important; transform: none !important; }
  .flux-link { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .flux__cap:not(.flux__cap--last) { display: none; }
  .flux__cap--last { position: static; }
}
