/* =========================================================
   Modèle « Encre » — shiatsu, acupuncture, médecine chinoise, massage
   Univers zen japonais, beaucoup de blanc : papier washi, encre sumi,
   vermillon en accent (sceau carré aux initiales, mots en couleur), or
   des filets et du « fil doré » de kintsugi. Shippori Mincho (titres)
   + Zen Kaku Gothic New (texte), petites étiquettes espacées en capitales.
   Hero : image pleine largeur (photo du thérapeute, ou montagnes dans la
   brume au lavis d'encre), ensō qui se dessine autour d'un soleil, sceau
   qui se pose d'un coup ; au défilement, fondus lents et traits qui se
   tracent (assets/css/sites/defilement.css).
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  /* Palette du modèle */
  --washi: #F5F2EA;         /* fond de page (papier) */
  --washi-2: #ECE6DA;       /* bandes : parcours, questions */
  --papier: #E3DDCF;        /* portrait sans photo */
  --sumi: #1E1E1C;          /* texte, titres, boutons (encre) */
  --sumi-doux: #3E3B35;     /* paragraphes (10:1 sur le washi) */
  --gris: #5E5A52;          /* texte secondaire, étiquettes (6:1 sur le washi, 5,5:1 sur la bande) */
  --gris-trait: #8C877C;    /* soulignés des champs (3,2:1) */
  --filet: #DDD6C7;         /* filets clairs */
  --filet-2: #CFC8B8;       /* filets posés sur la bande */
  --or: #A9864A;            /* filets dorés, points, fil de kintsugi (décor) */
  --or-texte: #846737;      /* or écrit en texte (4,6:1) */

  /* Couleur d'accent (modifiable dans l'espace client) : sceau, mots en couleur */
  --accent: #B8382A;
  --accent-ink: #F5F2EA;          /* texte posé sur le sceau (5,2:1 sur le vermillon) */
  --accent-texte: var(--accent);  /* accent écrit en texte (5,2:1 sur le washi, 4,6:1 sur la bande) */

  /* Boutons : rectangles d'encre */
  --btn-fond: var(--sumi);
  --btn-texte: var(--washi);

  /* Bloc foncé : bons cadeaux */
  --fonce: #1E1E1C;
  --sur-fonce: #F5F2EA;
  --sur-fonce-doux: #CFC8B8;      /* 11:1 */
  --sur-fonce-label: #BDB6A6;     /* 8,3:1 */
  --bon-fond: #F5F2EA;

  /* Hero : montagnes au lavis (crêtes de plus en plus foncées, bandes de brume) */
  --h-ciel: #EFEBE1;
  --h-crete-1: #DCD6CA;
  --h-crete-2: #BDB7AA;
  --h-crete-3: #8E897E;
  --h-crete-4: #4A4743;
  --panneau: rgba(245, 242, 234, .94);   /* sous le texte, quand l'en-tête est une photo */

  --danger: #B42318;

  /* Typographie */
  --f-texte: "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-titres: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, "Times New Roman", serif;
  --poids-titres: 500;
  --fs-small: .9375rem;
  --fs-body: 1.0625rem;
  --fs-h1: clamp(3rem, 1.5rem + 5.2vw, 5.75rem);
  --fs-h2: clamp(2.125rem, 1.6rem + 1.7vw, 3rem);
  --fs-h2-grand: clamp(2.25rem, 1.55rem + 2.4vw, 3.5rem);

  /* Mise en page */
  --max: 1136px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 9vw, 104px);
  --section-court: clamp(64px, 8vw, 96px);
  --header-h: 92px;
}

/* ---------- 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(--washi);
  color: var(--sumi);
  font-family: var(--f-texte);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--f-titres); font-weight: var(--poids-titres); line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
a { color: var(--sumi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-texte); }
img, svg { max-width: 100%; }

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

.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;
  background: var(--btn-fond); color: var(--btn-texte); padding: 10px 16px;
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

main > section, #cabinet { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Étiquettes espacées en capitales, titres de section */
.etiquette {
  margin: 0 0 14px;
  font-family: var(--f-texte); font-size: .8125rem; font-weight: 500; line-height: 1.6;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gris);
}
.titre { font-size: var(--fs-h2); line-height: 1.2; text-wrap: balance; }
.titre-grand { font-size: var(--fs-h2-grand); line-height: 1.15; }
.intro { margin: 20px 0 0; max-width: 40ch; color: var(--gris); }
.intro:empty { display: none; }

/* Sceau carré (initiales, agréments) : vermillon, lettres washi */
.sceau {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  flex: none;
  border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-titres); font-weight: 700; line-height: 1.05; letter-spacing: .02em;
  text-align: center;
}

