/* ============================================================
   Demeris — styles du site (layout + composants)
   Hand-authored, token-driven. Aucune dépendance externe.
   ============================================================ */

/* ---------- Polices (auto-hébergées) ----------
   Outfit variable, sous-ensembles latin + latin-ext (source : Google Fonts,
   déposés dans assets/fonts/). Repli propre sur la sans-serif système. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: local("Outfit"), url("../fonts/Outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: local("Outfit"), url("../fonts/Outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--color-text); font-weight: var(--fw-semibold); line-height: var(--lh-heading); letter-spacing: var(--ls-tight); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Accessibilité ---------- */
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }
.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 200;
  background: var(--color-brand); color: var(--color-text-invert);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }
.section { padding-block: var(--space-16); }
.section--tight { padding-block: var(--space-16); } /* même valeur que .section : rythme unique et réduit sur tout le site */
.section--inset { background: var(--color-surface); }
.section--brand { background: var(--grad-brand-vivid); color: var(--color-text-invert); }
.section--brand h1, .section--brand h2, .section--brand h3 { color: var(--color-text-invert); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--fs-caption); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--color-accent-strong);
  background: var(--color-accent-soft); padding: 0.4em 0.85em; border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
/* Page Capture : une seule pastille signature (hero) ; on retire les kickers de section. */
body[data-page="capture"] .section-head .eyebrow { display: none; }
.section--brand .eyebrow { color: var(--white); background: rgba(255, 255, 255, 0.14); }
.section--brand .eyebrow::before { background: var(--cyan-400); }
/* Cadence sobre : pas de kicker répété au-dessus de chaque section.
   On garde un seul kicker par page (hero) et le badge des cartes produit. */
.section-head .eyebrow { display: none; }
.section-head { max-width: 60rem; margin-bottom: var(--space-12); }
/* Accueil : rythme titre→contenu unifié à 32px sur tous les blocs (hero, logos, produits, bénéfices, CTA) */
body[data-page="home"] .section-head { margin-bottom: var(--space-8); }
/* Accueil : bandeau logos plus fin que les autres blocs — l'espace après reste proportionné à son contenu compact */
body[data-page="home"] .section:has(> .logos) { padding-bottom: var(--space-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); text-wrap: balance; }
/* À propos, bloc "Notre histoire" : titre légèrement trop large pour tenir sur une ligne à 60rem — resserrage ciblé */
#story .section-head h2 { letter-spacing: -0.03em; }
.section-head p { margin-top: var(--space-4); font-size: var(--fs-body-lg); color: var(--color-text-muted); text-wrap: balance; }
.section--brand .section-head p { color: var(--teal-100); }

.lede { font-size: var(--fs-body-lg); color: var(--color-text-body); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-h, 48px); padding-inline: var(--space-6);
  font-weight: var(--fw-semibold); font-size: var(--fs-body); letter-spacing: var(--ls-snug);
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(0.5px); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--primary { background: var(--grad-brand); color: var(--color-text-invert); box-shadow: 0 10px 24px -12px var(--teal-900); }
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn--accent { background: var(--grad-accent); color: var(--color-accent-contrast); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--color-accent) 65%, transparent); }
.btn--accent:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--color-brand); border-color: var(--color-border-strong); }
.btn--ghost:hover { background: var(--color-surface); border-color: var(--color-brand); }

.btn--on-brand { background: var(--white); color: var(--color-brand); }
.btn--on-brand:hover { background: var(--teal-50); }
.btn--ghost-invert { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost-invert:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--sm { height: 40px; padding-inline: var(--space-5); font-size: var(--fs-body-sm); }
.btn--lg { height: 56px; padding-inline: var(--space-8); font-size: var(--fs-body-lg); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: var(--fw-semibold); color: var(--color-accent-strong);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-surface) 95%, transparent);
  box-shadow: 0 6px 20px -12px rgba(15, 48, 51, 0.35);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-8); height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: var(--fw-bold); font-size: var(--fs-h6); color: var(--color-text); letter-spacing: var(--ls-tight); }
.brand__mark {
  display: block; width: 40px; height: 40px; object-fit: contain;
  flex: 0 0 auto;
}
.brand em { font-style: normal; color: var(--color-accent-strong); }
/* Header : logo + nom de marque agrandis d'environ 15% par rapport à la base .brand */
.site-header .brand { font-size: 1.442rem; }
.site-header .brand__mark { width: 46.144px; height: 46.144px; }

.main-nav { display: flex; align-items: center; gap: var(--space-2); margin-inline-start: auto; }
.main-nav__item { position: relative; }
.main-nav__link {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  font-weight: var(--fw-medium); color: var(--color-text-body);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.main-nav__link:hover { color: var(--color-text); background: var(--color-surface-inset); }
.main-nav__link svg { width: 1em; height: 1em; opacity: 0.6; }

.menu { display: flex; align-items: center; gap: var(--space-2); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.main-nav__item:hover .dropdown,
.main-nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: var(--space-3); border-radius: var(--radius-md); color: var(--color-text-body); }
.dropdown a:hover { background: var(--color-accent-soft); color: var(--color-text); }
.dropdown a strong { display: block; color: var(--color-text); font-weight: var(--fw-semibold); }
.dropdown a span { font-size: var(--fs-body-sm); color: var(--color-text-muted); }

.main-nav__actions { display: flex; align-items: center; gap: var(--space-3); margin-inline-start: var(--space-4); }

/* Sélecteur de langue */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  border: 1px solid var(--color-border); background: var(--color-surface);
  font-weight: var(--fw-medium); font-size: var(--fs-body-sm); color: var(--color-text-body);
}
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: var(--space-2);
  display: none;
}
.lang.is-open .lang__menu { display: block; }
.lang__menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: var(--space-2) var(--space-3); border: 0; background: transparent;
  border-radius: var(--radius-sm); color: var(--color-text-body); text-align: start;
}
.lang__menu button:hover:not([disabled]) { background: var(--color-surface-inset); }
.lang__menu button[disabled] { color: var(--color-text-muted); cursor: not-allowed; }
.lang__menu .badge { font-size: var(--fs-micro); color: var(--color-text-muted); }

/* Menu mobile */
.nav-toggle { display: none; width: 44px; height: 44px; margin-inline-start: auto; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: var(--radius-md); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero (teal profond, drenché) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: var(--space-20) var(--space-16);
  background: linear-gradient(158deg, var(--teal-900) 0%, var(--teal-950) 100%);
  color: var(--color-text-invert);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 560px at 88% -15%, rgba(19, 168, 173, 0.30), transparent 60%),
    radial-gradient(760px 520px at -8% 115%, rgba(46, 115, 112, 0.42), transparent 55%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-16); align-items: center; }
.hero h1 { color: var(--color-text-invert); font-size: clamp(2.25rem, 2vw + 1.6rem, 3.5rem); letter-spacing: var(--ls-tight); text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--cyan-400); }
.hero__lede { margin-top: var(--space-6); font-size: var(--fs-body-lg); max-width: 36rem; color: var(--teal-100); text-wrap: balance; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__note { margin-top: var(--space-5); font-size: var(--fs-body-sm); color: var(--teal-200); }
.hero .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.14); }
.hero .eyebrow::before { background: var(--cyan-400); }
/* Boutons hero sur fond sombre */
.hero .btn--primary { background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); color: #fff; box-shadow: 0 14px 34px -12px rgba(19, 168, 173, 0.55); }
.hero .btn--primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: transparent; }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
/* Mock flottant sur fond sombre */
.hero .mock { border-color: transparent; box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06); }
/* Overdrive : hero vivant — parallaxe 3D du mock + lumière qui suit le curseur */
.hero [data-mock] { transition: transform 0.3s var(--ease-out); transform-style: preserve-3d; will-change: transform; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 420px at var(--mx, 82%) var(--my, -12%), rgba(19, 168, 173, 0.20), transparent 60%);
  transition: background 0.25s var(--ease-out);
}

/* Mascotte suricate — présence ambiante en fond des héros (home, GED, Capture), sans occuper d'espace de mise en page */
.hero-bg-mascot {
  position: absolute; z-index: -1; bottom: var(--space-10); right: 3%;
  height: 408px; width: auto; max-width: none;
  opacity: 0.26; pointer-events: none;
}
/* GED : suricate à gauche du hero, même taille que Capture */
body[data-page="ged"] .hero-bg-mascot { right: auto; left: 2%; }
/* Capture : suricate à gauche du hero */
body[data-page="capture"] .hero-bg-mascot { right: auto; left: 2%; }
/* Home : suricate à gauche du hero, regarde vers la droite (orientation naturelle) */
body[data-page="home"] .hero-bg-mascot { right: auto; left: 2%; }

/* ---------- Aperçu d'interface (mock produit) ---------- */
.mock {
  border-radius: var(--radius-xl);
  background: var(--color-surface); box-shadow: var(--shadow-lg); overflow: hidden;
  animation: mock-float 6.5s var(--ease-out) infinite;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); background: var(--color-surface-inset); }
