/* =========================================================
   Design system v2 — ambiance hybride « nuit + sable »
   Base issue de UI UX Pro Max (uupm.cc, pattern confiance + conversion,
   style accessible & éthique), recolorée à la demande :
   sections 3D en bleu nuit, pages d'information en sable, accents sauge.
   Tous les couples texte/fond respectent un contraste ≥ 4.5:1.
   ========================================================= */

@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-italic-var.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
/* Raleway (Google Fonts, licence OFL : /fonts/OFL-Raleway.txt), auto-hébergée */
@font-face {
  font-family: "Raleway";
  src: url("/fonts/raleway-var.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* sable — pages et sections d'information */
  --sand-50: #F4EFE6;     /* fond principal */
  --sand-100: #FAF6EF;    /* sections alternées */
  --sand-200: #E7DCC9;    /* bordures douces */
  --sand-300: #D6C7AE;
  /* sauge — accents, liens, boutons */
  --sage-300: #A8CDB8;
  --sage-500: #5E8C77;
  --sage-700: #2F5D4E;
  --sage-800: #234739;
  /* nuit — sections 3D */
  --night-900: #0B1624;
  --night-800: #102033;
  --night-700: #18304A;
  --night-text: #E9EEEF;
  --night-muted: #A9B9C2;
  --night-line: rgba(233, 238, 239, 0.14);
  --glow: #9FD4BC;
  /* texte */
  --ink: #1E2A30;
  --muted: #5A615D;
  --white: #FFFFFF;
  --line: #D9CBB2;
  --input-border: #7D7468;

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-pill: 999px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Raleway dessine par défaut des chiffres « elzéviriens » qui descendent sous la ligne :
     on force des chiffres alignés, plus lisibles pour les horaires, tarifs et téléphones */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--sage-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sage-500); outline-offset: 3px; border-radius: 4px; }

/* Échelle typographique éditoriale : grands titres Lora medium, approche resserrée */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem); line-height: 1.6; color: var(--ink); max-width: 60ch; }
.small { font-size: 0.92rem; color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; }

.demo-banner { background: #FEF3C7; color: #78350F; text-align: center; font-size: 0.9rem; padding: 8px var(--gutter); }

.icon { flex-shrink: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn-cta { background: var(--sage-700); color: var(--white); }
.btn-cta:hover { background: var(--sage-800); color: var(--white); }
.btn-primary { background: var(--sage-700); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 600; display: inline-block; margin-top: 4px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  border-bottom: 1px solid var(--sand-200);
}
/* Le flou est porté par un pseudo-élément : posé sur l'en-tête lui-même, il
   enfermerait le menu mobile (position: fixed) dans la hauteur de l'en-tête. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 28px; height: 35px; fill: none; stroke-linecap: round; }
.brand-mark .bm-main { stroke: var(--ink); stroke-width: 7; }
.brand-mark .bm-side { stroke: var(--sage-500); stroke-width: 5; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; font-style: italic; }
.brand-role { font-size: 0.85rem; color: var(--muted); }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover { background: var(--sand-200); }
.main-nav a[aria-current="page"] { color: var(--sage-700); box-shadow: inset 0 -2px 0 var(--sage-500); border-radius: 0; }
.main-nav .nav-faq { display: none; }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius-s); }
.nav-toggle-close { display: none; }

@media (max-width: 1180px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--sand-50);
    padding: 24px var(--gutter); display: none; overflow-y: auto;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-family: var(--font-display); font-size: 1.5rem; padding: 14px 0; border-bottom: 1px solid var(--sand-200); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: none; }
  .main-nav .nav-faq { display: block; }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { display: block; }
  body.nav-open .nav-toggle-open { display: none; }
  body.nav-open .nav-toggle-close { display: inline; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 35%; height: 120%;
  background: radial-gradient(closest-side, rgba(94, 140, 119, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-kicker { font-weight: 600; color: var(--sage-700); margin-bottom: 14px; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 28px; }
.hero-meta { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 0.95rem; }

.hero-visual { position: relative; height: clamp(440px, 70vh, 640px); }
.hero-visual canvas { position: absolute; inset: 0 0 32px 0; width: 100%; height: calc(100% - 32px); }
.spine-fallback { position: absolute; inset: 0 0 32px 0; margin: auto; height: 86%; width: auto; opacity: 1; transition: opacity .6s ease; }
.hero-visual.is-3d .spine-fallback { opacity: 0; }
.hero-visual-caption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 0.85rem; color: var(--muted); margin: 0; opacity: 0; transition: opacity .6s ease .8s; }
.hero-visual.is-3d .hero-visual-caption { opacity: 1; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; order: 2; }
  .hero h1 { max-width: 20ch; }
}

/* ---------- Bandeau de faits ---------- */
.facts { border-block: 1px solid var(--sand-200); background: var(--sand-100); }
.facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts p { margin: 0; padding: 22px 20px; font-size: 0.95rem; color: var(--muted); border-left: 1px solid var(--sand-200); }
.facts p:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
@media (max-width: 860px) {
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .facts p { border-left: 0; padding: 16px 0; }
  .facts p:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--sand-200); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--sand-100); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); }
