/* =========================================================================
   OpenTahr — design system v2 « premium »
   Éditorial monochrome. Fraunces (display) · Hanken Grotesk (texte).
   Clair / sombre. Grain photographique. Filets fins. Numéraux fantômes.
   ========================================================================= */

/* ---------- Polices auto-hébergées (variables, woff2) ----------
   Zéro requête vers Google : performance (LCP) + conformité RGPD. */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-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: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-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;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-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;
}

/* ---------- Tokens ---------- */
:root {
  /* Neutres tintés chaud (jamais de noir/blanc purs) */
  --paper:        oklch(0.985 0.004 80);
  --paper-2:      oklch(0.962 0.005 80);
  --ink:          oklch(0.195 0.012 70);
  --ink-2:        oklch(0.195 0.012 70 / 0.72);
  --ink-3:        oklch(0.195 0.012 70 / 0.64); /* 5,4:1 sur --paper, 5,3:1 sur --paper-2 (AA) */
  --ink-ghost:    oklch(0.195 0.012 70 / 0.07);
  --line:         oklch(0.195 0.012 70 / 0.13);
  --line-strong:  oklch(0.195 0.012 70 / 0.32);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.12vw, 0.88rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.3rem);
  --step-3:  clamp(2.2rem, 1.7rem + 2.4vw, 3.8rem);
  --step-4:  clamp(2.9rem, 1.9rem + 5.2vw, 6.6rem);

  /* Espace */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 2.75rem);
  --sp-section: clamp(5rem, 3.5rem + 8vw, 11rem);

  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --paper:        oklch(0.16 0.007 75);
  --paper-2:      oklch(0.2 0.008 75);
  --ink:          oklch(0.94 0.007 85);
  --ink-2:        oklch(0.94 0.007 85 / 0.74);
  --ink-3:        oklch(0.94 0.007 85 / 0.60);
  --ink-ghost:    oklch(0.94 0.007 85 / 0.07);
  --line:         oklch(0.94 0.007 85 / 0.13);
  --line-strong:  oklch(0.94 0.007 85 / 0.3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        oklch(0.16 0.007 75);
    --paper-2:      oklch(0.2 0.008 75);
    --ink:          oklch(0.94 0.007 85);
    --ink-2:        oklch(0.94 0.007 85 / 0.74);
    --ink-3:        oklch(0.94 0.007 85 / 0.60);
    --ink-ghost:    oklch(0.94 0.007 85 / 0.07);
    --line:         oklch(0.94 0.007 85 / 0.13);
    --line-strong:  oklch(0.94 0.007 85 / 0.3);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; } /* en-tête collant 71px : un élément focalisé n'est jamais masqué (WCAG 2.4.11) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* Polices variables servies en plage continue : aucune graisse synthétisée
     (sinon Chrome/Firefox fabriquent des gras différents → rendu non identique) */
  font-synthesis: none;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  transition: background-color .45s var(--ease), color .45s var(--ease);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

.skip {
  position: fixed; top: -100px; left: 1rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------- Grain photographique (très subtil) ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .035; mix-blend-mode: multiply;
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .05; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; opacity: .05; } }

main, header, footer { position: relative; z-index: 2; }

/* ---------- Typo helpers ---------- */
.eyebrow {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-2);
}
.eyebrow-rule { display: flex; align-items: center; gap: .9rem; }
.eyebrow-rule::before { content: ""; width: 2.2rem; height: 1px; background: var(--ink); flex: none; }
.eyebrow-no { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-right: .15rem; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 380; line-height: 1.02; letter-spacing: -0.022em; }
h1 em, h2 em { font-style: italic; font-weight: 340; }
.section-title { font-size: var(--step-3); margin-top: 1rem; text-wrap: balance; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.8rem, 1.5rem + 4vw, 5.5rem); }

