/* =========================================================================
   SalesOperations.fr
   Direction : éditorial clair. Papier chaud, titres serif, un seul accent.

   Plan du fichier
     1. Polices
     2. Tokens (couleurs, typo, rythme). Tout changement de palette se fait ici.
     3. Base
     4. Composants (bouton, étiquettes, liens)
     5. En-tête
     6. Sections : hero, flux, bandeau, livre, accompagnement, preuve, à propos, contact
     7. Pied de page, page légale
     8. Système de mouvement (révélations, mots, compteurs)
     9. Responsive
    10. Mouvement réduit
   ========================================================================= */


/* 1. Polices ------------------------------------------------------------ */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-opsz-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-opsz-italic.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/archivo-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/archivo-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/archivo-latin-700-normal.woff2) format('woff2'); }

/* Polices de la couverture du livre uniquement */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/playfair-display-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/playfair-display-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/playfair-display-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/lora-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/lora-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/lora-latin-400-italic.woff2) format('woff2'); }


/* 2. Tokens ------------------------------------------------------------- */
:root {
  --paper: #F3EEE4;
  --paper-2: #E9E2D3;
  --ink: #1A1814;
  --ink-2: #5A5448;
  --line: rgba(26, 24, 20, .16);
  --accent: #B8402A;
  --on-accent: #F6F1E7;
  --accent-soft: rgba(184, 64, 42, .12);

  /* Bandeau inversé (section "Qui je suis") */
  --band-bg: #1A1814;
  --band-ink: #F3EEE4;
  --band-ink-2: #B9B1A1;
  --band-accent: #F08468;
  --band-line: rgba(243, 238, 228, .2);

  /* Objet livre : identique quel que soit le thème */
  --cover-bg: #B8402A;
  --cover-spine: #93311F;
  --cover-ink: #F6EDE0;
  --cover-back: #F8F1D9;
  --cover-back-ink: #2B2118;

  --f-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.2, .75, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 68px;
  --section-y: clamp(88px, 12vw, 168px);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #15130F;
  --paper-2: #1E1B16;
  --ink: #EFE8DA;
  --ink-2: #ABA392;
  --line: rgba(239, 232, 218, .16);
  --accent: #F08468;
  --on-accent: #15130F;
  --accent-soft: rgba(240, 132, 104, .14);

  --band-bg: #EFE8DA;
  --band-ink: #1A1814;
  --band-ink-2: #5A5448;
  --band-accent: #B8402A;
  --band-line: rgba(26, 24, 20, .2);

  color-scheme: dark;
}


/* 3. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
/* Grain de papier, très discret */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .035; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 999px; transition: top .2s; }
.skip:focus { top: 12px; }

.serif { font-family: var(--f-serif); }
.display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.display em, .hero-title em { font-style: italic; color: var(--accent); }
.section { padding-block: var(--section-y); position: relative; }
.section--flush { padding-top: 0; }
.label + .display, .label + h3 { margin-top: 20px; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }


/* 4. Composants --------------------------------------------------------- */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.label .idx { color: var(--accent); }
.label::after { content: ''; width: 40px; height: 1px; background: currentColor; opacity: .5; }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 1rem; text-decoration: none;
  transition: color .35s var(--ease), transform .25s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: translateY(101%); border-radius: 50% 50% 0 0 / 120% 120% 0 0;
  transition: transform .5s var(--ease), border-radius .5s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--on-accent); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); border-radius: 0; }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(6px); }
.btn--sm { padding: 10px 18px; font-size: .9rem; gap: 10px; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--ease), color .25s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--accent); }
.link .arr { transition: transform .35s var(--ease); }
.link:hover .arr { transform: translateX(5px); }

.pill {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--ink);
  border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.pill--live { position: relative; padding-left: 30px; }
.pill--live::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease) infinite;
}


