/* =========================================================
   Modèle « Ancrage » — thérapies corporelles
   Univers chaleureux et terrien : grands blocs arrondis
   empilés, nom en très gros qui chevauche le bloc du hero.
   ========================================================= */

/* ---------- 1. Jetons ---------- */
:root {
  /* Couleurs du modèle (indépendantes de --accent) */
  --ecorce: #3A2B22;        /* texte principal */
  --ecorce-doux: #6B5647;   /* texte secondaire (5,9:1 sur argile) */
  --sable: #EADCC9;         /* grands blocs */
  --argile: #F5EDE2;        /* fond de page */
  --lin: #FFFBF6;           /* surfaces claires : séances, agenda, carte */
  --creme: #F3E8D9;         /* surface douce du widget */
  --ligne: #E2D2BD;         /* filets */
  --olive: #6B6F3A;         /* couleur secondaire */
  --olive-fonce: #565A2D;   /* bande de faits, sceaux */
  --olive-pale: #E1DEC4;

  /* Couleur principale — modifiable depuis l'espace client.
     Ocre profond : #B07A24 ne donnait que 3,7:1 avec le texte blanc,
     #94611B atteint 5,3:1. */
  --accent: #94611B;
  --accent-ink: #FFFFFF;

  /* Teintes dérivées : valeurs d'origine ici, reliées aux jetons
     de la personnalisation dans la partie 13 (rôle, pas nom) */
  --accent-texte: var(--accent);       /* accent en texte, lien, contour, frise */
  --accent-survol: color-mix(in srgb, var(--accent) 82%, #000);
  --bandeau-fond: color-mix(in srgb, var(--accent) 13%, var(--lin));
  --olive-texte: var(--olive-fonce);   /* olive en texte ou icône : métier, sceaux, années */
  --sur-olive: var(--argile);          /* texte sur la bande de faits et les pastilles olive */
  --sur-olive-doux: #E6DBC8;
  --filet-olive: rgba(245, 237, 226, .2);
  --trait: rgba(58, 43, 34, .16);      /* filets posés sur les blocs sable et olive pâle */
  --ombre-feuille: rgba(58, 43, 34, .5);
  --ombre-carte: rgba(58, 43, 34, .75);
  /* Galet du portrait (en attendant la photo) */
  --galet-haut: #767A43;
  --galet-bas: #555829;
  --galet-lumiere: rgba(234, 220, 201, .32);
  --galet-ombre: rgba(58, 43, 34, .35);
  --initiales: rgba(245, 237, 226, .88);

  /* Typographie */
  --f-titre: "Young Serif", Georgia, "Times New Roman", serif;
  --f-texte: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rayons : une hiérarchie, pas un rayon unique */
  --r-hero: 40px;           /* bloc du hero */
  --r-lg: 28px;             /* grands blocs : photo, cabinet */
  --r-md: 20px;             /* bande de faits, liste, encarts */
  --r-sm: 12px;             /* petits éléments */
  --r-pill: 999px;          /* boutons */

  /* Mise en page */
  --page: 1200px;
  --gouttiere: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --colonnes-gap: clamp(40px, 6vw, 96px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--argile);
  color: var(--ecorce);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
h1, h2, h3 {
  font-family: var(--f-titre);
  font-weight: 400;          /* Young Serif n'existe qu'en une graisse */
  line-height: 1.1;
  margin: 0;
}
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); margin-bottom: .55em; text-wrap: balance; }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-texte); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }   /* un numéro ne se coupe jamais */
:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 3px; }
[hidden] { display: none !important; }

.page { width: min(100% - 2 * var(--gouttiere), var(--page)); margin-inline: auto; }
.section { padding-top: var(--section); }
.section-intro { color: var(--ecorce-doux); max-width: 40ch; }

.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ecorce); color: var(--argile);
  padding: 10px 16px; border-radius: var(--r-sm);
}
.lien-evitement:focus { top: 12px; }

/* Bouton principal (suit --accent) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: .7em 1.45em;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-survol); }

/* ---------- 3. En-tête ---------- */
.entete { padding-block: 16px 8px; }
.entete-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "marque bouton" "nav nav";
  align-items: center;
  gap: 10px 16px;
}
.marque { grid-area: marque; display: grid; min-width: 0; color: inherit; text-decoration: none; }
.marque-nom { font-family: var(--f-titre); font-size: 1.25rem; line-height: 1.15; }
.marque-metier { font-size: .875rem; color: var(--ecorce-doux); }
.entete nav { grid-area: nav; min-width: 0; border-top: 1px solid var(--ligne); padding-top: 4px; }
.entete nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
.entete nav a { display: inline-block; padding-block: 6px; color: var(--ecorce); text-decoration: none; font-size: .9375rem; }
.entete nav a:hover { text-decoration: underline; }
.btn-entete { grid-area: bouton; min-height: 44px; padding-inline: 1.1em; }
.btn-entete .txt-court { display: none; }
@media (max-width: 419px) {
  .btn-entete .txt-long { display: none; }
  .btn-entete .txt-court { display: inline; }
  .entete nav ul { gap: 0 8px; }
  .entete nav a { font-size: .875rem; }
}
@media (min-width: 900px) {
  .entete { padding-block: 22px 10px; }
  .entete-in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "marque nav bouton"; gap: 24px; }
  .entete nav { border-top: 0; padding-top: 0; }
  .entete nav ul { justify-content: flex-end; gap: 0 28px; }
  .entete nav a { font-size: .975rem; }
  .btn-entete { padding-inline: 1.4em; }
}

