/* =========================================================================
   SOWLO — SYSTÈME
   Aucune couleur en dur : tout vient de tokens.css.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--c-ink-2);
  background: var(--c-paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  /* Grain de papier : trame très fine, donne de la matière au fond uni */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(22,19,15,.035) 1px, transparent 0);
  background-size: 22px 22px;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-ink);
  font-weight: var(--w-semi);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: var(--t-h4); font-family: var(--f-body); font-weight: var(--w-semi); letter-spacing: 0; }
p  { text-wrap: pretty; }
strong { color: var(--c-ink); font-weight: var(--w-semi); }

a { color: var(--c-accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-ink); }

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--c-ink-2); }
.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); letter-spacing: .06em; text-transform: uppercase; font-weight: var(--w-semi); }

/* Œil du grand livre : l'eyebrow de section, filet + petites capitales */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase;
  font-weight: var(--w-semi); color: var(--c-ink-3);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--c-line-strong);
}

/* Mot souligné à la main — accent éditorial sur les titres */
.underline-hand {
  background-image: linear-gradient(var(--c-accent), var(--c-accent));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 3px;
  padding-bottom: .05em;
}

/* ---------- Accessibilité ---------- */
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: var(--r-sm); }
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--c-ink); color: var(--c-on-dark);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
  transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Mise en page ---------- */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap-narrow { width: min(860px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-paper-2); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark-2); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-on-dark); }
.section--dark .eyebrow { color: var(--c-on-dark-2); }
.section--dark .eyebrow::before { background: var(--c-on-dark-2); }

.section-head { max-width: 62ch; margin-bottom: var(--sp-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: var(--sp-4); font-size: var(--t-lead); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Filet de séparation, comme une réglure de registre */
.rule { height: var(--bw); background: var(--c-line); border: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-weight: var(--w-semi); font-size: var(--t-body);
  padding: .8em 1.5em; border-radius: var(--r-pill);
  border: var(--bw) solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease),
              background-color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--c-accent-hi); color: var(--c-on-accent); box-shadow: var(--sh-accent); }
.btn--ghost { border-color: var(--c-line-strong); color: var(--c-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); background: var(--c-paper-2); }
.btn--light { background: var(--c-accent-dark); color: var(--c-on-accent-dark); }
.btn--light:hover { background: var(--c-accent); color: var(--c-on-accent); }
.btn--lg { padding: .95em 1.9em; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* Lien fléché : la flèche avance au survol */
.link-arrow { font-weight: var(--w-semi); text-decoration: none; display: inline-flex; gap: var(--sp-2); align-items: center; }
.link-arrow::after { content: "→"; transition: transform var(--dur-2) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--t-micro); font-weight: var(--w-semi);
  letter-spacing: .06em; text-transform: uppercase;
  padding: .4em .8em; border-radius: var(--r-pill);
  background: var(--c-accent-wash); color: var(--c-accent-ink);
}
.badge--ok { background: color-mix(in srgb, var(--c-ok) 12%, transparent); color: var(--c-ok-ink); }
.badge--ko { background: color-mix(in srgb, var(--c-ko) 12%, transparent); color: var(--c-ko-ink); }
.badge--outline { background: transparent; border: var(--bw) solid var(--c-line-strong); color: var(--c-ink-3); }

/* =========================================================================
   HEADER + MEGA-MENU
   ========================================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--c-paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--bw) solid transparent;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--c-line); box-shadow: var(--sh-sm); }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-6);
  /* Ancre des mega-menus : ils se calent sur la largeur de contenu,
     jamais sur le bouton — sinon un panneau large sort de l'écran
     entre 1025 et 1200 px. */
  position: relative;
}
.logo {
  font-family: var(--f-display); font-weight: var(--w-bold);
  font-size: 1.5rem; letter-spacing: -0.03em; color: var(--c-ink);
  text-decoration: none; line-height: 1;
}
.logo span { color: var(--c-accent); }

.nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.nav__item { position: static; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.9375rem; font-weight: var(--w-medium);
  color: var(--c-ink-2); text-decoration: none; border-radius: var(--r-md);
  background: none; border: 0; cursor: pointer;
  transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.nav__link:hover, .nav__item:focus-within > .nav__link,
.nav__link[aria-expanded="true"] { color: var(--c-ink); background: var(--c-paper-2); }
.nav__link[aria-current="page"] { color: var(--c-ink); font-weight: var(--w-semi); }
.nav__chev { width: 10px; height: 10px; transition: transform var(--dur-2) var(--ease); }
.nav__item:hover .nav__chev,
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.header__cta { display: flex; align-items: center; gap: var(--sp-3); margin-left: var(--sp-4); }

/* Le panneau déroulant */
.mega {
  position: absolute; top: calc(100% + 10px); left: 0; right: auto;
  transform: translateY(-6px);
  width: min(620px, 100%);
  background: var(--c-paper);
  border: var(--bw) solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: var(--sp-5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out), visibility var(--dur-2);
}
.mega--wide { width: min(760px, 100%); }
/* Les entrées de droite s'alignent sur le bord droit du contenu */
.nav__item:nth-of-type(n+3) .mega { left: auto; right: 0; }

.nav__item:hover > .mega,
.nav__item:focus-within > .mega,
.mega[data-open="true"] {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
/* Pont invisible : évite que le menu se ferme en traversant le vide
   entre le bouton et le panneau. Porté par le panneau lui-même, pour
   que .nav__item puisse rester en position: static. */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }

.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
.mega__grid--3 { grid-template-columns: repeat(3, 1fr); }
.mega__col-title {
  grid-column: 1 / -1;
  font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase;
  font-weight: var(--w-semi); color: var(--c-ink-3);
  padding: var(--sp-2) var(--sp-3) var(--sp-1);
}
.mega__link {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-3); border-radius: var(--r-lg);
  text-decoration: none; color: var(--c-ink);
  transition: background-color var(--dur-1) var(--ease);
}
.mega__link:hover { background: var(--c-paper-2); color: var(--c-ink); }
.mega__ico {
  flex: 0 0 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--c-accent-wash); color: var(--c-accent-ink);
  font-size: 1rem;
}
.mega__link strong { display: block; font-size: 0.9375rem; font-weight: var(--w-semi); line-height: 1.3; }
.mega__link span { display: block; font-size: var(--t-small); color: var(--c-ink-3); line-height: 1.4; margin-top: 2px; }

.mega__aside {
  background: var(--c-paper-2); border-radius: var(--r-lg);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
}
.mega__foot {
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: var(--bw) solid var(--c-line);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  font-size: var(--t-small);
}

/* Burger */
.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: var(--bw) solid var(--c-line-strong);
  border-radius: var(--r-md); background: transparent; cursor: pointer;
  place-items: center;
}
.burger__bar { display: block; width: 18px; height: 1.5px; background: var(--c-ink); transition: transform var(--dur-2) var(--ease), opacity var(--dur-1); }
.burger__bar + .burger__bar { margin-top: 4px; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .burger { display: grid; }
  .header__cta { display: none; }
  .nav {
    /* ⚠️ .header porte un backdrop-filter : il devient donc le bloc
       conteneur de ses descendants en position:fixed. Un `bottom: 0`
       se calerait sur le bas du header (72px) et le tiroir aurait une
       hauteur nulle. On impose donc une hauteur explicite. */
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    z-index: 1;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-paper);
    padding: var(--sp-5) var(--gutter) var(--sp-9);
    overflow-y: auto; margin-left: 0;
    transform: translateX(100%);
    transition: transform var(--dur-3) var(--ease-out);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav__item { border-bottom: var(--bw) solid var(--c-line); }
  .nav__link { width: 100%; justify-content: space-between; padding: var(--sp-4) 0; font-size: 1.125rem; background: none !important; }
  .nav__item::after { display: none; }
  .mega {
    position: static; transform: none; min-width: 0; opacity: 1; visibility: visible;
    pointer-events: auto; border: 0; box-shadow: none; padding: 0 0 var(--sp-4);
    background: transparent; display: none;
  }
  .nav__item:hover > .mega, .nav__item:focus-within > .mega { transform: none; }
  .mega[data-open="true"] { display: block; transform: none; }
  .mega__grid, .mega__grid--3 { grid-template-columns: 1fr; }
  .mega__aside { display: none; }
  .nav__mobile-cta { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
}
@media (min-width: 1025px) { .nav__mobile-cta { display: none; } }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) var(--section-y); overflow: hidden; }
/* Réglure de grand livre en fond, très pâle */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom, transparent, transparent 43px, var(--c-line) 43px, var(--c-line) 44px);
  mask-image: radial-gradient(ellipse 90% 70% at 70% 40%, #000 10%, transparent 75%);
  opacity: .5;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 980px) { .hero__inner { grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); } }