/* ---------- Boutons ---------- */
.btn {
  --b-pad-y: .7rem; --b-pad-x: 1.25rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: .01em;
  padding: var(--b-pad-y) var(--b-pad-x); border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.btn-lg { --b-pad-y: .95rem; --b-pad-x: 1.7rem; font-size: var(--step-0); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { transform: translateY(-2px); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost { color: var(--ink-2); padding-inline: .65rem; }
.btn-ghost:hover { color: var(--ink); }
.btn-arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn-arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color .45s var(--ease);
}
.head-inner { display: flex; align-items: center; gap: 1.6rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; }
.brand-word { font-size: 1.06rem; letter-spacing: -0.01em; position: relative; }
.brand-beta {
  position: absolute; top: -2px; right: -2.4rem;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: .68rem; letter-spacing: .02em; color: var(--ink-3); text-transform: lowercase;
}
.brand-mark { color: var(--ink); }
.nav { display: flex; gap: 1.8rem; margin-inline: auto; font-size: var(--step--1); font-weight: 500; }
.nav a { color: var(--ink-2); position: relative; padding-block: .35rem; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.head-actions { display: flex; align-items: center; gap: .55rem; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); cursor: pointer;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(15deg); }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: block; }
}

/* ---------- Menu mobile ---------- */
.menu-toggle {
  display: none; place-items: center; width: 36px; height: 36px; flex: none;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); cursor: pointer;
  transition: border-color .25s var(--ease);
}
.menu-toggle:hover { border-color: var(--ink); }
.menu-toggle .mt-box { display: grid; gap: 4px; }
.menu-toggle .mt-bar {
  display: block; width: 15px; height: 1.7px; border-radius: 2px;
  background: currentColor; transition: transform .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] .mt-bar:first-child { transform: translateY(2.85px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .mt-bar:last-child { transform: translateY(-2.85px) rotate(-45deg); }

.mobile-nav {
  position: fixed; left: 0; right: 0; top: 71px; bottom: 0; z-index: 49;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 1.4rem clamp(1.2rem, 5vw, 2rem) max(1.6rem, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav > a {
  font-family: var(--serif); font-weight: 360; letter-spacing: -0.02em;
  font-size: clamp(1.55rem, 6vw, 2.1rem); line-height: 1.2;
  color: var(--ink); text-decoration: none;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav > a::after { content: "→"; content: "→" / ""; font-family: var(--sans); font-size: .55em; color: var(--ink-3); transition: transform .3s var(--ease); }
.mobile-nav > a:active::after { transform: translateX(4px); }
.mobile-nav-cta { margin-top: auto; display: grid; gap: .7rem; padding-top: 1.8rem; }
body.menu-open { overflow: hidden; }

/* Apparition en cascade des liens */
.js .mobile-nav > a, .js .mobile-nav .mobile-nav-cta { opacity: 0; transform: translateY(12px); }
.js .mobile-nav.open > a, .js .mobile-nav.open .mobile-nav-cta {
  opacity: 1; transform: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .mobile-nav > a, .js .mobile-nav .mobile-nav-cta { opacity: 1; transform: none; transition: none; }
  .menu-toggle .mt-bar { transition: none; }
}
@media (max-width: 860px) { .menu-toggle { display: inline-grid; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(1.6rem, 1rem + 3vw, 4.5rem); align-items: center;
  /* Le hero occupe seul le 1er écran (header sticky = 71px) ; faits + marquee sous le pli */
  min-height: calc(100svh - 71px);
  padding-block: clamp(1.2rem, 2.4svh, 2.4rem);
}
.hero-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--step--1); font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .42rem 1rem .42rem .75rem;
}
.pill-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ink); position: relative; flex: none; }
.pill-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  border: 1px solid var(--ink-3); animation: pill-pulse 2.4s var(--ease) infinite;
}
@keyframes pill-pulse { 0% { transform: scale(.6); opacity: 1; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.hero-title {
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem); font-weight: 330; margin-top: 1.2rem;
  letter-spacing: -0.03em;
}
.hero-title em { font-weight: 320; }
.hero-sub {
  font-size: clamp(1rem, .95rem + .3vw, 1.18rem); color: var(--ink-2); max-width: 44ch;
  margin-top: 1.1rem; line-height: 1.5; font-weight: 400;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Faits — bandeau 3 colonnes (sous le pli, après le hero) */
.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, .5rem + 2vw, 2.5rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(1.4rem, 1rem + 2vw, 2.4rem);
}
.fact dd { font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); font-weight: 380; letter-spacing: -0.02em; }
.fact dt { font-size: var(--step--1); letter-spacing: .03em; color: var(--ink-3); font-weight: 500; margin-top: .25rem; }

/* ---------- Démo : le Conseil ---------- */
.demo { min-width: 0; margin-top: clamp(1.2rem, 3.4svh, 3rem); }
.demo-frame {
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  background: var(--paper);
  box-shadow:
    0 1px 2px oklch(0.195 0.012 70 / 0.05),
    0 24px 70px -28px oklch(0.195 0.012 70 / 0.28);
}
[data-theme="dark"] .demo-frame { box-shadow: 0 24px 70px -28px oklch(0 0 0 / 0.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demo-frame { box-shadow: 0 24px 70px -28px oklch(0 0 0 / 0.6); } }
.demo-bar {
  display: flex; align-items: center; gap: .9rem;
  padding: .5rem 1rem; border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.demo-dots { display: inline-flex; gap: .35rem; }
.demo-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--ink-3); opacity: .5; }
.demo-url { font-size: .78rem; color: var(--ink-3); letter-spacing: .02em; }
/* Onglets : le Conseil n'est qu'un outil de l'atelier parmi d'autres */
.demo-tabs {
  display: flex; gap: 1.15rem; padding: .55rem 1.15rem 0;
  font-size: .74rem; font-weight: 500; letter-spacing: .02em;
  color: var(--ink-3); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tabs span { padding-bottom: .5rem; position: relative; white-space: nowrap; }
.demo-tabs .on { color: var(--ink); font-weight: 600; }
.demo-tabs .on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--ink);
}
.demo-body { padding: clamp(.8rem, .7rem + .6vw, 1.15rem); display: grid; gap: .65rem; }
.demo-q {
  font-family: var(--serif); font-style: italic; font-size: clamp(.92rem, .88rem + .25vw, 1.05rem);
  color: var(--ink); padding-bottom: .3rem; border-bottom: 1px dashed var(--line-strong);
}
.dmsg { display: flex; gap: .65rem; align-items: flex-start; }
.dav {
  flex: none; width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--serif); font-style: italic; font-size: .8rem; color: var(--ink-2);
  background: var(--paper);
}
.dav-syn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dav-syn svg { color: var(--paper); }
.dmsg-c b { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.dmodel { color: var(--ink-3); font-weight: 500; }
.dmsg-c p { font-size: .83rem; color: var(--ink-2); line-height: 1.45; margin-top: .1rem; max-width: 50ch; }
.dmsg-syn { border-top: 1px solid var(--line); padding-top: .65rem; }
.dmsg-syn .dmsg-c p { color: var(--ink); }
/* Animation en boucle : un seul message net à la fois (focus séquentiel),
   les précédents s'estompent, la synthèse reste nette jusqu'à la fin du cycle */
.js .dmsg { opacity: 0; transform: translateY(8px); animation: dmsg-cycle 12s var(--ease) infinite; animation-delay: calc(0.6s + var(--i) * 2s); }
.js .dmsg-syn { animation-name: dmsg-syn-cycle; }
@keyframes dmsg-cycle {
  0%   { opacity: 0; transform: translateY(8px); }
  4%   { opacity: 1; transform: none; }
  /* plus d'estompage à .45 : le texte restait lisible 50 % du cycle sous 3:1 (WCAG 1.4.3) */
  72%  { opacity: 1; transform: none; }
  80%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes dmsg-syn-cycle {
  0%   { opacity: 0; transform: translateY(8px); }
  4%   { opacity: 1; transform: none; }
  74%  { opacity: 1; transform: none; }
  82%, 100% { opacity: 0; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .dmsg { animation: none; opacity: 1; transform: none; }
  .pill-dot::after { animation: none; opacity: 0; }
}

/* ---------- Marquee fournisseurs (bande premium sous le pli) ---------- */
.marquee-sec { padding-block: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); border-block: 1px solid var(--line); }
.marquee-label {
  text-align: center; font-size: var(--step--1); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: clamp(1.2rem, .8rem + 1.6vw, 2.1rem);
}
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; width: max-content; align-items: center;
  gap: clamp(2.8rem, 1.6rem + 4.5vw, 6rem);
  animation: ot-marquee 54s linear infinite; will-change: transform;
}
.marquee:hover .marquee-track, .marquee-sec:focus-within .marquee-track { animation-play-state: paused; }
.lg {
  display: inline-flex; align-items: center; gap: .85rem; white-space: nowrap;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); font-weight: 500;
  letter-spacing: -0.015em; color: var(--ink);
}
.lg-mark { height: clamp(26px, 22px + .5vw, 34px); width: auto; opacity: .9; }
[data-theme="dark"] .lg-mark { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-mark { filter: invert(1); } }
@keyframes ot-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 1rem; }
  .marquee { -webkit-mask: none; mask: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-section); }

