/* =========================================================
   Modèle « Sylve » — naturopathie, phytothérapie, hygiène de vie
   Univers : la forêt des Franches-Montagnes. Vert sapin très foncé,
   mousse, crème ; Young Serif (titres) et Karla (texte) ; cuivre en
   accent, texte vert sapin posé dessus.
   Haut de page sombre plein écran sur l'image d'en-tête pleine largeur
   (1.10.0) : photo du thérapeute (voile pour la lisibilité) ou dessin de
   la forêt (lune couleur d'accent, crêtes, brume qui dérive, deux rangées
   de sapins dont la première bouge doucement, vague crème).
   Plus bas : portrait en arche et fougère qui se dessine, planches
   d'herbier à double filet, frise de feuilles, cartes en arche sur le
   vert sapin, ticket incliné, mosaïque, agenda crème sur la mousse,
   feuille qui tourne, courbes de niveau, silhouette de sapins.
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  /* Palette du modèle */
  --clair: #F2ECDD;          /* fond crème */
  --bande: #E6DEC9;          /* parcours, contact */
  --etiquette: #FBF7EC;      /* planches d'herbier, champs du formulaire */
  --carte: #F2ECDD;          /* cartes crème posées sur le vert (séances, agenda) */
  --photo-clair: #DCD3BC;    /* portrait et photos en attente */
  --encre: #1D2A20;          /* texte et titres (12,7:1 sur le crème) */
  --doux: #4E5B50;           /* texte secondaire (6,1:1 crème, 5,3:1 bande) */
  --ligne: #B9B29C;          /* filets décoratifs */
  --champ-bord: #857F6B;     /* bord des champs (3,4:1 sur le crème) */
  --mousse-texte: #2C4A33;   /* surtitres, liens, prix sur le crème (8,4:1) */
  --frise: #8E9A86;          /* pointillés de la frise (décor) */
  --danger: #B42318;         /* erreurs du formulaire (5,6:1) */

  /* Couleur principale (modifiable dans l'espace client) */
  --accent: #C77B3F;                                           /* cuivre */
  --accent-ink: #16291D;                                       /* texte posé sur l'accent (4,6:1) */
  --accent-survol: color-mix(in oklab, var(--accent) 86%, #FFFFFF);
  --accent-sur-fonce: var(--accent);                           /* accent sur le vert sapin (4,6:1) */
  --accent-sur-mousse: #DBA57F;                                /* accent éclairci sur la mousse (4,5:1) */
  --accent-deco: var(--accent);                                /* lune, folioles, feuilles : décor */

  /* Blocs foncés : vert sapin (haut de page, séances, pied) et mousse (rendez-vous, bon cadeau) */
  --fonce: #16291D;
  --mousse: #2C4A33;
  --sur-fonce: #F2ECDD;        /* 13:1 sapin, 8,4:1 mousse */
  --sur-fonce-clair: #D5DDD0;  /* 11:1 sapin, 7,1:1 mousse */
  --sur-fonce-doux: #C9D3C2;   /* 9,9:1 sapin, 6,4:1 mousse */
  --sur-fonce-trait: rgba(242, 236, 221, .22);
  --sur-fonce-trait-fort: rgba(242, 236, 221, .45);
  --sur-fonce-voile: rgba(242, 236, 221, .08);
  --surtitre-fonce: var(--accent-sur-fonce);     /* petits surtitres en accent sur le sapin */
  --surtitre-mousse: var(--accent-sur-mousse);   /* … et sur la mousse */

  /* Dessin de la forêt (image d'en-tête sans photo) */
  --crete: #1E3A28;
  --sapins-1: #24432E;
  --sapins-2: #1B3524;
  --brume: rgba(242, 236, 221, .1);
  --brume-haute: rgba(242, 236, 221, .07);
  /* Voile posé sur une photo d'en-tête : texte crème ≥ 6,8:1 même sur une photo blanche */
  --voile-photo: rgba(22, 41, 29, .8);
  --voile-photo-bas: rgba(22, 41, 29, .3);

  /* Typographie */
  --f: Karla, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-titres: "Young Serif", Georgia, "Times New Roman", serif;
  --poids-titres: 400;
  --fs-small: .9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h2: clamp(2.25rem, 1.55rem + 2.3vw, 3.5rem);
  --fs-h2-moyen: clamp(2rem, 1.45rem + 1.8vw, 3rem);
  --fs-h1: clamp(3.5rem, 1.6rem + 6.4vw, 7rem);

  /* Mise en page */
  --max: 1136px;
  --gutter: clamp(18px, 4vw, 32px);
  --section: clamp(68px, 8.5vw, 100px);
  --module-gap: clamp(56px, 7vw, 80px);
  --radius: 26px;
  --radius-carte: 22px;
  --radius-sm: 14px;
  --ombre: 0 26px 48px -30px rgba(22, 41, 29, .55);

  /* Haut de page : hauteur réservée sous le texte pour le paysage (lune, crêtes, sapins) */
  --hero-bas: max(410px, 28.5vw);
  --paysage-h: max(400px, 27.78vw);
}
@media (max-width: 999px) {
  :root { --hero-bas: 372px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--clair);
  color: var(--encre);
  font-family: var(--f);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--f-titres); font-weight: var(--poids-titres); line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
a { color: var(--mousse-texte); text-underline-offset: 3px; }
a:hover { color: var(--encre); }
img, svg { max-width: 100%; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--mousse-texte); outline-offset: 3px; border-radius: 6px; }

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

.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 {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

main { overflow-x: clip; }
main > section { scroll-margin-top: 12px; }

/* Surtitres et titres de section */
.surtitre {
  margin: 0 0 14px;
  font-size: .875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4;
  color: var(--mousse-texte);
}
.titre { font-size: var(--fs-h2); line-height: 1.05; text-wrap: balance; }
.titre-moyen { font-size: var(--fs-h2-moyen); }
.intro { color: var(--doux); max-width: 34em; }

/* ---------- 3. Boutons (arrondis) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 28px;
  border: 1.5px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: var(--accent-survol); border-color: var(--accent-survol); color: var(--accent-ink); transform: translateY(-2px); }
.btn svg { flex: none; }
.btn-grand { min-height: 54px; padding: 14px 30px; }
.btn-sm { min-height: 48px; padding: 10px 24px; font-size: .9375rem; white-space: nowrap; }
/* Bouton au contour clair, sur le vert */
.btn-clair { background: transparent; color: var(--sur-fonce); border-color: var(--sur-fonce-trait-fort); font-weight: 600; }
.btn-clair:hover { background: var(--sur-fonce-voile); border-color: var(--sur-fonce); color: var(--sur-fonce); }
.btn .court { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .agenda-bouton, .rdv-lien, .joindre a { transition: background-color .2s, border-color .2s, color .2s, transform .25s ease; }
}

/* =========================================================
   4. Haut de page : image d'en-tête, bandeau, barre, hero
   ========================================================= */
.haut {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--fonce); color: var(--sur-fonce);
}
.haut :focus-visible { outline-color: var(--sur-fonce); }