/* ---------- 3. Boutons (rectangles d'encre) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 10px 28px;
  border: 1px solid var(--btn-fond); border-radius: 0;
  background: var(--btn-fond); color: var(--btn-texte);
  font: inherit; font-size: .9375rem; font-weight: 500; line-height: 1.3; letter-spacing: .12em;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: transparent; color: var(--sumi); border-color: var(--sumi); }
.btn-sm { min-height: 44px; padding: 8px 22px; white-space: nowrap; }
/* Contour d'encre */
.btn-creux { background: transparent; color: var(--sumi); border-color: var(--sumi); letter-spacing: .08em; }
.btn-creux:hover { background: var(--btn-fond); color: var(--btn-texte); border-color: var(--btn-fond); }
/* Sur la section noire */
.btn-clair { background: var(--sur-fonce); color: var(--fonce); border-color: var(--sur-fonce); }
.btn-clair:hover { background: transparent; color: var(--sur-fonce); border-color: var(--sur-fonce); }
@media (prefers-reduced-motion: no-preference) {
  .btn, .agenda-bouton, .nav a, .faq summary { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
}

/* ---------- 4. En-tête (washi, collant) : sceau, nom, métier, menu sobre, bouton noir ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--washi);
  border-bottom: 1px solid var(--filet);
}
/* Sur une ligne : un nom long passe à la ligne dans la marque, le bouton reste à droite */
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h); padding-block: 14px;
}
.header-inner > .nav, .header-inner > .btn { flex: none; }
.brand { flex: 0 1 auto; display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--sumi); text-decoration: none; }
.brand:hover { color: var(--sumi); }
.brand-initiales { width: 42px; height: 42px; font-size: 1rem; }
.brand-textes { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-nom { font-family: var(--f-titres); font-size: 1.3125rem; font-weight: 600; letter-spacing: .04em; }
.brand-pro { font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gris); }
.nav ul { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 10px 0;
  color: var(--sumi); font-size: .9375rem; letter-spacing: .08em; text-decoration: none;
}
.nav a:hover { color: var(--accent-texte); }
@media (max-width: 1220px) {
  .nav ul { gap: 22px; }
  .nav a { font-size: .875rem; letter-spacing: .05em; }
}
@media (max-width: 1060px) {
  .nav { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .brand { gap: 10px; }
  .brand-initiales { width: 36px; height: 36px; font-size: .875rem; }
  .brand-nom { font-size: 1.125rem; letter-spacing: .02em; }
  .brand-pro { font-size: .6875rem; letter-spacing: .12em; }
  .site-header .btn-sm { padding-inline: 14px; letter-spacing: .06em; }
}
@media (max-width: 400px) {
  .brand-pro { display: none; }
}
@media (max-width: 340px) {
  .brand-initiales { display: none; }
}

/* ---------- 5. Hero : image pleine largeur, colonne verticale, titre, ensō ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--h-ciel); }
/* L'image (photo envoyée ou dessin du modèle) occupe toute la largeur de la fenêtre */
.hero-image {
  position: absolute; inset: 0; z-index: 0;
  background-color: var(--h-ciel);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% var(--entete-pos, 50%);
}
.hero-dessin { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: 100%; max-width: none; }
.hero-image.has-photo .hero-dessin { display: none; }
.hero-dessin .h-ciel { fill: var(--h-ciel); }
.hero-dessin .h-crete-1 { fill: var(--h-crete-1); }
.hero-dessin .h-crete-2 { fill: var(--h-crete-2); }
.hero-dessin .h-crete-3 { fill: var(--h-crete-3); }
.hero-dessin .h-crete-4 { fill: var(--h-crete-4); }
.hero-dessin .h-brume { fill: var(--h-ciel); opacity: .55; }
.hero-dessin .h-brume-2 { opacity: .5; }
.hero-dessin .h-arbres { fill: none; stroke: var(--h-crete-4); stroke-width: 3; }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px; align-items: start;
  padding-block: clamp(48px, 5vw, 64px) clamp(220px, 24vw, 300px);
}
.hero-grid > * { min-width: 0; }
/* Colonne verticale (filet doré à gauche) */
.hero-vertical {
  margin: 0; max-height: 520px;
  writing-mode: vertical-rl; text-orientation: mixed;
  padding-left: 18px; border-left: 1px solid var(--or);
  font-family: var(--f-titres); font-size: 1.375rem; line-height: 1.6; letter-spacing: .5em;
  color: var(--gris);
}
.hero-surtitre { margin-bottom: 30px; }
.hero-sous-titre { color: var(--sumi); }
.hero-titre {
  font-size: var(--fs-h1); font-weight: var(--poids-titres);
  line-height: 1.12; letter-spacing: .01em;
}
.hero-titre[data-longueur="long"] { font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.25rem); line-height: 1.15; }
.hero-titre[data-longueur="tres-long"] { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.2; }
.hero-phrase { display: block; }
.hero-mis { color: var(--accent-texte); }
.hero-lead { margin: 34px 0 0; max-width: 28em; color: var(--sumi-doux); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Ensō (cercle au pinceau) autour d'un soleil, sceau des agréments */
.hero-enso { position: relative; justify-self: center; width: 100%; max-width: 480px; aspect-ratio: 1; }
.hero-soleil { position: absolute; inset: 36%; border-radius: 50%; background: var(--accent); opacity: .88; }
.enso { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.enso-trait { fill: none; stroke: var(--sumi); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 1 1; }
.enso-fin { stroke-width: 4; opacity: .45; }
.sceau-hero {
  position: absolute; right: 6%; bottom: 8%;
  width: 86px; height: 86px;
  font-size: 1.25rem;
  border: 3px solid var(--washi); outline: 2px solid var(--accent);
  transform: rotate(-6deg);
}
.sceau-hero .sceau-agrement + .sceau-agrement { font-size: .8125rem; font-weight: 600; }
.sceau-initiales { display: none; }
.sceau:not(:has(.sceau-agrement:not([hidden]))) .sceau-initiales { display: block; }
.sceau-hero .sceau-initiales { font-size: 1.625rem; }

/* Fil doré de kintsugi */
.fil-or { display: block; width: 100%; max-width: none; overflow: visible; }
.fil-or path { fill: none; stroke: var(--or); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.fil-hero { position: absolute; z-index: 2; left: 0; right: 0; bottom: 12px; height: 60px; }

/* Avec une vraie photo : le texte se pose sur un panneau washi presque opaque (lisible sur toute image) */
.hero:has(.hero-image.has-photo) .hero-texte {
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--panneau);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--or) 45%, transparent);
}
.hero:has(.hero-image.has-photo) .hero-vertical { padding: 18px 12px 18px 18px; background: var(--panneau); }
.hero:has(.hero-image.has-photo) .hero-enso::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: color-mix(in srgb, var(--washi) 55%, transparent);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 190px; }
  .hero-vertical { display: none; }
  .hero-enso { max-width: 300px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-enso { max-width: 250px; }
  .sceau-hero { width: 70px; height: 70px; font-size: 1.0625rem; }
  .sceau-hero .sceau-initiales { font-size: 1.375rem; }
}