.mock__bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-strong); }
.mock__bar > span:nth-child(1) { background: #e0736c; }
.mock__bar > span:nth-child(2) { background: #e6b45c; }
.mock__bar > span:nth-child(3) { background: #6bbf8a; }
.mock__url { margin-inline-start: auto; font-size: var(--fs-micro); color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 2px 12px; }
.mock__body { display: grid; grid-template-columns: 62px 1fr; min-height: 320px; }
.mock__side { background: linear-gradient(180deg, var(--teal-800), var(--teal-950)); padding: var(--space-4) 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.mock__logo { width: 28px; height: 28px; border-radius: 9px; background: var(--grad-accent); }
.mock__side i { width: 24px; height: 24px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); }
.mock__side i.is-active { background: rgba(255, 255, 255, 0.32); }
.mock__main { padding: var(--space-5); background: var(--color-bg); display: grid; gap: var(--space-4); align-content: start; }
.mock__crumbs { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-caption); color: var(--color-text-muted); }
.mock__doc { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-5); display: grid; gap: var(--space-3); }
.mock__title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.mock__title-row h4 { font-size: var(--fs-body); }
.mock__badge { display: inline-flex; align-items: center; gap: 0.35em; font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--color-accent-strong); background: var(--color-accent-soft); padding: 3px 9px; border-radius: var(--radius-pill); }
.mock__badge svg { width: 12px; height: 12px; }
.mock__lines { display: grid; gap: 8px; }
.mock__lines i { height: 8px; border-radius: 4px; background: var(--color-surface-inset); }
.mock__lines i:nth-child(1) { width: 90%; }
.mock__lines i:nth-child(2) { width: 78%; }
.mock__lines i:nth-child(3) { width: 84%; }
.mock__fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-1); }
.mock__field { border: 1.5px solid var(--color-accent); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); background: var(--color-accent-soft); display: grid; gap: 2px; }
.mock__field--full { grid-column: 1 / -1; }
.mock__field .k { font-size: var(--fs-micro); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--color-accent-strong); }
.mock__field .v { font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--color-text); }
.mock__status { justify-self: start; display: inline-flex; align-items: center; gap: 0.45em; font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--color-success); background: color-mix(in srgb, var(--color-success) 12%, var(--color-surface)); padding: 4px 11px; border-radius: var(--radius-pill); }
.mock__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); }
/* Aperçu GED : circuit de validation + méta d'archivage */
.mock__flowlabel { font-size: var(--fs-micro); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--color-text-muted); margin-top: var(--space-1); }
.mock__steps { display: grid; gap: var(--space-2); }
.mock__step { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-body-sm); color: var(--color-text); }
.mock__step .tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--color-success) 15%, var(--color-surface)); color: var(--color-success); flex: 0 0 auto; }
.mock__step .tick svg { width: 12px; height: 12px; }
.mock__meta { display: flex; align-items: center; gap: 0.4em; font-size: var(--fs-micro); color: var(--color-text-muted); }
.mock__meta svg { width: 12px; height: 12px; flex: 0 0 auto; color: var(--color-accent-strong); }
/* Hero accueil : succession animée Capture → GED (un même document, 4 étapes) */
.mock__phase { display: inline-flex; align-self: flex-start; font-size: var(--fs-micro); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-wide); padding: 3px 10px; border-radius: var(--radius-pill); }
.mock__phase--capture { color: var(--cyan-600); background: var(--cyan-100); }
.mock__phase--ged { color: var(--teal-700); background: var(--teal-100); }
/* Le hero raconte déjà une histoire via les scènes qui changent : pas besoin d'un rebond continu en plus */
.hero [data-hero-story] .mock { animation: mock-in 0.8s var(--ease-out-expo) 0.18s both; }
.mock__scenes { position: relative; min-height: 210px; perspective: 1200px; }
.mock__scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--space-3);
  opacity: 0; transform: scale(0.96); pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out-expo);
}
.mock__scene.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.mock__scene .mock__doc { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
/* Cascade d'apparition du contenu à l'intérieur de la scène active — carte vivante, pas un simple fondu */
.mock__scene .mock__phase, .mock__scene .mock__crumbs, .mock__scene .mock__title-row,
.mock__scene .mock__lines, .mock__scene .mock__field, .mock__scene .mock__step,
.mock__scene .mock__meta, .mock__scene .mock__status {
  opacity: 0; transform: translateY(7px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.mock__scene.is-active .mock__phase { opacity: 1; transform: none; transition-delay: 0.02s; }
.mock__scene.is-active .mock__crumbs { opacity: 1; transform: none; transition-delay: 0.07s; }
.mock__scene.is-active .mock__title-row { opacity: 1; transform: none; transition-delay: 0.12s; }
.mock__scene.is-active .mock__lines { opacity: 1; transform: none; transition-delay: 0.18s; }
.mock__scene.is-active .mock__field:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.18s; }
.mock__scene.is-active .mock__field:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.24s; }
.mock__scene.is-active .mock__field:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.3s; }
.mock__scene.is-active .mock__step:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.18s; }
.mock__scene.is-active .mock__step:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.28s; }
.mock__scene.is-active .mock__step:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.38s; }
.mock__scene.is-active .mock__meta { opacity: 1; transform: none; transition-delay: 0.22s; }
.mock__scene.is-active .mock__status { opacity: 1; transform: none; transition-delay: 0.42s; }
/* Étapes qui se cochent l'une après l'autre plutôt que toutes ensemble */
.mock__scene .mock__step .tick { transform: scale(0.4); opacity: 0; transition: transform 0.35s var(--ease-out-expo), opacity 0.25s var(--ease-out); }
.mock__scene.is-active .mock__step:nth-child(1) .tick { transform: scale(1); opacity: 1; transition-delay: 0.32s; }
.mock__scene.is-active .mock__step:nth-child(2) .tick { transform: scale(1); opacity: 1; transition-delay: 0.42s; }
.mock__scene.is-active .mock__step:nth-child(3) .tick { transform: scale(1); opacity: 1; transition-delay: 0.52s; }
.mock__stepper { display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding-top: var(--space-3); margin-top: auto; }
.mock__stepper-dot { position: relative; width: 26px; height: 4px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--color-border); cursor: pointer; overflow: hidden; }
.mock__stepper-dot:hover .mock__stepper-fill { background: var(--color-text-muted); }
.mock__stepper-fill { position: absolute; inset: 0; width: 0%; background: var(--color-border-strong); border-radius: inherit; }
.mock__stepper-dot.is-active .mock__stepper-fill { background: var(--color-accent); animation: stepper-fill 3.4s linear forwards; }
@keyframes stepper-fill { from { width: 0%; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .mock__scene, .mock__scene .mock__phase, .mock__scene .mock__crumbs, .mock__scene .mock__title-row,
  .mock__scene .mock__lines, .mock__scene .mock__field, .mock__scene .mock__step, .mock__scene .mock__meta,
  .mock__scene .mock__status, .mock__scene .mock__step .tick { transition: none; }
  .mock__stepper-dot.is-active .mock__stepper-fill { animation: none; width: 100%; }
}
@keyframes mock-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mock { animation: none; } }