/* ---------- 4.1 Image d'en-tête pleine largeur (photo ou dessin) ---------- */
.hero-image {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% var(--entete-pos, 50%);
}
.hero-image.has-photo .hero-dessin { display: none; }
/* Avec une photo : voile vert sapin sur la zone du texte (≥ 4,5:1 sur n'importe quelle photo), plus léger dessous */
.hero-image.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--voile-photo) 0, var(--voile-photo) calc(100% - var(--hero-bas)), var(--voile-photo-bas) 100%);
}
.hero-dessin { position: absolute; display: block; max-width: none; }
/* Lune (ou soleil) couleur d'accent : sous le texte, posée derrière les crêtes */
.hero-lune {
  left: 12%; bottom: max(250px, 17.4vw);
  width: max(150px, 10.4vw); height: auto; aspect-ratio: 1;
  fill: var(--accent-deco); opacity: .85;
}
.hero-paysage { left: 0; bottom: 0; width: 100%; height: var(--paysage-h); }
.paysage-crete { fill: var(--crete); }
.sapins-1 path { fill: var(--sapins-1); }
.sapins-2 { fill: var(--sapins-2); }
.brume { fill: var(--brume); }
.brume-haute { fill: var(--brume-haute); }
@media (max-width: 999px) {
  .hero-lune { left: 8%; bottom: 240px; width: 120px; }
}

/* ---------- 4.2 Bandeau « Message important » (en haut, sur le vert) ---------- */
.module-bandeau { position: relative; z-index: 2; background: rgba(0, 0, 0, .22); color: var(--sur-fonce); }
.module-bandeau p {
  margin: 0; padding-block: 10px;
  font-size: .875rem; font-weight: 600; line-height: 1.45; text-align: center;
}

/* ---------- 4.3 Barre : pastille feuille, enseigne, menu, bouton ---------- */
.barre { position: relative; z-index: 2; }
.barre-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 28px;
  padding-block: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 0 1 auto; color: var(--sur-fonce); text-decoration: none; }
.brand:hover { color: var(--sur-fonce); }
.brand-pastille {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--accent-sur-fonce); color: var(--accent-sur-fonce);
}
.brand-textes { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-nom { font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: 1.375rem; text-wrap: balance; }
.brand-sous { margin-top: 2px; font-size: .875rem; color: var(--sur-fonce-doux); }
/* « Aurèle Sorvillard · Naturopathe » : le point n'apparaît que si le nom est affiché sous l'enseigne */
.ligne-personne:not([hidden]) + .ligne-metier::before { content: " · "; }
.ligne-metier:empty, .ligne-personne:empty { display: none; }
.nav { flex: none; }
.nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 10px 0;
  color: var(--sur-fonce); font-size: 1rem; font-weight: 600; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--sur-fonce); border-bottom-color: var(--accent-sur-fonce); }
/* Titre long (enseigne de plus de 34 signes, classe posée par la vue et suivie par sylve.js) :
   le menu passe sur sa propre ligne, sous le titre et le bouton */
.barre-titre-long .brand { flex: 0 1 auto; }
.barre-titre-long .brand-nom { max-width: 24em; }
.barre-titre-long .barre-btn { order: 2; }
.barre-titre-long .nav { order: 3; flex: 1 1 100%; margin-top: -4px; border-top: 1px solid var(--sur-fonce-trait); }
.barre-titre-long .nav ul { flex-wrap: wrap; column-gap: 28px; }
@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 600px) {
  .barre-inner { padding-block: 18px; }
  .brand-pastille { width: 42px; height: 42px; }
  .brand-nom { font-size: 1.1875rem; }
}
@media (max-width: 380px) {
  .btn .long { display: none; }
  .btn .court { display: inline; }
}