.section-title { margin-bottom: clamp(24px, 3vw, 40px); }
.two-col { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.col-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.col-intro p { color: var(--muted); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .col-intro { position: static; } }

.page-header { padding-block: clamp(48px, 7vw, 96px) clamp(16px, 3vw, 32px); }
.page-header h1 { max-width: 18ch; }

/* Motifs : liste de définitions sur deux colonnes */
.motifs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.motifs > div { padding: 22px 0; border-top: 1px solid var(--line); }
.motifs dt { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.motifs dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .motifs { grid-template-columns: 1fr; } }

/* Techniques (accueil) */
.technique-list { list-style: none; margin: 0; padding: 0; }
.technique-list li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.technique-list li:last-child { border-bottom: 1px solid var(--line); }
.technique-list h3 { margin: 0; font-size: 1.2rem; }
.technique-list p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .technique-list li { grid-template-columns: 1fr; gap: 4px; } }

/* Onglets « Pour qui ? » */
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab-list [role="tab"] {
  font: 600 0.98rem var(--font-body); color: var(--ink);
  background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius-pill);
  min-height: 44px; padding: 10px 18px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.tab-list [role="tab"]:hover { border-color: var(--sage-700); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tab-panel { max-width: 68ch; }
.tab-panel h3 { font-size: 1.6rem; }
.tab-panel p { font-size: 1.1rem; }

.note { display: flex; gap: 10px; align-items: flex-start; background: var(--sand-50); border-left: 3px solid var(--sage-500); padding: 12px 16px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 0.98rem !important; }
.note .icon { margin-top: 3px; color: var(--sage-700); }
.section-tint .note, .tab-panel .note { background: var(--sand-50); }

/* Étapes de séance : vraie séquence, donc numérotée */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 56px 24px 0 0; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1.05rem var(--font-display); color: var(--white); background: var(--sage-700);
}
.steps li::after { content: ""; position: absolute; top: 19px; left: 46px; right: 8px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 56px; }
  .steps li::after { display: none; }
}
.steps-compact { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 2em; }
.steps-compact li { padding: 0 0 0 56px; }
.steps-compact li::after { display: none; }
@media (max-width: 560px) { .steps-compact { grid-template-columns: 1fr; } }

/* Praticien */
.practitioner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .practitioner { grid-template-columns: 1fr; } .practitioner .photo-placeholder { max-width: 420px; } }