/* 5. En-tête ------------------------------------------------------------ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease), background-color .4s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand b { font-family: var(--f-serif); font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; }
.brand span { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a:not(.btn) {
  position: relative; font-size: .92rem; font-weight: 500; text-decoration: none; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.theme {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: transform .5s var(--ease), border-color .25s;
}
.theme:hover { border-color: var(--ink); transform: rotate(180deg); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--prog, 0)); transform-origin: left; }


/* 6. Sections ----------------------------------------------------------- */

/* Hero */
.hero { min-height: 100svh; padding-top: calc(var(--header-h) + 40px); padding-bottom: 56px; display: flex; align-items: center; overflow: clip; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hero-title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.9rem, 7.6vw, 6.9rem);
  line-height: .98; letter-spacing: -.03em; margin: 22px 0 32px;
}
.hero .lead { margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.hero-meta { margin-top: 56px; display: flex; gap: 14px; align-items: center; color: var(--ink-2); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue { width: 1px; height: 44px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2.2s var(--ease-io) infinite; }
.hero-halo {
  position: absolute; z-index: -1; right: -10vw; top: 8%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}

/* Objet livre en 3D */
.book-stage { display: grid; place-items: center; perspective: 1400px; padding: 24px 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.book-stage:active { cursor: grabbing; }
.book-hint { display: block; margin-top: 18px; text-align: center; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.book { --bw: clamp(210px, 26vw, 330px); --bh: calc(var(--bw) * 1.58); --bt: calc(var(--bw) * .17); font-size: calc(var(--bw) / 20); position: relative; width: var(--bw); height: var(--bh); }
.book-float { width: 100%; height: 100%; transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
.book-body {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 9deg)) rotateY(var(--ry, -33deg));
  transition: transform .35s var(--ease);
}
.book-body.is-manual { transition: none; }
.book-face { position: absolute; backface-visibility: visible; }
.book-cover, .book-back { inset: 0; border-radius: 3px 8px 8px 3px; overflow: hidden; backface-visibility: hidden; }
.book-cover { background: var(--cover-bg); color: var(--cover-ink); transform: translateZ(calc(var(--bt) / 2)); padding: 1.9em 2em 1.7em; display: flex; flex-direction: column; box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, .35); }
.book-cover::before { content: ''; position: absolute; top: 0; bottom: 0; left: 4.2%; width: 5px; pointer-events: none; z-index: 2; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .18) 55%, transparent); }
.book-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(115deg, rgba(255, 255, 255, .24), transparent 36%, transparent 60%, rgba(0, 0, 0, .16)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset -3px 0 4px -2px rgba(255, 255, 255, .25); }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-back { background: var(--cover-back); color: var(--cover-back-ink); transform: translateZ(calc(var(--bt) / -2)) rotateY(180deg); padding: 2.1em 1.9em 1.8em; display: flex; flex-direction: column; }
.book-spine { top: 0; right: 100%; width: var(--bt); height: 100%; background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .1) 30%, rgba(0, 0, 0, .3)), var(--cover-spine); transform-origin: right center; transform: translateZ(calc(var(--bt) / 2)) rotateY(-90deg); display: flex; align-items: center; justify-content: center; }
.book-spine span { writing-mode: vertical-rl; font-size: .5em; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--cover-ink); white-space: nowrap; }
.book-pages { top: 2px; bottom: 2px; left: 100%; width: calc(var(--bt) - 4px); transform-origin: left center; transform: translateZ(calc(var(--bt) / 2 - 2px)) rotateY(90deg); background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .12)), repeating-linear-gradient(0deg, #F7F2E6 0 2px, #D3CBB6 2px 3px); }
.book-top, .book-bottom { left: 0; width: 100%; height: var(--bt); background: linear-gradient(0deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 60%), repeating-linear-gradient(90deg, #F7F2E6 0 2px, #D3CBB6 2px 3px); }
.book-top { bottom: 100%; transform-origin: bottom center; transform: translateZ(calc(var(--bt) / 2)) rotateX(90deg); }
.book-bottom { top: 100%; transform-origin: top center; transform: translateZ(calc(var(--bt) / 2)) rotateX(-90deg); }
.book-shadow { position: absolute; left: 0; right: -14%; bottom: -8%; height: 9%; background: radial-gradient(closest-side, rgba(20, 12, 6, .5), transparent); filter: blur(14px); transform: translateZ(-80px); }

/* Faces du livre : reproduction fidèle de la couverture finale, en texte (nette à toute taille) */
.cv-label { font-family: var(--f-sans); font-weight: 500; font-size: .44em; letter-spacing: .1em; text-transform: uppercase; opacity: .92; }
.cv-def { margin-top: 3.6em; }
.cv-word { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 2.15em; line-height: 1.1; }
.cv-pron { margin-top: .7em; font-family: 'Lora', Georgia, serif; font-size: .5em; letter-spacing: .02em; }
.cv-text { margin-top: .6em; max-width: 18em; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: .56em; line-height: 1.4; opacity: .95; }
.cv-dots { margin-top: auto; display: grid; grid-template-columns: repeat(6, 1.3em); gap: .6em; }
.cv-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--cover-ink); }
.cv-dots i.lost { background: none; border: .09em solid var(--cover-ink); }
.cv-title { margin-top: 1em; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.62em; line-height: 1.3; letter-spacing: .06em; }
.cv-author { margin-top: 3.4em; font-family: var(--f-sans); font-weight: 500; font-size: .44em; letter-spacing: .08em; text-transform: uppercase; }
.book-spine span { font-family: var(--f-sans); }

.book-back { color: var(--cover-back-ink); font-family: 'Lora', Georgia, serif; }
.bk-head { font-weight: 700; font-size: .95em; line-height: 1.3; margin-bottom: 1.5em; }
.bk-body p { font-size: .46em; line-height: 1.5; margin-bottom: 1.35em; }
.bk-bio { margin-top: auto; font-style: italic; font-size: .38em; line-height: 1.45; opacity: .78; }
.bk-code { display: block; width: 7.6em; height: 4.6em; margin: 1.6em 0 0 auto; background: #fff; }

/* Flux : douze demandes de rappel */
.flux { background: var(--paper-2); border-block: 1px solid var(--line); }
.flux-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.flux-head .note { color: var(--ink-2); max-width: 26em; justify-self: end; }
.dots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 22px); position: relative; }
.dots::before { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 12px); height: 1px; background: var(--line); }
.dot { position: relative; display: grid; gap: 10px; justify-items: center; }
.dot-shape { position: relative; width: 100%; aspect-ratio: 1; }
.dot-shape::before, .dot-shape::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.dot-shape::before { background: var(--ink); }
.dot-shape::after { border: 1.5px dashed var(--accent); opacity: 0; }
.dot.lost .dot-shape::before { opacity: 0; }
.dot.lost .dot-shape::after { opacity: 1; }
.js .flux:not(.is-in) .dot-shape::before, .js .flux:not(.is-in) .dot-shape::after { opacity: 0; }
.dot small { font-size: .7rem; font-weight: 500; letter-spacing: .1em; color: var(--ink-2); }
.flux.is-in .dot-shape::before { animation: dot-in .8s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.flux.is-in .dot.lost .dot-shape::before { animation: dot-in .8s var(--ease) both, dot-out 1.3s var(--ease-io) forwards; animation-delay: calc(var(--i) * 90ms), calc(2s + var(--k) * 260ms); }
.flux.is-in .dot.lost .dot-shape::after { animation: ring-in .6s var(--ease) both; animation-delay: calc(2.3s + var(--k) * 260ms); }
.flux-legend { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 40px; font-size: .9rem; color: var(--ink-2); }
.flux-legend span { display: inline-flex; align-items: center; gap: 10px; }
.flux-legend b { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.flux-legend b.lost { background: transparent; border: 1.5px dashed var(--accent); }

/* Bandeau défilant */
.marquee { padding: clamp(28px, 4vw, 56px) 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.marquee-row { display: flex; width: max-content; gap: 0; will-change: transform; }
.marquee-row + .marquee-row { margin-top: .2em; }
.marquee-row span {
  font-family: var(--f-serif); font-style: italic; font-weight: 300; white-space: nowrap;
  font-size: clamp(3rem, 9.5vw, 8.5rem); line-height: 1.05; letter-spacing: -.03em; padding-right: .5em;
}
.marquee-row span::after { content: '\25CF'; font-style: normal; font-size: .28em; vertical-align: .55em; margin-left: .5em; color: var(--accent); }
.marquee-row.is-outline span { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

/* Le livre */
.livre-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 112px); align-items: start; margin-top: 48px; }
.livre-sticky { position: sticky; top: calc(var(--header-h) + 5vh); align-self: start; }
.livre-sticky .book { --bw: clamp(220px, 28vw, 360px); }
.livre-copy h2 { margin-bottom: 36px; }
.livre-copy p { margin-bottom: 1.2em; max-width: 34em; }
.livre-copy p:first-of-type { font-family: var(--f-serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -.01em; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 36px; }
.facts-inline li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; }
.livre-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

/* Accompagnement */
.accomp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin: 40px 0 clamp(56px, 8vw, 110px); align-items: start; }
.accomp-top p + p { margin-top: 1.1em; }
.accomp-top p { max-width: 32em; }

.roadmap { border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 36px); background: var(--paper-2); }
.roadmap-cap { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.road { display: grid; gap: 16px; }
.road-row { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); align-items: center; gap: 14px; }
.road-row > span { font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.road-track { position: relative; height: 40px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.road-bar {
  position: absolute; top: 0; bottom: 0; left: var(--from); width: calc(var(--to) - var(--from)); border-radius: 999px;
  background: var(--ink);
  transition: clip-path 1.1s var(--ease) calc(var(--r) * 260ms + 200ms);
}
.js .road-bar { clip-path: inset(0 100% 0 0 round 999px); }
.js .is-in .road-bar { clip-path: inset(0 0 0 0 round 999px); }
.road-note { grid-column: 2; margin-top: -6px; font-size: .85rem; color: var(--ink-2); }
.roadmap-cap .label::after { display: none; }
.road-row.r1 { --from: 0%; --to: 36%; --r: 0; }
.road-row.r2 { --from: 28%; --to: 68%; --r: 1; }
.road-row.r3 { --from: 58%; --to: 100%; --r: 2; }
.road-row.r2 .road-bar { background: color-mix(in srgb, var(--ink) 70%, var(--accent)); }
.road-row.r3 .road-bar { background: var(--accent); }

.steps { position: relative; display: grid; gap: 0; margin-bottom: clamp(56px, 8vw, 120px); }
.steps::before, .steps::after { content: ''; position: absolute; left: 31px; top: 24px; bottom: 24px; width: 1px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--accent); transform: scaleY(var(--line-p, 1)); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); padding: 28px 0; align-items: start; }
.step-n {
  position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); font-family: var(--f-serif); font-size: 1.25rem;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
}
.step.in .step-n { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: scale(1.06); }
.step p { font-family: var(--f-serif); font-size: clamp(1.45rem, 2.8vw, 2.3rem); line-height: 1.14; letter-spacing: -.02em; max-width: 24em; padding-top: 8px; }
.step p span { color: var(--ink-2); }