/* ---------- 4.4 Hero centré ---------- */
.hero { position: relative; z-index: 1; }
.hero-contenu {
  padding-block: clamp(36px, 6vw, 72px) var(--hero-bas);
  text-align: center;
}
.hero-surtitre {
  margin: 0 0 18px;
  font-size: .875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--surtitre-fonce);
}
/* « Naturopathe · Saignelégier » : pas de point si l'un des deux manque (aperçu) */
.hero-sep:has(+ :empty), [data-field="profession"]:empty + .hero-sep { display: none; }
.hero-titre {
  max-width: 11em; margin-inline: auto;
  font-size: var(--fs-h1); line-height: .98; letter-spacing: -.02em;
  text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
.hero-titre[data-longueur="long"] { max-width: 14em; font-size: clamp(2.5rem, 1.2rem + 4.4vw, 4.75rem); line-height: 1.02; }
.hero-titre[data-longueur="tres-long"] { max-width: 18em; font-size: clamp(2rem, 1rem + 3vw, 3.375rem); line-height: 1.06; }
.hero-phrase { display: block; }
.hero-mis { color: var(--accent-sur-fonce); }
.hero-lead { max-width: 32em; margin: 28px auto 0; font-size: var(--fs-lead); color: var(--sur-fonce-clair); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero-titre + .hero-actions { margin-top: 40px; }
/* Avec une photo : le surtitre passe en crème, le mot en couleur garde ≥ 3:1 (grand texte) */
.hero-image.has-photo ~ .hero .hero-surtitre { color: var(--sur-fonce-clair); }
.hero-image.has-photo ~ .hero .hero-mis { color: var(--accent-sur-mousse); }
@media (max-width: 480px) {
  .hero-lead { font-size: 1.125rem; }
  .hero-actions .btn { flex: 1 1 100%; max-width: 360px; }
}

/* ---------- 4.5 Pastille des agréments et vague crème ---------- */
.hero-agrement { position: absolute; z-index: 3; right: 6%; bottom: 96px; pointer-events: none; }
.agrement-disque {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  text-align: center; line-height: 1.1;
  transform: rotate(-8deg);
}
.badge-agrement strong { display: block; font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: 1.75rem; }
.badge-mention { display: none; font-size: .8125rem; font-weight: 700; }
/* ASCA et RME : « ASCA » en grand, « et RME » dessous ; un seul : « agrément » dessous ; aucun : pas de pastille */
.agrement-disque:not(:has(.badge-agrement[hidden])) .badge-agrement + .badge-agrement strong { font-family: var(--f); font-size: .8125rem; font-weight: 700; }
.agrement-disque:not(:has(.badge-agrement[hidden])) .badge-agrement + .badge-agrement strong::before { content: "et "; }
.agrement-disque:has(.badge-agrement[hidden]) .badge-mention { display: block; }
.hero-agrement:not(:has(.badge-agrement:not([hidden]))) { display: none; }
@media (max-width: 600px) {
  .hero-agrement { right: 5%; bottom: 70px; }
  .agrement-disque { width: 100px; height: 100px; }
  .badge-agrement strong { font-size: 1.5rem; }
}

.hero-vague { position: absolute; z-index: 2; left: 0; bottom: -1px; display: block; width: 100%; height: 56px; }
.hero-vague path { fill: var(--clair); }
.haut-suite-bande .hero-vague path { fill: var(--bande); }
.haut-suite-mousse .hero-vague path { fill: var(--mousse); }
.haut-suite-fonce .hero-vague { display: none; }

/* Entrée et mouvements du haut de page (coupés : data-animations="non", prefers-reduced-motion) */
@keyframes s-monte { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes s-brume { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
@keyframes s-sapins { from { transform: translateX(0); } to { transform: translateX(-24px); } }
@keyframes s-balance { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes s-pose { from { opacity: 0; transform: scale(.6) rotate(-40deg); } to { opacity: 1; transform: rotate(-8deg); } }
@keyframes s-lune { from { opacity: 0; translate: 0 40px; } to { opacity: .85; translate: 0 0; } }
@keyframes s-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.18); opacity: .45; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-surtitre { animation: s-monte .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-titre { animation: s-monte .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .hero-lead, .hero-actions { animation: s-monte .9s cubic-bezier(.2, .7, .2, 1) .3s both; }
  .agrement-disque { animation: s-pose 1s cubic-bezier(.2, .7, .2, 1) .5s both; }
  .hero-lune { animation: s-lune 1.6s cubic-bezier(.2, .7, .2, 1) .2s both; }
  .brume-1 { animation: s-brume 18s ease-in-out infinite alternate; }
  .brume-2, .brume-haute { animation: s-brume 26s ease-in-out -8s infinite alternate-reverse; }
  .sapins-1 { animation: s-sapins 14s ease-in-out infinite alternate; }
}

/* =========================================================
   5. Mon approche : portrait en arche, fougère, planches d'herbier
   ========================================================= */
.approche { padding-block: clamp(64px, 8.5vw, 96px) var(--section); }
.approche-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px); align-items: center;
}
.approche-grid > * { min-width: 0; }
.approche .titre { margin-bottom: 24px; }
.approche-corps { max-width: 36em; color: var(--doux); }
.approche-corps p { margin-bottom: 16px; }
.approche-visuel { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.portrait {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 400px 400px 28px 28px;
  background: var(--photo-clair);
}
.portrait-initiales {
  font-family: var(--f-titres); font-weight: var(--poids-titres);
  font-size: clamp(4.5rem, 3rem + 5vw, 7rem); line-height: 1;
  color: var(--mousse-texte);
}
.portrait.has-photo .portrait-initiales { display: none; }
.fougere { position: absolute; left: -70px; bottom: -30px; width: 170px; pointer-events: none; transform-origin: 50% 100%; }
.fougere svg { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke-linecap: round; }
.fougere-tige { stroke: var(--mousse-texte); stroke-width: 2.2; }
.fougere-pennes { stroke: var(--mousse-texte); stroke-width: 1.8; }
.fougere-folioles { stroke: var(--accent-deco); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .fougere { animation: s-balance 6s ease-in-out infinite; }
}
@media (max-width: 860px) {
  .approche-grid { grid-template-columns: minmax(0, 1fr); }
  .approche-visuel { max-width: 320px; }
  .fougere { left: -34px; bottom: -24px; width: 130px; }
}

/* Planches d'herbier (cartes crème à double filet) */
.planches {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px;
  margin-top: clamp(56px, 7vw, 88px); padding: 0; list-style: none;
}
.planche {
  min-width: 0; padding: 30px 28px;
  background: var(--etiquette);
  border: 1px solid var(--mousse-texte);
  outline: 1px solid var(--mousse-texte); outline-offset: -7px;
}
.planche p { margin: 0; color: var(--doux); }
.planche .planche-numero {
  margin: 0 0 6px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.planche-titre { margin: 0 0 10px; font-size: 1.75rem; line-height: 1.1; }

/* =========================================================
   6. Mon parcours (rubrique en plus) : frise de feuilles
   ========================================================= */
.module-parcours { padding-block: clamp(64px, 8vw, 88px); background: var(--bande); }
.parcours-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.parcours-tete .titre { font-size: var(--fs-h2-moyen); }
.parcours-tete .intro:empty { display: none; }
.frise {
  position: relative; overflow-x: clip;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px;
  margin: 44px 0 0; padding: 0; list-style: none;
}
.frise li { position: relative; min-width: 0; padding-top: 46px; }
/* Pointillés : de la feuille jusqu'à la suivante */
.frise li::before {
  content: ""; position: absolute; top: 13px; left: 0; right: -28px;
  border-top: 2px dashed var(--frise);
}
.frise li:last-child::before { right: 0; }
.frise-feuille {
  position: absolute; z-index: 1; top: 0; left: 0;
  width: 28px; height: 28px; border-radius: 50% 0;
  background: var(--mousse-texte);
}
.frise li:last-child .frise-feuille { background: var(--accent-deco); }
.frise [data-k="annee"] { display: block; font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: 1.375rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.frise [data-k="titre"] { display: block; margin-top: 4px; font-weight: 600; line-height: 1.45; }
.frise [data-k="ecole"] { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--doux); }
@media (max-width: 560px) {
  .frise { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .frise li { padding: 0 0 0 48px; }
  .frise li::before { top: 28px; bottom: -26px; left: 13px; right: auto; border-top: 0; border-left: 2px dashed var(--frise); }
  .frise li:last-child::before { display: none; }
}

/* =========================================================
   7. Séances et tarifs (vert sapin, cartes crème en arche)
   ========================================================= */
.seances { padding-block: var(--section); background: var(--fonce); color: var(--sur-fonce); }
.seances :focus-visible { outline-color: var(--sur-fonce); }
.seances .surtitre { color: var(--surtitre-fonce); }
.seances-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: 48px; }
.seances-agrements { max-width: 24em; margin: 0; color: var(--sur-fonce-doux); }
.seances-agrements:has([data-show][hidden]) .et { display: none; }
.seances-agrements:not(:has([data-show]:not([hidden]))) { display: none; }
.seances-liste {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 24px;
  margin: 0; padding: 0; list-style: none;
}
.seance { min-width: 0; }
.seance-carte {
  display: flex; flex-direction: column; gap: 12px; height: 100%;
  padding: 96px 30px 32px;
  border-radius: 180px 180px var(--radius-carte) var(--radius-carte);
  background: var(--carte); color: var(--encre); text-decoration: none;
}
.seance-carte:hover { color: var(--encre); transform: translateY(-8px); }
.seance-carte:focus-visible { outline-offset: 4px; border-radius: 180px 180px var(--radius-carte) var(--radius-carte); }
@media (prefers-reduced-motion: no-preference) {
  .seance-carte { transition: transform .35s ease; }
}
.seance-duree { font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); }
.seance-duree:empty { display: none; }
.seance-nom { font-size: clamp(1.625rem, 1.4rem + .6vw, 1.875rem); line-height: 1.1; }
.seance-desc { margin: 0; color: var(--doux); }
.seance-prix {
  margin-top: auto; padding-top: 14px;
  font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: 1.625rem; line-height: 1.2;
  color: var(--mousse-texte); font-variant-numeric: tabular-nums;
}
.seance-prix:empty { display: none; }
.seances-note { margin: 32px 0 0; font-size: var(--fs-small); color: var(--sur-fonce-doux); }
@media (max-width: 480px) {
  .seance-carte { padding: 100px 26px 28px; }
}

/* =========================================================
   8. Rubriques crème qui se suivent (remboursement, bons, galerie)
   Deux rubriques claires de suite : un filet et moins d'air entre elles.
   ========================================================= */
.section-claire { padding-block: var(--section); background: var(--clair); }
:is(.approche, .section-claire):not([hidden]) + .section-claire,
:is(.approche, .section-claire):not([hidden]) + [hidden] + .section-claire,
:is(.approche, .section-claire):not([hidden]) + [hidden] + [hidden] + .section-claire { padding-top: 0; }
:is(.approche, .section-claire):not([hidden]) + .section-claire > .wrap,
:is(.approche, .section-claire):not([hidden]) + [hidden] + .section-claire > .wrap,
:is(.approche, .section-claire):not([hidden]) + [hidden] + [hidden] + .section-claire > .wrap { padding-top: var(--module-gap); border-top: 1px solid var(--ligne); }
/* La galerie prolonge les bons cadeaux, sans filet (comme dans le dessin) */
.module-bons:not([hidden]) + .module-galerie > .wrap { padding-top: 0; border-top: 0; }

/* ---------- 8.1 Remboursement (étapes en planches d'herbier) ---------- */
.remboursement-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: 36px; }
.remboursement-tete .titre { font-size: var(--fs-h2-moyen); margin-bottom: 16px; }
.agrements { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.agrements li { padding: 7px 18px; border: 1.5px solid var(--mousse-texte); border-radius: 999px; color: var(--mousse-texte); font-size: var(--fs-small); font-weight: 700; }
.agrements:not(:has(li:not([hidden]))) { display: none; }
.remboursement-etapes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 24px;
  margin: 0; padding: 0; list-style: none;
}
.remboursement-etapes .planche-titre { font-size: 1.5rem; }
.remboursement-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 24px 0 0; padding: 14px 18px;
  border-radius: var(--radius-sm); background: var(--bande);
  font-size: var(--fs-small); color: var(--doux);
}
.remboursement-note svg { flex: none; margin-top: 1px; color: var(--mousse-texte); }

/* ---------- 8.2 Bons cadeaux : ticket incliné à encoches ---------- */
.bons-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 56px); align-items: center;
}
.bons-grid > * { min-width: 0; }
.bons-texte .titre { font-size: var(--fs-h2-moyen); margin-bottom: 18px; }
.bons-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
/* Avec le lien de paiement, la commande par e-mail passe au second plan */
.bons-boutons [data-bons-lien]:not([hidden]) ~ .btn-commande { background: transparent; color: var(--encre); border-color: var(--champ-bord); }
.bons-boutons [data-bons-lien]:not([hidden]) ~ .btn-commande:hover { background: var(--bande); border-color: var(--encre); }
.bon-visuel { padding: 12px 18px; }
.bon-ticket {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--mousse); color: var(--sur-fonce);
  box-shadow: var(--ombre);
  transform: rotate(-2deg);
}
/* Encoches de chaque côté (couleur du fond de la rubrique) */
.bon-ticket::before, .bon-ticket::after {
  content: ""; position: absolute; top: 50%;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--clair); transform: translateY(-50%);
}
.bon-ticket::before { left: -14px; }
.bon-ticket::after { right: -14px; }
.bon-label { margin-bottom: 8px; font-size: .875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--surtitre-mousse); }
.bon-titre { font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.5rem); line-height: 1.05; }
.bon-pied {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1.5px dashed var(--sur-fonce-trait-fort);
  color: var(--sur-fonce-doux);
}
@media (max-width: 860px) {
  .bons-grid { grid-template-columns: minmax(0, 1fr); }
  .bon-visuel { order: 2; max-width: 520px; }
}

