/* Palette : l'encre comme fond, ses dilutions (lavis) pour les gris, et le blanc pour les accents. Tout reste en noir et gris, comme le travail. */
:root {
  --encre: #000;
  --lavis-9: #141414;
  --lavis-8: #262626;
  --lavis-5: #77787a;
  --lavis-3: #a7a8a9;
  --papier: #e8e9e9;
  --accent-2: #a7a8a9;
  --accent: #ffffff;

  --display: "Gloock", Georgia, serif;
  --text: "Schibsted Grotesk", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.calm { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--encre);
  color: var(--papier);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-weight: 600; font-size: 1.0625rem; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 30; background: var(--encre); padding: 8px 12px; }

/* Grain de pellicule par-dessus tout, pour l'ambiance */
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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");
}
.motion .grain { animation: grain 0.8s steps(4) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}

/* Boutons et liens */
.btn {
  display: inline-block;
  padding: 0.85em 1.5em;
  background: var(--papier);
  color: var(--encre);
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--accent-2); color: var(--encre); }
.btn-small { padding: 0.55em 1.1em; font-size: 0.9375rem; white-space: nowrap; flex-shrink: 0; }

.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link:hover { color: var(--accent); }

/* Navigation, posée sur la vidéo */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,0));
  transition: background-color .3s;
}
.nav.solid { background-color: rgba(0,0,0,.85); backdrop-filter: blur(10px); }
.wordmark { font-family: var(--display); font-size: 1.6rem; text-decoration: none; line-height: 1; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 0.9375rem; color: var(--lavis-3); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav-toggle {
    display: block; background: none; border: 0; font: inherit; font-size: 0.9375rem;
    padding: 6px 4px; cursor: pointer; color: var(--papier);
  }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--encre);
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--lavis-8);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; font-size: 1.125rem; color: var(--papier); }
  .nav .long { display: none; }
  .nav .btn-small::first-letter { text-transform: uppercase; }
}
@media (max-width: 420px) {
  .nav { gap: 6px; }
  .nav .wordmark { font-size: 1.3rem; }
  .nav .btn-small { padding: 0.5em 0.85em; font-size: 0.875rem; }
}

/* Hero : la vidéo de l'aiguille en action */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 32px) var(--gutter) clamp(56px, 8vw, 96px);
  --hp: 0;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.4) brightness(.7);
  transform: scale(calc(1.05 + var(--hp) * .15));
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(0,0,0,.55) 75%),
    linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.2) 100%);
}
.hero-text {
  position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto;
  transform: translateY(calc(var(--hp) * -140px));
  opacity: calc(1 - var(--hp) * 1.5);
}
.hero h1 { font-size: clamp(3.6rem, 11vw, 11rem); line-height: 0.9; margin-bottom: 0.3em; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: block; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.35rem); max-width: 40ch; color: var(--lavis-3); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 28px 0 24px; }
.rating { font-size: 0.9375rem; color: var(--lavis-3); margin: 0; }
.stars { color: #fff; letter-spacing: 0.1em; margin-right: 6px; }
.video-toggle {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(56px, 8vw, 96px);
  font: inherit; font-size: 0.875rem; color: #fff; cursor: pointer;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 0.4em 1em;
}
.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 0; width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  opacity: calc(1 - var(--hp) * 4);
}
@media (max-width: 760px) {
  .video-toggle { top: calc(var(--nav-h) + 8px); bottom: auto; }
  .scroll-cue { display: none; }
}

/* Entrée de la page : le titre monte ligne par ligne */
.motion .hero h1 .line > span { animation: rise-line 1.2s var(--ease) both; }
.motion .hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.motion .hero-sub { animation: fade-up 1s var(--ease) .6s both; }
.motion .scroll-cue { animation: cue 2.4s ease-in-out 1.5s infinite; transform-origin: top; }
@keyframes rise-line { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Phrase qui s'allume mot par mot au défilement */
.statement {
  padding: clamp(96px, 16vw, 200px) var(--gutter);
}
.statement p {
  max-width: 22ch; margin: 0 auto;
  font-family: var(--display); font-size: clamp(2.2rem, 5.6vw, 5.2rem); line-height: 1.08;
}
.words { --p: 0; }
.motion .words .w {
  opacity: clamp(0.14, calc(var(--p) * var(--n) - var(--i)), 1);
}

/* Portfolio : galerie qui défile de côté, sans bloquer le défilement de la page */
.work-pin {
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(72px, 9vw, 120px) var(--gutter) clamp(56px, 7vw, 96px);
}
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font: inherit; font-size: 0.9375rem; cursor: pointer;
  padding: 0.45em 1em; border-radius: 999px;
  border: 1px solid var(--lavis-5); background: transparent; color: var(--papier);
  transition: background-color .2s, color .2s;
}
.filters button[aria-pressed="true"] { background: var(--papier); border-color: var(--papier); color: var(--encre); }