/* ---------- 6. Approche : titre vertical, portrait dans un ensō, citation, principes ---------- */
.approche { padding-block: var(--section); }
.approche-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 5vw, 64px);
}
.approche-grid > * { min-width: 0; }
.approche-gauche { display: flex; gap: 40px; min-width: 0; }
.titre-vertical {
  flex: none; align-self: flex-start;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: clamp(2.25rem, 1.7rem + 1.4vw, 2.875rem); letter-spacing: .3em; line-height: 1.2;
}
.approche-visuel { display: flex; flex-direction: column; gap: 32px; flex: 1 1 auto; min-width: 0; }
.portrait { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; }
.photo {
  position: absolute; inset: 9%;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 50%;
  background: var(--papier);
}
.photo-initiales { font-family: var(--f-titres); font-size: clamp(3rem, 2.2rem + 2.6vw, 4.5rem); font-weight: 500; letter-spacing: .06em; color: var(--gris); }
.photo.has-photo .photo-initiales { display: none; }
.portrait-enso { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--sumi); stroke-width: 12; stroke-linecap: round; }
.citation { margin: 0; font-family: var(--f-titres); font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.125rem); line-height: 1.5; }
.approche-corps { color: var(--sumi-doux); }
.approche-corps p { margin-bottom: 18px; }
.principes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin: 40px 0 0; padding: 26px 0 0; list-style: none;
  border-top: 1px solid var(--sumi);
}
.principes li { min-width: 0; }
.principes h3 { margin: 0 0 6px; font-size: clamp(1.25rem, .9rem + .7vw, 1.5rem); font-weight: 600; line-height: 1.3; }
.principes p { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--gris); }
@media (max-width: 1000px) {
  .approche-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .approche-gauche { flex-direction: column; gap: 28px; }
  .titre-vertical { writing-mode: horizontal-tb; font-size: var(--fs-h2); letter-spacing: .12em; }
}
@media (max-width: 600px) {
  .principes { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .portrait { max-width: 260px; }
}

/* ---------- 7. Séances et tarifs : lignes au point doré ---------- */
.seances { padding-block: var(--section) var(--section-court); }
.seances-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.seances-agrements { display: flex; align-items: center; gap: 16px; max-width: 26em; margin: 0; color: var(--gris); }
.sceau-agrements { width: 54px; height: 54px; font-size: .8125rem; line-height: 1.1; }
.seances-agrements:not(:has([data-show]:not([hidden]))) { display: none; }
.seances-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sumi); }
.seance { min-width: 0; border-bottom: 1px solid var(--filet); }
.seance:last-child { border-bottom-color: var(--sumi); }
.seance-ligne {
  display: grid; grid-template-columns: minmax(0, 1fr) 110px 130px;
  gap: 8px 24px; align-items: baseline;
  padding: 30px 0;
  color: var(--sumi); text-decoration: none;
}
.seance-ligne:hover { padding-left: 16px; color: var(--sumi); }
.seance-ligne:focus-visible { outline-offset: 4px; }
.seance-info { min-width: 0; }
.seance-nom { font-size: 1.75rem; font-weight: 600; line-height: 1.3; }
/* Point doré qui devient rouge au survol */
.seance-nom::before {
  content: ""; display: inline-block;
  width: 9px; height: 9px; margin-right: 14px; border-radius: 50%;
  background: var(--or);
  vertical-align: middle; transform: translateY(-3px);
}
.seance-ligne:hover .seance-nom::before { background: var(--accent); }
.seance-desc { margin: 2px 0 0; padding-left: 23px; font-size: var(--fs-small); line-height: 1.6; color: var(--gris); }
.seance-duree { color: var(--gris); }
.seance-prix { font-family: var(--f-titres); font-size: 1.5rem; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seances-note { margin: 26px 0 0; font-size: var(--fs-small); color: var(--gris); }
@media (prefers-reduced-motion: no-preference) {
  .seance-ligne { transition: padding .4s ease; }
  .seance-nom::before { transition: background-color .3s ease; }
}
@media (max-width: 860px) {
  .seance-ligne { grid-template-columns: minmax(0, 1fr) auto; padding-block: 24px; }
  .seance-info { grid-column: 1 / -1; }
  .seance-duree { padding-left: 23px; }
  .seance-nom { font-size: 1.5rem; }
  .seance-prix { font-size: 1.375rem; }
}

/* ---------- 8. Questions fréquentes (signe + qui devient −) ---------- */
.questions { padding-block: var(--section-court); background: var(--washi-2); }
.questions-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(36px, 5vw, 64px); }
.questions-grid > * { min-width: 0; }
.questions .intro { color: var(--gris); }
.faq { border-top: 1px solid var(--sumi); }
.faq details { border-bottom: 1px solid var(--filet-2); }
.faq details:last-child { border-bottom-color: var(--sumi); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 44px; padding: 24px 0;
  font-family: var(--f-titres); font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem); font-weight: 600; line-height: 1.4;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background:
    linear-gradient(currentColor, currentColor) center / 22px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 22px no-repeat;
}
.faq details[open] summary::after { background-size: 22px 1.5px, 1.5px 0; }
.faq summary:hover { color: var(--accent-texte); }
.faq-reponse { padding: 0 46px 26px 0; color: var(--sumi-doux); }
@media (max-width: 860px) {
  .questions-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-reponse { padding-right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: background-size .35s ease; }
}