/* ---------- Motion : entrée du hero + micro-récit « capture » ----------
   Uniquement si l'utilisateur accepte le mouvement. En mouvement réduit,
   rien ne s'anime et tout reste visible (aucun état masqué persistant). */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes mock-in { from { opacity: 0; transform: translateY(20px) scale(0.985); } to { opacity: 1; transform: none; } }
  @keyframes field-pop { 0% { box-shadow: 0 0 0 0 rgba(19, 168, 173, 0); } 35% { box-shadow: 0 0 0 4px rgba(19, 168, 173, 0.20); } 100% { box-shadow: 0 0 0 0 rgba(19, 168, 173, 0); } }
  @keyframes status-pop { 0% { opacity: 0; transform: scale(0.8); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }

  .hero .eyebrow, .page-hero .eyebrow { animation: rise-in 0.6s var(--ease-out-expo) both; }
  .page-hero .breadcrumb { animation: rise-in 0.55s var(--ease-out-expo) both; }
  .hero h1, .page-hero h1 { animation: rise-in 0.7s var(--ease-out-expo) 0.06s both; }
  .hero__lede, .page-hero__lede { animation: rise-in 0.7s var(--ease-out-expo) 0.14s both; }
  .hero__cta, .page-hero__cta { animation: rise-in 0.7s var(--ease-out-expo) 0.22s both; }
  .hero .mock, .page-hero .mock { animation: mock-in 0.8s var(--ease-out-expo) 0.18s both, mock-float 7s var(--ease-out) 1.2s infinite; }

  /* Le mock raconte la capture : les champs se reconnaissent un à un, puis « Validé » apparaît. */
  .hero .mock__fields .mock__field, .page-hero .mock__fields .mock__field { animation: field-pop 1.5s var(--ease-out) both; }
  .hero .mock__fields .mock__field:nth-child(1), .page-hero .mock__fields .mock__field:nth-child(1) { animation-delay: 1.0s; }
  .hero .mock__fields .mock__field:nth-child(2), .page-hero .mock__fields .mock__field:nth-child(2) { animation-delay: 1.25s; }
  .hero .mock__fields .mock__field:nth-child(3), .page-hero .mock__fields .mock__field:nth-child(3) { animation-delay: 1.5s; }
  .hero .mock__status, .page-hero .mock__status { animation: status-pop 0.6s var(--ease-out-expo) 1.85s both; }

  /* Hero Métiers : l'éventail se déploie, chaque document est reconnu, puis flotte. */
  @keyframes docfan-card-in {
    from { opacity: 0; transform: translate(-50%, -50%) rotate(calc((var(--n) - 1) * 7deg)) translateX(calc((var(--n) - 1) * 58px)) translateY(calc(var(--n) * -10px + 30px)); }
    to   { opacity: 1; transform: translate(-50%, -50%) rotate(calc((var(--n) - 1) * 7deg)) translateX(calc((var(--n) - 1) * 58px)) translateY(calc(var(--n) * -10px)); }
  }
  @keyframes docfan-check-in { 0% { opacity: 0; transform: scale(0.7); } 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
  .docfan { animation: mock-float 7s var(--ease-out) 1.6s infinite; }
  .docfan__card { animation: docfan-card-in 0.75s var(--ease-out-expo) both; }
  .docfan__card:nth-child(1) { animation-delay: 0.34s; }
  .docfan__card:nth-child(2) { animation-delay: 0.18s; }
  .docfan__card:nth-child(3) { animation-delay: 0.50s; }
  .docfan__check { transform-origin: left center; animation: docfan-check-in 0.5s var(--ease-out-expo) both; }
  .docfan__card:nth-child(1) .docfan__check { animation-delay: 0.92s; }
  .docfan__card:nth-child(2) .docfan__check { animation-delay: 0.78s; }
  .docfan__card:nth-child(3) .docfan__check { animation-delay: 1.06s; }
}

/* ---------- Réplique de l'interface produit (toujours sombre) ---------- */
.appshot-wrap { max-width: 960px; margin-inline: auto; }
.appshot-note { max-width: 960px; margin-inline: auto; margin-top: var(--space-3); text-align: center; font-size: var(--fs-caption); color: var(--color-text-muted); }
.appshot { border-radius: var(--radius-xl); overflow: hidden; background: var(--teal-950); box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); color: #eaf3f2; }
.appshot__bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.appshot__dots { display: flex; gap: 6px; }
.appshot__dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.appshot__url { font-size: var(--fs-caption); color: var(--teal-200); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-pill); padding: 3px 12px; }
.appshot__deposit { margin-inline-start: auto; font-size: var(--fs-caption); font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); padding: 5px 12px; border-radius: var(--radius-pill); }
.appshot__body { display: grid; grid-template-columns: 176px 1fr; min-height: 366px; }
.appshot__side { background: rgba(0, 0, 0, 0.18); border-right: 1px solid rgba(255, 255, 255, 0.06); padding: var(--space-4); }
.appshot__brand { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-5); }
.appshot__brand img { width: 22px; height: 22px; }
.appshot__brand span { font-weight: 700; font-size: var(--fs-body-sm); color: #fff; }
.appshot__nav { display: grid; gap: 2px; }
.appshot__nav a { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-caption); color: var(--teal-200); padding: 6px 8px; border-radius: var(--radius-sm); }
.appshot__nav a::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: 0.5; }
.appshot__nav a.is-active { background: rgba(255, 255, 255, 0.09); color: #fff; }
.appshot__main { padding: var(--space-5); display: grid; gap: var(--space-4); align-content: start; }
.appshot__crumb { font-size: var(--fs-caption); color: var(--teal-300); }
.appshot__h { font-size: var(--fs-h6); color: #fff; font-weight: 700; margin-top: 2px; }
.appshot__updated { font-size: var(--fs-micro); color: var(--teal-300); }
.appshot__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.appshot__tile { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: var(--radius-md); padding: var(--space-3); }
.appshot__tile b { display: block; font-family: var(--font-display); font-size: var(--fs-h5); line-height: 1; }
.appshot__tile span { font-size: var(--fs-micro); color: var(--teal-200); }
.appshot__tile--amber b { color: var(--amber-500); }
.appshot__tile--cyan b { color: var(--cyan-400); }
.appshot__tile--green b { color: var(--green-500); }
.appshot__tile--muted b { color: var(--teal-300); }
.appshot__panel { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius-lg); padding: var(--space-4); }
.appshot__panel h4 { font-size: var(--fs-body-sm); color: #fff; margin-bottom: var(--space-3); }
.appshot__row { display: grid; grid-template-columns: 1.4fr 1.25fr 84px 92px; gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: var(--fs-caption); }
.appshot__row--head { border-top: 0; padding-top: 0; padding-bottom: var(--space-2); }
.appshot__row--head span { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--teal-300); font-weight: var(--fw-semibold); }
.appshot__row--head .appshot__amt { text-align: right; }
.appshot__doc { color: var(--cyan-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appshot__emit { color: var(--teal-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appshot__amt { color: #fff; text-align: right; }
.appshot__badge { justify-self: start; font-size: var(--fs-micro); font-weight: 600; padding: 2px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.appshot__badge--green { color: var(--green-500); background: color-mix(in srgb, var(--green-500) 16%, transparent); }
.appshot__badge--cyan { color: var(--cyan-400); background: color-mix(in srgb, var(--cyan-400) 16%, transparent); }
.appshot__badge--amber { color: var(--amber-500); background: color-mix(in srgb, var(--amber-500) 16%, transparent); }
@media (max-width: 640px) {
  .appshot__body { grid-template-columns: 1fr; }
  .appshot__side { display: none; }
  .appshot__tiles { grid-template-columns: repeat(2, 1fr); }
  .appshot__row { grid-template-columns: 1fr auto; }
  .appshot__emit, .appshot__amt { display: none; }
}

/* ---------- Réplique « vue extraction » (claire, pour le hero) ---------- */
.exshot { border-radius: var(--radius-xl); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
.exshot__bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); background: var(--color-surface-inset); }
.exshot__dots { display: flex; gap: 6px; }
.exshot__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-strong); }
.exshot__url { margin-inline-start: auto; font-size: var(--fs-micro); color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 2px 10px; }
.exshot__body { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: stretch; }
.exshot__doc { padding: var(--space-5); background: var(--color-surface-inset); border-right: 1px solid var(--color-border); display: flex; }
.exshot__page { flex: 1; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-4); box-shadow: var(--shadow-xs); display: grid; gap: var(--space-3); align-content: start; }
.exshot__pg-head { display: flex; align-items: flex-start; justify-content: space-between; }
.exshot__pg-logo { width: 40px; height: 15px; background: var(--color-accent); border-radius: 3px; }
.exshot__pg-addr { display: grid; gap: 4px; justify-items: end; }
.exshot__pg-addr i { display: block; height: 5px; width: 62px; background: var(--color-surface-inset); border-radius: 2px; }
.exshot__pg-addr i:nth-child(2) { width: 44px; }
.exshot__pg-title { height: 9px; width: 46%; background: var(--color-accent-soft); border-radius: 3px; }
.exshot__pg-table { display: grid; gap: 8px; }
.exshot__pg-tr { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.exshot__pg-tr i { height: 6px; border-radius: 3px; background: var(--color-surface-inset); flex: 1; }
.exshot__pg-tr b { display: block; height: 6px; width: 38px; border-radius: 3px; background: var(--color-surface-inset); }
.exshot__pg-total { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); margin-top: 2px; padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.exshot__pg-total i { height: 8px; width: 52px; background: var(--color-accent-soft); border-radius: 3px; }
.exshot__pg-total b { display: block; height: 9px; width: 58px; background: var(--color-accent); border-radius: 3px; }
.exshot__main { padding: var(--space-5); display: grid; gap: var(--space-4); align-content: start; }
.exshot__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.exshot__head strong { font-size: var(--fs-body); color: var(--color-text); }
.exshot__badge { display: inline-flex; align-items: center; gap: 0.35em; font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--color-accent-strong); background: var(--color-accent-soft); padding: 3px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.exshot__badge svg { width: 12px; height: 12px; }
.exshot__fields { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.exshot__field { border: 1.5px solid var(--color-accent); background: var(--color-accent-soft); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.exshot__field .k { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--color-accent-strong); font-weight: var(--fw-semibold); white-space: nowrap; }
.exshot__field .v { font-size: var(--fs-body-sm); color: var(--color-text); font-weight: var(--fw-medium); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.exshot__qr { display: flex; align-items: center; gap: 0.5em; font-size: var(--fs-caption); color: var(--color-success); background: color-mix(in srgb, var(--color-success) 12%, var(--color-surface)); padding: 7px 11px; border-radius: var(--radius-md); }
.exshot__qr b { color: var(--color-text); font-weight: var(--fw-semibold); }
.exshot__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.exshot__status { display: inline-flex; align-items: center; gap: 0.45em; font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--color-success); }
.exshot__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); }
.exshot__conf { font-size: var(--fs-caption); color: var(--color-text-muted); }
.exshot__conf b { color: var(--color-accent-strong); }
@media (max-width: 640px) {
  .exshot__body { grid-template-columns: 1fr; }
  .exshot__doc { display: none; }
}

/* ---------- Réplique « dépôt en direct » (claire, pour le hero) ---------- */
.dropshot { border-radius: var(--radius-xl); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
.dropshot__body { padding: var(--space-5); display: grid; gap: var(--space-4); }
.dropshot__zone { border: 2px dashed color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); border-radius: var(--radius-lg); background: var(--color-accent-soft); padding: var(--space-6) var(--space-5); text-align: center; display: grid; gap: var(--space-2); justify-items: center; }
.dropshot__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--grad-accent); color: #fff; }
.dropshot__icon svg { width: 22px; height: 22px; }
.dropshot__zone strong { font-size: var(--fs-body); color: var(--color-text); }
.dropshot__zone span { font-size: var(--fs-caption); color: var(--color-text-muted); }
.dropshot__list { display: grid; gap: var(--space-2); }
.dropshot__file { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.dropshot__ic { display: grid; place-items: center; width: 30px; height: 34px; border-radius: 4px; background: var(--color-surface-inset); color: var(--color-text-muted); }
.dropshot__ic svg { width: 16px; height: 16px; }
.dropshot__meta { min-width: 0; }
.dropshot__meta strong { display: block; font-size: var(--fs-body-sm); color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropshot__sub { display: block; font-size: var(--fs-caption); color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropshot__badge { font-size: var(--fs-micro); font-weight: var(--fw-semibold); padding: 3px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.dropshot__badge--green { color: var(--green-600); background: color-mix(in srgb, var(--green-600) 12%, var(--color-surface)); }
.dropshot__badge--cyan { color: var(--cyan-600); background: color-mix(in srgb, var(--cyan-500) 14%, var(--color-surface)); }
.dropshot__badge--amber { color: var(--amber-600); background: color-mix(in srgb, var(--amber-500) 16%, var(--color-surface)); }
.dropshot__badge--muted { color: var(--color-text-muted); background: var(--color-surface-inset); }
.dropshot__prog { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--color-surface-inset); overflow: hidden; }
.dropshot__prog i { display: block; height: 100%; width: 60%; border-radius: 2px; background: var(--grad-accent); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes drop-prog { 0% { width: 12%; } 90% { width: 92%; } 100% { width: 12%; } }
  .dropshot__prog i { animation: drop-prog 2.4s var(--ease-out) infinite; }

  /* Arrivée en cascade : la zone puis chaque document, comme un vrai dépôt qui se remplit */
  .dropshot__zone, .dropshot__file { animation: rise-in 0.6s var(--ease-out-expo) both; }
  .dropshot__zone { animation-delay: 0.1s; }
  .dropshot__file:nth-child(1) { animation-delay: 0.28s; }
  .dropshot__file:nth-child(2) { animation-delay: 0.4s; }
  .dropshot__file:nth-child(3) { animation-delay: 0.52s; }
  .dropshot__file:nth-child(4) { animation-delay: 0.64s; }

  /* La zone de dépôt respire, comme si elle attendait activement un fichier */
  @keyframes drop-zone-breathe {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 22%, transparent); }
    50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-accent) 0%, transparent); }
  }
  .dropshot__zone { animation: rise-in 0.6s var(--ease-out-expo) 0.1s both, drop-zone-breathe 2.8s var(--ease-out) 0.8s infinite; }
  .dropshot__icon { animation: drop-icon-bob 2.8s var(--ease-out) 0.8s infinite; }
  @keyframes drop-icon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

  /* Le fichier en cours de traitement respire doucement au rythme de sa barre de progression */
  @keyframes drop-file-active {
    0%, 100% { border-color: var(--color-border); background: var(--color-surface); }
    50% { border-color: color-mix(in srgb, var(--amber-500) 45%, var(--color-border)); background: color-mix(in srgb, var(--amber-500) 5%, var(--color-surface)); }
  }
  .dropshot__file--active { animation: rise-in 0.6s var(--ease-out-expo) 0.52s both, drop-file-active 2.4s var(--ease-out) 0.9s infinite; }
}