.track {
  --card-h: clamp(300px, 62svh, 640px);
  display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 28px);
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.track.dragging .piece { pointer-events: none; }
/* Chaque carte garde le format de sa photo (--ar), 9:16 par défaut */
.track li { flex: 0 0 auto; width: calc(var(--card-h) * (var(--ar, 9 / 16))); scroll-snap-align: start; }
.track li[hidden] { display: none; }
.piece {
  display: block; width: 100%; aspect-ratio: var(--ar, 9 / 16);
  padding: 0; border: 0; background: var(--lavis-9); cursor: zoom-in; border-radius: 4px; overflow: hidden;
}
.piece img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.5) brightness(.75);
  transform: scale(1.06);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.track li.near .piece img, .piece:hover img, .piece:focus-visible img { filter: none; transform: scale(1); }
.track p { margin: 12px 0 0; font-size: 0.875rem; color: var(--lavis-5); }
.track p b { display: block; font-weight: 500; color: var(--papier); font-size: 0.9375rem; }

.work-foot { display: flex; align-items: center; gap: 16px 24px; }
.gal-btns { display: flex; gap: 8px; }
.gal-btn {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--lavis-5); background: transparent; color: var(--papier);
  font: inherit; font-size: 1.4rem; line-height: 1;
  transition: background-color .2s, color .2s, opacity .2s;
}
.gal-btn:hover:not(:disabled) { background: var(--papier); color: var(--encre); }
.gal-btn:disabled { opacity: .3; cursor: default; }
@media (hover: none) { .gal-btns { display: none; } }
.progress { flex: 1; height: 1px; background: var(--lavis-8); }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--wp, 0)); }
.count { margin: 0; font-size: 0.875rem; color: var(--lavis-5); font-variant-numeric: tabular-nums; }

/* Version calme : la galerie devient une grille */
.calm .track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 16px; overflow: visible; margin: 0; padding: 0; cursor: auto; }
.calm .track li { width: auto; }
.calm .piece img { filter: none; transform: none; }
.calm .work-foot { display: none; }
@media (max-width: 1000px) { .calm .track { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .calm .track { grid-template-columns: repeat(2, 1fr); } }

/* Approche : le stencil devient encre au rythme du défilement */
.process { --p: 0; background: var(--lavis-9); }
.motion .process { height: 320vh; }
.process-pin {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px clamp(40px, 7vw, 120px); align-items: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 48px;
}
.motion .process-pin { position: sticky; top: 0; height: 100svh; }
.process h2 { margin-bottom: 40px; text-wrap: balance; }
.principles { display: grid; gap: 28px; }
.principles h3 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; margin-bottom: 8px; }
.principles p { color: var(--lavis-3); max-width: 46ch; margin: 0; }
.motion .principles li { opacity: .2; transition: opacity .5s; }
.motion .principles li.active { opacity: 1; }