/* ---------- 9. Rendez-vous ---------- */
.rdv { padding-block: var(--section) var(--section-court); }
.rdv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(36px, 5vw, 64px); align-items: start; }
.rdv-grid > * { min-width: 0; }
.rdv-bloc .titre { margin-bottom: 20px; }
.rdv-texte { color: var(--gris); }
.rdv-question { margin-top: 18px; color: var(--gris); }
.rdv-tel { display: inline-flex; align-items: center; min-height: 44px; color: var(--sumi); font-weight: 500; white-space: nowrap; }
.rdv-agenda { border-top: 1px solid var(--sumi); padding-top: 22px; }
/* Habillage d'un agenda qui lit les variables --ag-* (l'exemple .agi garde son style neutre) */
.agenda-embed {
  --ag-accent: var(--sumi);
  --ag-accent-ink: var(--washi);
  --ag-ink: var(--sumi);
  --ag-muted: var(--gris);
  --ag-bg: var(--washi);
  --ag-surface: var(--washi-2);
  --ag-line: var(--filet);
  --ag-radius: 0px;
  --ag-font: var(--f-texte);
  width: 100%;
}
.rdv-agenda .agi { max-width: none; box-shadow: none; }
.rdv-carte { display: grid; gap: 16px; align-content: start; border-top: 1px solid var(--sumi); padding-top: 22px; }
.rdv-carte p { margin: 0; }
.rdv-carte-titre { font-family: var(--f-titres); font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.rdv-carte-texte { color: var(--gris); }
.rdv-lien {
  display: flex; flex-direction: column; min-width: 0;
  padding: 12px 0; border-bottom: 1px solid var(--filet);
  color: var(--sumi); text-decoration: none; line-height: 1.3;
}
.rdv-lien:hover { color: var(--accent-texte); }
.rdv-lien small { margin-bottom: 4px; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gris); }
.rdv-lien strong { font-family: var(--f-titres); font-size: 1.375rem; font-weight: 600; 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: 50px; padding: 10px 28px;
  border: 1px solid var(--btn-fond); background: var(--btn-fond); color: var(--btn-texte);
  font: inherit; font-size: .9375rem; font-weight: 500; letter-spacing: .12em; line-height: 1.3;
  text-decoration: none; cursor: pointer;
}
.agenda-bouton:hover { background: transparent; color: var(--sumi); border-color: var(--sumi); }
@media (max-width: 860px) {
  .rdv-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .rdv-carte .btn, .rdv-carte .agenda-bouton { justify-self: stretch; }
}

/* ---------- 10. Contact (champs soulignés) et cabinet (filet doré) ---------- */
.contact { padding-block: var(--section) var(--section-court); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 72px); }
.contact-seul .contact-grid { grid-template-columns: minmax(0, 46rem); }
.contact-grid > * { min-width: 0; }
.contact-intro { margin: 16px 0 0; max-width: 40em; color: var(--gris); }
.cabinet { display: flex; flex-direction: column; gap: 30px; padding-left: 36px; border-left: 1px solid var(--or); }
.cabinet-bloc { min-width: 0; }
.cabinet-bloc .etiquette { margin-bottom: 8px; }
.adresse { font-style: normal; font-family: var(--f-titres); font-size: 1.5rem; font-weight: 600; line-height: 1.4; }
.horaires { margin: 0; padding: 0; list-style: none; }
.horaires li { display: grid; grid-template-columns: minmax(7.5em, auto) minmax(0, 1fr); gap: 24px; line-height: 1.7; }
.horaires [data-k="heures"] { font-variant-numeric: tabular-nums; }
.horaires li.ferme { color: var(--gris); }
.acces { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--sumi-doux); }
.acces-type { color: var(--sumi); font-weight: 500; }
.joindre { display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
.joindre a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cabinet { padding-left: 24px; }
}