.cas { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); padding: clamp(28px, 4vw, 56px); border-radius: 22px; background: var(--ink); color: var(--paper); margin-bottom: 56px; }
.cas .label { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.cas p { color: color-mix(in srgb, var(--paper) 88%, transparent); max-width: 34em; }
.cas p + p { margin-top: 1em; }
.cas .week-cap { margin: 36px 0 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 65%, transparent); }
.weeks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.week { display: grid; gap: 6px; }
.week-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 52px; }
.week-bar i { background: var(--accent); border-radius: 4px; transform-origin: bottom; }
.js .week-bar i { transform: scaleY(0); }
.js .is-in .week-bar i { animation: tick-up .6s var(--ease) both; animation-delay: calc(var(--w) * 240ms + var(--h) * 110ms); }
.week small { font-size: .72rem; letter-spacing: .1em; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.cas h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.02em; }
.cas h3 em { color: color-mix(in srgb, var(--accent) 75%, white); }

/* Preuve : section masquée pour le moment (voir _archive/preuve-bloc.html), styles conservés pour la réécriture avec des témoignages */
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 80px); margin: 40px 0 clamp(56px, 8vw, 110px); }
.proof { position: relative; padding: 30px 0 34px; border-top: 1px solid var(--line); }
.proof::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent); transform-origin: left; transition: transform 1.2s var(--ease); }
.js .proof::before { transform: scaleX(0); }
.js .proof.in::before { transform: scaleX(1); }
.proof-n { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .16em; color: var(--accent); margin-bottom: 14px; }
.proof p { font-family: var(--f-serif); font-size: clamp(1.3rem, 2.1vw, 1.8rem); line-height: 1.2; letter-spacing: -.01em; }
.seq { margin-top: 24px; }
.seq-labels { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.seq svg { width: 100%; height: auto; overflow: visible; }
.seq path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-io) .3s; }
.js .seq path { stroke-dashoffset: 1; }
.js .in .seq path { stroke-dashoffset: 0; }