/* ---------- 8.3 Le cabinet en images : mosaïque à coins arrondis ---------- */
.galerie-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 40px; }
.galerie {
  display: grid; gap: 18px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: 220px; grid-auto-flow: dense;
  margin: 32px 0 0; padding: 0; list-style: none;
}
.galerie li { --r: var(--radius-carte); min-width: 0; }
.galerie li:nth-child(1) { --r: 200px 200px var(--radius-carte) var(--radius-carte); grid-row: span 2; }
.galerie li:nth-child(3) { --r: var(--radius-carte) var(--radius-carte) 120px var(--radius-carte); }
.galerie li:nth-child(4) { grid-column: span 2; }
/* Moins de quatre photos : une simple rangée */
.galerie:not(:has(> li:nth-child(4))) { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); grid-auto-rows: 280px; }
.galerie:not(:has(> li:nth-child(4))) li:nth-child(1) { grid-row: auto; }
.galerie figure { position: relative; height: 100%; margin: 0; }
.galerie-photo {
  display: block; height: 100%; overflow: hidden;
  border-radius: var(--r);
  background: var(--photo-clair) center / cover no-repeat;
}
.galerie-photo svg { display: block; width: 100%; height: 100%; }
.galerie figcaption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  padding: 5px 12px; border-radius: 999px;
  background: var(--etiquette); color: var(--encre);
  font-size: .875rem; font-weight: 600; line-height: 1.35;
}
@media (max-width: 760px) {
  .galerie { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 170px; gap: 12px; }
  .galerie figcaption { left: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: .8125rem; }
}

/* Illustrations de remplacement (en attendant les photos du thérapeute) : teintes propres (--g-*) */
:root {
  --g-mur: #EDE5D2;
  --g-mur-2: #E8DFC9;
  --g-sol: #CDBF9F;
  --g-bois: #B98A5E;
  --g-bois-fonce: #7A5638;
  --g-ciel: #DCE3D2;
  --g-vitre: #CFDCD3;
  --g-verre: #F6F1E4;
  --g-blanc: #FBF7EC;
  --g-sapin: #2C4A33;
  --g-sapin-2: #3F6247;
  --g-feuille: #5E7F57;
  --g-pre: #A9B98F;
  --g-pre-2: #8FA376;
  --g-eau: #9DB7B3;
  --g-pot: #C9A27C;
}
.galerie-photo .g-mur { fill: var(--g-mur); }
.galerie-photo .g-mur-2 { fill: var(--g-mur-2); }
.galerie-photo .g-sol { fill: var(--g-sol); }
.galerie-photo .g-bois { fill: var(--g-bois); }
.galerie-photo .g-bois-fonce { fill: var(--g-bois-fonce); }
.galerie-photo .g-ciel { fill: var(--g-ciel); }
.galerie-photo .g-vitre { fill: var(--g-vitre); }
.galerie-photo .g-verre { fill: var(--g-verre); }
.galerie-photo .g-blanc { fill: var(--g-blanc); }
.galerie-photo .g-sapin { fill: var(--g-sapin); }
.galerie-photo .g-sapin-2 { fill: var(--g-sapin-2); }
.galerie-photo .g-feuille { fill: var(--g-feuille); }
.galerie-photo .g-pre { fill: var(--g-pre); }
.galerie-photo .g-pre-2 { fill: var(--g-pre-2); }
.galerie-photo .g-eau { fill: var(--g-eau); }
.galerie-photo .g-pot { fill: var(--g-pot); }
.galerie-photo .g-accent { fill: var(--accent-deco); }
.galerie-photo .g-accent-doux { fill: color-mix(in srgb, var(--accent-deco) 45%, var(--g-blanc)); }
.galerie-photo .g-anse { fill: none; stroke: var(--accent-deco); stroke-width: 4; stroke-linecap: round; }
.galerie-photo .g-corde { fill: none; stroke: var(--g-bois-fonce); stroke-width: 2; }
.galerie-photo .g-cloture { fill: none; stroke: var(--g-bois-fonce); stroke-width: 4; stroke-linecap: round; }
.galerie-photo path.g-blanc[opacity] { fill: none; stroke: var(--g-blanc); stroke-width: 3; stroke-linecap: round; }