/* ---------- 11. Pied de page : fil doré, sceau, mention centrée ---------- */
.site-footer { padding-bottom: 36px; background: var(--washi); color: var(--sumi); }
.fil-pied { height: 40px; }
.fil-pied path { stroke-width: 2; }
.footer-inner { padding-top: 22px; }
.footer-haut { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer-marque { display: flex; align-items: center; gap: 12px; margin: 0; }
.footer-marque .sceau { width: 34px; height: 34px; font-size: .8125rem; }
.footer-nom { display: flex; flex-direction: column; line-height: 1.3; }
.footer-nom > span:first-child { font-family: var(--f-titres); font-size: 1.125rem; font-weight: 600; }
.footer-pro { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.footer-liens { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.footer-liens a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-credit { margin: 22px 0 0; text-align: center; font-size: .8125rem; letter-spacing: .08em; color: var(--gris); }
.footer-credit a { color: var(--gris); }
.footer-credit a:hover { color: var(--sumi); }
@media (max-width: 560px) {
  .footer-credit > span { display: block; }
  .footer-sep { display: none !important; }
}

/* =========================================================
   12. Rubriques en plus (data-module)
   Le bandeau se place avant l'en-tête. Remboursement et galerie
   prolongent « Séances et tarifs » ; parcours et bons cadeaux sont
   des sections à part (bande washi, section noire).
   ========================================================= */
.module-suite { padding-block: 0 var(--section-court); }
.module-suite > .wrap { padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--filet); }
.module-suite.module-seul { padding-top: var(--section); }
.module-suite.module-seul > .wrap { padding-top: 0; border-top: 0; }

/* ---------- 12.1 Bandeau « Message important » ---------- */
.module-bandeau { background: var(--washi); border-bottom: 1px solid var(--filet); }
.module-bandeau p { margin: 0; padding-block: 10px; text-align: center; font-size: .875rem; letter-spacing: .06em; line-height: 1.6; }

/* ---------- 12.2 Parcours : filet doré vertical avec points ---------- */
.module-parcours { padding-block: var(--section-court); background: var(--washi-2); }
.parcours-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(36px, 5vw, 64px); }
.parcours-grid > * { min-width: 0; }
.parcours-liste {
  align-self: start;
  display: flex; flex-direction: column; gap: 28px;
  margin: 0; padding: 0 0 0 30px; list-style: none;
  border-left: 1px solid var(--or);
}
.parcours-liste li { position: relative; display: flex; flex-direction: column; min-width: 0; }
.parcours-liste li::before {
  content: ""; position: absolute; left: -36px; top: 11px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--or);
}
.parcours-liste li:last-child::before { background: var(--accent); }
.parcours-liste [data-k="annee"] { font-family: var(--f-titres); font-size: 1.375rem; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.parcours-liste [data-k="titre"] { font-weight: 400; color: var(--sumi-doux); }
.parcours-liste [data-k="ecole"] { font-size: var(--fs-small); color: var(--gris); }
@media (max-width: 860px) {
  .parcours-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 12.3 Remboursement (prolonge « Séances ») ---------- */
.remboursement-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; margin-bottom: 36px; }
.agrements { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.agrements li { padding: 6px 14px; border: 1px solid var(--sumi); font-size: .8125rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.agrements:not(:has(li:not([hidden]))) { display: none; }
.remboursement-etapes {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
  margin: 0; padding: 0; list-style: none; counter-reset: etape;
}
@media (min-width: 760px) { .remboursement-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.remboursement-etapes li { min-width: 0; padding-top: 18px; border-top: 1px solid var(--sumi); counter-increment: etape; }
.remboursement-etapes li::before {
  content: counter(etape);
  display: block; margin-bottom: 8px;
  font-family: var(--f-titres); font-size: 2rem; font-weight: 500; line-height: 1;
  color: var(--or-texte);
}
.remboursement-etapes h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.remboursement-etapes p { margin: 6px 0 0; font-size: var(--fs-small); line-height: 1.6; color: var(--gris); }
.remboursement-note { margin: 32px 0 0; padding-left: 16px; border-left: 1px solid var(--or); font-size: var(--fs-small); color: var(--gris); }

/* ---------- 12.4 Le cabinet en images : trois kakemono, celui du milieu décalé ---------- */
.module-galerie > .wrap { padding-top: 0; border-top: 0; }
.galerie {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px; align-items: end;
  margin: 0; padding: 0; list-style: none;
}
.galerie li { min-width: 0; }
.galerie figure { margin: 0; }
.galerie li:nth-child(3n+2) figure { margin-bottom: 60px; }
.galerie-photo {
  display: block; aspect-ratio: 2 / 3; overflow: hidden;
  background: var(--papier) center / cover no-repeat;
}
.galerie-photo svg { display: block; width: 100%; height: 100%; }
.galerie figcaption { margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--gris); }
@media (max-width: 600px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; align-items: start; }
  .galerie li:nth-child(3n+2) figure { margin-bottom: 0; }
  .galerie li:nth-child(2n) figure { margin-top: 44px; }
}

/* Illustrations de remplacement (en attendant les photos du thérapeute) : lavis, teintes --g-* */
:root {
  --g-mur: #EAE4D7;
  --g-mur-2: #E6DFD0;
  --g-sol: #D3CAB4;
  --g-joint: #BFB49B;
  --g-papier: #F8F5EE;
  --g-bois: #8A7356;
  --g-croisee: #A08A6C;
  --g-encre: #2B2926;
  --g-encre-doux: #5A5650;
  --g-futon: #F3EFE6;
  --g-futon-ombre: #C9BFA9;
  --g-coussin: #DCD3C1;
  --g-couverture: #8E897E;
  --g-plante: #6F7A5C;
  --g-pierre: #B5AD9C;
  --g-pierre-claire: #CBC4B5;
  --g-noren: #2F3A4A;
}
.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-joint { fill: none; stroke: var(--g-joint); stroke-width: 2; }
.galerie-photo .g-papier { fill: var(--g-papier); }
.galerie-photo .g-bois { fill: var(--g-bois); }
.galerie-photo .g-croisee { fill: none; stroke: var(--g-croisee); stroke-width: 3; }
.galerie-photo .g-encre { fill: var(--g-encre); }
.galerie-photo .g-encre-doux { fill: var(--g-encre-doux); }
.galerie-photo .g-futon { fill: var(--g-futon); }
.galerie-photo .g-futon-ombre { fill: var(--g-futon-ombre); }
.galerie-photo .g-coussin { fill: var(--g-coussin); }
.galerie-photo .g-couverture { fill: var(--g-couverture); }
.galerie-photo .g-pli { fill: none; stroke: var(--g-futon-ombre); stroke-width: 2; stroke-linecap: round; }
.galerie-photo .g-tige { fill: none; stroke: var(--g-plante); stroke-width: 3; stroke-linecap: round; }
.galerie-photo .g-feuille { fill: var(--g-plante); }
.galerie-photo .g-pierre { fill: var(--g-pierre); }
.galerie-photo .g-pierre-claire { fill: var(--g-pierre-claire); }
.galerie-photo .g-noren { fill: var(--g-noren); }
.galerie-photo .g-fil { fill: none; stroke: var(--g-encre-doux); stroke-width: 1.5; }
.galerie-photo .g-trait-encre { fill: none; stroke: var(--g-encre); stroke-width: 5; stroke-linecap: round; }
.galerie-photo .g-vapeur { fill: none; stroke: var(--g-couverture); stroke-width: 2; stroke-linecap: round; opacity: .7; }
.galerie-photo .g-lumiere { fill: #FFFFFF; opacity: .35; }
.galerie-photo .g-lumiere-douce { fill: #FFFFFF; opacity: .12; }
.galerie-photo .g-accent { fill: var(--accent); }

/* ---------- 12.5 Bons cadeaux : section noire, bon crème à double filet doré ---------- */
.module-bons { padding-block: var(--section-court); background: var(--fonce); color: var(--sur-fonce); }
.module-bons :focus-visible { outline-color: var(--sur-fonce); }
.module-bons .etiquette { color: var(--sur-fonce-label); }
.module-bons .titre { margin-bottom: 20px; }
.bons-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px); align-items: center; }
.bons-grid > * { min-width: 0; }
.bons-texte { max-width: 34em; margin: 0 0 32px; color: var(--sur-fonce-doux); }
.bons-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
/* 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(--sur-fonce); border-color: var(--sur-fonce-label); }
.bons-boutons [data-bons-lien]:not([hidden]) ~ .btn-commande:hover { border-color: var(--sur-fonce); }
.bon-visuel { min-width: 0; padding: 10px; }
.bon-carte {
  position: relative;
  display: flex; flex-direction: column;
  padding: 44px clamp(24px, 4vw, 40px);
  background: var(--bon-fond); color: var(--sumi);
  border: 1px solid var(--or); outline: 1px solid var(--or); outline-offset: 8px;
}
.bon-carte-label { margin-bottom: 10px; font-size: .8125rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gris); }
.bon-carte-titre { font-family: var(--f-titres); font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.25rem); font-weight: 600; line-height: 1.2; }
.bon-carte-ligne { margin-top: 20px; padding-right: 84px; font-size: var(--fs-small); color: var(--gris); }
.bon-sceau { position: absolute; right: 30px; bottom: 30px; width: 64px; height: 64px; font-size: 1.375rem; transform: rotate(-6deg); }
@media (max-width: 860px) {
  .bons-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .bon-sceau { right: 18px; bottom: 18px; width: 52px; height: 52px; font-size: 1.125rem; }
  .bon-carte-ligne { padding-right: 64px; }
}

/* =========================================================
   13. Plan, formulaire, pages légales
   ========================================================= */

/* ---------- 13.1 Plan d'accès (les rues se dessinent) ---------- */
:root {
  --plan-fond: #E6E0D2;
  --plan-ilot: #EFEAE0;
  --plan-batiment: #F1DCD4;
  --plan-parc: #DADCC8;
  --plan-arbre: #BDC2A3;
  --plan-eau: #CAD3D3;
  --plan-rue: #FBF9F4;
}
.plan { overflow: hidden; border: 1px solid var(--filet); background: var(--plan-fond); }
.plan svg { display: block; width: 100%; height: auto; }
.plan .p-fond { fill: var(--plan-fond); }
.plan .p-ilot { fill: var(--plan-ilot); }
.plan .p-batiment { fill: var(--plan-batiment); }
.plan .p-parc { fill: var(--plan-parc); }
.plan .p-arbre { fill: var(--plan-arbre); }
.plan .p-eau { fill: none; stroke: var(--plan-eau); stroke-width: 18; stroke-linecap: round; }
.plan .p-rue { fill: none; stroke: var(--plan-rue); stroke-width: 9; stroke-linecap: round; }
.plan .p-rue-principale { stroke-width: 14; }
.plan .p-sceau { fill: var(--accent); stroke: var(--plan-rue); stroke-width: 3; }
.plan .p-point { fill: var(--accent-ink); }
.plan-lien { margin: 10px 0 0; }
.plan-lien a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.plan-lien svg { flex: none; }

/* ---------- 13.2 Formulaire de contact (champs soulignés) ---------- */
.form-contact { display: flex; flex-direction: column; gap: 26px; margin-top: 34px; }
.form-contact p { margin: 0; }
.fc-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.fc-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fc-champ label { font-size: .8125rem; font-weight: 500; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; color: var(--gris); }
.fc-champ label span { letter-spacing: .12em; }
.fc-champ input,
.fc-champ textarea {
  width: 100%; min-height: 48px;
  padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--gris-trait); border-radius: 0;
  background: transparent; color: var(--sumi);
  font: inherit; font-size: 1.0625rem; line-height: 1.5;
}
.fc-champ textarea { min-height: 120px; resize: vertical; }
.fc-champ input:hover,
.fc-champ textarea:hover { border-bottom-color: var(--sumi); }
.fc-champ input:focus,
.fc-champ textarea:focus { outline: none; border-bottom: 2px solid var(--accent-texte); padding-bottom: 9px; }
.fc-champ input:focus-visible,
.fc-champ textarea:focus-visible { outline: none; box-shadow: 0 2px 0 0 var(--accent-texte); }
.fc-champ [aria-invalid="true"] { border-bottom: 2px solid var(--danger); padding-bottom: 9px; }
.fc-erreur {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .875rem; font-weight: 500; line-height: 1.45;
  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(--washi);
  font-size: .75rem; font-weight: 700; line-height: 1;
}
.form-contact > .fc-erreur { margin-top: -16px; }
.fc-case { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; line-height: 1.6; color: var(--sumi-doux); cursor: pointer; }
.fc-case input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--sumi); cursor: pointer; }
.fc-envoye { padding: 14px 18px; border-left: 2px solid var(--or); background: var(--washi-2); color: var(--sumi); font-weight: 500; line-height: 1.5; }
.fc-envoye:focus { outline: none; }
.fc-envoye:focus-visible { outline: 2px solid var(--sumi); outline-offset: 3px; }
.fc-piege input { width: 1px; height: 1px; padding: 0; border: 0; }
@media (max-width: 480px) {
  .form-contact .btn { width: 100%; }
}