/* ---------- Vidéo de présentation (façade : zéro octet avant le clic) ---------- */
.promo-video {
  margin: 0 0 clamp(3rem, 2rem + 4vw, 5.5rem);
}
.pv-facade {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line-strong); border-radius: calc(var(--radius) * 3);
  background: var(--paper-2); cursor: pointer; overflow: hidden;
  box-shadow: 0 30px 80px -32px oklch(0.195 0.012 70 / 0.35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pv-facade:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 40px 95px -30px oklch(0.195 0.012 70 / 0.45); }
.pv-facade img { width: 100%; height: auto; display: block; }
.pv-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 40px -10px oklch(0.195 0.012 70 / 0.55);
  transition: transform .35s var(--ease);
}
.pv-play svg { margin-left: 3px; }
.pv-facade:hover .pv-play { transform: translate(-50%, -50%) scale(1.08); }
.pv-hint {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  font-size: var(--step--1); font-weight: 600; letter-spacing: .04em;
  color: var(--ink); background: color-mix(in oklch, var(--paper) 88%, transparent);
  border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem;
  backdrop-filter: blur(6px); white-space: nowrap;
}
.pv-hint em { font-style: italic; font-family: var(--serif); color: var(--ink-2); }
.promo-video video {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line-strong); border-radius: calc(var(--radius) * 3);
  background: var(--ink);
}
.pv-caption {
  margin-top: .9rem; font-size: var(--step--1); color: var(--ink-3);
  font-family: var(--serif); font-style: italic;
}
@media (max-width: 640px) {
  .pv-play { width: 3.6rem; height: 3.6rem; }
  .pv-hint { display: none; }
}