.proof-cols { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.proof-cols h3 { margin-bottom: 20px; }
.written li { padding: 16px 0; border-top: 1px solid var(--line); font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.25; }
.written li:last-child { border-bottom: 1px solid var(--line); }
.talks li { border-top: 1px solid var(--line); }
.talks li:last-child { border-bottom: 1px solid var(--line); }
.talk {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center;
  padding: 20px 8px; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: padding .45s var(--ease), color .35s;
}
.talk::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.talk:hover, .talk:focus-visible { padding-inline: 20px; color: var(--paper); }
.talk:hover::before, .talk:focus-visible::before { transform: scaleY(1); }
.talk-title { font-family: var(--f-serif); font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.2; }
.talk-meta { grid-column: 1; font-size: .8rem; letter-spacing: .04em; color: var(--ink-2); transition: color .35s; }
.talk:hover .talk-meta, .talk:focus-visible .talk-meta { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.talk-go { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.talk-go i { display: block; width: 3px; height: 30%; background: currentColor; border-radius: 2px; }
.talk:hover .talk-go i, .talk:focus-visible .talk-go i { animation: wave .9s ease-in-out infinite; animation-delay: calc(var(--b) * 90ms); }
.video-note { margin-top: 20px; font-size: .95rem; color: var(--ink-2); max-width: 40em; }
.video-note a { color: var(--ink); }

/* Qui je suis (bandeau inversé) */
.apropos { background: var(--band-bg); color: var(--band-ink); transition: background-color .4s var(--ease), color .4s var(--ease); }
.apropos .label { color: var(--band-ink-2); }
.apropos .label .idx { color: var(--band-accent); }
.thesis { margin: 40px 0 clamp(56px, 8vw, 110px); font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 5.4rem); line-height: 1.04; letter-spacing: -.025em; max-width: 16em; }
.thesis .tw { display: inline-block; }
.js .thesis .tw { opacity: .18; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--band-line); }
.stat { padding: 28px clamp(12px, 2vw, 28px) 28px 0; border-right: 1px solid var(--band-line); }
.stat + .stat { padding-left: clamp(12px, 2vw, 28px); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-optical-sizing: none; font-variation-settings: 'opsz' 40; font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 1; letter-spacing: -.03em; color: var(--band-accent); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; font-size: .92rem; color: var(--band-ink-2); max-width: 15em; }
.story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 6vw, 96px); margin-top: clamp(56px, 8vw, 110px); }
.story p { font-family: var(--f-serif); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.25; letter-spacing: -.01em; padding-top: 24px; border-top: 1px solid var(--band-line); }