/* ---------- 13.3 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(--washi); color: var(--sumi);
}
html:has(.page-legale:target) { overflow: hidden; }
.legale-barre { position: sticky; top: 0; z-index: 1; background: var(--washi); border-bottom: 1px solid var(--filet); }
.legale-barre-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 24px;
  min-height: var(--header-h); padding-block: 12px;
}
.legale-retour { gap: 8px; padding-left: 16px; }
.legale-site { display: flex; align-items: center; gap: 12px; min-width: 0; }
.legale-site .sceau { width: 36px; height: 36px; font-size: .875rem; }
.legale-site-textes { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.legale-site-textes > span:first-child { font-family: var(--f-titres); font-size: 1.125rem; font-weight: 600; }
.legale-site [data-field="profession"] { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.legale-corps {
  width: min(100% - 2 * var(--gutter), 70ch);
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px);
  line-height: 1.8;
}
.legale-titre { margin-bottom: 24px; font-size: var(--fs-h2); }
.legale-intro { font-size: 1.125rem; color: var(--sumi-doux); }
.legale-corps h3 { margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--filet); font-size: 1.375rem; font-weight: 600; }
.legale-titre + h3 { margin-top: 28px; }
.legale-corps h4 { margin: 22px 0 4px; font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.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 { font-style: normal; padding: 18px 20px; border-left: 2px solid var(--or); background: var(--washi-2); }
.legale-agrements:not(:has(li:not([hidden]))) { display: none; }
.legale-date { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--filet); font-size: var(--fs-small); color: var(--gris); }
@media (max-width: 560px) {
  .legale-site [data-field="profession"] { display: none; }
  .legale-site .sceau { 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 d'accent choisie avec les couleurs du modèle ----------
   Texte posé sur le sceau (washi ou encre) et accent écrit en texte (assombri vers l'encre jusqu'à 4,5:1
   sur la bande) : calculés par le serveur (<style id="accent-modele"> dans la vue) et, dans l'aperçu,
   par assets/js/sites/encre.js quand la couleur change. */