.stencil-piece { margin: 0; width: min(100%, 400px); justify-self: end; }
.reveal { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; background: var(--lavis-8); }
.reveal img { width: 100%; height: 100%; object-fit: cover; }
.motion .reveal { max-height: calc(100svh - var(--nav-h) - 120px); margin-left: auto; }
/* Le stencil : lignes foncées sur la photo pâlie, pour qu'on voie bien le dessin */
.stencil { position: absolute; inset: 0; background: #ecebe7; clip-path: inset(calc(var(--p) * 100%) 0 0 0); }
.stencil img { position: absolute; inset: 0; }
.stencil-ghost { filter: grayscale(1) contrast(.7) brightness(1.35); opacity: .45; }
.stencil-lines { filter: url(#stencil-filter); mix-blend-mode: multiply; }
.needle {
  position: absolute; left: 0; right: 0; height: 2px; top: calc(var(--p) * 100%);
  background: var(--accent); box-shadow: 0 0 16px 2px rgba(255,255,255,.7);
  opacity: calc((1 - var(--p)) * 20);
}
.stencil-piece figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--lavis-5); text-align: right; }
.stage { color: var(--accent); font-weight: 500; margin-right: 8px; }
.calm .stencil, .calm .needle, .calm .stage { display: none; }

@media (max-width: 860px) {
  .process-pin { grid-template-columns: 1fr; align-content: center; gap: 24px; }
  .motion .process-pin { padding-top: calc(var(--nav-h) + 16px); }
  .process h2 { margin-bottom: 16px; font-size: 2rem; }
  .motion .principles { display: grid; }
  .motion .principles li { grid-area: 1 / 1; opacity: 0; }
  .motion .principles li.active { opacity: 1; }
  .principles h3 { font-size: 1.4rem; }
  .principles p { font-size: 0.9375rem; }
  .stencil-piece { justify-self: center; width: auto; }
  .motion .reveal { height: 44svh; max-height: none; }
  .stencil-piece figcaption { text-align: center; }
}

/* Sections courantes */
.story, .reviews, .book { padding: clamp(96px, 12vw, 160px) var(--gutter); }

/* Parcours */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(40px, 6vw, 96px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.portrait { grid-row: span 2; margin: 0; align-self: start; overflow: hidden; border-radius: 4px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(.3) contrast(1.05); }
/* La photo se dévoile de bas en haut, comme une impression qui sort */
.motion .portrait img {
  clip-path: inset(100% 0 0 0); transform: scale(1.12);
  transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease);
}
.motion .portrait.in img { clip-path: inset(0 0 0 0); transform: none; }
.story-text p { max-width: 58ch; color: var(--lavis-3); }
.story-text h2 { margin-bottom: 8px; }
.story-text .alias { color: var(--accent); font-weight: 500; margin-bottom: 28px; }
.pull {
  margin: 0; align-self: center;
  font-family: var(--display); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.1;
}
.timeline { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--accent);
  transform-origin: left; transition: transform 1.6s var(--ease);
}
.motion .timeline:not(.in)::before { transform: scaleX(0); }
.timeline li { font-size: 0.9375rem; color: var(--lavis-3); }
.timeline span { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--papier); margin-bottom: 6px; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .portrait { grid-row: auto; max-width: 420px; }
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* Apparitions au défilement */
.motion .rise { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.motion .rise.in { opacity: 1; transform: none; }

/* Avis */
.reviews { border-top: 1px solid var(--lavis-8); }
.reviews > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section-head p { max-width: 46ch; color: var(--lavis-3); margin: 0; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.quotes figure { margin: 0; padding-top: 20px; border-top: 1px solid var(--lavis-8); }
.quotes blockquote { margin: 0 0 16px; font-size: 1.1875rem; line-height: 1.55; }
.quotes blockquote::before { content: "« "; }
.quotes blockquote::after { content: " »"; }
.quotes figcaption { font-weight: 500; color: var(--lavis-5); }
.reviews > .link { display: inline-block; }
@media (max-width: 860px) {
  .section-head, .quotes { grid-template-columns: 1fr; }
}

/* Rendez-vous */
.book {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 20% 100%, rgba(255,255,255,.09), transparent 70%), var(--encre);
  border-top: 1px solid var(--lavis-8);
}
.book > * { max-width: var(--max); margin-left: auto; margin-right: auto; position: relative; }
.book-title { font-size: clamp(3.2rem, 9vw, 8.5rem); line-height: .92; margin-bottom: 64px; }
.motion .book-title .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.motion .book-title .line:nth-child(2) > span { transition-delay: .12s; }
.motion .book-title.in .line > span { transform: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; margin-bottom: 56px; }
.steps li { counter-increment: step; border-top: 1px solid var(--lavis-5); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; margin-bottom: 14px; color: var(--accent); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--lavis-3); font-size: 0.9375rem; }
.book-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.book-note { margin: 0; font-size: 0.9375rem; color: var(--lavis-3); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Pied de page */
.footer {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 40px;
  padding: 40px var(--gutter) 56px;
  font-size: 0.9375rem; color: var(--lavis-5);
  border-top: 1px solid var(--lavis-8);
}
.footer .wordmark { color: var(--papier); }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--papier); text-decoration: underline; }
.footer p { margin: 0 0 0 auto; }
@media (max-width: 760px) { .footer p { margin-left: 0; } }