.hero h1 { font-size: var(--t-hero); }
.hero__lead { margin-top: var(--sp-5); font-size: var(--t-lead); max-width: 46ch; }
.hero__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__reassure { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--t-small); color: var(--c-ink-3); }
.hero__reassure li { display: flex; align-items: center; gap: var(--sp-2); }
.hero__reassure li::before { content: "✓"; color: var(--c-accent-ink); font-weight: var(--w-bold); }

/* Révélation en cascade au chargement */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal var(--dur-3) var(--ease-out) forwards; }
.reveal:nth-child(1) { animation-delay: 60ms; }
.reveal:nth-child(2) { animation-delay: 140ms; }
.reveal:nth-child(3) { animation-delay: 220ms; }
.reveal:nth-child(4) { animation-delay: 300ms; }
.reveal:nth-child(5) { animation-delay: 380ms; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* La facture-maquette du hero */
.doc {
  background: #fff; border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: var(--sp-5); transform: rotate(-1.2deg);
  transition: transform var(--dur-3) var(--ease-out);
}
.doc:hover { transform: rotate(0deg) translateY(-4px); }
.doc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: var(--bw) solid var(--c-line); }
.doc__title { font-family: var(--f-display); font-size: 1.35rem; color: var(--c-ink); }
.doc__meta { font-family: var(--f-mono); font-size: var(--t-micro); color: var(--c-ink-3); }
.doc__row { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: var(--bw) solid var(--c-paper-3); font-size: var(--t-small); }
.doc__row span:last-child { font-family: var(--f-mono); color: var(--c-ink); }
.doc__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--sp-4); }
.doc__total b { font-family: var(--f-display); font-size: 1.9rem; color: var(--c-ink); }
.doc__stamp {
  position: absolute; right: -8px; bottom: 28px;
  font-family: var(--f-display); font-weight: var(--w-bold);
  font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-ok-ink); border: 2px solid var(--c-ok);
  padding: .35em .8em; border-radius: var(--r-sm);
  transform: rotate(-8deg); background: var(--c-paper);
  opacity: .92;
}
.doc-wrap { position: relative; }

/* ---------- Bandeau de preuve ---------- */
.proof { border-block: var(--bw) solid var(--c-line); padding-block: var(--sp-5); }
.proof__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.proof__stat { display: flex; flex-direction: column; }
.proof__stat b { font-family: var(--f-display); font-size: 1.75rem; color: var(--c-ink); line-height: 1; }
.proof__stat span { font-size: var(--t-small); color: var(--c-ink-3); margin-top: 4px; }

/* ---------- Cartes ---------- */
.card {
  background: var(--c-paper); border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-line-strong); }
.card__ico {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--c-accent-wash);
  color: var(--c-accent-ink); font-size: 1.15rem; margin-bottom: var(--sp-4);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { font-size: var(--t-small); }
.card--link { text-decoration: none; display: block; color: inherit; }

/* Étapes numérotées */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--sp-5); border-top: 2px solid var(--c-line-strong); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: var(--t-small); color: var(--c-coral);
  position: absolute; top: -0.85em; background: var(--c-paper); padding-right: var(--sp-3);
}
.section--tint .step::before { background: var(--c-paper-2); }
.step h3 { margin-bottom: var(--sp-2); font-size: var(--t-h4); font-family: var(--f-body); font-weight: var(--w-semi); }
.step p { font-size: var(--t-small); }