/* ---------- Bandeau logos ---------- */
.logos { text-align: center; }
.logos__label { font-size: var(--fs-body-sm); color: var(--color-text-muted); margin-bottom: var(--space-8); }
.logos__row {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos__track { display: flex; gap: var(--space-6); width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes logos-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .logos__track { animation: logos-scroll 26s linear infinite; }
  .logos__row:hover .logos__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .logos__row { -webkit-mask-image: none; mask-image: none; }
  .logos__track { flex-wrap: wrap; justify-content: center; width: auto; }
}
.logo-chip {
  display: grid; place-items: center; height: 46px; padding-inline: var(--space-5);
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  color: var(--color-text-body); font-weight: var(--fw-semibold); font-size: var(--fs-body-sm);
  letter-spacing: var(--ls-snug); white-space: nowrap; background: var(--color-surface);
}
.logo-chip--img { padding-inline: var(--space-4); }
.logo-chip img { height: 24px; width: auto; max-width: 128px; object-fit: contain; display: block; }
.logo-chip--brand { display: flex; align-items: center; gap: var(--space-2); }
.logo-chip--brand img { height: 24px; width: 24px; }
.logo-chip--brand span { font-weight: var(--fw-bold); color: var(--color-text); }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: var(--space-6); }
.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 {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.grid .card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--color-accent) 30%, var(--color-border)); }
.card__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--space-4);
  border-radius: var(--radius-md); background: var(--grad-accent); color: var(--color-accent-contrast);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--color-accent) 70%, transparent);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--fs-h6); margin-bottom: var(--space-2); }
.card p { font-size: var(--fs-body-sm); color: var(--color-text-muted); }
.card__foot { margin-top: var(--space-4); }

/* Bloc bénéfice (résultat mis en avant) */
.result { border-color: color-mix(in srgb, var(--color-accent) 22%, var(--color-border)); }
.result h3 { font-size: var(--fs-h5); color: var(--color-accent-strong); letter-spacing: var(--ls-snug); }
.result p { margin-top: var(--space-3); font-size: var(--fs-body-sm); color: var(--color-text-body); }

/* Carte produit (2 produits côte à côte) */
.product-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; padding: var(--space-8); border-radius: var(--radius-xl);
  background: var(--grad-soft);
  border-color: color-mix(in srgb, var(--color-accent) 32%, var(--color-border));
}
.product-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-accent); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .card__icon { width: 52px; height: 52px; }
.product-card h3 { font-size: var(--fs-h4); }
.product-card p { font-size: var(--fs-body); }
.product-card ul { display: grid; gap: var(--space-2); margin-top: var(--space-5); }
.product-card li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-body-sm); color: var(--color-text-body); }
.product-card li svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; color: var(--color-accent-strong); }
.product-card .card__foot { margin-top: auto; padding-top: var(--space-6); }
.product-card--capture { --color-accent: var(--cyan-500); --color-accent-strong: var(--cyan-600); --color-accent-soft: var(--cyan-100); }
.product-card--ged { --color-accent: var(--teal-500); --color-accent-strong: var(--teal-600); --color-accent-soft: var(--teal-50); }

/* ---------- Schéma d'ouverture Capture / GED ---------- */
#openness { background: var(--color-surface); }
/* GED : titre du bloc ouverture un peu long — élargi pour tenir sur une ligne */
body[data-page="ged"] #openness .section-head { max-width: 70rem; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: var(--space-4); align-items: center; }
.flow__node {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); padding: var(--space-5); text-align: center; box-shadow: var(--shadow-sm);
}
.flow__node strong { display: block; color: var(--color-text); }
.flow__node span { font-size: var(--fs-body-sm); color: var(--color-text-muted); }
.flow__node--hub { border-color: var(--cyan-400); box-shadow: 0 0 0 3px var(--cyan-100), var(--shadow-md); }
.flow__arrow { color: var(--color-accent-strong); position: relative; }
.flow__arrow svg { width: 28px; height: 28px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes hub-pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--cyan-100), var(--shadow-md); } 50% { box-shadow: 0 0 0 6px rgba(19, 168, 173, 0.16), var(--shadow-md); } }
  @keyframes arrow-flow { 0%, 20% { opacity: 0; } 50% { opacity: 1; } 80%, 100% { opacity: 0; } }
  .flow__arrow svg { animation: arrow-flow 2.4s var(--ease-out) infinite; }
  .flow__arrow ~ .flow__arrow svg { animation-delay: 0.7s; }
  .flow__node--hub { animation: hub-pulse 3s var(--ease-out) infinite; }
}
.flow__group { display: grid; gap: var(--space-2); }
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-3); }
.chip { padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--color-surface-inset); border: 1px solid var(--color-border); font-size: var(--fs-caption); color: var(--color-text-body); }