/* Visionneuse */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .95); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 4px; }
.lb-caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--papier); margin: 0; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--papier); cursor: pointer; font: inherit;
}
.lb-close { top: 16px; right: 20px; font-size: 1rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 12px 20px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.motion .lightbox[open] img { animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }

/* ---------- Page Rendez-vous ---------- */
.page-rdv main { padding-top: var(--nav-h); }

.rdv-intro {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--lavis-8);
}
.rdv-intro h1 { font-size: clamp(3.2rem, 9vw, 8.5rem); line-height: .92; margin-bottom: .35em; }
.motion .rdv-intro h1 .line > span { animation: rise-line 1.2s var(--ease) both; }
.motion .rdv-intro h1 .line:nth-child(2) > span { animation-delay: .15s; }
.motion .rdv-intro .lede, .motion .rdv-facts { animation: fade-up 1s var(--ease) .5s both; }
.rdv-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0 0; }
.rdv-facts dt { font-family: var(--display); font-size: 1.35rem; margin-bottom: 4px; }
.rdv-facts dd { margin: 0; font-size: 0.9375rem; color: var(--lavis-3); }
@media (max-width: 860px) { .rdv-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .rdv-facts { grid-template-columns: 1fr; } }

.rdv-body {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(96px, 12vw, 160px);
}
.rdv-rail { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.rdv-rail ol { display: grid; gap: 4px; margin-bottom: 28px; counter-reset: s; }
.rdv-rail li { counter-increment: s; }
.rdv-rail a {
  display: flex; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--lavis-5);
  transition: color .25s;
}
.rdv-rail a::before { content: counter(s); font-family: var(--display); width: 1ch; }
.rdv-rail a:hover, .rdv-rail a.current { color: var(--papier); }
.rail-progress .progress { margin-bottom: 10px; }
.rail-progress .progress span { transition: transform .4s var(--ease); }
.rail-count { font-size: 0.8125rem; color: var(--lavis-5); margin: 0; }
@media (max-width: 860px) {
  .rdv-body { grid-template-columns: 1fr; }
  .rdv-rail {
    top: var(--nav-h); z-index: 5; margin: 0 calc(-1 * var(--gutter));
    padding: 10px var(--gutter); background: rgba(0,0,0,.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lavis-8);
  }
  .rdv-rail ol { display: none; }
  .rdv-form fieldset, .rdv-form .field { scroll-margin-top: calc(var(--nav-h) + 80px); }
}

/* Formulaire */
.rdv-form { display: grid; gap: clamp(48px, 6vw, 72px); min-width: 0; }
.rdv-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; scroll-margin-top: calc(var(--nav-h) + 32px); }
.rdv-form legend {
  display: flex; align-items: baseline; gap: 16px; padding: 0; margin-bottom: 28px;
  font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05;
}
.rdv-form legend .num { color: var(--lavis-5); }
.rdv-form legend .opt { font-family: var(--text); font-size: 0.9375rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 24px; min-width: 0; }
.field > label, .field > .label { display: block; font-weight: 500; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--lavis-5); font-size: 0.875rem; margin-left: 4px; }
.hint { font-size: 0.875rem; color: var(--lavis-5); margin: -4px 0 10px; }
.field .drop + .hint { margin: 10px 0 0; }