/* ---------- Témoignages ---------- */
.quote {
  background: var(--c-paper); border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.quote blockquote { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.45; color: var(--c-ink); }
.quote figcaption { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.quote__avatar { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--c-paper-3); display: grid; place-items: center; font-weight: var(--w-semi); color: var(--c-ink-2); font-size: var(--t-small); }
.quote__who { font-size: var(--t-small); }
.quote__who b { display: block; color: var(--c-ink); }
.quote__who span { color: var(--c-ink-3); }

/* =========================================================================
   TARIFS
   ========================================================================= */
.pricing-toggle {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--c-paper-3); border-radius: var(--r-pill); margin-inline: auto;
}
.pricing-toggle button {
  border: 0; background: transparent; cursor: pointer;
  padding: .55em 1.2em; border-radius: var(--r-pill);
  font-size: var(--t-small); font-weight: var(--w-semi); color: var(--c-ink-2);
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.pricing-toggle button[aria-pressed="true"] { background: var(--c-paper); color: var(--c-ink); box-shadow: var(--sh-sm); }

.plans { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--c-paper); border: var(--bw) solid var(--c-line);
  border-radius: var(--r-xl); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4); height: 100%;
}
.plan--featured {
  border-color: var(--c-accent); border-width: 2px;
  box-shadow: var(--sh-lg); position: relative;
}
.plan--featured::before {
  content: attr(data-flag);
  position: absolute; top: -12px; left: var(--sp-6);
  background: var(--c-accent); color: var(--c-on-accent);
  font-size: var(--t-micro); font-weight: var(--w-semi);
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35em .9em; border-radius: var(--r-pill);
}
.plan__name { font-family: var(--f-display); font-size: 1.4rem; color: var(--c-ink); }
.plan__pitch { font-size: var(--t-small); color: var(--c-ink-3); min-height: 2.8em; }
.plan__price { display: flex; align-items: baseline; gap: var(--sp-2); }
.plan__price b { font-family: var(--f-display); font-size: 3rem; line-height: 1; color: var(--c-ink); letter-spacing: -0.03em; }
.plan__price span { font-size: var(--t-small); color: var(--c-ink-3); }
.plan__note { font-size: var(--t-micro); color: var(--c-ink-3); }
.plan__features { display: grid; gap: var(--sp-3); font-size: var(--t-small); margin-top: var(--sp-2); }
.plan__features li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.plan__features li::before { content: "✓"; color: var(--c-accent-ink); font-weight: var(--w-bold); flex: 0 0 auto; }
.plan__features li.is-off { color: var(--c-ink-3); }
.plan__features li.is-off::before { content: "—"; color: var(--c-line-strong); }
.plan .btn { margin-top: auto; }

/* Tableau comparatif */
.compare { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.compare th, .compare td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: var(--bw) solid var(--c-line); }
.compare thead th { font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-3); font-weight: var(--w-semi); }
.compare tbody th { font-weight: var(--w-medium); color: var(--c-ink-2); }
.compare td { text-align: center; }
.compare td:first-child { text-align: left; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; }
.faq details { border-bottom: var(--bw) solid var(--c-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--sp-5) var(--sp-6) var(--sp-5) 0;
  font-family: var(--f-display); font-size: var(--t-h4); color: var(--c-ink);
  position: relative; transition: color var(--dur-1) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--f-body); font-size: 1.5rem; color: var(--c-ink-3);
  transition: transform var(--dur-2) var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--c-accent-ink); }
.faq__body { padding-bottom: var(--sp-5); max-width: var(--wrap-text); }
.faq__body p + p { margin-top: var(--sp-3); }

/* ---------- CTA final ---------- */
.cta-final { background: var(--c-dark); color: var(--c-on-dark-2); border-radius: var(--r-xl); padding: clamp(2.5rem, 1.5rem + 4vw, 5rem); text-align: center; position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 43px, rgba(244,239,228,.06) 43px, rgba(244,239,228,.06) 44px);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { color: var(--c-on-dark); }
.cta-final p { margin: var(--sp-4) auto 0; max-width: 52ch; font-size: var(--t-lead); }
.cta-final .btn-row { margin-top: var(--sp-6); display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--c-paper-2); border-top: var(--bw) solid var(--c-line); padding-block: var(--sp-8) var(--sp-6); }
.footer__grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__brand p { font-size: var(--t-small); color: var(--c-ink-3); margin-top: var(--sp-3); max-width: 34ch; }
.footer h4 { font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); margin-bottom: var(--sp-4); }
.footer ul { display: grid; gap: var(--sp-3); }
.footer a { color: var(--c-ink-2); text-decoration: none; font-size: var(--t-small); }
.footer a:hover { color: var(--c-accent-ink); text-decoration: underline; }
.footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: var(--bw) solid var(--c-line);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center;
  font-size: var(--t-micro); color: var(--c-ink-3);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ---------- Bandeau cookies ---------- */
.cookie {
  position: fixed; bottom: var(--sp-4); left: var(--sp-4); right: var(--sp-4);
  max-width: 620px; margin-inline: auto; z-index: 150;
  background: var(--c-paper); border: var(--bw) solid var(--c-line-strong);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: var(--sp-5); display: none; gap: var(--sp-4);
  flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.cookie[data-show="true"] { display: flex; }
.cookie p { font-size: var(--t-small); flex: 1 1 260px; }
.cookie__actions { display: flex; gap: var(--sp-3); }