/* Contact */
.contact { text-align: center; padding-block: clamp(96px, 14vw, 200px); overflow: hidden; }
.contact h2 { margin: 24px auto 44px; max-width: 14em; }
.contact .label { justify-content: center; }
.contact .label::after { display: none; }
.contact .btn { font-size: 1.15rem; padding: 22px 38px; }
.contact-mail { margin-top: 28px; color: var(--ink-2); font-size: .95rem; }


/* 7. Pied de page, page légale ----------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .88rem; color: var(--ink-2); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

.legal { padding-top: calc(var(--header-h) + 72px); padding-bottom: 96px; max-width: 760px; }
.legal h1 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 40px; }
.legal h2 { font-family: var(--f-serif); font-weight: 500; font-size: 1.4rem; margin: 40px 0 10px; }
.legal p { margin-bottom: .7em; color: var(--ink-2); }
.legal a { color: var(--ink); }


/* 8. Système de mouvement ---------------------------------------------- */
/* Les états cachés ne s'appliquent que si le JS tourne (classe .js sur <html>). */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease) calc(var(--d, 0) * 1ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="clip"].in { clip-path: inset(0 0 0 0); }

/* Mots découpés par le JS : montée masquée */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .08em .16em 0; margin: -.04em -.08em -.16em 0; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(112%) rotate(3deg); transform-origin: left bottom; }
.js [data-split].in .w > span { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i) * 65ms + var(--base, 0) * 1ms); }
.js .hero-title { --base: 250; }