.photo-placeholder { position: relative; margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--sand-200); }
.photo-placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-bg { fill: #E9DFCD; }
.ph-shape-1 { fill: #DDD0B8; }
.ph-shape-2 { fill: #C9D8C6; }
.photo-b .ph-bg { fill: #E3E6DC; } .photo-b .ph-shape-1 { fill: #D2DACB; } .photo-b .ph-shape-2 { fill: #BFD0BF; }
.photo-c .ph-bg { fill: #EEE5D6; } .photo-c .ph-shape-1 { fill: #E2D3BC; } .photo-c .ph-shape-2 { fill: #D4C1A3; }
.photo-placeholder figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; font-size: 0.88rem; color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0 0 24px; padding: 0; }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline-year { font-family: var(--font-display); font-weight: 600; color: var(--sage-700); }

/* Horaires & adresse */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; width: 40%; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--sage-700); }
.hours tr.is-today th::after { content: " (aujourd'hui)"; font-weight: 400; font-size: 0.9rem; }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.open-now .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.open-now.is-open .dot { background: var(--sage-500); box-shadow: 0 0 0 4px rgba(94, 140, 119, .22); }
.address-block p { margin-bottom: 14px; }
.with-icon { display: flex; gap: 12px; align-items: flex-start; }
.with-icon .icon { margin-top: 4px; color: var(--sage-700); }
.address-block .btn { margin-top: 6px; }

/* CTA final */
.cta-section { background: var(--night-800); color: var(--night-text); padding-block: clamp(56px, 7vw, 88px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-inner > div { max-width: 52ch; }
.cta-inner p { color: var(--night-muted); margin: 0; }
.cta-section .btn-ghost { color: var(--white); border-color: var(--white); }
.cta-section .btn-ghost:hover { background: var(--white); color: var(--night-900); }
.cta-section .btn-cta { background: var(--sage-300); color: var(--night-900); }
.cta-section .btn-cta:hover { background: var(--glow); color: var(--night-900); }

/* Pages de contenu */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding: 8px 0 8px 30px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--sage-700); border-bottom: 2px solid var(--sage-700); transform: rotate(-45deg); }

.technique-detail, .publics-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.technique-detail article, .publics-detail article { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.technique-short { font-size: 1.1rem; color: var(--ink); font-weight: 500; }
.technique-detail p:last-child, .publics-detail p:last-child { margin-bottom: 0; }
.technique-detail article p:not(.technique-short), .publics-detail article > p:not(.note) { color: var(--muted); }
@media (max-width: 860px) { .technique-detail, .publics-detail { grid-template-columns: 1fr; } }

.price-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.price-table th, .price-table td { text-align: left; padding: 14px 12px 14px 0; border-top: 1px solid var(--line); }
.price-table thead th { font-size: 0.9rem; color: var(--muted); font-weight: 600; border-top: 0; }
.price-table tbody th { font-weight: 600; }
.price-table .price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; white-space: nowrap; text-align: right; padding-right: 0; }
.price-table thead th:last-child { text-align: right; padding-right: 0; }

.booking-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
.booking-box h2 { margin-bottom: 8px; }
.booking-box p { margin: 0; color: var(--muted); max-width: 48ch; }

/* Formulaire */
.contact-form { margin-top: 24px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field-help { font-size: 0.92rem; color: var(--muted); margin: -2px 0 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--input-border); border-radius: var(--radius-s); padding: 12px 14px; min-height: 48px;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--sage-500); outline-offset: 1px; border-color: var(--sage-700); }
.field [aria-invalid="true"] { border-color: #B91C1C; }
.field-error { color: #B91C1C; font-size: 0.92rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; }

/* FAQ */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s ease; color: var(--sage-700); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }
.faq-more { margin-top: 28px; }

/* Pied de page */
.site-footer { background: var(--night-900); color: var(--night-muted); padding-block: 56px 24px; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 0.9fr; gap: 32px; }
.footer-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 6px; }
.footer-title { font-weight: 700; color: var(--white); margin-bottom: 8px; }
.site-footer address { font-style: normal; margin-bottom: 1em; }
.footer-hours, .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.footer-links li { padding: 3px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Barre d'action mobile */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 239, 230, 0.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 14px; }
  body { padding-bottom: 76px; }
  body.nav-open .mobile-bar { display: none; }
}

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

@media (max-width: 560px) {
  .price-table td:nth-child(2) { white-space: nowrap; font-size: 0.9rem; color: var(--muted); }
  .price-table tbody th { font-size: 0.98rem; }
}

/* =========================================================
   v2 — sections « nuit » : corps 3D et visite du cabinet
   ========================================================= */
.night { background: var(--night-900); color: var(--night-text); position: relative; isolation: isolate; }
.night h1, .night h2, .night h3 { color: var(--night-text); }
.night p { color: var(--night-muted); }
.night .lead { color: var(--night-text); }
.night a { color: var(--glow); }
.night .btn-cta { background: var(--sage-300); color: var(--night-900); }
.night .btn-cta:hover { background: var(--glow); color: var(--night-900); }
.night .btn-ghost { color: var(--night-text); border-color: rgba(233, 238, 239, 0.7); }
.night .btn-ghost:hover { background: var(--night-text); color: var(--night-900); }
.night :focus-visible { outline-color: var(--glow); }
.btn-night { background: transparent; color: var(--glow); border-color: rgba(159, 212, 188, 0.55); min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.btn-night:hover { background: rgba(159, 212, 188, 0.12); border-color: var(--glow); }

/* textures organiques en mouvement lent derrière les sections nuit */
.ambient::before, .ambient::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.ambient::before { width: 60vmax; height: 60vmax; left: -15vmax; top: 5%; background: rgba(94, 140, 119, 0.22); animation: drift-a 38s ease-in-out infinite alternate; }
.ambient::after { width: 50vmax; height: 50vmax; right: -12vmax; bottom: -10%; background: rgba(60, 98, 140, 0.25); animation: drift-b 46s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vmax, -8vmax) scale(0.9); } }
@media (prefers-reduced-motion: reduce) { .ambient::before, .ambient::after { animation: none; } }