/* ---------- 4. Hero : blocs empilés et imbriqués ----------
   Le bloc sable (.hero-fond) remonte sous le bas du nom :
   le nom chevauche son bord. La photo est posée dans le bloc,
   avec un retrait égal et un rayon concentrique. */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero-grille {
  --nom-taille: clamp(3rem, 8.4vw, 8rem);
  --chevauchement: calc(var(--nom-taille) * -0.36);
  --encart: 10px;
  --r-bloc: 32px;
  --retrait: clamp(18px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "tete" "photo" "texte";
}
.hero-fond {
  grid-column: 1 / -1;
  grid-row: 2 / 4;
  margin-top: var(--chevauchement);
  background: var(--sable);
  border-radius: var(--r-bloc);
}
.hero-tete { grid-area: tete; position: relative; z-index: 2; padding-inline: var(--retrait); min-width: 0; }
.hero-metier { margin: 0 0 .5em; font-weight: 700; font-size: 1.0625rem; color: var(--olive-texte); }
.hero-nom {
  font-size: var(--nom-taille);
  line-height: .94;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.hero-photo {
  grid-area: photo;
  position: relative;
  z-index: 1;
  min-width: 0;
  justify-self: stretch;      /* un élément avec aspect-ratio ne s'étire pas par défaut */
  margin: 16px var(--encart) 0;
  aspect-ratio: 1 / 1;
  max-height: 440px;          /* format portrait-carré : le visage reste dans le cadre */
  border-radius: calc(var(--r-bloc) - var(--encart));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  /* Placeholder : galet olive, lumière douce en haut à gauche */
  background-color: var(--olive);
  background-image:
    radial-gradient(120% 90% at 18% 8%, var(--galet-lumiere), transparent 55%),
    radial-gradient(80% 70% at 92% 100%, var(--galet-ombre), transparent 60%),
    linear-gradient(160deg, var(--galet-haut), var(--galet-bas));
}
.hero-initiales {
  font-family: var(--f-titre);
  font-size: clamp(4.5rem, 11vw, 9rem);
  line-height: 1;
  color: var(--initiales);
  padding: .18em .24em;
}
.hero-photo.has-photo .hero-initiales { display: none; }
.hero-texte { grid-area: texte; position: relative; z-index: 1; min-width: 0; padding: 24px var(--retrait) 30px; }
.hero-accroche { font-size: clamp(1.3rem, 2.1vw, 1.875rem); line-height: 1.35; max-width: 22ch; margin-bottom: 1.1em; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.lien-tel {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ecorce); font-weight: 700; text-decoration: none;
  padding-block: 8px;
}
.lien-tel svg { flex: none; color: var(--olive-texte); }
.lien-tel:hover span { text-decoration: underline; }

@media (min-width: 700px) {
  .hero-grille {
    --encart: 14px;
    --r-bloc: var(--r-hero);
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr var(--encart);
    grid-template-areas: "tete ." "texte photo" ". .";
  }
  .hero-fond { grid-row: 2 / 4; }
  .hero-photo {
    aspect-ratio: auto;
    max-height: none;
    min-height: clamp(300px, 27vw, 390px);
    margin: calc(var(--chevauchement) + var(--encart)) var(--encart) 0 0;
  }
  .hero-texte {
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 32px var(--retrait) clamp(30px, 4vw, 52px);
  }
}

/* Bande de trois faits sous le hero (pas une séquence : pas de numéros) */
.faits {
  list-style: none;
  margin: 12px 0 0;
  padding: 4px 0;
  background: var(--olive-fonce);
  color: var(--sur-olive);
  border-radius: var(--r-md);
  display: grid;
}
.fait { padding: 16px 22px; display: grid; align-content: start; gap: 2px; min-width: 0; }
.fait + .fait { border-top: 1px solid var(--filet-olive); }
.fait-titre { font-family: var(--f-titre); font-size: 1.2rem; line-height: 1.3; }
.fait-sous { font-size: .95rem; color: var(--sur-olive-doux); }
/* « Agréé ASCA et RME » : le « et » n'apparaît que si les deux agréments sont affichés */
.fait-agrement [data-show="asca"]:not([hidden]) + [data-show="rme"]:not([hidden])::before { content: " et "; }
.fait-agrement:not(:has([data-show]:not([hidden]))) { display: none; }
@media (min-width: 760px) {
  .faits { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 0; }
  .fait { padding: 18px 26px; }
  .fait + .fait { border-top: 0; border-left: 1px solid var(--filet-olive); }
}

/* ---------- 5. Approche ---------- */
.approche-grille { display: grid; gap: 28px; }
.approche-texte { max-width: 62ch; font-size: 1.125rem; line-height: 1.65; }
.agrements {
  align-self: start;
  background: var(--lin);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  padding: 24px;
}
.badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.badge { display: flex; align-items: center; gap: 14px; }
.badge-sceau { flex: none; width: 46px; height: 46px; color: var(--olive-texte); }
.badge strong { display: block; font-size: 1.0625rem; }
.badge small { display: block; font-size: .9rem; line-height: 1.4; color: var(--ecorce-doux); }
.agrements-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--ligne); font-size: .975rem; color: var(--ecorce-doux); }
/* Encart masqué si aucun agrément n'est affiché */
.agrements:not(:has(.badge:not([hidden]))) { display: none; }
@media (min-width: 900px) {
  .approche-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--colonnes-gap); }
  .approche-grille h2 { grid-column: 1 / -1; margin-bottom: 0; }
}

/* ---------- 6. Séances et tarifs ---------- */
.seances-grille { display: grid; gap: 28px; }
.seances-note { font-size: .975rem; color: var(--ecorce-doux); max-width: 40ch; }
.seances-liste {
  list-style: none;
  margin: 0;
  padding: 4px clamp(20px, 3vw, 36px);
  background: var(--lin);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  min-width: 0;
}
.seance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "nom meta" "desc .";
  gap: 6px 24px;
  padding: 24px 0;
}
.seance + .seance { border-top: 1px solid var(--ligne); }
.seance-nom { grid-area: nom; font-size: 1.375rem; line-height: 1.25; }
.seance-desc { grid-area: desc; margin: 0; color: var(--ecorce-doux); max-width: 54ch; }
.seance-meta { grid-area: meta; margin: 0; display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.seance-duree { color: var(--ecorce-doux); }
.seance-prix { font-family: var(--f-titre); font-size: 1.25rem; }
@media (max-width: 520px) {
  .seance { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nom" "meta" "desc"; gap: 4px; }
  .seance-desc { margin-top: 6px; }
}
@media (min-width: 900px) {
  .seances-grille { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--colonnes-gap); align-items: start; }
}

/* ---------- 7. Rendez-vous (widget agenda habillé par ses variables) ---------- */
.rdv-grille { display: grid; gap: 28px; }
.rdv .agenda-embed {
  --ag-accent: var(--accent);
  --ag-accent-ink: var(--accent-ink);
  --ag-ink: var(--ecorce);
  --ag-muted: var(--ecorce-doux);
  --ag-bg: var(--lin);
  --ag-surface: var(--creme);
  --ag-line: var(--ligne);
  --ag-radius: 26px;
  --ag-font: var(--f-texte);
  width: 100%;
  max-width: 680px;
  min-width: 0;
}
@media (min-width: 980px) {
  .rdv-grille { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--colonnes-gap); align-items: start; }
}