/* ---------- Sélecteur de métier (page Métiers) ---------- */
.selector__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-bottom: var(--space-8); position: relative; }
.selector__tab { position: relative; z-index: 1; cursor: pointer; text-align: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); background: transparent; border-radius: var(--radius-pill); font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); color: var(--color-text-body); transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.selector__tab:hover { border-color: var(--color-accent); color: var(--color-text); }
.selector__tab.is-active { color: var(--color-accent-contrast); border-color: transparent; }
.selector__pill { position: absolute; top: 0; left: 0; z-index: 0; border-radius: var(--radius-pill); background: var(--color-accent); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--color-accent) 65%, transparent); opacity: 0; }
.selector__pill.is-set { opacity: 1; }
.selector__panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.selector__intro h3 { font-size: var(--fs-h4); }
.selector__intro p { margin-top: var(--space-2); font-size: var(--fs-body-lg); color: var(--color-text-body); max-width: 46rem; }
.selector__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); margin-top: var(--space-6); }
.selector__col h4 { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.selector__list { display: grid; gap: var(--space-2); }
.selector__list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-body-sm); color: var(--color-text-body); line-height: var(--lh-body); }
.selector__list--pain li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--color-border-strong); }
.selector__list--gain li svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--color-accent-strong); }
.selector__docs { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.selector__docs-label { display: block; font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.selector__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-8); align-items: start; }
.selector__scan { background: var(--teal-950); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.selector__scan-bar { display: flex; align-items: center; gap: 6px; padding: var(--space-3) var(--space-4); background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.selector__scan-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.selector__scan-bar em { margin-inline-start: auto; font-style: normal; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--teal-200); }
.selector__scan-list { position: relative; padding: var(--space-4); display: grid; gap: var(--space-2); }
.selector__beam { position: absolute; left: var(--space-4); right: var(--space-4); top: 0; height: 3px; border-radius: 3px; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, var(--cyan-400) 45%, var(--cyan-300) 55%, transparent); box-shadow: 0 0 22px 5px rgba(19, 168, 173, 0.5); }
.selector__file { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.03); transform-origin: center; transition: transform 0.5s var(--ease-out-expo), background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), opacity 0.4s var(--ease-out); }
.selector__scan.is-inspecting .selector__file:not(.is-focus) { opacity: 0.48; }
.selector__file.is-focus { transform: scale(1.045); z-index: 3; background-color: rgba(19, 168, 173, 0.14); border-color: rgba(19, 168, 173, 0.55); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(19, 168, 173, 0.35); }
.selector__file.is-focus .selector__fic { background: rgba(19, 168, 173, 0.28); color: var(--cyan-200); }
.selector__file.is-focus .selector__fname { color: #fff; }
.selector__fic { display: grid; place-items: center; width: 26px; height: 30px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); color: var(--teal-100); flex: 0 0 auto; }
.selector__fic svg { width: 15px; height: 15px; }
.selector__fname { flex: 1; min-width: 0; font-size: var(--fs-caption); color: #eaf3f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selector__fcheck { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--green-500) 22%, transparent); color: var(--green-500); flex: 0 0 auto; }
.selector__fcheck svg { width: 12px; height: 12px; }
@media (prefers-reduced-motion: no-preference) {
  /* Idée 2 : la pastille glisse d'un onglet à l'autre + le panneau entre selon la direction. */
  .selector__pill { transition: transform 0.5s var(--ease-out-expo), width 0.5s var(--ease-out-expo), height 0.5s var(--ease-out-expo), opacity 0.3s var(--ease-out); }
  @keyframes sel-panel-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 26px)); } to { opacity: 1; transform: none; } }
  .selector__panel.is-in { animation: sel-panel-in 0.42s var(--ease-out-expo); }

  /* Idée 3 : les enjeux se listent, puis chaque gain « répond » avec sa coche. */
  @keyframes sel-pain-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
  @keyframes sel-gain-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  @keyframes sel-check-pop { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
  .selector__panel.is-in .selector__list--pain li { animation: sel-pain-in 0.4s var(--ease-out) both; animation-delay: calc(var(--i) * 130ms + 0.18s); }
  .selector__panel.is-in .selector__list--gain li { animation: sel-gain-in 0.45s var(--ease-out-expo) both; animation-delay: calc(var(--i) * 130ms + 0.44s); }
  .selector__panel.is-in .selector__list--gain li svg { transform-origin: center; animation: sel-check-pop 0.4s var(--ease-out-expo) both; animation-delay: calc(var(--i) * 130ms + 0.56s); }

  /* Idée 1 : le faisceau balaie la fenêtre ; chaque document s'allume et se fait reconnaître dans son sillage. */
  @keyframes sel-beam { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  @keyframes sel-recognize {
    0% { opacity: 0.32; transform: translateX(8px); background-color: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); }
    55% { background-color: rgba(19, 168, 173, 0.16); border-color: rgba(19, 168, 173, 0.5); }
    100% { opacity: 1; transform: none; background-color: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); }
  }
  @keyframes sel-fcheck-pop { 0% { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: scale(1); } }
  .selector__scan.is-scanning .selector__beam { animation: sel-beam calc(var(--count, 4) * 200ms + 400ms) var(--ease-out) forwards; }
  .selector__scan.is-scanning .selector__file { animation: sel-recognize 0.5s var(--ease-out) both; animation-delay: calc(var(--i) * 200ms + 0.2s); }
  .selector__scan.is-scanning .selector__fcheck { animation: sel-fcheck-pop 0.42s var(--ease-out-expo) both; animation-delay: calc(var(--i) * 200ms + 0.42s); }
}
@media (max-width: 900px) { .selector__tabs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .selector__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .selector__cols { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .selector__tabs { grid-template-columns: 1fr; } }

/* ---------- Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.5rem, 1.5vw + 2rem, 3.75rem); font-weight: var(--fw-bold); color: var(--color-text-invert); letter-spacing: var(--ls-tight); }
.stat__num:not([data-placeholder]) { color: var(--cyan-400); }
.stat__label { margin-top: var(--space-2); color: var(--teal-100); font-size: var(--fs-body-sm); }
.stat__num[data-placeholder] { color: var(--teal-200); border-bottom: 2px dashed var(--teal-400); }

/* Accueil — « Ce qui distingue Demeris » (bande sombre, tuiles icônes) */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-10); max-width: 58rem; margin: var(--space-12) auto 0; }
.why-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.why-item__icon { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.10); color: var(--cyan-400); }
.why-item__icon svg { width: 24px; height: 24px; }
.why-item h3 { color: var(--color-text-invert); font-size: var(--fs-h6); }
.why-item p { margin-top: var(--space-2); color: var(--teal-100); font-size: var(--fs-body-sm); line-height: var(--lh-body); }

/* Accueil — Cas d'usage en liste éditoriale (distincte des grilles de cartes) */
.uc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-12); }
.uc-item { padding: var(--space-6) 0; border-top: 1px solid var(--color-border); }
.uc-item h3 { font-size: var(--fs-h6); }
.uc-item p { margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--fs-body); line-height: var(--lh-body); max-width: 34rem; }

/* Accueil — Ancrage éditeur (Devillard) */
.origin { max-width: 44rem; margin-inline: auto; text-align: center; }
.origin__mark { width: 76px; height: auto; margin: 0 auto var(--space-5); display: block; }
.origin__label { font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--color-accent-strong); }
.origin__title { font-size: var(--fs-h3); margin-top: var(--space-3); }
.origin__text { margin-top: var(--space-4); font-size: var(--fs-body-lg); color: var(--color-text-body); line-height: var(--lh-body); }
.origin__sign { margin-top: var(--space-5); font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--color-text-muted); }

@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
  .uc-list { grid-template-columns: 1fr; }
}

/* ---------- Sécurité (liste à coches) ---------- */
.feature-list { display: grid; gap: var(--space-4); }
.feature-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-10); }
.feature-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.feature-list .card__icon { margin: 0; flex: 0 0 auto; }
.feature-list strong { display: block; color: var(--color-text); font-size: var(--fs-body-lg); }
.feature-list p { color: var(--color-text-muted); font-size: var(--fs-body-sm); margin-top: 2px; }

/* ---------- En-tête de page (teal profond, cohérent avec le hero d'accueil) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: var(--space-20) var(--space-16);
  background: linear-gradient(158deg, var(--teal-900) 0%, var(--teal-950) 100%);
  color: var(--color-text-invert);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 88% -18%, rgba(19, 168, 173, 0.28), transparent 60%),
    radial-gradient(720px 480px at -6% 118%, rgba(46, 115, 112, 0.38), transparent 55%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 420px at var(--mx, 82%) var(--my, -12%), rgba(19, 168, 173, 0.20), transparent 60%);
  transition: background 0.25s var(--ease-out);
}
.page-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-16); align-items: center; }
.page-hero h1 { color: var(--color-text-invert); font-size: clamp(2.5rem, 2.5vw + 1.8rem, 4.25rem); letter-spacing: var(--ls-tight); text-wrap: balance; }
.page-hero h1 em { font-style: normal; color: var(--cyan-400); }
.page-hero__lede { margin-top: var(--space-6); font-size: var(--fs-body-lg); max-width: 36rem; color: var(--teal-100); text-wrap: balance; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.page-hero__note { margin-top: var(--space-5); font-size: var(--fs-body-sm); color: var(--teal-200); }
.page-hero .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.14); }
.page-hero .eyebrow::before { background: var(--cyan-400); }
.page-hero .mock { border-color: transparent; box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.page-hero [data-mock], .page-hero [data-tilt] { transition: transform 0.3s var(--ease-out); transform-style: preserve-3d; will-change: transform; }

/* Hero Métiers : éventail de documents (overdrive) */
.page-hero__visual { position: relative; }
.docfan { position: relative; height: 400px; transform-style: preserve-3d; }
.docfan__card {
  position: absolute; left: 50%; top: 50%; width: 248px;
  display: grid; gap: var(--space-3); align-content: start;
  padding: var(--space-5); background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 70px -30px rgba(15, 46, 48, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform:
    translate(-50%, -50%)
    rotate(calc((var(--n) - 1) * 7deg))
    translateX(calc((var(--n) - 1) * 58px))
    translateY(calc(var(--n) * -10px));
}
.docfan__card:nth-child(1) { z-index: 1; }
.docfan__card:nth-child(2) { z-index: 3; }
.docfan__card:nth-child(3) { z-index: 2; }
.docfan__tag {
  justify-self: start; font-size: var(--fs-micro); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--color-accent-strong); background: var(--color-accent-soft);
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.docfan__doc { font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--color-text); letter-spacing: var(--ls-tight); }
.docfan__lines { display: grid; gap: 7px; }
.docfan__lines i { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--color-text-body) 13%, transparent); }
.docfan__lines i:nth-child(2) { width: 82%; }
.docfan__lines i:nth-child(3) { width: 58%; }
.docfan__check {
  margin-top: var(--space-1); justify-self: start;
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--green-600);
}
.docfan__check em { font-style: normal; }
.docfan__check svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: color-mix(in srgb, var(--green-600) 15%, transparent); }

/* Boutons sur fond sombre */
.page-hero .btn--primary, .page-hero .btn--accent { background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); color: #fff; box-shadow: 0 14px 34px -12px rgba(19, 168, 173, 0.55); }
.page-hero .btn--primary:hover, .page-hero .btn--accent:hover { filter: brightness(1.07); transform: translateY(-1px); }
.page-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: transparent; }
.page-hero .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
/* Fil d'ariane (sur fond sombre) */
.breadcrumb { font-size: var(--fs-body-sm); color: var(--teal-200); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--cyan-400); }

/* ---------- Témoignage ---------- */
.quote { max-width: 52rem; margin-inline: auto; text-align: center; }
.quote blockquote { font-size: var(--fs-h5); line-height: var(--lh-heading); color: var(--color-text); font-weight: var(--fw-medium); letter-spacing: var(--ls-snug); }
.quote figcaption { margin-top: var(--space-6); color: var(--color-text-muted); }
.quote figcaption strong { color: var(--color-text); }
.quote[data-placeholder] blockquote { color: var(--color-text-muted); font-style: italic; }