/* =========================================================
   9. Rendez-vous (mousse, agenda crème)
   ========================================================= */
.rdv { padding-block: var(--section); background: var(--mousse); color: var(--sur-fonce); }
.rdv :focus-visible { outline-color: var(--sur-fonce); }
.rdv-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(36px, 5vw, 56px); align-items: center;
}
.rdv-grid > * { min-width: 0; }
.rdv-bloc .surtitre { color: var(--surtitre-mousse); }
.rdv-bloc .titre { margin-bottom: 18px; }
.rdv-texte { color: var(--sur-fonce-clair); }
.rdv-question { margin-top: 18px; font-size: var(--fs-small); color: var(--sur-fonce-doux); }
.rdv-tel { display: inline-flex; align-items: center; min-height: 44px; color: var(--sur-fonce); font-weight: 700; font-size: 1.0625rem; }
.rdv-tel:hover { color: var(--sur-fonce); text-decoration-thickness: 2px; }
.rdv-agenda, .rdv-carte {
  padding: clamp(16px, 2.6vw, 30px);
  border-radius: var(--radius);
  background: var(--carte); color: var(--encre);
}
.rdv-agenda :focus-visible, .rdv-carte :focus-visible { outline-color: var(--mousse-texte); }
/* Habillage d'un agenda qui lit les variables --ag-* (l'exemple .agi garde son style neutre) */
.agenda-embed {
  --ag-accent: var(--accent);
  --ag-accent-ink: var(--accent-ink);
  --ag-ink: var(--encre);
  --ag-muted: var(--doux);
  --ag-bg: var(--etiquette);
  --ag-surface: var(--bande);
  --ag-line: var(--ligne);
  --ag-radius: 12px;
  --ag-font: var(--f);
  width: 100%;
}
.rdv-agenda .agi { max-width: none; border: 0; box-shadow: none; padding: 4px; background: transparent; }
/* Rendez-vous sans agenda intégré (téléphone, e-mail, message) ou agenda derrière un bouton */
.rdv-carte { display: grid; gap: 14px; align-content: start; }
.rdv-carte p { margin: 0; }
.rdv-carte-titre { font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: 1.625rem; line-height: 1.15; }
.rdv-carte-texte { color: var(--doux); font-size: var(--fs-small); }
.rdv-lien {
  display: flex; align-items: center; gap: 16px; min-width: 0;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bande); color: var(--encre); text-decoration: none;
}
.rdv-lien:hover { color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--mousse-texte); }
.rdv-icone {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mousse); color: var(--sur-fonce);
}
.rdv-lien > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rdv-lien small { margin-bottom: 2px; font-size: .875rem; color: var(--doux); }
.rdv-lien strong { font-size: 1.1875rem; overflow-wrap: anywhere; }
.rdv-carte .btn, .rdv-carte .agenda-bouton { justify-self: start; margin-top: 4px; }
/* Agenda en ligne derrière un bouton (lien écrit par Erylo\Agenda) */
.agenda-bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border: 1.5px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.agenda-bouton:hover { background: var(--accent-survol); border-color: var(--accent-survol); color: var(--accent-ink); }
@media (max-width: 900px) {
  .rdv-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .rdv-carte .btn, .rdv-carte .agenda-bouton { justify-self: stretch; }
}

/* =========================================================
   10. Questions fréquentes (feuille qui tourne)
   ========================================================= */
.questions { padding-block: var(--section); }
.questions-wrap { width: min(100% - 2 * var(--gutter), 920px); }
.questions .surtitre, .questions .titre { text-align: center; }
.questions .titre { margin-bottom: 36px; font-size: var(--fs-h2-moyen); }
.faq details { border-bottom: 1.5px solid var(--ligne); }
.faq details:first-child, .faq details[hidden] + details { border-top: 1.5px solid var(--ligne); }
.faq details:not([hidden]) ~ details { border-top: 0; }
.faq summary {
  display: flex; align-items: center; gap: 16px;
  min-height: 44px; padding: 22px 0;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); font-weight: 700; line-height: 1.35;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--mousse-texte); }
.faq-feuille { flex: none; color: var(--mousse-texte); }
.faq details[open] .faq-feuille { transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) {
  .faq-feuille { transition: transform .35s ease; }
}
.faq-reponse { margin: 0 0 24px 38px; max-width: 62ch; color: var(--doux); }
.questions-autre { margin: 28px 0 0; text-align: center; color: var(--doux); }

/* =========================================================
   11. Contact et cabinet (bande crème, courbes de niveau)
   ========================================================= */
.contact { position: relative; overflow: hidden; padding-block: var(--section); background: var(--bande); }
.contact-courbes {
  position: absolute; right: -170px; top: -130px; width: 640px; height: 640px; max-width: none;
  fill: none; stroke: color-mix(in srgb, var(--ligne) 55%, transparent); stroke-width: 1.5; pointer-events: none;   /* pas d'opacity : data-reveal="trace" la remet à 1 */
}
.contact-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 56px); align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-grid.contact-seul { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.contact-form { padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); background: var(--clair); }
.contact-form .titre { margin-bottom: 10px; }
.fc-intro { margin-bottom: 24px; color: var(--doux); }