/* ---------- Outils : index éditorial ---------- */
.tool-index { counter-reset: tool; }
.tool {
  position: relative;
  display: grid; grid-template-columns: minmax(4.5rem, auto) 1fr auto;
  gap: clamp(1rem, .5rem + 2.5vw, 3.5rem); align-items: center;
  padding-block: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem);
  padding-inline: clamp(.4rem, 1vw, 1.2rem);
  border-top: 1px solid var(--line);
  transition: background-color .35s var(--ease);
}
.tool:last-child { border-bottom: 1px solid var(--line); }
.tool:hover { background: var(--paper-2); }
.tool-no {
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 5rem); line-height: 1;
  color: var(--ink-ghost); letter-spacing: -0.03em;
  transition: color .35s var(--ease);
}
.tool-no::before { content: attr(data-no); } /* numéral décoratif : en CSS, hors du contrôle de contraste du texte */
.tool:hover .tool-no { color: var(--ink-3); }
.tool-body { max-width: 62ch; }
.tool h3 { font-size: var(--step-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.tool-tag {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.tool p { color: var(--ink-2); max-width: 56ch; margin-top: .55rem; }
.tool p strong { color: var(--ink); font-weight: 600; }
.tool-art {
  width: clamp(56px, 4.5vw, 72px); height: auto; color: var(--ink-2);
  justify-self: end; opacity: .55;
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .4s var(--ease);
}
.tool:hover .tool-art { opacity: 1; color: var(--ink); transform: translateY(-3px); }

/* ---------- Le modèle (pourquoi gratuit) ---------- */
.model { border-top: 1px solid var(--line); }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, .5rem + 3vw, 4rem); }
.model-col { border-top: 1px solid var(--line-strong); padding-top: 1.4rem; position: relative; }
.model-no {
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); line-height: 1; color: var(--ink-3);
  display: block; margin-bottom: 1.1rem;
}
.model-col h3 { font-size: var(--step-1); margin-bottom: .55rem; }
.model-col p { color: var(--ink-2); max-width: 38ch; }