/* en-tête sombre sur l'accueil */
body.home .site-header { background: rgba(11, 22, 36, 0.82); border-bottom-color: var(--night-line); }
body.home .brand, body.home .main-nav a, body.home .nav-toggle { color: var(--night-text); }
body.home .brand-role { color: var(--night-muted); }
body.home .brand-mark .bm-main { stroke: var(--night-text); }
body.home .brand-mark .bm-side { stroke: var(--sage-300); }
body.home .main-nav a:hover { background: rgba(233, 238, 239, 0.08); }
body.home .main-nav a[aria-current="page"] { color: var(--glow); box-shadow: inset 0 -2px 0 var(--glow); }
body.home .header-cta { background: var(--sage-300); color: var(--night-900); }
body.home .header-cta:hover { background: var(--glow); }
@media (max-width: 1180px) {
  body.home .main-nav { background: var(--night-900); }
  body.home .main-nav a { border-bottom-color: var(--night-line); }
}

/* ---------- Récit 3D du corps ---------- */
.body-story { --stage-h: 100vh; }
@supports (height: 100svh) { .body-story { --stage-h: 100svh; } }
.story-stage { position: sticky; top: 0; height: var(--stage-h); overflow: hidden; }
.story-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-steps { position: relative; z-index: 2; margin-top: calc(var(--stage-h) * -1); pointer-events: none; }
.story-step { min-height: var(--stage-h); display: flex; align-items: center; padding-block: calc(var(--header-h) + 24px) 32px; }
.story-card {
  pointer-events: auto; max-width: 440px;
  background: rgba(16, 32, 51, 0.62); border: 1px solid var(--night-line); border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.story-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.story-intro { max-width: 560px; background: rgba(16, 32, 51, 0.45); }
.story-intro h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); }
.story-intro .lead { margin-bottom: 24px; }
.hero-kicker { color: var(--glow); }
.story-index { font-size: 0.9rem; color: var(--glow) !important; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.story-motifs { list-style: none; padding: 0; margin: 0 0 20px; }
.story-motifs li { position: relative; padding: 6px 0 6px 20px; color: var(--night-text); }
.story-motifs li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); }
.scroll-hint { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 0.92rem; }
@media (prefers-reduced-motion: no-preference) { .scroll-hint .icon { animation: nudge 2.4s ease-in-out infinite; } }
@keyframes nudge { 50% { transform: translateY(4px); } }

.zone-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 600 0.95rem var(--font-body); min-height: 44px; padding: 10px 16px; border-radius: var(--radius-pill); cursor: pointer;
  background: rgba(233, 238, 239, 0.06); color: var(--night-text); border: 1px solid var(--night-line);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--glow); }
.chip[aria-pressed="true"] { background: var(--sage-300); color: var(--night-900); border-color: var(--sage-300); }

/* points cliquables projetés depuis la 3D */
.story-hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot {
  position: absolute; left: 0; top: 0; margin: -22px 0 0 -22px; width: 44px; height: 44px;
  display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--night-text);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.hotspot-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgba(159, 212, 188, 0.25), 0 0 18px rgba(159, 212, 188, 0.8); }