/* ---------- 14.1 Couleurs choisies (data-couleurs="clair" ou "sombre") ---------- */
:root[data-couleurs] {
  /* Palette du modèle */
  --washi: var(--p-fond);
  --washi-2: var(--p-bande);
  --papier: color-mix(in oklab, var(--p-bande) 86%, var(--p-texte));
  --sumi: var(--p-texte);
  --sumi-doux: var(--p-texte);
  --gris: var(--p-texte-doux);
  --gris-trait: color-mix(in oklab, var(--p-texte) 58%, var(--p-fond));
  --filet: var(--p-ligne);
  --filet-2: color-mix(in oklab, var(--p-ligne) 80%, var(--p-texte));
  --or: color-mix(in oklab, #A9864A 80%, var(--p-texte));
  --or-texte: var(--p-texte-doux);

  /* Accent (sceau, mots en couleur) */
  --accent: var(--p-accent);
  --accent-ink: var(--p-accent-ink);
  --accent-texte: var(--p-accent-texte);

  /* Boutons : couleur du texte, lettres couleur du fond (contraste vérifié par le thème) */
  --btn-fond: var(--p-texte);
  --btn-texte: var(--p-fond);

  /* Bloc foncé : bons cadeaux */
  --fonce: var(--p-fonce);
  --sur-fonce: var(--p-sur-fonce);
  --sur-fonce-doux: var(--p-sur-fonce-doux);
  --sur-fonce-label: var(--p-sur-fonce-doux);
  --bon-fond: var(--p-surface);

  --danger: var(--p-danger);
  --panneau: color-mix(in srgb, var(--p-fond) 94%, transparent);

  /* Hero (ambiance claire) : le ciel est le fond, les crêtes se teintent vers le texte */
  --h-ciel: var(--p-fond);
  --h-crete-1: color-mix(in oklab, var(--p-fond) 91%, var(--p-texte));
  --h-crete-2: color-mix(in oklab, var(--p-fond) 80%, var(--p-texte));
  --h-crete-3: color-mix(in oklab, var(--p-fond) 60%, var(--p-texte));
  --h-crete-4: color-mix(in oklab, var(--p-fond) 30%, var(--p-texte));

  /* Galerie : des « photos » claires, teintées par l'accent */
  --g-mur: color-mix(in oklab, var(--p-accent) 6%, #EDE8DE);
  --g-mur-2: color-mix(in oklab, var(--p-accent) 4%, #E8E2D5);
  --g-sol: color-mix(in oklab, var(--p-accent) 12%, #D6CEBC);

  /* Plan d'accès : redessiné sur la bande */
  --plan-fond: var(--p-bande);
  --plan-ilot: color-mix(in oklab, var(--p-bande) 70%, var(--p-fond));
  --plan-batiment: color-mix(in oklab, var(--p-bande) 74%, var(--p-accent));
  --plan-parc: color-mix(in oklab, var(--p-bande) 80%, #6E8A55);
  --plan-arbre: color-mix(in oklab, var(--p-bande) 60%, #6E8A55);
  --plan-eau: color-mix(in oklab, var(--p-bande) 76%, #5B8FA8);
  --plan-rue: var(--p-surface);
}
: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);
}

/* ---------- 14.2 Ambiance sombre ---------- */
:root[data-couleurs="sombre"] {
  --papier: color-mix(in oklab, var(--p-surface) 92%, var(--p-texte));
  /* Hero de nuit : ciel brumeux (surface), crêtes de plus en plus sombres ; le texte clair reste lisible partout */
  --h-ciel: var(--p-surface);
  --h-crete-1: color-mix(in oklab, var(--p-surface) 55%, var(--p-fond));
  --h-crete-2: var(--p-fond);
  --h-crete-3: color-mix(in oklab, var(--p-fond) 50%, var(--p-fonce));
  --h-crete-4: var(--p-fonce);
  --plan-ilot: color-mix(in oklab, var(--p-bande) 88%, var(--p-texte));
  --plan-rue: color-mix(in oklab, var(--p-bande) 72%, var(--p-texte));
}
/* La section noire est plus sombre que la page : un filet la détache */
:root[data-couleurs="sombre"] .module-bons { box-shadow: inset 0 1px 0 var(--p-ligne), inset 0 -1px 0 var(--p-ligne); }

/* ---------- 14.3 Police choisie (data-police) ---------- */
:root[data-police] {
  --f-texte: var(--p-police-texte);
  --f-titres: var(--p-police-titres);
  --poids-titres: var(--p-poids-titres);
}
:root[data-police] body { font-synthesis-weight: none; }
:root[data-police] :is(.brand-nom, .principes h3, .seance-nom, .seance-prix, .parcours-liste [data-k="annee"], .bon-carte-titre, .faq summary, .adresse, .rdv-carte-titre, .rdv-lien strong, .remboursement-etapes h3, .footer-nom > span:first-child, .legale-site-textes > span:first-child) {
  font-weight: var(--poids-titres);
}

/* ---------- 14.4 Grande taille du texte (data-taille="grande") ---------- */
:root[data-taille="grande"] { font-size: 112.5%; }
@media (max-width: 400px) {
  :root[data-taille="grande"] .site-header .btn-sm { padding-inline: 10px; letter-spacing: .02em; }
  :root[data-taille="grande"] .brand-nom { font-size: 1rem; }
}

/* ---------------------------------------------------------
   Logo à côté du nom (facultatif) — posé par apercu.js / le serveur
   data-logo : le logo remplace le sceau aux initiales ; 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 derrière
   un logo qui se verrait mal sur le washi.
   --------------------------------------------------------- */
:root { --logo-h: 46px; --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-initiales { display: none; }
/* Logo et nom côte à côte : le menu se resserre, puis laisse la place plus tôt */
:root[data-logo]:not([data-logo-seul]) .nav ul { gap: 22px; }
:root[data-logo]:not([data-logo-seul]) .nav a { font-size: .875rem; letter-spacing: .05em; }
@media (max-width: 1220px) {
  :root[data-logo]:not([data-logo-seul]) .nav { display: none; }
}
:root[data-logo-seul] { --logo-h: 54px; --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: 6px; background: var(--logo-pastille); }
@media (max-width: 600px) {
  :root { --logo-h: 36px; --logo-max: 30vw; }
  :root[data-logo-seul] { --logo-h: 42px; --logo-max: 52vw; }
}
@media (max-width: 420px) {
  :root[data-logo]:not([data-logo-seul]) .brand-pro { 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 ouvre l'étiquette du hero (.hero-sous-titre, data-field="sous-titre",
   caché quand vide, « · » devant le métier) ; mentions légales : ligne « enseigne »
   ========================================================= */
.hero-sous-titre:not(.seul):not([hidden])::after { content: " · "; color: var(--gris); }
:root[data-titre-enseigne] .brand-nom { letter-spacing: .02em; }

/* =========================================================
   16. Animations : entrée du haut de page (une fois) et touches au défilement
   Ensō qui se dessine, soleil qui se lève, sceau qui se pose d'un coup (tampon),
   fil doré qui se trace, citation qui flotte. Coupées par <html data-animations="non">
   et prefers-reduced-motion (assets/css/sites/defilement.css) : l'état de repos est l'état final.
   ========================================================= */
@keyframes e-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes e-tampon {
  0% { opacity: 0; transform: scale(1.6) rotate(-14deg); }
  60% { opacity: 1; transform: scale(.94) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}
@keyframes e-fondu { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes e-soleil { from { opacity: 0; transform: scale(.7); } to { opacity: .88; transform: none; } }
@keyframes e-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: no-preference) {
  .enso-trait { animation: e-trace 2.6s cubic-bezier(.6, 0, .2, 1) .2s both; }
  .enso-fin { animation-delay: .45s; }
  .hero-soleil { animation: e-soleil 1.8s cubic-bezier(.2, .7, .2, 1) .1s both; }
  .sceau-hero { animation: e-tampon .7s cubic-bezier(.3, 1.4, .5, 1) 2.4s both; }
  .fil-hero path { stroke-dasharray: 1 1; animation: e-trace 4s ease-out .6s both; }
  .hero-vertical, .hero-surtitre, .hero-titre { animation: e-fondu 1.2s ease .3s both; }
  .hero-lead, .hero-actions { animation: e-fondu 1.2s ease .6s both; }
  .citation { animation: e-flotte 7s ease-in-out infinite; }
}
/* Au défilement : l'ensō du portrait et le fil doré du pied se tracent lentement */
.defilement .portrait-enso.vu path { transition-duration: 2.4s; transition-delay: .2s; }
.defilement .fil-pied.vu path { transition-duration: 3s; }
/* Parcours : le point de chaque formation se pose après le texte */
.defilement .parcours-liste li[data-reveal]::before { transform: scale(0); }
.defilement .parcours-liste li[data-reveal].vu::before {
  transform: none;
  transition: transform .6s cubic-bezier(.3, 1.4, .5, 1);
  transition-delay: calc(var(--rang, 0) * 90ms + 400ms);
}
@media (prefers-reduced-motion: reduce) {
  .defilement .parcours-liste li[data-reveal]::before { transform: none !important; }
}

/* =========================================================
   17. Impression : fonds clairs, décor retiré
   ========================================================= */
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal="trace"] :is(path, line, polyline, circle, ellipse, rect) { stroke-dashoffset: 0 !important; }
  .site-header { position: static; }
  .hero, .module-bons, .questions, .module-parcours, .legale-barre { background: #FFFFFF !important; color: #000000 !important; box-shadow: none !important; }
  .module-bons *, .hero * { color: #000000 !important; }
  .hero-image, .hero-enso, .hero-vertical, .fil-or, .skip, .contact-form, .bon-visuel, .nav, .site-header .btn { display: none !important; }
  .hero-grid { padding-block: 24px; grid-template-columns: minmax(0, 1fr); }
  .hero:has(.hero-image.has-photo) .hero-texte { padding: 0; background: none; box-shadow: none; }
  .seance-ligne:hover { padding-left: 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .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/encre.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; }

/* Encre : paroles posées sur le washi, trait d'encre, sceau vermillon ; l'avis mis en avant sur l'encre */
.module-avis { padding-block: var(--section) var(--section-court); background: var(--washi-2); }
.module-avis .avis-tete { max-width: 46rem; margin-bottom: 40px; }
.avis-liste { display: flex; flex-wrap: wrap; gap: 28px clamp(20px, 3vw, 40px); --avis-base: 17rem; }
.avis-carte { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 0 0; border-top: 2px solid var(--sumi); }
.avis-carte::before { content: ""; position: absolute; top: -2px; left: 0; width: 34%; height: 2px; background: var(--or); }
.avis-texte p { font-family: var(--f-titres); font-weight: var(--poids-titres); font-size: 1.18rem; line-height: 1.6; color: var(--sumi); }
.avis-auteur { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: var(--fs-small); letter-spacing: .12em; color: var(--gris); }
.avis-auteur::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 2px; background: var(--accent); }
.avis-item[data-en-avant] { flex-basis: 100%; }
.avis-item[data-en-avant] .avis-carte { background: var(--fonce); color: var(--sur-fonce); border-top: 0; padding: clamp(30px, 5vw, 56px); }
.avis-item[data-en-avant] .avis-carte::before { top: 0; left: clamp(30px, 5vw, 56px); width: 64px; }
.avis-item[data-en-avant] .avis-texte p { color: var(--sur-fonce); font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); line-height: 1.45; }
.avis-item[data-en-avant] .avis-auteur { color: var(--sur-fonce-doux); }
.avis-vide { margin: 0; padding: 18px 0; border-block: 1px dashed var(--filet-2); color: var(--gris); }
.avis-google { margin-top: 32px; }
/* ==================== 1.12.0 : rubrique « Avis de patients » (fin) ==================== */