.rdv-form input[type="text"], .rdv-form input[type="email"], .rdv-form input[type="tel"], .rdv-form textarea {
  width: 100%; font: inherit; color: var(--papier);
  background: var(--lavis-9); border: 1px solid var(--lavis-8); border-radius: 6px;
  padding: 0.8em 0.9em;
  transition: border-color .2s, background-color .2s;
}
.rdv-form textarea { resize: vertical; min-height: 6em; }
.rdv-form input::placeholder, .rdv-form textarea::placeholder { color: var(--lavis-5); }
.rdv-form input:hover, .rdv-form textarea:hover { border-color: var(--lavis-5); }
.rdv-form input:focus, .rdv-form textarea:focus { outline: none; border-color: var(--papier); background: #1b1b1b; }
.rdv-form [aria-invalid="true"] { border-color: #ff8a7a; }
.error { color: #ff8a7a; font-size: 0.875rem; margin: 8px 0 0; }
.error:empty { display: none; }

/* Choix en pastilles */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative; cursor: pointer;
  padding: 0.6em 1.1em; border: 1px solid var(--lavis-5); border-radius: 999px;
  font-size: 0.9375rem; transition: background-color .2s, color .2s, border-color .2s;
}
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice:has(input:checked) { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Zones de photos */
.drop {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: 120px; padding: 20px; cursor: pointer;
  border: 1px dashed var(--lavis-5); border-radius: 6px; background: var(--lavis-9);
  color: var(--lavis-3); font-size: 0.9375rem;
  transition: border-color .2s, background-color .2s;
}
.drop b { color: var(--papier); font-weight: 500; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--papier); background: #1b1b1b; }
.drop:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 72px; height: 72px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.thumbs button {
  position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: var(--papier); color: var(--encre); cursor: pointer; font-size: 1rem; line-height: 1;
}
.motion .thumbs li { animation: fade-up .4s var(--ease) both; }

/* Consentements */
.consents { display: grid; gap: 14px; }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; color: var(--lavis-3); font-size: 0.9375rem; }
.check input {
  appearance: none; flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0;
  border: 1px solid var(--lavis-5); border-radius: 4px; background: var(--lavis-9); cursor: pointer;
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--encre); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.check input:checked { background: var(--papier); border-color: var(--papier); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:checked + span { color: var(--papier); }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.submit { font: inherit; font-weight: 500; border: 0; cursor: pointer; font-size: 1.0625rem; padding: 1em 2em; }
.submit:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; color: var(--lavis-3); }
.form-status.bad { color: #ff8a7a; }

/* Confirmation */
.rdv-done { grid-column: 1 / -1; max-width: 640px; outline: none; }
.rdv-done h2 { font-size: clamp(2.8rem, 7vw, 5.5rem); margin-bottom: 24px; }
.rdv-done p { color: var(--lavis-3); font-size: 1.125rem; }
.rdv-done .btn { margin-top: 12px; }
.motion .rdv-done:not([hidden]) { animation: fade-up .9s var(--ease) both; }

/* ---------- Pages FAQ et Projets à rabais ---------- */
.page main { padding-top: var(--nav-h); }
.page-intro {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--lavis-8);
}
.page-intro h1 { font-size: clamp(3.2rem, 9vw, 8.5rem); line-height: .92; margin-bottom: .35em; }
.page-intro .lede { max-width: 52ch; }
.motion .page-intro h1 .line > span { animation: rise-line 1.2s var(--ease) both; }
.motion .page-intro h1 .line:nth-child(2) > span { animation-delay: .15s; }
.motion .page-intro .lede, .motion .page-intro .rdv-facts { animation: fade-up 1s var(--ease) .5s both; }
.page-intro .rdv-facts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .page-intro .rdv-facts { grid-template-columns: 1fr; } }

/* FAQ : sections à gauche, questions dépliables à droite */
.faq-body {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 120px);
}
.faq-groups { display: grid; gap: clamp(56px, 7vw, 88px); min-width: 0; }
.faq-group { scroll-margin-top: calc(var(--nav-h) + 32px); }
.faq-group h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.faq-item { border-top: 1px solid var(--lavis-8); scroll-margin-top: calc(var(--nav-h) + 24px); }
.faq-item:last-child { border-bottom: 1px solid var(--lavis-8); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0; font-size: clamp(1.125rem, 1.6vw, 1.3rem); font-weight: 500;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item summary::after {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 4px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .4s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-answer { padding: 0 0 26px; max-width: 64ch; color: var(--lavis-3); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-steps { counter-reset: fs; display: grid; gap: 10px; margin: 0; }
.faq-steps li { counter-increment: fs; display: flex; gap: 14px; }
.faq-steps li::before { content: counter(fs); font-family: var(--display); color: var(--papier); min-width: 1ch; }

/* Ouverture fluide là où le navigateur le permet */
@supports (interpolate-size: allow-keywords) {
  .motion .faq-item { interpolate-size: allow-keywords; }
  .motion .faq-item::details-content {
    height: 0; overflow: clip;
    transition: height .45s var(--ease), content-visibility .45s allow-discrete;
  }
  .motion .faq-item[open]::details-content { height: auto; }
}
@media (max-width: 860px) {
  .faq-body { grid-template-columns: 1fr; }
}

/* Bandeau de fin de page */
.page-cta {
  border-top: 1px solid var(--lavis-8);
  padding: clamp(72px, 9vw, 120px) var(--gutter);
  background: radial-gradient(ellipse 80% 60% at 20% 100%, rgba(255,255,255,.09), transparent 70%), var(--encre);
}
.page-cta-inner { max-width: var(--max); margin: 0 auto; }
.page-cta h2 { font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 20px; max-width: 16ch; }
.page-cta .lede { color: var(--lavis-3); max-width: 52ch; }
.page-cta .book-cta { margin-top: 32px; }

/* Projets à rabais : feuille de flashs */
.flash-body { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 120px); }
.flash-grid { columns: 3 280px; column-gap: clamp(16px, 2.5vw, 32px); }
.flash { break-inside: avoid; margin: 0 0 clamp(32px, 4vw, 48px); }
.flash-sheet {
  display: block; width: 100%; padding: clamp(16px, 2vw, 28px); border: 0; cursor: zoom-in;
  background: #fff; border-radius: 4px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.flash-sheet img { width: 100%; height: auto; }
.flash-sheet:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 24px 48px rgba(0,0,0,.6); }
.flash:nth-child(even) .flash-sheet:hover { transform: translateY(-6px) rotate(.6deg); }
.flash-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.flash-info h2 { font-family: var(--text); font-size: 1rem; font-weight: 500; line-height: 1.4; }
.flash-price { font-family: var(--display); font-size: 1.5rem; white-space: nowrap; }
.flash .link { display: inline-block; margin-top: 8px; font-size: 0.9375rem; }
.flash-note { max-width: 64ch; color: var(--lavis-3); margin-top: 16px; }
.calm .flash-sheet:hover { transform: none; }
@media (max-width: 860px) { .faq-body .rdv-rail { display: none; } }

/* ---------- Page Soins : ligne du temps de la guérison ---------- */
.care-body { max-width: 980px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(72px, 9vw, 120px); }
.care-timeline { --tp: 0; position: relative; display: grid; gap: clamp(40px, 6vw, 72px); padding-left: clamp(40px, 7vw, 88px); }
.care-timeline::before, .care-timeline::after {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px;
}
.care-timeline::before { background: var(--lavis-8); }
.care-timeline::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--tp)); }
.calm .care-timeline::after { transform: none; }
.care-step { position: relative; scroll-margin-top: calc(var(--nav-h) + 24px); }
.care-step::before {
  content: ""; position: absolute; top: 6px; left: calc(-1 * clamp(40px, 7vw, 88px) + 4px);
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--encre); border: 1px solid var(--lavis-5);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.care-step.reached::before, .calm .care-step::before { background: var(--papier); border-color: var(--papier); box-shadow: 0 0 14px rgba(255,255,255,.35); }
.care-when { font-size: 0.875rem; color: var(--lavis-5); margin-bottom: 6px; transition: color .4s; }
.care-step.reached .care-when { color: var(--lavis-3); }
.care-step h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.care-step p { color: var(--lavis-3); max-width: 60ch; margin: 0; }
.motion .care-step h2, .motion .care-step p { opacity: .35; transition: opacity .6s var(--ease); }
.motion .care-step.reached h2, .motion .care-step.reached p { opacity: 1; }

.care-avoid { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.care-avoid li { padding: 0.4em 0.95em; border: 1px solid var(--lavis-5); border-radius: 999px; font-size: 0.875rem; color: var(--papier); }

.care-alert {
  margin-top: clamp(64px, 8vw, 96px); padding: clamp(24px, 4vw, 40px);
  border: 1px solid #ff8a7a; border-radius: 6px; background: rgba(255,138,122,.06);
}
.care-alert h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.care-alert p { color: var(--lavis-3); max-width: 60ch; margin: 0; }
.care-alert .care-when { color: #ff8a7a; }