@media (prefers-reduced-motion: no-preference) {
  .hotspot-dot { animation: pulse 2.6s ease-out infinite; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(159, 212, 188, 0.55), 0 0 18px rgba(159, 212, 188, 0.8); } 100% { box-shadow: 0 0 0 16px rgba(159, 212, 188, 0), 0 0 18px rgba(159, 212, 188, 0.8); } }
.hotspot-label {
  position: absolute; left: 36px; white-space: nowrap; font: 600 0.88rem var(--font-body);
  background: rgba(11, 22, 36, 0.85); border: 1px solid var(--night-line); border-radius: var(--radius-pill); padding: 6px 12px;
  opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s;
}
.hotspot:hover .hotspot-label, .hotspot.is-active .hotspot-label { opacity: 1; transform: none; }
.body-story[data-active="intro"] .hotspot-label, .body-story[data-active="explore"] .hotspot-label { opacity: 1; transform: none; }

.story-progress { position: absolute; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story-progress li { width: 6px; height: 6px; border-radius: 50%; background: var(--night-line); transition: background-color .3s, transform .3s; }
.story-progress li.is-current { background: var(--glow); transform: scale(1.5); }

@media (max-width: 860px) {
  /* téléphone : corps en haut, carte compacte en bas, au-dessus de la barre d'actions */
  /* chaque carte de zone reste épinglée en bas de l'écran pendant tout son passage */
  .story-step { min-height: 86vh; align-items: flex-start; padding-block: 0; }
  @supports (height: 100svh) { .story-step { min-height: 86svh; } }
  .story-step[data-zone] .wrap { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .story-step:first-child, .story-step:last-child { min-height: var(--stage-h); align-items: flex-end; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .story-card { max-width: none; padding: 18px 18px 16px; border-radius: 18px; background: rgba(16, 32, 51, 0.92); }
  .story-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
  .story-card p { font-size: 0.98rem; line-height: 1.55; margin-bottom: 14px; }
  .story-index { font-size: 0.85rem; margin-bottom: 4px !important; }
  .story-motifs { display: none; }
  /* accueil : pas de carte, un fondu sombre sous le texte et le corps entier visible au-dessus */
  .story-intro { background: linear-gradient(to top, rgba(11, 22, 36, 0.96) 55%, rgba(11, 22, 36, 0)); border: 0; border-radius: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none; padding: 48px 4px 4px; margin-inline: -4px; }
  .story-intro h1 { font-size: 2rem; margin-bottom: 10px; }
  .story-intro .hero-kicker { font-size: 0.92rem; margin-bottom: 8px; }
  .story-intro .lead { font-size: 1rem; margin-bottom: 0; }
  .story-intro .btn-row { display: none; }
  .scroll-hint { margin-top: 14px; }
  .story-progress { display: none; }
  .hotspot-label { display: none; }
  .hotspot.is-active .hotspot-label { display: block; }
}

/* sans WebGL : le récit devient une suite de sections classiques */
.body-story.no-3d .story-stage { display: none; }
.body-story.no-3d .story-steps { margin-top: 0; }
.body-story.no-3d .story-step { min-height: 0; padding-block: 32px; }
.body-story.no-3d .story-step[data-step="0"] { padding-top: 72px; }

/* fenêtre de détail d'une zone */
.zone-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto;
  border: 0; border-radius: 20px; padding: clamp(24px, 4vw, 36px); background: var(--sand-100); color: var(--ink);
  box-shadow: 0 30px 80px rgba(11, 22, 36, 0.45);
}
.zone-dialog::backdrop { background: rgba(11, 22, 36, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.zone-dialog h2 { padding-right: 48px; }
.zone-dialog h3 { font-size: 1.1rem; margin-top: 1.2em; }
.zone-dialog .btn { margin-top: 8px; }
.zone-dialog-close { position: absolute; top: 14px; right: 14px; margin: 0; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--sand-200); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--sand-300); }
@media (prefers-reduced-motion: no-preference) {
  .zone-dialog[open] { animation: rise .28s ease-out; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Visite du cabinet ---------- */
.tour { padding-block: var(--section-y); overflow: hidden; }
.tour-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.tour-head > div:first-child { max-width: 56ch; }
.tour-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.tour-stage {
  position: relative; height: clamp(360px, 52vw, 580px); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--night-line);
  background: radial-gradient(120% 90% at 50% 20%, #1B3550 0%, var(--night-800) 55%, var(--night-900) 100%);
}
.tour-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.tour-stage.is-dragging canvas { cursor: grabbing; }
.tour-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; font-size: 0.85rem; background: rgba(11, 22, 36, 0.7); padding: 6px 14px; border-radius: var(--radius-pill); opacity: 0; transition: opacity .4s; pointer-events: none; }
.tour-stage.is-3d .tour-hint { opacity: 1; }
.tour-stage.is-dragging .tour-hint { opacity: 0; }
.tour-fallback { display: none; position: absolute; inset: 0; margin: auto; height: fit-content; max-width: 40ch; text-align: center; padding: 24px; }
.tour-stage.no-3d .tour-fallback { display: block; }
.tour-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 0.92rem; }
.tour-note .icon { margin-top: 3px; color: var(--glow); }

@media (max-width: 860px) {

  body.home .mobile-bar { background: rgba(11, 22, 36, 0.94); border-top-color: var(--night-line); }
  body.home .mobile-bar .btn-ghost { color: var(--night-text); border-color: rgba(233, 238, 239, 0.7); }
  body.home .mobile-bar .btn-cta { background: var(--sage-300); color: var(--night-900); }
}
body.home .site-header { background: rgba(11, 22, 36, 0.94); }
.tour-hint { white-space: nowrap; }
@media (max-width: 560px) { .tour-stage { height: 440px; } }
.ambient { overflow: clip; }

/* ---------- Conseils ---------- */
.article-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.article-list-large { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.article-list a {
  display: grid; gap: 6px; height: 100%; padding: 20px; text-decoration: none; color: var(--ink);
  background: var(--sand-100); border: 1px solid var(--line); border-radius: var(--radius-m);
  transition: border-color .2s;
}
.article-list a:hover { border-color: var(--sage-700); color: var(--ink); }
.al-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.al-sum { color: var(--muted); }
.al-meta { font-size: .88rem; color: var(--muted); }
.article-head { padding-block: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 28px); }
.article-head h1 { max-width: 22ch; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
.breadcrumb { display: flex; gap: 8px; font-size: .92rem; margin-bottom: 16px; color: var(--muted); }
.article-meta { color: var(--muted); font-size: .95rem; }
.article-body { display: grid; gap: 32px; padding-bottom: var(--section-y); }
.article-body .prose { font-size: 1.08rem; }
.article-body .prose h2 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem); }
.alert-box { max-width: 72ch; padding: 22px 24px; border-radius: var(--radius-m); background: #F8E9D9; border: 1px solid #E5C9A8; color: #4A2E12; }
.alert-box h2 { font-size: 1.25rem; color: #4A2E12; }
.alert-box ul { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; }
.alert-box .small { color: #6B4512; margin: 0; }
.related-zone { max-width: 72ch; padding: 22px 24px; border-radius: var(--radius-m); background: var(--night-800); color: var(--night-text); }
.related-zone h2 { font-size: 1.25rem; color: var(--night-text); }
.related-zone p { color: var(--night-muted); }
.related-zone a { color: var(--glow); }
.read-more { max-width: 72ch; }
.read-more h2 { font-size: 1.25rem; }
.page-header + .section { padding-top: clamp(16px, 3vw, 40px); }
.article-list a { display: flex; flex-direction: column; }
.al-meta { margin-top: auto; padding-top: 6px; }


/* =========================================================
   v3 — typographie éditoriale
   ========================================================= */
.btn { letter-spacing: 0.005em; }
/* le nom du praticien, comme dans le logo : Lora italique */
.hero-kicker { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.2rem; letter-spacing: 0; }
.story-intro h1 { font-size: clamp(2.6rem, 1.2rem + 3.8vw, 4.4rem); }
.story-card h2 { font-weight: 500; }
.story-index { font-family: var(--font-display); font-style: italic; font-size: 1rem; }
.page-header h1 { font-size: clamp(2.6rem, 1.2rem + 5vw, 5rem); max-width: 16ch; }
.facts strong { font-weight: 500; font-size: 1.25rem; }
.motifs dt, .faq-item summary, .al-title, .technique-list h3 { font-weight: 500; }
.price-table .price { font-weight: 500; font-size: 1.35rem; }
.timeline-year { font-style: italic; font-weight: 500; }
.footer-name { font-style: italic; font-weight: 500; }
@media (max-width: 860px) {
  .story-intro h1 { font-size: 2.3rem; line-height: 1.06; }
}


/* =========================================================
   v3 — ouverture animée de l'accueil
   ========================================================= */
/* Accueil ordinateur : plus de carte autour du titre, le texte se pose sur la nuit */
@media (min-width: 861px) {
  .story-intro { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; max-width: 620px; }
  .story-intro .lead { max-width: 46ch; }
}

.intro-mark { display: none; }
.intro-on .intro-mark {
  display: block; position: absolute; z-index: 1; pointer-events: none;
  width: 120px; height: 150px; left: 68%; top: 50%; transform: translate(-50%, -50%);
}
@media (max-width: 860px) { .intro-on .intro-mark { left: 50%; top: 36%; } }
.intro-mark svg { width: 100%; height: 100%; overflow: visible; }
.intro-mark path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-mark .im-main { stroke: var(--night-text); stroke-width: 5; }
.intro-mark .im-side { stroke: var(--glow); stroke-width: 3; }

.intro-play .intro-mark path { animation: im-draw 1.2s cubic-bezier(.65, 0, .25, 1) forwards; }
.intro-play .intro-mark .im-side { animation-delay: .15s; }
.intro-play .intro-mark .im-late { animation-delay: .3s; }
.intro-play .intro-mark { animation: im-out .8s cubic-bezier(.5, 0, .2, 1) 1.4s forwards; }
@keyframes im-draw { to { stroke-dashoffset: 0; } }
@keyframes im-out {
  0% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); filter: blur(6px); }
}

/* le titre arrive en dernier, élément par élément */
.intro-on .story-intro > *, .intro-on .story-progress { opacity: 0; }
.intro-play .story-intro > * { animation: intro-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.intro-play .story-intro > :nth-child(1) { animation-delay: 2.5s; }
.intro-play .story-intro > :nth-child(2) { animation-delay: 2.64s; }
.intro-play .story-intro > :nth-child(3) { animation-delay: 2.8s; }
.intro-play .story-intro > :nth-child(4) { animation-delay: 2.95s; }
.intro-play .story-intro > :nth-child(5) { animation-delay: 3.1s; }
@keyframes intro-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .story-step:first-child { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px) + var(--story-top, 76px)); }
}