/* Entrée du hero */
.js .hero-in { opacity: 0; transform: translateY(24px); }
.js.is-ready .hero-in { animation: fade-up 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.js .hero .book-stage { opacity: 0; transform: translateY(40px) scale(.94); }
.js.is-ready .hero .book-stage { animation: book-in 1.4s var(--ease) both; animation-delay: .5s; }

@keyframes rise { from { transform: translateY(112%) rotate(3deg); } to { transform: translateY(0) rotate(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes book-in { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-6vw, 4vw); } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes dot-in { from { opacity: 0; transform: translateX(-140%) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes dot-out { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(150%) rotate(24deg) scale(.35); } }
@keyframes ring-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tick-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }


/* 9. Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 32px); }
  .hero-grid, .flux-head, .livre-grid, .accomp-top, .cas, .proof-cols, .story { grid-template-columns: minmax(0, 1fr); }
  .flux-head .note { justify-self: start; }
  .livre-sticky { position: relative; top: 0; }
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--band-line); }
  .hero-halo { display: none; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand span { display: none; }
  .dots { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 20px; }
  .dots::before { display: none; }
  .road-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .road-note { grid-column: 1; margin-top: 0; }
  .steps::before, .steps::after { left: 23px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); }
  .step-n { width: 48px; height: 48px; font-size: 1rem; }
  .talk { grid-template-columns: minmax(0, 1fr); }
  .talk-go { display: none; }
  .hero-meta { display: none; }
  .livre-sticky .book { --bw: min(78vw, 320px); }
}


/* 10. Mouvement réduit -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="clip"], .js .hero-in, .js .hero .book-stage { opacity: 1; transform: none; clip-path: none; }
  .js [data-split] .w > span { transform: none; }
  .js .flux .dot-shape::before { opacity: 1; }
  .js .flux .dot.lost .dot-shape::before { opacity: 0; }
  .js .flux .dot.lost .dot-shape::after { opacity: 1; }
  .js .road-bar { clip-path: none; }
  .js .week-bar i { transform: none; }
  .js .proof::before { transform: scaleX(1); }
  .js .seq path { stroke-dashoffset: 0; }
  .js .thesis .tw { opacity: 1; }
  .steps::after { transform: scaleY(1); }
  .step .step-n { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
}