/* ---------- 11.1 Formulaire ---------- */
.form-contact { display: grid; gap: 18px; }
.form-contact p { margin: 0; }
.fc-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.fc-champ { display: grid; gap: 8px; min-width: 0; align-content: start; }
.fc-champ label { font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.fc-champ label span { font-weight: 400; color: var(--doux); }
.fc-champ input,
.fc-champ textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--champ-bord); border-radius: var(--radius-sm);
  background: var(--etiquette); color: var(--encre);
  font: inherit; font-size: 1.0625rem; line-height: 1.4;
}
.fc-champ textarea { min-height: 140px; resize: vertical; }
.fc-champ input:hover, .fc-champ textarea:hover { border-color: var(--mousse-texte); }
.fc-champ input:focus, .fc-champ textarea:focus { border-color: var(--mousse-texte); }
.fc-champ input:focus-visible, .fc-champ textarea:focus-visible { outline: 3px solid var(--mousse-texte); outline-offset: 1px; border-radius: var(--radius-sm); }
.fc-champ [aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.fc-erreur {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .875rem; font-weight: 700; line-height: 1.4; color: var(--danger);
}
.fc-erreur::before {
  content: "!"; flex: none; display: grid; place-items: center;
  width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--danger); color: var(--clair);
  font-size: .75rem; font-weight: 800; line-height: 1;
}
.form-contact > .fc-erreur { margin-top: -8px; }
.fc-case { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; line-height: 1.5; color: var(--doux); cursor: pointer; }
.fc-case input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--mousse-texte); cursor: pointer; }
.fc-case a { font-weight: 700; }
.form-contact .btn { justify-self: start; margin-top: 4px; }
.fc-envoye {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--mousse-texte);
  background: color-mix(in srgb, var(--mousse-texte) 10%, var(--clair));
  color: var(--encre); font-weight: 600; line-height: 1.45;
}
.fc-envoye::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50% 0; background: var(--mousse-texte); }
.fc-envoye:focus { outline: none; }
.fc-envoye:focus-visible { outline: 3px solid var(--mousse-texte); outline-offset: 3px; }
.fc-piege input { width: 1px; height: 1px; padding: 0; border: 0; }
@media (max-width: 480px) {
  .form-contact .btn { justify-self: stretch; }
}

/* ---------- 11.2 Coordonnées du cabinet : adresse, horaires, accès, contact, plan ---------- */
.cabinet { display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }
.cabinet-sous {
  margin: 0 0 8px;
  font-family: var(--f); font-size: .875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4;
  color: var(--mousse-texte);
}
.adresse { font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); line-height: 1.25; }
.horaires { margin: 0; padding: 0; list-style: none; }
.horaires li { display: grid; grid-template-columns: minmax(6.5em, auto) minmax(0, 1fr); gap: 24px; padding: 3px 0; }
.horaires [data-k="heures"] { font-variant-numeric: tabular-nums; }
.horaires li.ferme { color: var(--doux); }
.acces, .joindre { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acces li { display: flex; gap: 10px; align-items: flex-start; }
.acces svg { flex: none; margin-top: 3px; color: var(--mousse-texte); }
.joindre a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; overflow-wrap: anywhere; }
.joindre svg { flex: none; }

/* ---------- 11.3 Plan d'accès en bandeau sous les deux colonnes (pâturages, forêts, étang ; routes qui se dessinent) ---------- */
.contact-plan { grid-column: 1 / -1; min-width: 0; }
.plan-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; margin-bottom: 6px; }
.plan-tete .cabinet-sous { margin: 0; }
:root {
  --plan-fond: #E3E2CB;
  --plan-foret: #B4C29E;
  --plan-sapin: #7F9970;
  --plan-eau: #A9C3C0;
  --plan-rue: #FBF7EC;
  --plan-rail: #6F6A57;
  --plan-batiment: #D2C3A2;
  --plan-point: var(--accent-ink);
}
.plan { overflow: hidden; border: 1px solid var(--ligne); border-radius: var(--radius-carte); background: var(--plan-fond); }
.plan svg { display: block; width: 100%; height: clamp(220px, 26vw, 300px); }
.plan .p-fond { fill: var(--plan-fond); }
.plan .p-foret { fill: var(--plan-foret); }
.plan .p-sapin { fill: var(--plan-sapin); }
.plan .p-eau { fill: var(--plan-eau); stroke: color-mix(in srgb, var(--plan-eau) 70%, var(--mousse-texte)); stroke-width: 2; }
.plan .p-rail { fill: none; stroke: var(--plan-rail); stroke-width: 3; stroke-linecap: round; }
.plan .p-rue { fill: none; stroke: var(--plan-rue); stroke-width: 9; stroke-linecap: round; }
.plan .p-rue-principale { stroke-width: 15; }
.plan .p-batiment { fill: var(--plan-batiment); }
.plan .p-onde { fill: none; stroke: var(--accent-deco); stroke-width: 3; opacity: .6; transform-box: fill-box; transform-origin: center; }
.plan .p-onde-2 { opacity: .3; }
.plan .p-pin { fill: var(--accent-deco); }
.plan .p-point { fill: var(--plan-point); }
@media (prefers-reduced-motion: no-preference) {
  .plan .p-onde { animation: s-pulse 2.6s ease-in-out infinite; }
  .plan .p-onde-2 { animation-delay: .6s; }
}
.plan-lien { margin: 0; }
.plan-lien a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.plan-lien svg { flex: none; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-courbes { right: -260px; top: auto; bottom: -200px; }
}

/* =========================================================
   12. Pied de page (vert sapin, silhouette de sapins)
   ========================================================= */
.site-footer { background: var(--fonce); color: var(--sur-fonce-doux); }
.site-footer :focus-visible { outline-color: var(--sur-fonce); }
.footer-sapins { display: block; width: 100%; height: 36px; background: var(--bande); }
.footer-sapins path { fill: var(--fonce); }
.footer-inner { padding-block: 32px 28px; }
.footer-haut {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  padding-bottom: 22px; border-bottom: 1px solid var(--sur-fonce-trait);
}
.footer-marque { display: flex; flex-direction: column; margin: 0; line-height: 1.4; }
.footer-titre { font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: 1.375rem; color: var(--sur-fonce); }
.footer-sous { font-size: var(--fs-small); }
.footer-liens { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); }
.footer-liens a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { color: var(--sur-fonce); }
.site-footer a:hover { color: var(--sur-fonce); text-decoration-thickness: 2px; }
.footer-credit { margin: 20px 0 0; text-align: center; font-size: .875rem; }
@media (max-width: 600px) {
  .footer-point { display: none; }
  .footer-service { display: block; }
}

/* =========================================================
   13. Pages légales (plein écran par :target)
   ========================================================= */
.page-legale { display: none; }
.page-legale:target {
  display: block;
  position: fixed; inset: 0; z-index: 100;
  overflow: auto; overscroll-behavior: contain;
  background: var(--clair); color: var(--encre);
}
html:has(.page-legale:target) { overflow: hidden; }
.legale-barre { position: sticky; top: 0; z-index: 1; background: var(--fonce); color: var(--sur-fonce); }
.legale-barre :focus-visible { outline-color: var(--sur-fonce); }
.legale-barre-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 24px;
  min-height: 80px; padding-block: 12px;
}
.legale-retour { padding-left: 18px; }
.legale-site { display: flex; flex-direction: column; min-width: 0; text-align: right; line-height: 1.25; }
.legale-site > span:first-child { font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: 1.1875rem; }
.legale-site [data-field="profession"] { font-size: .8125rem; color: var(--sur-fonce-doux); }
.legale-corps {
  width: min(100% - 2 * var(--gutter), 70ch);
  margin-inline: auto;
  padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px);
  line-height: 1.7;
}
.legale-titre { font-size: var(--fs-h2); margin-bottom: 20px; }
.legale-intro { font-size: var(--fs-lead); color: var(--doux); }
.legale-corps h3 { margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--ligne); font-size: 1.375rem; }
.legale-titre + h3 { margin-top: 28px; }
.legale-corps h4 { margin: 22px 0 4px; font-family: var(--f); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.legale-corps h3 + h4 { margin-top: 0; }
.legale-corps ul { margin: 0 0 1em; padding-left: 1.25em; }
.legale-corps li + li { margin-top: 4px; }
.legale-corps a { overflow-wrap: anywhere; }
.legale-identite { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bande); }
.legale-agrements:not(:has(li:not([hidden]))) { display: none; }
.legale-date { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--ligne); font-size: var(--fs-small); color: var(--doux); }
@media (max-width: 480px) {
  .legale-site [data-field="profession"] { display: none; }
}