/* =========================================================
   v4 — pages sable éditoriales : grain papier, en-têtes de page
   composés, sections numérotées, apparitions au défilement
   ========================================================= */

/* grain papier très léger, fixe, ne capte aucun clic */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .11 0 0 0 0 .07 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .075;
}
@media print { body::after { display: none; } }

/* ---------- En-tête de page ---------- */
.page-header { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 128px) clamp(28px, 4.5vw, 64px); border-bottom: 1px solid var(--line); }
.ph-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.ph-grid > * { grid-column: 1 / -1; }
.ph-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font: italic 500 1.15rem/1.3 var(--font-display); color: var(--sage-700); }
.ph-kicker::before { content: ""; width: 44px; height: 1px; background: currentColor; }
.page-header h1 { font-size: clamp(2.6rem, 1.1rem + 5.4vw, 5.6rem); max-width: 13ch; margin-bottom: 0.35em; }
.page-header .lead { margin-bottom: 0; }
@media (min-width: 900px) {
  .page-header h1 { grid-column: 1 / span 10; }
  .page-header .lead { grid-column: 6 / span 5; }
}
/* le motif des trois lignes du logo, en grand et très clair */
.ph-lines {
  position: absolute; top: 6%; right: max(-40px, calc((100vw - var(--wrap)) / 2 - 40px));
  height: 104%; width: auto;
  fill: none; stroke: var(--sage-500); stroke-width: .3; stroke-linecap: round; opacity: .32;
}
.ph-lines path { stroke-dasharray: 1; }
@media (max-width: 899px) { .ph-lines { height: 280px; top: 12px; right: -64px; stroke-width: .45; opacity: .2; } }