/* ---------- Étapes ---------- */
.steps { background: var(--paper-2); border-block: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, .5rem + 3vw, 4rem); }
.step { border-top: 1px solid var(--line-strong); padding-top: 1.4rem; }
.step-no {
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); line-height: 1; color: var(--ink-3);
  display: block; margin-bottom: 1.1rem;
}
.step h3 { font-size: var(--step-1); margin-bottom: .55rem; }
.step p { color: var(--ink-2); max-width: 36ch; }

/* ---------- Sécurité : bloc inversé + schéma ---------- */
.security { background: var(--ink); color: var(--paper); }
.security .eyebrow { color: color-mix(in oklch, var(--paper) 64%, transparent); }
.security .eyebrow-rule::before { background: var(--paper); }
.security .eyebrow-no { color: color-mix(in oklch, var(--paper) 70%, transparent); } /* 45 % : 3:1 à 4,3:1, sous AA */
.security-cols {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 1rem + 5vw, 7rem); align-items: center;
}
.security-inner { max-width: 62rem; }

/* Schéma de flux */
.flow {
  --fl-line: color-mix(in oklch, var(--paper) 26%, transparent);
  --fl-dim:  color-mix(in oklch, var(--paper) 72%, transparent); /* était 55 % : 2,5 à 4:1 */
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 1rem 1.2rem; font-size: var(--step--1);
}
.flow-box {
  border: 1px solid var(--fl-line); border-radius: 10px;
  padding: .95rem 1.15rem; display: grid; gap: .35rem; background: color-mix(in oklch, var(--paper) 4%, transparent);
}
.flow-label { font-weight: 600; letter-spacing: .02em; }
.flow-key { display: inline-flex; align-items: center; gap: .45rem; color: var(--fl-dim); }
.flow-lines { position: relative; display: grid; gap: .85rem; padding-block: .4rem; }
.flow-line { height: 1px; background: var(--fl-line); position: relative; }
.flow-line::after {
  content: ""; position: absolute; right: -1px; top: -2.5px;
  border-left: 6px solid var(--fl-line); border-block: 3px solid transparent;
}
.flow-line::before {
  content: ""; position: absolute; left: 0; top: -0.5px; height: 2px; width: 22%;
  background: var(--paper); opacity: .8;
  animation: flow-pulse 2.8s linear infinite;
}
.flow-line:nth-child(2)::before { animation-delay: .9s; }
.flow-line:nth-child(3)::before { animation-delay: 1.8s; }
@keyframes flow-pulse { 0% { left: 0; opacity: 0; } 12% { opacity: .85; } 88% { opacity: .85; } 100% { left: 78%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow-line::before { animation: none; opacity: 0; } }
.flow-arrowtxt {
  position: absolute; top: -1.25rem; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; color: var(--fl-dim); font-size: .8rem; white-space: nowrap;
}
.flow-providers { display: grid; gap: .55rem; }
.flow-providers li { font-weight: 500; color: color-mix(in oklch, var(--paper) 82%, transparent); }
.flow-out { grid-column: 1 / 2; justify-self: center; padding-block: .15rem; }
.flow-deadline { display: block; width: 1px; height: 2rem; background: repeating-linear-gradient(to bottom, var(--fl-line) 0 4px, transparent 4px 8px); margin-inline: auto; }
.flow-server { grid-column: 1 / 4; border-style: dashed; } /* opacité retirée : elle faisait tomber le texte sous 3:1 */
.flow-zero { color: var(--fl-dim); font-family: var(--serif); font-style: italic; }
.security-title { font-size: var(--step-3); margin-top: 1rem; text-wrap: balance; color: var(--paper); }
.security-text {
  font-size: var(--step-1); color: color-mix(in oklch, var(--paper) 72%, transparent);
  margin-top: 1.8rem; line-height: 1.55; max-width: 56ch;
}
.security-text em { color: var(--paper); }
.security-points { margin-top: 2.6rem; display: grid; gap: 0; max-width: 46rem; }
.security-points li {
  display: flex; gap: 1.1rem; align-items: baseline;
  padding-block: 1.05rem; font-weight: 500;
  border-top: 1px solid color-mix(in oklch, var(--paper) 18%, transparent);
}
.security-points li:last-child { border-bottom: 1px solid color-mix(in oklch, var(--paper) 18%, transparent); }
.sp-no { font-family: var(--serif); font-style: italic; color: color-mix(in oklch, var(--paper) 70%, transparent); }

/* ---------- Tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, .4rem + 1.6vw, 1.6rem); align-items: stretch; }
.plan {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 3);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1.05rem;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.plan-now { border-color: var(--ink); }
.plan-now:hover { border-color: var(--ink); }
.plan header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan h3 { font-size: var(--step-2); font-weight: 380; }
.plan-price { font-family: var(--serif); font-style: italic; font-size: var(--step-1); white-space: nowrap; }
.plan-price small { font-size: .62em; color: var(--ink-3); font-family: var(--sans); font-style: normal; }
.plan-tag { font-size: var(--step--1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.plan-tag.muted { color: var(--ink-3); }
.plan ul { display: grid; gap: 0; margin-block: .3rem auto; }
.plan li {
  color: var(--ink-2); font-size: var(--step--1); padding-block: .68rem;
  border-top: 1px solid var(--line);
}
.plan li:last-child { border-bottom: 1px solid var(--line); }
.plan .btn { margin-top: .9rem; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-fine { text-align: center; color: var(--ink-3); font-size: var(--step--1); max-width: 64ch; margin: 1.4rem auto 0; }

/* Bascule mensuel / annuel */
.bill-switch { display: flex; width: fit-content; margin: 0 auto clamp(1.4rem, 3vw, 2.2rem); gap: .25rem; padding: .25rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.bill-opt { border: none; background: none; font: inherit; font-size: var(--step--1); color: var(--ink-2); padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; transition: background .2s var(--ease), color .2s var(--ease); }
.bill-opt.is-on { background: var(--ink); color: var(--paper); }
.bill-save { font-size: .72em; font-weight: 700; letter-spacing: .02em; }
.bill-opt:not(.is-on) .bill-save { color: var(--ok); }

/* Affichage du prix selon la facturation */
.plans[data-bill="monthly"] .price-a, .plans[data-bill="monthly"] .price-l { display: none; }
.plans[data-bill="annual"] .price-m, .plans[data-bill="annual"] .price-l { display: none; }
.plans[data-bill="lifetime"] .price-m, .plans[data-bill="lifetime"] .price-a { display: none; }
.btn.is-soon { opacity: .55; cursor: not-allowed; }
.btn.is-soon:hover { transform: none; }
.price-was { font-weight: 600; text-decoration: line-through; color: var(--ink-3); }
.price-note { margin-top: .35rem; font-size: var(--step--1); color: var(--ink-2); }
.price-save { display: inline-block; background: var(--ok); color: #fff; font-size: .76em; font-weight: 700; padding: .08rem .5rem; border-radius: 999px; vertical-align: middle; }

/* Forfait mis en avant */
.plan-feat { border-color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.plan-feat .plan-tag { color: var(--ink); }
@media (max-width: 860px) { .plans-3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 0rem + 5vw, 6rem); align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq-list { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 1.3rem;
  font-size: var(--step-1); font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  transition: color .25s var(--ease);
}
.faq summary:hover { color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; flex: none; width: 14px; height: 14px; }
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--ink-2);
  transition: transform .35s var(--ease), background-color .25s var(--ease);
}
.faq-x::before { width: 14px; height: 1.5px; }
.faq-x::after { width: 1.5px; height: 14px; }
.faq details[open] .faq-x::after { transform: rotate(90deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1.4rem; max-width: 58ch; }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; background: var(--ink); color: var(--paper); overflow: clip; }
.cta-mark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(300px, 38vw, 560px); height: auto;
  color: color-mix(in oklch, var(--paper) 7%, transparent);
  pointer-events: none;
}
.cta-mark * { stroke-width: 1; }
.cta-inner {
  position: relative; padding-block: clamp(4.5rem, 3rem + 8vw, 10rem);
  text-align: center; display: grid; justify-items: center; gap: 1.9rem;
}
.cta-inner h2 { font-size: var(--step-3); color: var(--paper); text-wrap: balance; max-width: 18ch; }
.cta-band .btn-solid { background: var(--paper); color: var(--ink); }
.cta-fine { font-size: var(--step--1); color: color-mix(in oklch, var(--paper) 55%, transparent); }

/* ---------- Footer ---------- */
.site-foot { position: relative; border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 2rem + 4vw, 6rem); overflow: clip; }
.foot-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, .5rem + 3vw, 3rem);
  padding-bottom: clamp(2.6rem, 1.5rem + 3vw, 4.5rem);
}
.foot-note { color: var(--ink-3); font-size: var(--step--1); margin-top: 1rem; max-width: 30ch; }
.foot-col h2, .foot-col h3, .foot-col h4 { font-family: var(--sans); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.05rem; font-weight: 600; }
.foot-col { display: grid; gap: .72rem; align-content: start; }
.foot-col a { color: var(--ink-2); font-size: var(--step--1); width: fit-content; position: relative; }
.foot-col a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.foot-col a:hover { color: var(--ink); }
.foot-col a:hover::after { transform: scaleX(1); transform-origin: left; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; align-items: center;
  padding-block: 1.5rem; border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--ink-3);
}
.foot-word {
  font-family: var(--serif); font-weight: 360; letter-spacing: -0.045em; line-height: .78;
  font-size: clamp(3.2rem, 16.5vw, 16.5rem); text-align: center; white-space: nowrap;
  color: var(--ink-ghost);
  margin-bottom: -0.12em; pointer-events: none; user-select: none;
}