/* ---------- 8. Cabinet ---------- */
.cabinet-bloc {
  display: grid;
  gap: 28px;
  background: var(--sable);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4.5vw, 56px);
}
.cabinet-infos { min-width: 0; }
.cabinet-adresse { font-family: var(--f-titre); font-size: 1.5rem; line-height: 1.3; margin-bottom: 0; }
.cabinet-infos h3 { font-size: 1.125rem; margin: 1.5em 0 .35em; }
.acces { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cabinet-carte { margin: 0; min-width: 0; background: var(--lin); border-radius: var(--r-md); padding: 10px; }
@media (min-width: 900px) {
  .cabinet-bloc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 72px); align-items: center; }
}
/* Horaires, accès et plan d'accès : voir la partie 12 */

/* ---------- 9. Contact ---------- */
.contact { padding-bottom: var(--section); }
.contact-grille { display: grid; gap: 24px; }
.contact-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-liens li { display: grid; gap: 2px; min-width: 0; }
.contact-type { font-size: .95rem; color: var(--ecorce-doux); }
.contact-liens a {
  font-family: var(--f-titre);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  color: var(--ecorce);
  text-decoration-color: var(--accent-texte);
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}
.contact-mot { color: var(--ecorce-doux); max-width: 46ch; }
@media (min-width: 900px) {
  .contact-grille { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--colonnes-gap); }
}
/* Coordonnées d'un côté, formulaire de l'autre : voir la partie 12 */

/* ---------- 10. Pied de page ---------- */
.pied { border-top: 1px solid var(--ligne); padding-block: 28px 40px; font-size: .925rem; color: var(--ecorce-doux); }
.pied-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.pied p { margin: 0; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied a { color: inherit; }
.credit { margin-left: auto; }
@media (max-width: 640px) { .credit { margin-left: 0; } }

/* =========================================================
   11. Modules facultatifs
   ---------------------------------------------------------
   Chaque racine porte data-module="bandeau|parcours|remboursement|bons|galerie" :
   un script commun les affiche ou les masque et remplit leurs champs
   (data-field, data-list > [data-item] > [data-k]).
   ========================================================= */

/* ---------- 11a. Bandeau « Message important » ----------
   Premier élément du body. L'en-tête n'est ni fixe ni collant :
   le bandeau défile simplement avec la page.
   Fond : teinte légère de --accent, texte écorce (contraste > 9:1). */
.module-bandeau {
  background: var(--bandeau-fond);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, var(--lin));
  color: var(--ecorce);
  font-size: .975rem;
  line-height: 1.45;
}
.module-bandeau p { display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin: 0; padding-block: 10px; }
.module-bandeau svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent-texte); }
.module-bandeau span { min-width: 0; font-weight: 500; }

/* ---------- 11b. Mon parcours ----------
   Titre à gauche, texte et repères à droite ; frise des formations
   verticale sur mobile, horizontale dès 900px. */
.parcours-grille { display: grid; gap: 24px; }
.parcours-grille h2 { margin-bottom: 0; }
.parcours-intro { max-width: 58ch; margin: 0; font-size: 1.125rem; line-height: 1.65; }
.parcours-reperes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.repere { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 14px 18px; background: var(--sable); border-radius: var(--r-sm); }
.repere-titre { font-family: var(--f-titre); font-size: 1.125rem; line-height: 1.3; }
.repere-sous { font-size: .925rem; line-height: 1.4; color: var(--ecorce-doux); }
/* Même logique que la bande de faits : « et » seulement si les deux agréments sont affichés */
.repere-agrement [data-show="asca"]:not([hidden]) + [data-show="rme"]:not([hidden])::before { content: " et "; }
.repere-agrement:not(:has([data-show]:not([hidden]))) { display: none; }
@media (min-width: 640px) {
  .parcours-reperes { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

.parcours-liste {
  list-style: none;
  margin: 0;
  padding: 10px clamp(20px, 3vw, 36px);
  background: var(--lin);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  min-width: 0;
}
.parcours-liste [data-item] { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; padding: 18px 0 18px 34px; }
/* Frise : un trait par étape, un point aligné sur l'année */
.parcours-liste [data-item]::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--ligne); }
.parcours-liste [data-item]:first-child::before { top: 30px; }
.parcours-liste [data-item]:last-child::before { bottom: auto; height: 30px; }
.parcours-liste [data-item]:only-child::before { display: none; }
.parcours-liste [data-item]::after { content: ""; position: absolute; left: 1px; top: 23px; width: 14px; height: 14px; border-radius: 50%; background: var(--lin); border: 2px solid var(--accent-texte); }
.parcours-liste [data-item]:last-child::after { background: var(--accent-texte); }
.parcours-liste [data-k="annee"] { font-family: var(--f-titre); font-size: 1.125rem; line-height: 1.3; color: var(--olive-texte); }
.parcours-liste [data-k="titre"] { font-size: 1.0625rem; line-height: 1.35; }
.parcours-liste [data-k="ecole"] { font-size: .95rem; line-height: 1.45; color: var(--ecorce-doux); }
@media (min-width: 520px) and (max-width: 899px) {
  .parcours-liste [data-item] { grid-template-columns: 4.25rem minmax(0, 1fr); grid-template-areas: "annee titre" "annee ecole"; column-gap: 16px; padding-left: 38px; }
  .parcours-liste [data-k="annee"] { grid-area: annee; }
  .parcours-liste [data-k="titre"] { grid-area: titre; }
  .parcours-liste [data-k="ecole"] { grid-area: ecole; }
}
@media (min-width: 900px) {
  .parcours-grille {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    grid-template-areas: "titre intro" "titre reperes" "liste liste";
    column-gap: var(--colonnes-gap);
    row-gap: 28px;
  }
  .parcours-grille h2 { grid-area: titre; }
  .parcours-intro { grid-area: intro; }
  .parcours-reperes { grid-area: reperes; }
  .parcours-liste {
    grid-area: liste;
    margin-top: 12px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    column-gap: 28px;
    padding: 30px 36px 32px;
  }
  .parcours-liste [data-item] { padding: 34px 0 0; gap: 2px; }
  .parcours-liste [data-item]::before,
  .parcours-liste [data-item]:first-child::before { left: 8px; right: -28px; top: 7px; bottom: auto; width: auto; height: 2px; }
  .parcours-liste [data-item]:last-child::before { display: none; }
  .parcours-liste [data-item]::after { top: 1px; }
}