@media (prefers-reduced-motion: no-preference) {
  .ph-lines path { animation: ph-draw 2.2s cubic-bezier(.65, 0, .35, 1) both; }
  .ph-lines path:nth-child(1) { animation-delay: .25s; }
  .ph-lines path:nth-child(3) { animation-delay: .45s; }
  .ph-kicker, .page-header h1, .page-header .lead { animation: ph-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .page-header h1 { animation-delay: .08s; }
  .page-header .lead { animation-delay: .2s; }
}
@keyframes ph-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ph-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Sections numérotées (titre à gauche, texte à droite) ---------- */
.ed-section {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 88px);
  padding-block: clamp(40px, 5.5vw, 72px); border-top: 1px solid var(--line);
}
.ed-section:first-child { border-top: 0; padding-top: 0; }
.ed-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.ed-num { display: block; margin-bottom: 12px; font: italic 400 clamp(2.4rem, 1.5rem + 2.8vw, 4.2rem)/1 var(--font-display); color: var(--sage-500); }
.ed-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); max-width: 13ch; margin: 0; }
.ed-body { max-width: 64ch; }
.ed-body > :last-child { margin-bottom: 0; }
.ed-lead { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + .6vw, 1.55rem); line-height: 1.45; }
.ed-body .steps-compact { margin-bottom: 0; }
@media (max-width: 860px) {
  .ed-section { grid-template-columns: 1fr; gap: 14px; }
  .ed-head { position: static; display: flex; align-items: baseline; gap: 14px; }
  .ed-num { font-size: 1.9rem; margin: 0; }
}