/* ---------- Reveal (enhancement progressif : caché seulement si JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in-view { opacity: 1; transform: none; }

/* Pause des animations en boucle (WCAG 2.2.2) : démo du hero, bandeau des modèles, pastilles */
.motion-toggle {
  display: block; margin: .7rem 0 0 auto; min-height: 28px;
  font: inherit; font-size: var(--step--1); font-weight: 500; color: var(--ink-2);
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .2rem .8rem; cursor: pointer;
}
.motion-toggle:hover { color: var(--ink); border-color: var(--ink); }
.motion-toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
html.motion-paused .marquee-track, html.motion-paused .dmsg,
html.motion-paused .pill-dot::after, html.motion-paused .flow-line::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .demo { max-width: 620px; }
  .security-cols { grid-template-columns: 1fr; }
  .flow { max-width: 560px; }
  .model-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .head-actions { margin-left: auto; }
  .head-actions .btn { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .plans { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tool { grid-template-columns: minmax(3rem, auto) 1fr; }
  .tool-art { display: none; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); row-gap: 1.3rem; }
}
@media (max-width: 560px) {
  .tool { grid-template-columns: 1fr; gap: .5rem; padding-inline: 0; }
  .tool-no { font-size: 1.6rem; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-facts { grid-template-columns: 1fr; row-gap: 1rem; }
  .fact dd { font-size: 1.35rem; }
}

/* Liens du bandeau bas de footer */
.foot-links { display: inline-flex; align-items: center; gap: .5rem; }
.foot-links a { color: inherit; text-underline-offset: 3px; }
.foot-links a:hover { color: var(--ink); }

/* ---------- Bandeau de consentement (mesure d'audience) ---------- */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 80;
  padding: 0 clamp(1rem, 4vw, 2rem) clamp(1rem, 3vw, 1.6rem);
  pointer-events: none;
}
.consent-inner {
  pointer-events: auto;
  max-width: 44rem; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
  padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
}
.consent-copy { flex: 1 1 18rem; }
.consent-title { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; }
.consent-text { color: var(--ink-2); font-size: var(--step--1); margin-top: .25rem; max-width: 52ch; }
.consent-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: .6rem; }
.consent-btn {
  appearance: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: var(--step--1);
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: .55rem 1.15rem;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.consent-btn:hover, .consent-btn:focus-visible { background: var(--ink); color: var(--paper); }
/* Réserve de défilement : un élément focalisé ne passe jamais sous le bandeau (WCAG 2.4.11) */
html:has(> body > .consent) { scroll-padding-bottom: 9.5rem; }
@media (max-width: 560px) { html:has(> body > .consent) { scroll-padding-bottom: 14rem; } }
@media (max-width: 560px) {
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; }
}