/* ---------- 11c. Remboursement ----------
   Bloc olive pâle (texte secondaire 5:1), étapes numérotées sur lin. */
.remb-bloc {
  display: grid;
  gap: 28px;
  background: var(--olive-pale);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4.5vw, 56px);
}
.remb-tete { min-width: 0; }
.remb-intro { max-width: 42ch; font-size: 1.125rem; line-height: 1.6; }
.remb-badges { margin-top: 24px; }
.remb-badges:not(:has(.badge:not([hidden]))) { display: none; }
.remb-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; counter-reset: etape; }
.remb-etapes li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: clamp(12px, 2vw, 18px);
  align-items: start;
  padding: clamp(14px, 3vw, 20px) clamp(14px, 3vw, 22px);
  background: var(--lin);
  border-radius: var(--r-md);
  min-width: 0;
}
.remb-etapes li::before {
  content: counter(etape);
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--olive-fonce);
  color: var(--sur-olive);
  font-family: var(--f-titre);
  font-size: 1.125rem;
  line-height: 1;
}
.remb-etapes h3 { font-size: 1.1875rem; line-height: 1.3; margin: 0 0 4px; padding-top: 7px; }
.remb-etapes p { margin: 0; color: var(--ecorce-doux); }
.remb-note { margin: 0; padding-top: 18px; border-top: 1px solid var(--trait); font-size: .95rem; color: var(--ecorce-doux); }
@media (min-width: 900px) {
  .remb-bloc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 72px); }
  .remb-note { grid-column: 1 / -1; }
}

/* ---------- 11d. Offrir une séance (bons cadeaux) ----------
   Bon dessiné en CSS (décoratif) : carte ocre posée sur une feuille lin,
   le tout dans un bloc sable, comme les blocs empilés du hero. */
.bons-grille { display: grid; gap: 32px; }
.bons-texte { min-width: 0; }
.bons-texte .btn { margin-top: .5em; }
/* « Acheter un bon en ligne » (lien de paiement du thérapeute) à côté de la commande par e-mail */
.bons-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: .5em; }
.bons-boutons .btn { margin-top: 0; }
.bons-visuel {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(30px, 6vw, 64px) clamp(22px, 5vw, 56px);
  background: var(--sable);
  border-radius: var(--r-lg);
}
.bon-pile { position: relative; width: 100%; max-width: 420px; }
.bon-pile::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--lin);
  border-radius: var(--r-md);
  transform: rotate(3deg);
  box-shadow: 0 10px 28px -18px var(--ombre-feuille);
}
.bon-carte {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 210px;
  padding: 26px 64px 22px 26px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-md);
  box-shadow: 0 24px 40px -26px var(--ombre-carte);
  transform: rotate(-1.5deg);
}
.bon-carte::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1.5px dashed color-mix(in srgb, var(--accent-ink) 45%, transparent);
  border-radius: calc(var(--r-md) - 9px);
  pointer-events: none;
}
.bon-ruban { position: absolute; top: 0; bottom: 0; right: 20px; width: 20px; background: color-mix(in srgb, var(--accent-ink) 80%, var(--accent)); }
.bon-noeud { position: absolute; top: 10px; right: 0; width: 60px; height: 42px; }
.bon-noeud path, .bon-noeud rect {
  fill: color-mix(in srgb, var(--accent-ink) 90%, var(--accent));
  stroke: color-mix(in srgb, var(--accent) 60%, var(--accent-ink));
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.bon-titre { margin: 0 0 .35em; font-family: var(--f-titre); font-size: clamp(1.5rem, 5vw, 2.4rem); line-height: 1.05; }
.bon-offre { margin: 0; max-width: 22ch; font-size: 1rem; line-height: 1.45; }
.bon-pied {
  margin: auto 0 0;
  padding-top: 18px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 2px 16px;
  font-size: .875rem;
}
.bon-nom { font-family: var(--f-titre); font-size: 1.0625rem; }
@media (min-width: 560px) {
  .bon-carte { min-height: 240px; padding: 32px 92px 28px 32px; }
  .bon-ruban { right: 34px; width: 24px; }
  .bon-noeud { right: 16px; }
}
@media (min-width: 900px) {
  .bons-grille { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--colonnes-gap); align-items: center; }
  .bons-visuel { order: -1; }   /* le bon passe à gauche, en alternance avec le rendez-vous */
}