/* ---------- CTA final ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 1.6vw + 1.5rem, 3.25rem); color: var(--color-text-invert); letter-spacing: var(--ls-tight); text-wrap: balance; }
.cta-band p { margin-top: var(--space-4); color: var(--teal-100); font-size: var(--fs-body-lg); text-wrap: balance; }
.cta-band .hero__cta { justify-content: center; }

/* CTA avec mascotte */
.cta-mascot { display: grid; grid-template-columns: auto 1fr; gap: var(--space-12); align-items: center; }
.cta-mascot__img { width: 200px; height: auto; filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.4)); }
.cta-band--left { text-align: left; }
.cta-band--left .hero__cta { justify-content: flex-start; }
@media (max-width: 760px) {
  .cta-mascot { grid-template-columns: 1fr; justify-items: center; gap: var(--space-6); }
  .cta-mascot__img { width: 140px; }
  .cta-band--left { text-align: center; }
  .cta-band--left .hero__cta { justify-content: center; }
}

/* CTA finale — bold drenché (cohérent avec le hero) */
.section--brand:has(.cta-band) {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(158deg, var(--teal-700) 0%, var(--teal-800) 100%);
}
.section--brand:has(.cta-band)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(820px 440px at 15% -25%, rgba(19, 168, 173, 0.26), transparent 60%),
    radial-gradient(720px 480px at 100% 125%, rgba(46, 115, 112, 0.40), transparent 55%);
}
.section--brand:has(.cta-band) .btn--on-brand { background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); color: #fff; box-shadow: 0 14px 34px -12px rgba(19, 168, 173, 0.5); }
.section--brand:has(.cta-band) .btn--on-brand:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* Bande chiffres — bold drenché (même langage que le hero) */
.section--brand:has(.stats) {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(158deg, var(--teal-900) 0%, var(--teal-950) 100%);
}
.section--brand:has(.stats)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(820px 440px at 85% -25%, rgba(19, 168, 173, 0.26), transparent 60%),
    radial-gradient(720px 480px at 0% 125%, rgba(46, 115, 112, 0.40), transparent 55%);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: var(--teal-100); padding-block: var(--space-20) var(--space-8); }
.site-footer a { color: var(--teal-100); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-10); }
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: var(--space-4); font-size: var(--fs-body-sm); color: var(--teal-200); max-width: 24rem; }
.footer-col h4 { color: var(--white); font-size: var(--fs-body-sm); letter-spacing: var(--ls-caps); text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-col ul { display: grid; gap: var(--space-3); font-size: var(--fs-body-sm); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--teal-900); font-size: var(--fs-body-sm); color: var(--teal-200); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }

/* ---------- Bannière cookies ---------- */
.cookie {
  position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 150;
  max-width: 560px; margin-inline: auto;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-5);
  display: none;
}
.cookie.is-visible { display: block; }
.cookie p { font-size: var(--fs-body-sm); color: var(--color-text-body); }
.cookie p a { color: var(--color-accent-strong); text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.cookie__actions .btn { flex: 1 1 auto; }

/* ---------- Utilitaires ---------- */
.stack > * + * { margin-top: var(--space-4); }
.center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb { margin-bottom: var(--space-6); }

/* ---------- Révélation au défilement ----------
   Le contenu est visible par défaut. Seul l'état « pending » (posé par JS
   uniquement sur les éléments sous la ligne de flottaison, et jamais en rendu
   caché/headless) masque temporairement, puis se lève au scroll. Aucune
   section ne peut donc rester blanche. */
.reveal { transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.pending { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pending { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- Chips alignés à gauche ---------- */
.chip-list--start { justify-content: flex-start; }

/* ---------- Contact & formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: var(--space-16); align-items: start; }
.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--color-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: var(--space-3) var(--space-4); font: inherit; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: var(--shadow-focus); }
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-muted); opacity: 1; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: var(--space-3); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; }
.field--check label { font-weight: var(--fw-regular); color: var(--color-text-body); font-size: var(--fs-body-sm); }
.form-error { color: var(--color-danger); font-size: var(--fs-body-sm); min-height: 1.2em; }
.form-success { background: var(--color-accent-soft); border: 1px solid var(--color-accent); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8); text-align: center; }
.form-success h2 { color: var(--color-text); font-size: var(--fs-h5); }
.form-success p { margin-top: var(--space-3); color: var(--color-text-body); }

/* Panneau « Nous joindre » : une seule carte au vert de marque, tout en blanc dessus */
.info-panel {
  display: grid; gap: var(--space-8); background: linear-gradient(158deg, var(--teal-900) 0%, var(--teal-950) 100%);
  color: var(--color-text-invert); border-radius: var(--radius-xl);
  padding: var(--space-8); box-shadow: var(--shadow-lg);
}
.info-block h3 { font-size: var(--fs-h6); margin-bottom: var(--space-3); color: var(--color-text-invert); }
.info-block p { color: var(--teal-100); }
.info-list { display: grid; gap: var(--space-4); }
.info-list dt { font-size: var(--fs-caption); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--teal-100); }
.info-list dd { margin: 2px 0 0; color: var(--color-text-invert); }
.info-card { padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.16); }

/* Contact : états de champ + validation guidée */
.field__error { font-size: var(--fs-caption); color: var(--color-danger); }
.field__error:empty { display: none; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--color-danger); }
.field--error input:focus, .field--error select:focus, .field--error textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-danger) 22%, transparent); }
.field--valid input, .field--valid select, .field--valid textarea { border-color: color-mix(in srgb, var(--color-success) 55%, var(--color-border)); }
.field--check .field__error { grid-column: 1 / -1; }
.form-note { font-size: var(--fs-caption); color: var(--color-text-muted); }
.form-actions { margin-top: var(--space-2); }
.form-card button[type="submit"][disabled] { opacity: 0.72; cursor: progress; }
.form-trust { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.form-trust li { display: inline-flex; align-items: center; gap: 0.4em; font-size: var(--fs-caption); color: var(--color-text-body); }
.form-trust svg { width: 15px; height: 15px; color: var(--color-success); flex: 0 0 auto; }

/* Contact : coordonnées avec icônes + localisation (blanc sur vert, voir .info-panel) */
.info-row { display: flex; align-items: flex-start; gap: var(--space-3); }
.info-row__ic { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.14); color: var(--color-text-invert); }
.info-row__ic svg { width: 18px; height: 18px; }
.info-row__txt dt { font-size: var(--fs-caption); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--teal-100); }
.info-row__txt dd { margin: 2px 0 0; color: var(--color-text-invert); }
.info-row__txt dd a { color: var(--color-text-invert); font-weight: var(--fw-medium); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.5); }
.info-row__txt dd a:hover { text-decoration-color: var(--color-text-invert); }
.info-loc { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.info-loc__ic { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--color-text-invert); }
.info-loc__ic svg { width: 20px; height: 20px; }
.info-loc > div strong { display: block; color: var(--color-text-invert); font-size: var(--fs-body); }
.info-loc > div span { display: block; margin-top: 2px; font-size: var(--fs-body-sm); color: var(--teal-100); }

/* Contact : hero « 3 étapes » (fond sombre) */
.contact-steps__title { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--ls-caps); font-weight: var(--fw-semibold); color: var(--teal-200); margin-bottom: var(--space-5); }
.contact-steps__list { list-style: none; display: grid; gap: var(--space-5); }
.contact-steps__item { position: relative; display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-steps__item:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: calc(-1 * var(--space-5)); width: 2px; background: rgba(255, 255, 255, 0.14); }
.contact-steps__num { position: relative; z-index: 1; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: var(--fw-bold); font-size: var(--fs-body-sm); color: #fff; background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); box-shadow: 0 8px 20px -8px rgba(19, 168, 173, 0.6); }
.contact-steps__body { display: grid; gap: 3px; padding-top: 4px; }
.contact-steps__body strong { color: #fff; font-size: var(--fs-body); }
.contact-steps__body span { color: var(--teal-100); font-size: var(--fs-body-sm); line-height: var(--lh-body); }

/* Contact : hero — mini-conversation */
.contact-chat { max-width: 420px; margin-inline: auto; background: var(--color-surface); border-radius: var(--radius-xl); padding: var(--space-5); box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05); }
.contact-chat__head { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.contact-chat__avatar { position: relative; flex: 0 0 auto; }
.contact-chat__avatar img { width: 42px; height: 42px; border-radius: 50%; display: block; background: var(--color-accent-soft); object-fit: cover; }
.contact-chat__dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--green-500); border: 2px solid var(--color-surface); }
.contact-chat__id strong { display: block; color: var(--color-text); font-size: var(--fs-body); }
.contact-chat__id span { font-size: var(--fs-caption); color: var(--color-text-muted); }
.contact-chat__thread { display: grid; gap: var(--space-3); padding-top: var(--space-4); }
.chat-bubble { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); font-size: var(--fs-body-sm); line-height: var(--lh-body); max-width: 88%; }
.chat-bubble--you { justify-self: end; background: var(--color-accent); color: var(--color-accent-contrast); border-bottom-right-radius: 4px; }
.chat-bubble--demeris { justify-self: start; background: var(--color-surface-inset); color: var(--color-text-body); border-bottom-left-radius: 4px; }
.chat-typing { justify-self: start; display: inline-flex; gap: 4px; padding: var(--space-3) var(--space-4); background: var(--color-surface-inset); border-radius: var(--radius-lg); border-bottom-left-radius: 4px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-muted); opacity: 0.5; }