/* ---------- Étapes : grands chiffres en italique plutôt que des pastilles ---------- */
.steps li::before {
  content: counter(step, decimal-leading-zero); width: auto; height: auto; border-radius: 0; background: none;
  display: block; font: italic 400 2.1rem/1 var(--font-display); color: var(--sage-500);
}
.steps li::after { top: 17px; left: 56px; }
.night .steps li::before { color: var(--glow); }

/* ---------- Techniques : un index éditorial ---------- */
.technique-detail { grid-template-columns: 1fr; counter-reset: tech; }
.technique-detail article {
  counter-increment: tech; display: grid; grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(20px, 3.5vw, 48px);
  padding: clamp(28px, 3.5vw, 44px) 0;
  background: linear-gradient(var(--sage-700), var(--sage-700)) 0 0 / 0 1px no-repeat;
  transition: background-size .7s cubic-bezier(.2, .7, .2, 1);
}
.technique-detail article:hover, .technique-detail article:target { background-size: 100% 1px; }
.technique-detail article::before { content: counter(tech, decimal-leading-zero); grid-row: 1 / span 2; font: italic 400 2.2rem/1 var(--font-display); color: var(--sage-500); }
.technique-detail h3 { grid-column: 2; font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem); font-weight: 500; }
.technique-detail .technique-short { grid-column: 2; margin: 0; }
.technique-detail article > p:last-child { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 860px) {
  .technique-detail article { grid-template-columns: 1fr; }
  .technique-detail article::before { grid-row: auto; font-size: 1.7rem; margin-bottom: 10px; }
  .technique-detail h3, .technique-detail .technique-short, .technique-detail article > p:last-child { grid-column: 1; grid-row: auto; }
  .technique-detail .technique-short { margin-bottom: 1em; }
}

/* ---------- Petites interactions ---------- */
.btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .3s ease, transform .15s ease; }
.btn:active { transform: scale(.98); }
.btn-cta:hover, .btn-primary:hover { box-shadow: 0 10px 24px -14px rgba(35, 71, 57, .75); }
.btn .icon { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.btn:hover .icon { transform: translateX(2px) rotate(-6deg); }
/* soulignement qui se retire puis revient au survol des liens de texte */
.ed-body a:not(.btn), .prose a:not(.btn), .article-body a:not(.btn) {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s ease, color .2s ease;
}
.ed-body a:not(.btn):hover, .prose a:not(.btn):hover, .article-body a:not(.btn):hover { background-size: 0 1px; background-position: 100% 100%; }
.article-list a { transition: border-color .2s, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.article-list a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(30, 42, 48, .45); }

/* ---------- Apparitions au défilement (posées par main.js) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .reveal { opacity: 1; transform: none; } }