/* ---------- 11e. Le cabinet en images ----------
   Les illustrations SVG tiennent la place des photos du thérapeute
   (même cadre 4/3 : une vraie photo s'y loge en object-fit / cover). */
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.galerie [data-item] { min-width: 0; }
.galerie figure { margin: 0; display: grid; gap: 10px; }
.galerie-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--sable) center / cover no-repeat;
}
.galerie-photo svg, .galerie-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.galerie figcaption { font-size: .975rem; line-height: 1.4; color: var(--ecorce-doux); }
@media (min-width: 560px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .galerie { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Illustrations d'intérieur (palette du modèle ; elles tiennent lieu de photos
   et la gardent aussi avec des couleurs personnalisées, voir la partie 13) */
.g-mur { fill: var(--sable); }
.g-sol { fill: #D8C2A6; }
.g-lin { fill: var(--lin); }
.g-bois { fill: #A9825F; }
.g-ecorce { fill: var(--ecorce); }
.g-olive { fill: var(--olive); }
.g-olive-fonce { fill: var(--olive-fonce); }
.g-olive-pale { fill: var(--olive-pale); }
.g-accent { fill: var(--accent); }
.g-lumiere { fill: var(--lin); opacity: .5; }
.g-trait { fill: none; stroke: var(--sable); stroke-width: 6; stroke-linecap: round; }
.g-reflet { fill: none; stroke: var(--lin); stroke-width: 5; stroke-linecap: round; opacity: .85; }

/* =========================================================
   12. Pages légales, horaires, formulaire
   ---------------------------------------------------------
   12a. Horaires, accès et plan dans « Le cabinet »
   12b. Formulaire de contact (validé par formulaire-contact.js)
   12c. Mentions légales et protection des données (:target)
   ========================================================= */
:root {
  --danger: #A3361E;        /* erreurs : 6,6:1 sur lin, 5,8:1 sur argile */
  --champ-bord: #8E7B6B;    /* bord des champs : 3,9:1 sur lin */
  --champ-fond: #FFFFFF;    /* fond des champs */
}

/* ---------- 12a. Horaires, accès, plan ---------- */
.cabinet-pratique { display: grid; column-gap: 32px; min-width: 0; }
.cabinet-pratique > div { min-width: 0; }
.horaires { list-style: none; margin: 0; padding: 0; max-width: 25rem; }
.horaires li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--trait);
}
.horaires li:first-child { border-top: 1px solid var(--trait); }
.horaires [data-k="jour"] { font-weight: 700; }
.horaires [data-k="heures"] { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Jours sans séance : en retrait (écorce doux, 5,1:1 sur sable) */
.horaires li.ferme { color: var(--ecorce-doux); }
.horaires li.ferme [data-k="jour"] { font-weight: 400; }
.horaires-note { margin: 10px 0 0; font-size: .95rem; color: var(--ecorce-doux); }

.acces { gap: 12px; }
.acces li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 14px; line-height: 1.45; }
.acces-ic {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--lin);
  color: var(--olive-texte);
}
.acces-ic svg { width: 22px; height: 22px; }