/* FAQ — accordéon animé */
.faq-list { margin-inline: auto; }
.faq2 { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); overflow: hidden; transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.faq2:hover { border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); }
.faq2.is-open { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.faq2__q { width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5); background: none; border: 0; font: inherit; text-align: left; font-weight: var(--fw-semibold); color: var(--color-text); }
.faq2__q:hover { color: var(--color-accent-strong); }
.faq2__ic { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent-strong); transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.faq2__ic svg { width: 16px; height: 16px; }
.faq2.is-open .faq2__ic { transform: rotate(180deg); background: var(--color-accent); color: var(--color-accent-contrast); }
.faq2__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease-out-expo); }
.faq2.is-open .faq2__a { grid-template-rows: 1fr; }
.faq2__inner { overflow: hidden; }
.faq2__inner p { margin: 0; padding: 0 var(--space-5) var(--space-5); color: var(--color-text-body); font-size: var(--fs-body-sm); line-height: var(--lh-body); }
@media (prefers-reduced-motion: reduce) { .faq2__a, .faq2__ic { transition: none; } }

/* À propos : carte d'identité (hero) */
.idcard { max-width: 400px; margin-inline: auto; background: var(--color-surface); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05); }
.idcard__head { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-border); }
.idcard__logo { width: 53px; height: 53px; border-radius: var(--radius-md); display: block; object-fit: contain; }
.idcard__id strong { display: block; font-size: var(--fs-h6); color: var(--color-text); letter-spacing: var(--ls-tight); }
.idcard__id span { font-size: var(--fs-body-sm); color: var(--color-text-muted); }
.idcard__points { list-style: none; display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.idcard__points li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-body-sm); color: var(--color-text-body); font-weight: var(--fw-medium); }
.idcard__ic { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent-strong); }
.idcard__ic svg { width: 18px; height: 18px; }

/* À propos : histoire (constat → choix) */
.story2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-6); align-items: stretch; }
.story2__panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.story2__panel--accent { background: var(--color-surface); border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.story2__label { display: inline-block; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--ls-caps); font-weight: var(--fw-semibold); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.story2__panel--accent .story2__label { color: var(--color-accent-strong); }
.story2__panel p { color: var(--color-text-body); font-size: var(--fs-body); line-height: var(--lh-relaxed); }
.story2__arrow { align-self: center; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-accent); color: #fff; box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--color-accent) 60%, transparent); }
.story2__arrow svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .story2 { grid-template-columns: 1fr; gap: var(--space-4); }
  .story2__arrow { transform: rotate(90deg); justify-self: center; }
}

/* À propos : bloc éditeur (Devillard) */
.editor-card { display: flex; align-items: flex-start; gap: var(--space-5); max-width: 760px; margin-inline: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.editor-card__ic { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-lg); background: var(--color-accent-soft); color: var(--color-accent-strong); }
.editor-card__ic svg { width: 26px; height: 26px; }
.editor-card__body h3 { font-size: var(--fs-h6); }
.editor-card__body p { margin-top: var(--space-3); color: var(--color-text-body); }
.editor-card__body .link-arrow { margin-top: var(--space-4); }
@media (max-width: 560px) { .editor-card { flex-direction: column; } }

/* À propos : manifeste */
.manifesto { max-width: 60rem; margin-inline: auto; text-align: center; }
.manifesto__text { margin-top: var(--space-5); font-size: clamp(1.5rem, 2.2vw + 1rem, 2.25rem); line-height: 1.35; letter-spacing: var(--ls-tight); color: var(--color-text); font-weight: var(--fw-medium); text-wrap: balance; }
.manifesto__pillars { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin: var(--space-8) auto 0; max-width: 52rem; text-align: left; }
.manifesto__pillars li { display: grid; gap: 4px; padding-top: var(--space-4); border-top: 2px solid var(--color-accent); }
.manifesto__pillars strong { font-size: var(--fs-h6); color: var(--color-text); }
.manifesto__pillars span { font-size: var(--fs-body-sm); color: var(--color-text-body); line-height: var(--lh-body); }
@media (max-width: 640px) { .manifesto__pillars { grid-template-columns: 1fr; gap: var(--space-4); } }

/* À propos : manifeste illustré (image + texte, plus humain qu'un bloc de texte seul) */
.manifesto--split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-12); align-items: center; max-width: 68rem; text-align: left; }
.manifesto--split .manifesto__text { margin-top: 0; }
.manifesto__img { width: 100%; height: 100%; max-height: 23.4rem; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
@media (max-width: 760px) {
  .manifesto--split { grid-template-columns: 1fr; text-align: center; gap: var(--space-6); }
  .manifesto__img { max-height: 16.2rem; }
  .manifesto--split .manifesto__text { margin-top: var(--space-5); }
}

/* À propos : histoire — photo d'ambiance au-dessus des panneaux constat/choix */
.story-img { display: block; width: 100%; height: auto; max-height: 22rem; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); margin-bottom: var(--space-10); }

/* À propos : bande « ancrage suisse » (fond clair, teinté à la couleur d'accent — pour alterner avec le CTA final, sombre) */
.anchor { background: var(--color-accent-soft); color: var(--color-text); }
.anchor__layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.anchor__img { width: 100%; height: 100%; max-height: 22rem; object-fit: cover; border-radius: var(--radius-xl); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.25); }
.anchor__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.anchor__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-accent-strong); box-shadow: var(--shadow-sm); margin-bottom: var(--space-4); }
.anchor__ic svg { width: 24px; height: 24px; }
.anchor__item h3 { color: var(--color-text); font-size: var(--fs-h6); }
.anchor__item p { margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--fs-body-sm); line-height: var(--lh-body); }
@media (max-width: 900px) { .anchor__layout { grid-template-columns: 1fr; gap: var(--space-8); } .anchor__img { max-height: 16rem; } }
@media (max-width: 520px) { .anchor__grid { grid-template-columns: 1fr; } }

/* Overdrive À propos : manifeste qui s'illumine à la lecture */
.mf-lit .mf-word { color: color-mix(in srgb, var(--color-text) 26%, transparent); transition: color 0.5s var(--ease-out); }
.mf-lit .mf-word.is-lit { color: var(--color-text); }

/* Overdrive À propos : lueur ambiante derrière la bande « ancrage suisse » */
.anchor { position: relative; overflow: hidden; }
.anchor > .container { position: relative; z-index: 1; }
.anchor::before { content: ""; position: absolute; left: 6%; top: -22%; width: 55%; padding-bottom: 55%; border-radius: 50%; background: radial-gradient(closest-side, rgba(19, 168, 173, 0.16), transparent 72%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes anchor-drift { from { transform: translate(-8%, -6%) scale(1); } to { transform: translate(16%, 12%) scale(1.14); } }
  .anchor::before { animation: anchor-drift 15s ease-in-out infinite alternate; }
}

.editor-card { align-items: center; }
.editor-card__ic { width: 58px; height: 58px; background: linear-gradient(140deg, var(--teal-500), var(--teal-700)); color: #fff; box-shadow: 0 12px 26px -12px rgba(15, 46, 48, 0.5); }
.editor-card__ic svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes chat-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
  .chat-typing span { animation: chat-typing 1.2s var(--ease-out) infinite; }
  .chat-typing span:nth-child(2) { animation-delay: 0.15s; }
  .chat-typing span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .chat-bubble--you { animation: chat-in 0.5s var(--ease-out-expo) 0.2s both; }
  .chat-typing { animation: chat-in 0.4s var(--ease-out) 0.7s both; }
  .chat-bubble--demeris { animation: chat-in 0.5s var(--ease-out-expo) 1.7s both; }
}
@media (prefers-reduced-motion: no-preference) {
  .contact-steps__item { animation: rise-in 0.6s var(--ease-out-expo) both; }
  .contact-steps__item:nth-child(1) { animation-delay: 0.16s; }
  .contact-steps__item:nth-child(2) { animation-delay: 0.29s; }
  .contact-steps__item:nth-child(3) { animation-delay: 0.42s; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--space-3); max-width: var(--container-narrow); }
.faq { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); background: var(--color-surface); }
.faq summary { cursor: pointer; font-weight: var(--fw-semibold); color: var(--color-text); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-accent-strong); font-size: var(--fs-h6); line-height: 1; }
.faq[open] summary::after { content: "\2013"; }
.faq p { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--fs-body-sm); }

/* ---------- Blog ---------- */
.blog-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.chip--filter { cursor: pointer; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-body); font-weight: var(--fw-medium); transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), transform 0.12s var(--ease-out); }
.chip--filter:hover { border-color: var(--color-accent); color: var(--color-text); }
.chip--filter:active { transform: scale(0.95); }
.chip--filter.is-active { background: var(--color-accent); color: var(--color-accent-contrast); border-color: transparent; }
.post-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.post-card__body { padding: var(--space-5); display: grid; gap: var(--space-2); }
.post-card__meta { font-size: var(--fs-caption); color: var(--color-text-muted); }
.post-card__body h3 { font-size: var(--fs-h6); text-wrap: balance; }
.post-card__body p { font-size: var(--fs-body-sm); color: var(--color-text-muted); }
.post-card__body .link-arrow { margin-top: var(--space-2); }
.blog-empty { color: var(--color-text-muted); }