/* =========================================================
   14. Personnalisation : couleurs, police, taille du texte
   Attributs posés sur <html> par assets/js/theme.js (ou par le serveur).
   Sans attribut, le modèle garde exactement ses propres teintes.
   ========================================================= */

/* ---------- 14.0 Couleur des boutons choisie avec les couleurs du modèle ----------
   Texte des boutons (vert sapin sur le cuivre, l'ocre, le vieux rose, la sauge, le lichen ; blanc sur un accent
   foncé), accent posé sur le vert sapin et sur la mousse (éclairci au besoin) : calculés par le serveur (≥ 4,5:1,
   <style id="accent-modele"> dans la vue) et, dans l'aperçu, par assets/js/sites/sylve.js. */

/* ---------- 14.1 Couleurs choisies (data-couleurs="clair" ou "sombre") ---------- */
:root[data-couleurs] {
  --clair: var(--p-fond);
  --bande: var(--p-bande);
  --etiquette: var(--p-surface);
  --carte: var(--p-fond);
  --photo-clair: color-mix(in oklab, var(--p-bande) 84%, var(--p-texte));
  --encre: var(--p-texte);
  --doux: var(--p-texte-doux);
  --ligne: var(--p-ligne);
  --champ-bord: color-mix(in oklab, var(--p-texte) 62%, var(--p-fond));
  --mousse-texte: var(--p-accent-texte);
  --frise: color-mix(in oklab, var(--p-texte) 40%, var(--p-bande));
  --danger: var(--p-danger);

  /* Couleur des boutons */
  --accent: var(--p-accent);
  --accent-ink: var(--p-accent-ink);
  --accent-survol: var(--p-accent-fonce);
  --accent-sur-fonce: var(--p-accent-sur-fonce);
  --accent-sur-mousse: var(--p-accent-sur-fonce);
  --accent-deco: var(--p-accent);

  /* Blocs foncés : un seul ton (le bloc foncé calculé) ; petits textes en clair (l'accent n'y a que 3:1) */
  --fonce: var(--p-fonce);
  --mousse: var(--p-fonce);
  --sur-fonce: var(--p-sur-fonce);
  --sur-fonce-clair: color-mix(in oklab, var(--p-sur-fonce) 50%, var(--p-sur-fonce-doux));
  --sur-fonce-doux: var(--p-sur-fonce-doux);
  --sur-fonce-trait: color-mix(in srgb, var(--p-sur-fonce) 22%, transparent);
  --sur-fonce-trait-fort: color-mix(in srgb, var(--p-sur-fonce) 45%, transparent);
  --sur-fonce-voile: color-mix(in srgb, var(--p-sur-fonce) 8%, transparent);
  --surtitre-fonce: var(--p-sur-fonce-doux);
  --surtitre-mousse: var(--p-sur-fonce-doux);

  /* Dessin : silhouettes tirées du bloc foncé */
  --crete: color-mix(in oklab, var(--p-fonce) 90%, var(--p-sur-fonce));
  --sapins-1: color-mix(in oklab, var(--p-fonce) 84%, var(--p-sur-fonce));
  --sapins-2: color-mix(in oklab, var(--p-fonce) 93%, var(--p-sur-fonce));
  --brume: color-mix(in srgb, var(--p-sur-fonce) 10%, transparent);
  --brume-haute: color-mix(in srgb, var(--p-sur-fonce) 7%, transparent);
  /* voile assombri : le bloc foncé d'une ambiance claire est moins sombre que le vert sapin (texte ≥ 4,8:1 sur une photo blanche) */
  --voile-photo: color-mix(in srgb, color-mix(in oklab, var(--p-fonce) 60%, #000000) 84%, transparent);
  --voile-photo-bas: color-mix(in srgb, color-mix(in oklab, var(--p-fonce) 60%, #000000) 30%, transparent);
  --ombre: 0 26px 48px -30px color-mix(in srgb, var(--p-fonce) 60%, transparent);

  /* Plan d'accès : redessiné sur la bande */
  --plan-fond: var(--p-bande);
  --plan-foret: color-mix(in oklab, var(--p-bande) 78%, #4F9A72);
  --plan-sapin: color-mix(in oklab, var(--p-bande) 55%, #3F7A55);
  --plan-eau: color-mix(in oklab, var(--p-bande) 70%, #5B8FD8);
  --plan-rue: var(--p-surface);
  --plan-rail: color-mix(in oklab, var(--p-texte) 60%, var(--p-bande));
  --plan-batiment: color-mix(in oklab, var(--p-bande) 75%, var(--p-accent));
  --plan-point: var(--p-accent-ink);
}
:root[data-couleurs] .agenda-embed {
  --ag-muted: var(--p-texte-doux);
  --ag-bg: var(--p-surface);
  --ag-surface: var(--p-bande);
  --ag-line: var(--p-ligne);
}
/* Sur le bloc foncé, un accent proche du fond s'y perdrait : contour clair (≥ 3:1) */
:root[data-couleurs] :is(.haut, .seances) .btn:not(.btn-clair) { box-shadow: 0 0 0 1.5px var(--accent-sur-fonce); }
/* Photo d'en-tête : le mot en couleur passe en clair, souligné de l'accent */
:root[data-couleurs] .hero-image.has-photo ~ .hero .hero-mis {
  color: var(--sur-fonce);
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .06em; text-underline-offset: .14em;
}

/* ---------- 14.2 Ambiance sombre ---------- */
:root[data-couleurs="sombre"] {
  --ombre: 0 26px 48px -26px rgba(0, 0, 0, .7);
  --plan-rue: color-mix(in oklab, var(--p-bande) 70%, var(--p-texte));
}
/* Le bloc foncé est plus sombre que la page : un filet détache les cartes posées dessus */
:root[data-couleurs="sombre"] :is(.seance-carte, .rdv-agenda, .rdv-carte, .bon-ticket) { box-shadow: inset 0 0 0 1px var(--ligne); }
:root[data-couleurs="sombre"] .planche { border-color: var(--ligne); outline-color: var(--ligne); }
/* L'exemple d'agenda garde ses couleurs neutres (texte foncé) : fond blanc sur une carte sombre */
:root[data-couleurs="sombre"] .rdv-agenda .agi { padding: 14px; border-radius: 14px; background: #FFFFFF; }

/* ---------- 14.3 Police choisie (data-police) ---------- */
:root[data-police] {
  --f: var(--p-police-texte);
  --f-titres: var(--p-police-titres);
  --poids-titres: var(--p-poids-titres);
}
:root[data-police] body { font-synthesis-weight: none; }
/* Young Serif est dessinée serrée : un peu d'air pour les autres polices */
:root[data-police] .hero-titre { letter-spacing: -.01em; line-height: 1.04; }

/* ---------- 14.4 Grande taille du texte (data-taille="grande") ---------- */
:root[data-taille="grande"] { font-size: 112.5%; }
@media (max-width: 440px) {
  :root[data-taille="grande"] .btn .long { display: none; }
  :root[data-taille="grande"] .btn .court { display: inline; }
}

/* ---------------------------------------------------------
   Logo à côté du titre (facultatif) — posé par apercu.js / le serveur
   data-logo : le logo remplace la pastille feuille ; data-logo-seul : le logo
   contient déjà le nom (le nom reste pour Google et les lecteurs d'écran) ;
   data-logo-large : seul sur téléphone ; data-logo-pastille : fond clair derrière
   un logo qui se verrait mal sur le vert sapin.
   --------------------------------------------------------- */
:root { --logo-h: 48px; --logo-max: 190px; }
:root[data-logo] { --logo-w: min(calc(var(--logo-h) * var(--logo-ratio, 1)), var(--logo-max)); }
.logo-site { display: block; flex: none; width: var(--logo-w, auto); height: var(--logo-h); object-fit: contain; object-position: left center; }
:root[data-logo] .brand-pastille { display: none; }
:root[data-logo-seul] { --logo-h: 56px; --logo-max: 230px; }
:root[data-logo-seul] .brand-textes { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root[data-logo-pastille] .logo-site { box-sizing: content-box; padding: 5px 9px; border-radius: 12px; background: var(--logo-pastille); }
@media (max-width: 600px) {
  :root { --logo-h: 40px; --logo-max: 30vw; }
  :root[data-logo-seul] { --logo-h: 44px; --logo-max: 52vw; }
}
@media (max-width: 420px) {
  :root[data-logo]:not([data-logo-seul]) .brand-sous { display: none; }
}
@media (max-width: 480px) {
  :root[data-logo-large] { --logo-h: 40px; --logo-max: 52vw; }
  :root[data-logo-large] .brand-textes { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* =========================================================
   15. Titre du site = l'enseigne du cabinet (1.9.0, <html data-titre-enseigne>)
   Le nom de la personne passe sous l'enseigne (en-tête et pied : « Aurèle Sorvillard ·
   Naturopathe ») ; une enseigne longue se répartit sur deux lignes équilibrées.
   ========================================================= */
:root[data-titre-enseigne] .brand-sous { max-width: 26em; }
:root[data-titre-enseigne] .footer-titre { text-wrap: balance; }
.ligne-ville [data-field="ville"]:empty { display: none; }

/* =========================================================
   16. Animations : coupées par le thérapeute ou par le visiteur
   (les keyframes sont déjà neutralisées par defilement.css ; ici, les
   transitions et les déplacements au survol)
   ========================================================= */
html[data-animations="non"] :is(.btn, .seance-carte, .faq-feuille, .agenda-bouton) { transition: none !important; }
html[data-animations="non"] :is(.btn, .seance-carte):hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  :is(.btn, .seance-carte):hover { transform: none; }
}
/* La fougère se dessine un peu après l'arrivée du portrait */
.defilement .fougere [data-reveal="trace"].vu path { transition-duration: 2.6s; }

/* =========================================================
   17. Impression : fonds clairs, décor retiré
   ========================================================= */
@media print {
  .haut, .seances, .rdv, .site-footer, .bon-ticket, .legale-barre, .contact {
    background: #FFFFFF !important; color: #000000 !important; box-shadow: none !important;
  }
  .haut *, .seances *, .rdv *, .site-footer *, .bon-ticket * { color: #000000 !important; }
  .hero-image, .hero-vague, .hero-agrement, .contact-courbes, .fougere, .footer-sapins, .skip, .contact-form, .nav, .barre-btn { display: none !important; }
  .hero-contenu { padding-block: 24px; }
  .seance-carte { border: 1px solid #999999; }
  .seance-carte:hover { transform: none; }
  .bon-ticket { transform: none; border: 1px solid #999999; }
  .page-legale:target { position: static; overflow: visible; }
  .legale-barre { display: none; }
}

/* ==================== 1.12.0 : rubrique « Avis de patients » (début) ====================
   Section « Ce qu'en disent mes patients » (vues/sites/sylve.php, données communes vues/sites/_avis.php).
   Couleurs : variables du modèle (reliées aux jetons --p-* : ambiances claires et sombres). */
/* Liste des avis : ul > li[data-item] (data-en-avant) > figure > blockquote > p[data-k="texte"] + figcaption[data-k="auteur"] */
.avis-liste { list-style: none; margin: 0; padding: 0; }
.avis-item { flex: 1 1 var(--avis-base, 17rem); min-width: 0; }
.avis-carte { margin: 0; height: 100%; }
.avis-texte { margin: 0; }
.avis-texte p { margin: 0; overflow-wrap: break-word; }
.avis-auteur { margin: 0; }
.avis-google { margin: 0; }
.avis-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Sylve : planches d'herbier (étiquette crème, filet, coin découpé, petite feuille cuivre) ; l'avis mis en avant sur le sapin */
.module-avis .avis-tete { max-width: 46rem; margin-bottom: 36px; }
.avis-liste { display: flex; flex-wrap: wrap; gap: 20px; --avis-base: 17rem; }
.avis-carte {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px 26px 24px;
  border: 1px solid var(--ligne); border-radius: 4px; background: var(--etiquette);
  box-shadow: inset 0 0 0 6px var(--etiquette), inset 0 0 0 7px color-mix(in srgb, var(--ligne) 60%, transparent);
}
.avis-carte::after { content: ""; position: absolute; right: 16px; top: 16px; width: 18px; height: 18px; border-radius: 0 100% 0 100%; background: var(--accent-deco); opacity: .85; rotate: 12deg; }
.avis-texte p { font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: 1.2rem; line-height: 1.45; color: var(--encre); }
.avis-auteur { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--ligne); font-size: var(--fs-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mousse-texte); }
.avis-item[data-en-avant] { flex-basis: 100%; }
.avis-item[data-en-avant] .avis-carte { background: var(--fonce); color: var(--sur-fonce); border-color: var(--fonce); box-shadow: inset 0 0 0 8px var(--fonce), inset 0 0 0 9px var(--sur-fonce-trait); padding: clamp(30px, 5vw, 52px); }
.avis-item[data-en-avant] .avis-texte p { color: var(--sur-fonce); font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); }
.avis-item[data-en-avant] .avis-auteur { color: var(--surtitre-fonce); border-top-color: var(--sur-fonce-trait); }
.avis-vide { margin: 0; padding: 18px 22px; border: 1.5px dashed var(--ligne); border-radius: 4px; color: var(--doux); }
.avis-google { margin-top: 28px; }
.avis-btn { background: transparent; color: var(--encre); border-color: var(--mousse-texte); }
.avis-btn:hover { background: var(--bande); color: var(--encre); border-color: var(--encre); }
/* ==================== 1.12.0 : rubrique « Avis de patients » (fin) ==================== */