/* Plan : la carte lin garde son retrait de 10px, le plan prend un rayon concentrique */
.cabinet-carte { display: flex; flex-direction: column; gap: 6px; }
.plan {
  /* Teintes du plan (reliées à la personnalisation dans la partie 13) */
  --plan-sol: var(--creme);
  --plan-ilot: var(--sable);
  --plan-rue: var(--lin);
  --plan-vert: var(--olive-pale);
  --plan-arbre: color-mix(in srgb, var(--olive) 26%, var(--olive-pale));
  --plan-eau: #C3CDC3;
  --plan-ombre: var(--ecorce);
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  border-radius: calc(var(--r-md) - 10px);
  background: var(--plan-sol);
}
.plan svg { display: block; width: 100%; height: 100%; }
.plan-lien {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px;
  padding: 4px 10px;
  font-weight: 700;
}
.plan-lien svg { flex: none; }
@media (min-width: 600px) and (max-width: 899px) {
  .cabinet-pratique { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { aspect-ratio: 16 / 9; }
}
@media (min-width: 900px) {
  .cabinet-bloc { align-items: stretch; }     /* le plan occupe toute la hauteur des infos */
  .plan { aspect-ratio: auto; flex: 1; min-height: 320px; }
}

/* Illustration du plan (SVG inline, sans texte) */
.p-sol { fill: var(--plan-sol); }
.p-ilot { fill: var(--plan-ilot); }
.p-vert { fill: var(--plan-vert); }
.p-arbre { fill: var(--plan-arbre); }
.p-berge { fill: none; stroke: var(--plan-vert); stroke-width: 54; stroke-linecap: round; }
.p-eau { fill: none; stroke: var(--plan-eau); stroke-width: 18; stroke-linecap: round; }
.p-rue { fill: none; stroke: var(--plan-rue); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.p-rue-grande { stroke-width: 17; }
.p-ruelle { stroke-width: 6; }
.p-halo { fill: var(--accent); opacity: .16; }
.p-ombre { fill: var(--plan-ombre); opacity: .22; }
.p-pin { fill: var(--accent); stroke: var(--lin); stroke-width: 3; stroke-linejoin: round; }
.p-pin-centre { fill: var(--lin); }

/* ---------- 12b. Formulaire de contact ---------- */
.contact-grille { gap: 36px; align-items: start; }
.contact-coord { display: grid; gap: 24px; align-content: start; min-width: 0; }
.contact-coord h2 { margin-bottom: 0; }
.contact-ecrire {
  min-width: 0;
  background: var(--lin);
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 40px);
}
.fc-intro { font-family: var(--f-titre); font-size: clamp(1.3rem, 2.2vw, 1.625rem); line-height: 1.3; margin-bottom: 22px; text-wrap: balance; }
.form-contact { display: grid; gap: 18px; }
.fc-champ { display: grid; gap: 6px; min-width: 0; align-content: start; }
.fc-champ label { font-weight: 700; line-height: 1.35; }
.fc-champ label span { font-weight: 400; color: var(--ecorce-doux); }
.form-contact input:not([type="checkbox"]),
.form-contact textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--champ-bord);
  border-radius: var(--r-sm);
  background: var(--champ-fond);
  color: var(--ecorce);
  font: inherit;
  line-height: 1.4;
}
.form-contact textarea { min-height: 148px; resize: vertical; }
.form-contact input:not([type="checkbox"]):focus,
.form-contact textarea:focus { outline: 3px solid var(--accent-texte); outline-offset: 2px; border-color: var(--accent-texte); }
.form-contact [aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.fc-erreur { margin: 0; color: var(--danger); font-size: .95rem; font-weight: 700; line-height: 1.4; }
.fc-case {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-items: start;
  font-size: .975rem; line-height: 1.5;
  cursor: pointer;
}
.fc-case input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.fc-case input:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; }
.fc-case + .fc-erreur { margin-top: -10px; padding-left: 34px; }   /* l'erreur reste collée à sa case */
.form-contact .btn { justify-self: start; margin-top: 4px; border: 0; font-family: inherit; cursor: pointer; }
.fc-envoye {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start;
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--olive-pale);
  color: var(--ecorce);
  font-weight: 700;
  line-height: 1.45;
}
.fc-envoye::before {
  content: "";
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--olive-fonce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%23FFFBF6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (min-width: 600px) {
  /* Nom sur toute la largeur, e-mail et téléphone côte à côte, message en dessous */
  .form-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .form-contact > * { grid-column: 1 / -1; }
  .form-contact > .fc-champ:nth-child(2),
  .form-contact > .fc-champ:nth-child(3) { grid-column: auto; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .contact-liens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 12c. Mentions légales et protection des données ----------
   Masquées par défaut, ouvertes en surcouche plein écran par leur ancre. */
.page-legale { display: none; }
.page-legale:target {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--argile);
  color: var(--ecorce);
}
html:has(.page-legale:target) { overflow: hidden; }   /* la page derrière ne défile plus */
.legale-barre {
  position: sticky; top: 0; z-index: 1;
  background: var(--argile);
  border-bottom: 1px solid var(--ligne);
}
.legale-barre-in,
.legale-texte { width: min(100% - 2 * var(--gouttiere), 70ch); margin-inline: auto; }
.legale-barre-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-block: 10px; }
.legale-retour {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 6px 18px 6px 12px;
  border: 1.5px solid var(--ecorce);
  border-radius: var(--r-pill);
  color: var(--ecorce);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.legale-retour:hover { background: var(--sable); }
.legale-retour svg { flex: none; }
.legale-site { font-family: var(--f-titre); font-size: 1.0625rem; color: var(--ecorce-doux); }
.legale-texte { padding-block: clamp(32px, 6vw, 64px) clamp(56px, 9vw, 104px); }
.legale-texte h2 { margin-bottom: .45em; }
.legale-chapeau { font-size: 1.125rem; line-height: 1.6; color: var(--ecorce-doux); }
.legale-texte h3 { font-size: 1.375rem; line-height: 1.25; margin: 1.8em 0 .55em; padding-top: 1.1em; border-top: 1px solid var(--ligne); }
.legale-texte h4 { font-family: var(--f-texte); font-weight: 700; font-size: 1.0625rem; line-height: 1.35; margin: 1.3em 0 .3em; }
.legale-texte h3 + h4 { margin-top: .4em; }
.legale-texte ul { margin: 0 0 1em; padding-left: 1.25em; }
.legale-texte li + li { margin-top: .25em; }
.legale-identite {
  font-style: normal;
  background: var(--lin);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  padding: 20px clamp(18px, 3vw, 26px);
}
.legale-identite p { margin: 0; }
.legale-identite dl { display: grid; gap: 6px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--ligne); }
.legale-identite dl div { display: flex; flex-wrap: wrap; gap: 0 10px; min-width: 0; }
.legale-identite dt { color: var(--ecorce-doux); min-width: 6.5em; }
.legale-identite dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.legale-agrements:not(:has([data-show]:not([hidden]))) { display: none; }
.legale-maj { margin-top: 2.4em; padding-top: 1.1em; border-top: 1px solid var(--ligne); font-size: .95rem; color: var(--ecorce-doux); }

/* =========================================================
   13. Personnalisation (couleurs, police, taille du texte)
   ---------------------------------------------------------
   theme.js pose sur <html> : data-couleurs="clair|sombre" et les
   jetons --p-* (contrastes déjà vérifiés), data-police, data-taille.
   Sans ces attributs, le modèle garde exactement ses couleurs
   et ses polices (seul --accent peut changer).
   ========================================================= */

/* ---------- 13a. Couleurs : chaque teinte reçoit le jeton de son rôle ---------- */
:root[data-couleurs] {
  --danger: var(--p-danger);            /* erreurs : jeton de theme.js, ≥ 4,6:1 sur fond, cartes et bandes */
  /* Écorce, argile, sable, lin : texte, fond, grands blocs, cartes */
  --ecorce: var(--p-texte);
  --ecorce-doux: var(--p-texte-doux);
  --argile: var(--p-fond);
  --sable: var(--p-bande);              /* hero, cabinet, repères, support du bon */
  --lin: var(--p-surface);              /* séances, agréments, frise, étapes, formulaire */
  --creme: var(--p-fond);               /* surface douce (agenda, sol du plan) */
  --ligne: var(--p-ligne);
  --trait: color-mix(in srgb, var(--p-texte) 16%, transparent);

  /* Olive, la couleur secondaire. Ses blocs (bande de faits, pastilles
     numérotées, coche) deviennent les blocs contrastés ; employée en texte
     ou en icône (métier, sceaux, années, accès), elle prend l'accent lisible ;
     sa teinte pâle (remboursement, message envoyé) prend le fond teinté. */
  --olive-fonce: var(--p-fonce);
  --sur-olive: var(--p-sur-fonce);
  --sur-olive-doux: var(--p-sur-fonce-doux);
  --filet-olive: color-mix(in srgb, var(--p-sur-fonce) 20%, transparent);
  --olive-texte: var(--p-accent-texte);
  --olive-pale: var(--p-accent-doux);
  --olive: color-mix(in oklab, var(--p-fonce) 75%, var(--p-accent));   /* galet du portrait */

  /* Galet du portrait : un bloc foncé teinté d'accent, initiales claires */
  --galet-haut: color-mix(in oklab, var(--olive) 94%, #FFFFFF);
  --galet-bas: color-mix(in oklab, var(--olive) 78%, #000000);
  --galet-lumiere: color-mix(in srgb, var(--p-sur-fonce) 20%, transparent);
  --galet-ombre: color-mix(in srgb, var(--p-fonce) 55%, transparent);
  --initiales: color-mix(in srgb, var(--p-sur-fonce) 88%, transparent);

  /* Accent (--accent lui-même est posé en ligne par theme.js) */
  --accent-ink: var(--p-accent-ink);
  --accent-texte: var(--p-accent-texte);
  --accent-survol: var(--p-accent-fonce);
  --bandeau-fond: var(--p-accent-doux);

  /* Ombres du bon cadeau, champs du formulaire */
  --ombre-feuille: color-mix(in srgb, var(--p-fonce) 45%, transparent);
  --ombre-carte: color-mix(in srgb, var(--p-fonce) 70%, transparent);
  --champ-fond: var(--p-surface);
  --champ-bord: var(--p-texte-doux);    /* ≥ 4,5:1 sur les cartes */
}

/* Ambiances sombres : le fond teinté de l'accent n'y est pas garanti
   lisible pour le texte secondaire, les blocs teintés prennent la bande */
:root[data-couleurs="sombre"] {
  color-scheme: dark;
  --olive-pale: var(--p-bande);
  --bandeau-fond: var(--p-bande);
  --ombre-feuille: color-mix(in srgb, #000000 55%, transparent);
  --ombre-carte: color-mix(in srgb, #000000 80%, transparent);
  --champ-fond: var(--p-fond);          /* champs en creux dans la carte */
}
/* En sombre, carte et bande sont presque de même valeur : les cartes posées
   dans un grand bloc (étapes, plan, icônes d'accès, feuille du bon) passent en creux */
:root[data-couleurs="sombre"] :is(.remb-bloc, .cabinet-bloc, .bons-visuel) { --lin: var(--p-fond); }

/* Le cabinet en images : les illustrations tiennent lieu de photos,
   elles gardent la palette d'origine (l'accent les suit, comme sans personnalisation) */
:root[data-couleurs] .galerie-photo {
  --ecorce: #3A2B22;
  --sable: #EADCC9;
  --lin: #FFFBF6;
  --olive: #6B6F3A;
  --olive-fonce: #565A2D;
  --olive-pale: #E1DEC4;
}

/* Plan d'accès : îlots sur la bande, rues claires, parc et rivière
   dans une teinte verte ou bleue fondue dans l'ambiance */
:root[data-couleurs] .plan {
  --plan-sol: color-mix(in oklab, var(--p-fond) 60%, var(--p-bande));
  --plan-ilot: var(--p-bande);
  --plan-rue: var(--p-surface);
  --plan-vert: color-mix(in oklab, var(--p-bande) 78%, #7E9460);
  --plan-arbre: color-mix(in oklab, var(--p-bande) 60%, #7E9460);
  --plan-eau: color-mix(in oklab, var(--p-bande) 65%, #6E9BAE);
  --plan-ombre: var(--p-fonce);
}
:root[data-couleurs="sombre"] .plan {
  --plan-sol: color-mix(in oklab, var(--p-fond) 55%, var(--p-surface));
  --plan-rue: var(--p-ligne);
}

/* ---------- 13b. Police ---------- */
:root[data-police] {
  --f-titre: var(--p-police-titres);
  --f-texte: var(--p-police-texte);
  font-synthesis-weight: none;          /* pas de faux gras */
}
/* Young Serif n'a qu'une graisse (400) : les autres polices prennent leur graisse de titre */
:root[data-police] :is(h1, h2, h3, .marque-nom, .fait-titre, .repere-titre, .seance-prix,
  .cabinet-adresse, .contact-liens a, .bon-titre, .bon-nom, .fc-intro, .legale-site,
  .parcours-liste [data-k="annee"], .hero-initiales),
:root[data-police] .remb-etapes li::before { font-weight: var(--p-poids-titres); }

/* ---------- 13c. Taille du texte ---------- */
:root[data-taille="grande"] { font-size: 112.5%; }

/* ---------------------------------------------------------
   Logo à côté du nom (facultatif) — posé par apercu.js / assets/js/logo.js
   data-logo : logo présent (+ --logo-ratio, largeur / hauteur de l'image)
   data-logo-seul : le logo contient déjà le nom (le nom reste dans la page
   pour Google et les lecteurs d'écran)
   data-logo-pastille + --logo-pastille : fond derrière un logo qui se verrait mal
   Le logo est placé à gauche du nom sans toucher à la mise en page du nom.
   --------------------------------------------------------- */
:root { --logo-h: 44px; --logo-max: 180px; --logo-gap: .75em; }
: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]:not([data-logo-seul]) [data-marque] { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: var(--logo-h); padding-left: calc(var(--logo-w) + var(--logo-gap)); }
:root[data-logo]:not([data-logo-seul]) [data-marque] > .logo-site { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
:root[data-logo-seul] [data-marque] { display: flex; align-items: center; }
:root[data-logo-seul] [data-marque] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root[data-logo-seul] { --logo-h: 52px; --logo-max: 220px; }
:root[data-logo-pastille] .logo-site { box-sizing: content-box; padding: 5px 9px; border-radius: 10px; background: var(--logo-pastille); }
:root[data-logo-pastille]:not([data-logo-seul]) [data-marque] { min-height: calc(var(--logo-h) + 10px); padding-left: calc(var(--logo-w) + 18px + var(--logo-gap)); }
@media (max-width: 600px) {
  :root { --logo-h: 36px; --logo-max: 30vw; }
  :root[data-logo-seul] { --logo-h: 42px; --logo-max: 52vw; }
}
/* très petit écran : à côté d'un logo, on garde le nom et on retire le métier */
@media (max-width: 420px) {
  :root[data-logo]:not([data-logo-seul]) [data-marque] > span + span { display: none; }
}
/* téléphone : un logo très en largeur (data-logo-large, plus de 2 fois plus large que haut) s'affiche seul */
@media (max-width: 480px) {
  :root[data-logo-large] { --logo-h: 40px; --logo-max: 52vw; }
  :root[data-logo-large]:not([data-logo-seul]) [data-marque] { display: flex; align-items: center; min-height: 0; padding-left: 0; }
  :root[data-logo-large]:not([data-logo-seul]) [data-marque] > .logo-site { position: static; transform: none; }
  :root[data-logo-large]:not([data-logo-seul]) [data-marque] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* bouton d'en-tête : libellé court quand le logo prend de la place */
@media (max-width: 480px) {
  :root[data-logo] .btn-entete .txt-long { display: none; }
  :root[data-logo] .btn-entete .txt-court { display: inline; }
}

/* =========================================================
   14. Site en ligne (version PHP) — éléments absents de la maquette
   ---------------------------------------------------------
   14a. Agenda du thérapeute dans la page (iframe) ou derrière un bouton
   14b. Rendez-vous sans agenda en ligne : téléphone ou message
   14c. Champ piège du formulaire de contact (invisible, contre les robots)
   ========================================================= */
.rdv-agenda { width: 100%; max-width: 680px; min-width: 0; }
.rdv-carte {
  display: grid;
  gap: 18px;
  justify-items: start;
  width: 100%;
  max-width: 680px;
  min-width: 0;
  background: var(--lin);
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 40px);
}
.rdv-carte > * { margin: 0; }
.rdv-carte .contact-liens { grid-template-columns: minmax(0, 1fr); justify-self: stretch; }
.rdv-carte-texte { color: var(--ecorce-doux); max-width: 46ch; }
.rdv .agenda-bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: .7em 1.45em;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.rdv .agenda-bouton:hover { background: var(--accent-survol); }
.fc-piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Animations (mécanisme commun : defilement.css et defilement.js ; README, « Animations »)
   Ancrage : des blocs chaleureux qui montent et se posent, l'un après l'autre.
   Rien ne bouge avec <html data-animations="non"> ni si le visiteur demande moins d'animations.
   ========================================================= */
.defilement [data-reveal] {
  transition-duration: 1.1s;
  transition-timing-function: cubic-bezier(.16, .84, .3, 1);
  transition-delay: calc(var(--rang, 0) * 110ms + var(--delai, 0ms));
}
.defilement [data-reveal="monte"] { transform: translateY(26px); }
/* « bloc » : monte de plus loin et grandit à peine, comme posé sur la page */
.defilement [data-reveal="bloc"] { transform: translateY(56px) scale(.97); transform-origin: 50% 100%; }

/* Haut de page : le bloc sable monte, la photo et les textes suivent (au chargement, une fois) */
@media (prefers-reduced-motion: no-preference) {
  .hero-fond { animation: a-monte 1.2s cubic-bezier(.16, .84, .3, 1) backwards; }
  .hero-tete { animation: a-leve 1.1s cubic-bezier(.16, .84, .3, 1) .12s backwards; }
  .hero-photo { animation: a-bloc 1.3s cubic-bezier(.16, .84, .3, 1) .2s backwards; }
  .hero-texte { animation: a-leve 1.1s cubic-bezier(.16, .84, .3, 1) .34s backwards; }
  .hero .faits { animation: a-leve 1.1s cubic-bezier(.16, .84, .3, 1) .5s backwards; }
}
@keyframes a-monte { from { opacity: 0; transform: translateY(40px); } }
@keyframes a-bloc { from { opacity: 0; transform: translateY(46px) scale(.96); } }
@keyframes a-leve { from { opacity: 0; transform: translateY(22px); } }

/* =========================================================
   Titre du site = l'enseigne du cabinet (1.9.0, <html data-titre-enseigne>) :
   le nom de la personne reste sous le titre (.hero-sous-titre, data-field="sous-titre",
   caché quand vide) ; mentions légales : ligne « enseigne » (data-field="enseigne")
   ========================================================= */
.hero-sous-titre {
  grid-area: sous;                 /* rangée à lui : le bloc sable commence là et chevauche le bas du titre, comme sans enseigne */
  position: relative; z-index: 2;
  min-width: 0;
  margin: 10px 0 0;
  padding-inline: var(--retrait);
  font-family: var(--f-titre);
  font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem);
  line-height: 1.2;
  color: var(--ecorce);
  overflow-wrap: anywhere;
}
:root[data-titre-enseigne] .hero-nom { hyphens: manual; }
:root[data-titre-enseigne] .hero-grille {
  --nom-taille: clamp(2.25rem, 4.2vw, 4.5rem);   /* une enseigne est plus longue qu'un nom */
  grid-template-areas: "tete" "sous" "photo" "texte";
}
:root[data-titre-enseigne] .hero-fond { grid-row: 2 / 5; }
@media (min-width: 700px) {
  :root[data-titre-enseigne] .hero-grille { grid-template-rows: auto auto 1fr var(--encart); grid-template-areas: "tete ." "sous photo" "texte photo" ". ."; }
  :root[data-titre-enseigne] .hero-fond { grid-row: 2 / 5; }
}

/* ==================== 1.12.0 : rubrique « Avis de patients » (début) ====================
   Section « Ce qu'en disent mes patients » (vues/sites/ancrage.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; }

/* Ancrage : un grand bloc sable, des cartes de lin posées dessus, sceau olive ; l'avis mis en avant en bande olive */
.avis-bloc { display: flex; flex-wrap: wrap; gap: 28px; background: var(--sable); border-radius: var(--r-lg); padding: clamp(22px, 4.5vw, 56px); }
.avis-tete h2 { margin-bottom: .35em; }
.avis-liste { display: flex; flex-wrap: wrap; gap: 18px; --avis-base: 16rem; }
.avis-carte {
  display: flex; flex-direction: column; gap: 18px; padding: 24px 24px 22px;
  border-radius: var(--r-md); background: var(--lin); box-shadow: 0 1px 0 var(--trait);
}
.avis-carte::before {
  content: "\201C" / ""; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--olive-fonce); color: var(--sur-olive); font: 1.9rem/1 var(--f-titre); padding-top: 12px;
}
.avis-texte p { font-size: 1.0625rem; line-height: 1.6; }
.avis-auteur { margin-top: auto; font-family: var(--f-titre); font-size: 1.05rem; color: var(--olive-texte); }
.avis-item[data-en-avant] { flex-basis: 100%; }
.avis-item[data-en-avant] .avis-carte { background: var(--olive-fonce); color: var(--sur-olive); padding: clamp(24px, 4vw, 40px); }
.avis-item[data-en-avant] .avis-carte::before { background: var(--sur-olive); color: var(--olive-fonce); }
.avis-item[data-en-avant] .avis-texte p { font-family: var(--f-titre); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); line-height: 1.4; }
.avis-item[data-en-avant] .avis-auteur { color: var(--sur-olive-doux); }
.avis-vide { margin: 0; padding: 18px 22px; border: 2px dashed var(--trait); border-radius: var(--r-md); color: var(--ecorce-doux); }
.avis-btn { background: transparent; color: var(--ecorce); border: 2px solid var(--ecorce); }
.avis-btn:hover { background: var(--ecorce); color: var(--argile); }
.avis + .rdv { padding-top: calc(var(--section) * .6); }
/* ==================== 1.12.0 : rubrique « Avis de patients » (fin) ==================== */