/* Vignette catégorielle partagée (cartes + une) : dégradé teinté + filigrane d'icône */
.post-card__media, .blog-feature__media, .article-lead {
  position: relative; display: block; overflow: hidden;
  background: linear-gradient(145deg, var(--cat-a, var(--teal-600)) 0%, var(--teal-950) 100%);
}
.post-card__media--doc, .blog-feature__media--doc, .article-lead--doc { --cat-a: var(--teal-500); }
.post-card__media--conformite, .blog-feature__media--conformite, .article-lead--conformite { --cat-a: var(--teal-800); }
.post-card__media--produit, .blog-feature__media--produit, .article-lead--produit { --cat-a: var(--cyan-500); }
.post-card__media--facturation, .blog-feature__media--facturation, .article-lead--facturation { --cat-a: var(--green-500); }
.post-card__cat { position: absolute; left: var(--space-4); top: var(--space-4); z-index: 2; font-size: var(--fs-micro); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); color: #fff; background: rgba(12, 38, 40, 0.62); padding: 4px 11px; border-radius: var(--radius-pill); }
.post-card__icon { position: absolute; right: -8px; bottom: -12px; width: 98px; height: 98px; color: #fff; opacity: 0.16; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.post-card__icon svg { width: 100%; height: 100%; }
.post-card:hover .post-card__icon { opacity: 0.24; transform: translateY(-3px) scale(1.04); }
/* Photos d'article (générées, hébergées localement) */
.post-card__img, .article-lead__img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__media .post-card__img { transition: transform 0.5s var(--ease-out); }
.post-card:hover .post-card__media .post-card__img { transform: scale(1.05); }
.blog-feature__media .post-card__img { transform: scale(1.06); transition: transform var(--dur-base) var(--ease-out); }

/* Hero Blog : pile flottante de cartes d'article */
.bloghero { position: relative; height: 380px; }
.bloghero__card {
  position: absolute; left: 50%; top: 50%; width: 300px;
  background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(15, 46, 48, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translate(-50%, -50%) rotate(calc((var(--n) - 1) * 6deg)) translateX(calc((var(--n) - 1) * 52px)) translateY(calc((var(--n) - 1) * 6px));
}
.bloghero__card:nth-child(1) { z-index: 1; }
.bloghero__card:nth-child(2) { z-index: 3; }
.bloghero__card:nth-child(3) { z-index: 2; }
.bloghero__thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(140deg, var(--teal-600), var(--teal-950)); }
.bloghero__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bloghero__cat { position: absolute; left: var(--space-3); top: var(--space-3); font-size: var(--fs-micro); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); color: #fff; background: rgba(12, 38, 40, 0.62); padding: 3px 9px; border-radius: var(--radius-pill); }
.bloghero__body { display: block; padding: var(--space-4); }
.bloghero__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--color-text); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
@media (max-width: 960px) { .bloghero { height: 340px; } }
@media (max-width: 640px) { .bloghero { height: 300px; transform: scale(0.82); } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes bloghero-in { from { opacity: 0; } to { opacity: 1; } }
  .bloghero { animation: mock-float 8s var(--ease-out) 0.8s infinite; }
  .bloghero__card { animation: bloghero-in 0.6s var(--ease-out) both; }
  .bloghero__card:nth-child(1) { animation-delay: 0.30s; }
  .bloghero__card:nth-child(2) { animation-delay: 0.14s; }
  .bloghero__card:nth-child(3) { animation-delay: 0.46s; }
}

/* Article à la une */
.blog-feature { display: grid; grid-template-columns: 1.05fr 0.95fr; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: var(--space-10); transition: box-shadow var(--dur-base) var(--ease-out); }
.blog-feature:hover { box-shadow: var(--shadow-md); }
.blog-feature__media { min-height: 320px; }
.blog-feature__media .post-card__cat { left: var(--space-5); top: var(--space-5); }
.blog-feature__media .post-card__icon { width: 176px; height: 176px; right: -14px; bottom: -22px; opacity: 0.18; }
.blog-feature:hover .post-card__icon { opacity: 0.26; transform: translateY(-4px) scale(1.04); }
.blog-feature__body { padding: var(--space-10) var(--space-10) var(--space-10) var(--space-12); display: grid; align-content: center; gap: var(--space-3); }
.blog-feature__meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: var(--fs-caption); color: var(--color-text-muted); }
.blog-feature__flag { font-size: var(--fs-micro); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--color-accent-strong); background: var(--color-accent-soft); padding: 3px 10px; border-radius: var(--radius-pill); }
.blog-feature__sep { color: var(--color-border-strong); }
.blog-feature__body h2 { font-size: var(--fs-h3); letter-spacing: var(--ls-tight); text-wrap: balance; }
.blog-feature__excerpt { font-size: var(--fs-body-lg); color: var(--color-text-body); max-width: 42rem; }
.blog-feature__body .link-arrow { margin-top: var(--space-2); }
@media (max-width: 760px) {
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature__media { min-height: 190px; aspect-ratio: 16 / 9; }
  .blog-feature__body { padding: var(--space-8) var(--space-6); }
}

/* ---------- Article ---------- */
.article { max-width: var(--container-narrow); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-5); font-size: var(--fs-body-sm); color: var(--color-text-muted); }
.article__meta .chip { background: var(--color-accent-soft); color: var(--color-accent-strong); border-color: transparent; font-weight: var(--fw-semibold); }
.article__body { margin-top: 0; }
.article__body p { margin-bottom: var(--space-5); color: var(--color-text-body); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }

/* ---------- Page article : gabarit de lecture ---------- */
.article-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101; background: var(--color-accent); transform: scaleX(0); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) { .article-progress { transition: transform 0.1s linear; } html { scroll-behavior: smooth; } }

.article-layout { display: grid; grid-template-columns: minmax(0, 70ch) 240px; gap: var(--space-12); justify-content: center; align-items: start; }
.article-main { min-width: 0; }
.article-lead { height: 220px; border-radius: var(--radius-lg); margin-bottom: var(--space-8); }
.article-lead .post-card__icon { width: 150px; height: 150px; right: -12px; bottom: -18px; opacity: 0.2; }
.article-sec { scroll-margin-top: 92px; }
.article-sec + .article-sec { margin-top: var(--space-8); }
.article-sec h2 { font-size: var(--fs-h4); letter-spacing: var(--ls-tight); margin-bottom: var(--space-4); text-wrap: balance; }
.article-quote { margin: var(--space-10) 0; font-size: var(--fs-h5); line-height: 1.4; font-weight: var(--fw-medium); color: var(--color-text); }
.article-quote::before { content: "\201C"; display: block; font-family: Georgia, "Times New Roman", serif; font-size: 3.5rem; line-height: 0.6; color: var(--color-accent); margin-bottom: var(--space-2); }

.article-author { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.article-author__avatar { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent-soft); color: var(--color-accent-strong); font-weight: var(--fw-bold); }
.article-author__txt { display: grid; gap: 2px; }
.article-author__txt strong { color: var(--color-text); }
.article-author__txt span { font-size: var(--fs-body-sm); color: var(--color-text-muted); }
.article-back { margin-top: var(--space-8); }

.article-aside { position: sticky; top: 92px; align-self: start; display: grid; gap: var(--space-8); }
.article-toc__label, .article-share__label { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--ls-caps); font-weight: var(--fw-semibold); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.article-toc ul { display: grid; gap: 2px; }
.article-toc a { position: relative; display: block; padding: 6px 0 6px var(--space-5); font-size: var(--fs-body-sm); color: var(--color-text-muted); line-height: var(--lh-snug); transition: color var(--dur-base) var(--ease-out); }
.article-toc a::before { content: ""; position: absolute; left: 0; top: 0.86em; width: 7px; height: 7px; border-radius: 50%; background: var(--color-border-strong); transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.article-toc a:hover { color: var(--color-text); }
.article-toc a.is-active { color: var(--color-text); font-weight: var(--fw-semibold); }
.article-toc a.is-active::before { background: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.article-share__btns { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.article-share__btn { cursor: pointer; font: inherit; font-size: var(--fs-body-sm); font-weight: var(--fw-medium); padding: 6px 13px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text-body); text-decoration: none; transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.article-share__btn:hover { border-color: var(--color-accent); color: var(--color-text); }
.article-share__btn.is-copied { border-color: var(--color-accent); color: var(--color-accent-strong); }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .article-aside { position: static; }
  .article-toc { display: none; }
}

/* ---------- Page 404 ---------- */
.notfound { text-align: center; padding-block: var(--space-32) var(--space-24); }
.notfound__code { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(3.5rem, 11vw, 6rem); line-height: 1; letter-spacing: var(--ls-tight); color: var(--color-accent-strong); }
.notfound h1 { font-size: var(--fs-h2); margin-top: var(--space-4); }
.notfound p { max-width: 46ch; margin: var(--space-5) auto 0; color: var(--color-text-body); font-size: var(--fs-body-lg); }
.notfound .btn { margin-top: var(--space-8); }

/* ---------- Pages légales ---------- */
.prose { max-width: var(--container-narrow); }
.legal-note { background: var(--color-accent-soft); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); color: var(--color-text-body); font-size: var(--fs-body-sm); margin-bottom: var(--space-10); }
.legal-block + .legal-block { margin-top: var(--space-8); }
.legal-block h2 { font-size: var(--fs-h5); margin-bottom: var(--space-3); }
.legal-block p { color: var(--color-text-body); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .page-hero__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .docfan { height: 340px; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-10); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); justify-self: center; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  :root { --fs-h1: 2.5rem; --fs-h2: 2rem; --fs-h3: 1.75rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .docfan { height: 300px; transform: scale(0.82); }
}

/* Menu mobile ouvert */
body.nav-open .main-nav {
  display: flex; position: fixed; top: var(--header-height); left: 0; right: 0; z-index: 90;
  /* hauteur explicite en unités viewport plutôt que "bottom:0" : le site-header a un
     backdrop-filter, qui crée un containing block dont la hauteur n'est pas définie pour
     un descendant fixed — "top+bottom" s'effondre alors à la hauteur du contenu. */
  height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height));
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--color-surface); padding: var(--space-4); overflow-y: auto;
}
body.nav-open .main-nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: var(--space-4); }
body.nav-open .main-nav__item { border-bottom: 1px solid var(--color-border); }
body.nav-open .main-nav__actions {
  flex-direction: column; align-items: stretch; gap: var(--space-4);
  margin-top: var(--space-4); margin-inline-start: 0; padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
body.nav-open .main-nav__actions .btn { width: 100%; justify-content: center; }
body.nav-open .main-nav__actions .lang { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
