/* =========================================================
   Modèle « Carnet » — relation d'aide, psychothérapie, accompagnement par la parole
   Univers magazine / journal : papier crème, encre presque noire, filets noirs fins
   et double filet, Newsreader (titres et texte, italique léger) et IBM Plex Mono
   (petites étiquettes en capitales). En-tête façon journal, image d'en-tête pleine
   largeur avec l'accroche par-dessus (mot final souligné d'un trait qui se trace),
   chapeau avec lettrine, fil des séances qui défile, rubriques numérotées 01, 02…
   (compteur CSS : une rubrique cachée ne compte pas). Au défilement, les blocs
   montent doucement et les rues du plan se dessinent (assets/css/sites/defilement.css).
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  /* Palette du modèle */
  --papier: #F4EFE6;          /* fond de page */
  --papier-2: #EAE3D6;        /* rubriques en bande : parcours, contact */
  --encre: #1C1B19;           /* texte, titres, filets, boutons (15:1 sur le papier) */
  --corps: #3B3833;           /* texte courant (10:1) */
  --gris: #5B5750;            /* texte secondaire (6,3:1 sur le papier, 5,6:1 sur la bande) */
  --filet-doux: #CFC5B4;      /* filets secondaires, séparation des colonnes */
  --photo-fond: #E4DBCB;      /* emplacement de photo (hachures) */
  --hachure: rgba(28, 27, 25, .07);

  /* Couleur d'accent (modifiable dans l'espace client) : chiffres, étiquettes, lettrine, trait, survols */
  --accent: #A93F2A;
  --accent-texte: #A93F2A;    /* accent écrit sur le papier et la bande (4,8:1 sur la bande) */
  --accent-ink: #F4EFE6;      /* texte posé sur l'accent (5,3:1) */
  --accent-sur-fonce: #C2725E;/* accent sur l'encre (rubrique Rendez-vous, 4,8:1) */

  /* Boutons : encre, accent au survol */
  --bouton: var(--encre);
  --bouton-texte: var(--papier);

  /* Bloc foncé : bandeau, rubrique Rendez-vous */
  --fonce: #1C1B19;
  --sur-fonce: #F4EFE6;
  --sur-fonce-doux: #CFC5B4;  /* 10:1 sur l'encre */
  --sur-fonce-trait: rgba(244, 239, 230, .24);

  /* Image d'en-tête : texte crème sur un voile foncé, quelle que soit l'image */
  --sur-image: #F4EFE6;
  --voile: 22, 19, 16;

  --danger: #B42318;          /* erreurs du formulaire (5,1:1 sur la bande) */

  /* Typographie */
  --f-texte: Newsreader, Georgia, "Times New Roman", serif;
  --f-titres: var(--f-texte);
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --poids-titres: 400;
  --poids-leger: 300;         /* italique des titres */
  --fs-mono: .8125rem;        /* 13 px */
  --fs-petit: 1rem;
  --fs-texte: 1.125rem;       /* 18 px */
  --fs-h2: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  --fs-num: clamp(3.25rem, 2.4rem + 2.6vw, 4.5rem);

  /* Mise en page */
  --max: 1136px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(64px, 3rem + 4.5vw, 104px);
}

/* ---------- 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(--papier);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--fs-texte);
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--f-titres); font-weight: var(--poids-titres); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
a { color: var(--encre); text-underline-offset: 3px; }
a:hover { color: var(--accent-texte); }
img, svg { max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent-texte); 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;
  min-height: 44px; padding: 12px 16px; background: var(--bouton); color: var(--bouton-texte);
  font-family: var(--f-mono); font-size: .875rem; line-height: 20px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bouton-texte); }

main > section, main > div { scroll-margin-top: 12px; }

/* ---------- 3. Étiquettes, liens, titres, rubriques numérotées ---------- */
.mono {
  font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 500;
  font-style: normal; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
}
/* Lien souligné d'un filet qui se retire au survol */
.lien {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
}
.lien:hover { background-size: 0 1px; }
@media (prefers-reduced-motion: no-preference) {
  .lien { transition: background-size .35s ease, color .2s; }
}
@media (forced-colors: active) {
  .lien { text-decoration: underline; }
}
.fleche { display: inline-block; font-family: var(--f-texte); font-style: normal; letter-spacing: 0; text-transform: none; }
.legende { margin-top: 10px; font-style: italic; font-size: .9375rem; color: var(--gris); }

.sec-titre {
  font-size: var(--fs-h2); line-height: 1; letter-spacing: -.015em;
  font-variation-settings: 'opsz' 72; text-wrap: balance;
}
/* Éléments en caractères de titre (Newsreader par défaut ; la police « titres » choisie sinon) */
:is(.motif-nom, .parcours-titre, .seance-prix, .faq-question, .bon-titre, .bon-nom, .pied-nom, .legale-site .js-italique, .rdv-carte-titre, .rdv-lien strong, .fil-liste li, .titre-sous, .adresse) { font-family: var(--f-titres); }
.sec-titre em, .titre-nom em, .pied-nom em, .legale-titre em, .legale-site em, .bon-titre em { font-weight: var(--poids-leger); }

/* Rubriques : numéro en italique (couleur d'accent) et étiquette, puis le contenu */
main { counter-reset: rubrique; }
.rubrique { counter-increment: rubrique; padding-block: var(--section); }
.sec-papier { background: var(--papier); }
.sec-bande { background: var(--papier-2); }
/* Deux rubriques sur le papier qui se suivent : un filet les sépare */
.sec-papier + .sec-papier > .wrap,
.sec-papier + [hidden] + .sec-papier > .wrap { border-top: 1px solid var(--encre); padding-top: var(--section); }
.sec-papier + .sec-papier,
.sec-papier + [hidden] + .sec-papier { padding-top: 0; }
.sec-entete {
  display: grid; grid-template-columns: clamp(150px, 16vw, 200px) minmax(0, 1fr);
  gap: 40px; align-items: start;
}
.sec-entete > * { min-width: 0; }
.num { display: block; }
.num::before {
  content: counter(rubrique, decimal-leading-zero);
  display: block;
  font-family: var(--f-titres); font-size: var(--fs-num); line-height: .8; font-weight: var(--poids-leger); font-style: italic;
  font-variation-settings: 'opsz' 72; color: var(--accent-texte);
}
.sec-etiquette { margin: 14px 0 0; }
.colonnes { columns: 2; column-gap: 48px; column-rule: 1px solid var(--filet-doux); color: var(--corps); }
.colonnes p { margin: 0 0 16px; break-inside: avoid-column; }
.colonnes p:last-child { margin-bottom: 0; }
@media (max-width: 820px) {
  .sec-entete { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sec-repere { display: flex; align-items: baseline; gap: 16px; }
  .sec-etiquette { margin: 0; }
  .colonnes { columns: 1; }
}

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 26px;
  border: 1px solid var(--bouton); border-radius: 0;
  background: var(--bouton); color: var(--bouton-texte);
  font-family: var(--f-mono); font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn .court { display: none; }
/* Bouton au contour (pages légales, commande d'un bon à côté du paiement en ligne) */
.btn-contour { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn-contour:hover { background: var(--encre); border-color: var(--encre); color: var(--papier); }
@media (prefers-reduced-motion: no-preference) {
  .btn, .agenda-bouton { transition: background-color .2s, border-color .2s, color .2s; }
}

/* ---------- 5. En-tête façon journal ---------- */
.site-header { padding-top: 22px; }
.tete-infos {
  display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
  margin: 0; padding-bottom: 14px;
  font-size: .75rem; color: var(--gris);
}
.tete-agrements:has([data-show][hidden]) .et { display: none; }
.tete-agrements:not(:has([data-show]:not([hidden]))) { display: none; }
.tete-titre { padding: 22px 0 18px; border-block: 1px solid var(--encre); text-align: center; }
.titre-site {
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  max-width: 100%; color: var(--encre); text-decoration: none;
}
.titre-site:hover { color: var(--encre); }
.titre-nom {
  display: block; min-width: 0;
  font-family: var(--f-titres); font-size: clamp(2.75rem, 1.2rem + 5.2vw, 5.25rem); line-height: 1; font-weight: var(--poids-titres);
  letter-spacing: -.02em; font-variation-settings: 'opsz' 72; text-wrap: balance;
}
.titre-nom[data-longueur="long"] { font-size: clamp(2.25rem, 1.1rem + 3.6vw, 3.75rem); line-height: 1.05; }
.titre-nom[data-longueur="tres-long"] { font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); line-height: 1.1; }
.titre-sous { margin: 10px 0 0; font-style: italic; font-size: 1.1875rem; color: var(--gris); }
/* Double filet : le filet sous le titre, 3 px de papier, le filet du menu */
.tete-menu {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  margin-top: 3px; padding-block: 10px; border-block: 1px solid var(--encre);
}
.nav ul { display: flex; flex-wrap: wrap; gap: 0 30px; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding-block: 14px; line-height: 16px; background-position: 0 calc(100% - 11px); }
@media (max-width: 820px) {
  .nav { display: none; }
  .tete-menu { justify-content: center; }
  .tete-infos { justify-content: center; text-align: center; }
  .tete-infos > :not(:first-child) { display: none; }
}
@media (max-width: 340px) {
  .btn .long { display: none; }
  .btn .court { display: inline; }
}

/* ---------- 6. Hero : image pleine largeur, l'accroche par-dessus ---------- */
.hero { padding-top: 28px; }
.hero-cadre {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(460px, 160px + 42vw, 700px);
  background: #3A3128; color: var(--sur-image);
}
/* Image : celle du thérapeute (has-photo, cadrage vertical --entete-pos) ou le dessin du cabinet */
.hero-image {
  position: absolute; inset: 0;
  background-color: #3A3128; background-repeat: no-repeat;
  background-size: cover; background-position: 50% var(--entete-pos, 50%);
}
.hero-dessin { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-dessin .d-accent { fill: var(--accent); }
.hero-image.has-photo .hero-dessin { display: none; }
/* Voile : léger sur toute l'image, renforcé derrière le texte (crème ≥ 5:1 même sur une photo blanche) */
.hero-voile { position: absolute; inset: 0; background: rgba(var(--voile), .36); pointer-events: none; }
.hero-bas {
  position: relative; padding-top: 200px;
  background: linear-gradient(to top, rgba(var(--voile), .5) 0, rgba(var(--voile), .5) calc(100% - 200px), rgba(var(--voile), .3) calc(100% - 110px), rgba(var(--voile), 0) 100%);
}
.hero-texte { padding-bottom: clamp(36px, 5vw, 60px); }
.hero :focus-visible { outline-color: var(--sur-image); }
.hero-surtitre { margin: 0 0 24px; color: var(--sur-image); }
.hero-titre {
  font-size: clamp(3.5rem, 1rem + 9vw, 8.5rem); line-height: .9; letter-spacing: -.035em;
  font-variation-settings: 'opsz' 72; overflow-wrap: break-word; text-wrap: pretty;
}
.hero-titre[data-longueur="long"] { font-size: clamp(2.75rem, 1rem + 5.6vw, 5.75rem); line-height: .95; letter-spacing: -.025em; }
.hero-titre[data-longueur="tres-long"] { font-size: clamp(2.125rem, 1rem + 3.4vw, 4rem); line-height: 1; letter-spacing: -.015em; }
.hero-phrase { display: block; }
.hero-mis { position: relative; display: inline-block; }
.hero-mis em { font-weight: var(--poids-leger); }
.hero-trait {
  position: absolute; left: 0; right: 0; bottom: .05em; height: max(3px, .04em);
  background: var(--accent); transform-origin: left center;
}
.hero-legende { margin: 0 auto; padding-top: 10px; font-style: italic; font-size: .9375rem; color: var(--gris); }

/* ---------- 7. Chapeau : portrait, début de l'approche (lettrine), premier rendez-vous ---------- */
.chapeau { padding-block: 56px 72px; }
.chapeau-grille {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px;
  gap: 48px; align-items: start;
}
.chapeau-grille > * { min-width: 0; }
.chapeau-sans-texte .chapeau-grille { grid-template-columns: 240px minmax(0, 1fr); }
.portrait-cadre { margin: 0; }
.portrait {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 3 / 4; width: 100%;
  background-color: var(--photo-fond);
  background-image: repeating-linear-gradient(135deg, var(--hachure) 0 1px, transparent 1px 10px);
}
.portrait-initiales {
  font-family: var(--f-titres); font-size: clamp(3.5rem, 2rem + 4vw, 5.5rem); font-style: italic; font-weight: var(--poids-leger);
  line-height: 1; letter-spacing: -.02em; color: var(--gris);
}
.portrait.has-photo .portrait-initiales { display: none; }
.chapeau-texte { columns: 2; column-gap: 40px; column-rule: 1px solid var(--filet-doux); font-size: 1.1875rem; color: var(--corps); }
.chapeau-texte.chapeau-court { columns: 1; max-width: 34em; }
.chapeau-texte p { margin: 0 0 16px; }
.chapeau-texte p:last-child { margin-bottom: 0; }
.chapeau-texte > p:first-child::first-letter {
  float: left; padding: 6px 10px 0 0;
  font-family: var(--f-titres); font-size: 4.875rem; line-height: .78; font-weight: var(--poids-titres); font-style: normal;
  color: var(--accent-texte);
}
/* Démo et aperçu : le chapeau reçoit toute l'approche, il n'en montre que le premier paragraphe */
.chapeau-texte[data-approche="debut"] > :not(:first-child) { display: none; }
.encart { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-left: 28px; border-left: 1px solid var(--encre); }
.encart p { margin: 0; }
.encart-titre { color: var(--accent-texte); }
.encart-texte { font-size: 1.0625rem; color: var(--corps); }
.si-sans-agenda { display: none; }
[data-show="agenda"][hidden] + .si-sans-agenda { display: inline; }
.encart .btn { max-width: 100%; padding-inline: 18px; font-size: .8125rem; letter-spacing: .05em; white-space: nowrap; }
.encart-tel { display: inline-block; padding-block: 8px; font-size: 1.25rem; background-position: 0 calc(100% - 8px); }
@media (max-width: 1100px) {
  .chapeau-grille { grid-template-columns: 200px minmax(0, 1fr); column-gap: 40px; row-gap: 32px; }
  .portrait-cadre { grid-row: span 2; }
  .chapeau-texte { columns: 1; }
  .chapeau-sans-texte .portrait-cadre { grid-row: auto; }
}
@media (max-width: 820px) {
  .chapeau { padding-block: 40px 56px; }
  .chapeau-grille { grid-template-columns: minmax(0, 1fr); }
  .portrait-cadre { grid-row: auto; width: min(100%, 220px); }
  .chapeau-sans-texte .chapeau-grille { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 8. Fil des séances (défile ; deux moitiés identiques : la boucle est sans raccord) ---------- */
.fil { overflow: hidden; padding-block: 16px; border-block: 1px solid var(--encre); }
.fil:not(:has([data-item]:not([hidden]))) { display: none; }
.fil-piste { display: flex; width: max-content; }
.fil-moitie { display: flex; flex: none; justify-content: space-around; min-width: 100vw; }
.fil-liste { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.fil-liste li {
  display: flex; align-items: center; gap: 40px; padding-right: 40px;
  font-size: 1.625rem; font-style: italic; font-weight: var(--poids-leger); line-height: 1.3; white-space: nowrap;
}
.fil-liste li::after { content: "\2726"; font-style: normal; font-size: 1.25rem; color: var(--accent-texte); }

/* ---------- 9. Approche ---------- */
.approche-citation {
  font-size: clamp(1.875rem, 1.2rem + 2vw, 2.875rem); line-height: 1.15; font-style: italic; font-weight: var(--poids-leger);
  letter-spacing: -.01em; font-variation-settings: 'opsz' 60; text-wrap: balance;
}
.approche-corps { margin-top: 44px; }
/* Démo et aperçu : la rubrique reçoit toute l'approche, le premier paragraphe est dans le chapeau */
.approche-corps[data-approche="suite"] > :first-child { display: none; }
/* Aperçu d'un vrai site : sans deuxième paragraphe, la rubrique n'a rien à montrer */
.approche[data-suite-seule]:not(:has(.approche-corps > p:nth-child(2))) { display: none; }
:root:has(#approche.approche[data-suite-seule]:not(:has(.approche-corps > p:nth-child(2)))) .nav-approche { display: none; }
.motifs-titre { margin: 64px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--encre); }
.motifs { margin: 0; padding: 0; list-style: none; }
.motif {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--encre);
  color: var(--encre); text-decoration: none;
}
.motif:hover { padding-left: 14px; color: var(--accent-texte); }
.motif-nom { display: block; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.2; }
.motif-desc { display: block; margin-top: 4px; font-size: var(--fs-petit); color: var(--gris); }
.motif .fleche { font-size: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .motif { transition: padding .3s ease, color .3s ease; }
}

/* ---------- 10. Parcours (module, bande) ---------- */
.module-parcours .sec-titre { margin-bottom: 36px; }
.parcours-intro { max-width: 42em; margin: -12px 0 32px; font-size: 1.1875rem; font-style: italic; color: var(--corps); }
.parcours-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--encre); }
.parcours-liste li {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--filet-doux);
}
.parcours-liste [data-k="annee"] { grid-column: 1; grid-row: 1 / span 2; padding-top: .35em; color: var(--accent-texte); font-variant-numeric: tabular-nums; }
.parcours-titre { grid-column: 2; font-size: 1.375rem; line-height: 1.3; }
.parcours-ecole { grid-column: 2; margin-top: 2px; font-size: var(--fs-petit); color: var(--gris); }
@media (max-width: 480px) {
  .parcours-liste li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; }
  .parcours-titre { font-size: 1.25rem; }
}

/* ---------- 11. Consultations : séances (lignes à pointillés), remboursement et conditions ---------- */
.seances .sec-titre { margin-bottom: 40px; }
.seances-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--encre); }
.seance { padding: 22px 0; border-bottom: 1px solid var(--filet-doux); }
.seance:last-child { border-bottom-color: var(--encre); }
.seance-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.seance-nom { flex: 0 1 auto; min-width: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.75rem); line-height: 1.2; }
.seance-points { flex: 1 1 40px; min-width: 40px; border-bottom: 1.5px dotted var(--encre); transform: translateY(-6px); }
.seance-duree { color: var(--gris); white-space: nowrap; }
.seance-prix { min-width: 7.5rem; font-size: 1.625rem; font-weight: 500; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seance-duree:empty, .seance-prix:empty { display: none; }
.seance-desc { max-width: 36em; margin: 6px 0 0; font-size: var(--fs-petit); color: var(--gris); }
@media (max-width: 600px) {
  .seance-nom { flex-basis: 100%; }
  .seance-prix { min-width: 0; font-size: 1.375rem; }
}
.encadres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin-top: 40px; }
.encadre { min-width: 0; padding: 26px; border: 1px solid var(--encre); }
.encadre p { margin: 0; font-size: 1.0625rem; }
.encadre p + p { margin-top: 12px; }
.encadre-titre { margin-bottom: 10px; color: var(--accent-texte); }
.encadre-note { font-style: italic; color: var(--gris); }
.encadre-conditions:has([data-field="conditions"][hidden]) { display: none; }
.agrements { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.agrements li { padding: 3px 10px; border: 1px solid var(--encre); font-size: .75rem; }
.agrements:not(:has(li:not([hidden]))) { display: none; }

/* ---------- 12. Le cabinet en images (module) ---------- */
.module-galerie { padding-bottom: var(--section); }
.galerie-titre { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--encre); }
.galerie {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 20px; align-items: start; margin: 0; padding: 0; list-style: none;
}
.galerie li { min-width: 0; }
.galerie figure { margin: 0; }
.galerie-photo {
  display: block; aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--photo-fond) center / cover no-repeat;
}
.galerie li:nth-child(3n + 1) .galerie-photo { aspect-ratio: 4 / 3; }
.galerie-photo svg { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie li:nth-child(3n + 1) { grid-column: 1 / -1; }
}

/* Illustrations de remplacement (en attendant les photos du thérapeute) : teintes propres (--g-*) */
:root {
  --g-mur: #D8C7A8; --g-mur-2: #CDB896; --g-sol: #8A6F55; --g-plinthe: #6B5A48;
  --g-tapis: #B79C78; --g-cadre: #6B5A48; --g-vitre: #EFE4CB; --g-rideau: #B9A27F;
  --g-toile: #E9DDC4; --g-trait: #8A6F55; --g-blanc: #F7F2E8; --g-verre: #C9D4CF;
  --g-fauteuil: #A9583F; --g-fauteuil-clair: #B8664B; --g-fauteuil-fonce: #9A4E37;
  --g-fauteuil-2: #6E7B45; --g-fauteuil-2-clair: #7D8A52; --g-fauteuil-2-fonce: #5F6B3A;
  --g-bois: #7A5F48; --g-pied: #3A3128; --g-plante: #5F6B3A; --g-plante-2: #6E7B45; --g-pot: #C9B48E;
  --g-pierre: #BFAE93; --g-joint: #A8977C; --g-cadre-pierre: #D3C4AA; --g-porte: #5A4A3B; --g-porte-fonce: #4A3D31;
  --g-laiton: #C9A45C; --g-plaque: #5A4A3B; --g-marche: #9C8A70; --g-fer: #2E2620; --g-lampe: #F2DDA4;
  --g-livre: #8A6F55; --g-livre-2: #4F5B66; --g-coussin: #B8664B; --g-coussin-2: #C9B48E; --g-banc: #7A5F48;
}
.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-plinthe { fill: var(--g-plinthe); }
.galerie-photo .g-tapis { fill: var(--g-tapis); }
.galerie-photo .g-cadre { fill: var(--g-cadre); }
.galerie-photo .g-vitre { fill: var(--g-vitre); }
.galerie-photo .g-croisillon { fill: none; stroke: var(--g-cadre); stroke-width: 5; }
.galerie-photo .g-rideau { fill: var(--g-rideau); }
.galerie-photo .g-lumiere { fill: var(--g-vitre); opacity: .3; }
.galerie-photo .g-toile { fill: var(--g-toile); }
.galerie-photo .g-trait { fill: none; stroke: var(--g-trait); stroke-width: 3; stroke-linecap: round; }
.galerie-photo .g-blanc { fill: var(--g-blanc); }
.galerie-photo .g-verre { fill: var(--g-verre); }
.galerie-photo .g-fauteuil { fill: var(--g-fauteuil); }
.galerie-photo .g-fauteuil-clair { fill: var(--g-fauteuil-clair); }
.galerie-photo .g-fauteuil-fonce { fill: var(--g-fauteuil-fonce); }
.galerie-photo .g-fauteuil-2 { fill: var(--g-fauteuil-2); }
.galerie-photo .g-fauteuil-2-clair { fill: var(--g-fauteuil-2-clair); }
.galerie-photo .g-fauteuil-2-fonce { fill: var(--g-fauteuil-2-fonce); }
.galerie-photo .g-bois { fill: var(--g-bois); }
.galerie-photo .g-pied { fill: none; stroke: var(--g-pied); stroke-width: 5; stroke-linecap: round; }
.galerie-photo .g-plante { fill: var(--g-plante); }
.galerie-photo .g-plante-2 { fill: var(--g-plante-2); }
.galerie-photo .g-pot { fill: var(--g-pot); }
.galerie-photo .g-pierre { fill: var(--g-pierre); }
.galerie-photo .g-joint { fill: none; stroke: var(--g-joint); stroke-width: 2; }
.galerie-photo .g-cadre-pierre { fill: var(--g-cadre-pierre); }
.galerie-photo .g-porte { fill: var(--g-porte); }
.galerie-photo .g-porte-fonce { fill: var(--g-porte-fonce); }
.galerie-photo .g-laiton { fill: var(--g-laiton); }
.galerie-photo .g-plaque { fill: var(--g-plaque); }
.galerie-photo .g-marche { fill: var(--g-marche); }
.galerie-photo .g-fer { fill: none; stroke: var(--g-fer); stroke-width: 3; }
.galerie-photo .g-fer-plein { fill: var(--g-fer); }
.galerie-photo .g-lumiere-lampe { fill: var(--g-lampe); }
.galerie-photo .g-livre { fill: var(--g-livre); }
.galerie-photo .g-livre-2 { fill: var(--g-livre-2); }
.galerie-photo .g-coussin { fill: var(--g-coussin); }
.galerie-photo .g-coussin-2 { fill: var(--g-coussin-2); }
.galerie-photo .g-banc { fill: var(--g-banc); }
.galerie-photo .g-accent { fill: var(--accent); }
.galerie-photo .g-accent-doux { fill: color-mix(in srgb, var(--accent) 55%, var(--g-toile)); }

/* ---------- 13. Rendez-vous (encre) ---------- */
.sec-fonce { background: var(--fonce); color: var(--sur-fonce); }
.sec-fonce :focus-visible { outline-color: var(--sur-fonce); }
.sec-fonce .num::before { color: var(--accent-sur-fonce); }
.sec-fonce a:not(.btn) { color: var(--sur-fonce); }
.sec-fonce a:not(.btn):hover { color: var(--sur-fonce); }
.rdv-grille {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 48px; align-items: start;
}
.rdv-grille > * { min-width: 0; }
.rdv-texte p { margin: 24px 0 0; color: var(--sur-fonce-doux); }
.rdv-texte .rdv-question { margin-top: 32px; }
.rdv-tel { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.375rem; }
.rdv-panneau { padding: clamp(18px, 3vw, 28px); background: var(--papier); color: var(--encre); }
.rdv-panneau :focus-visible { outline-color: var(--accent-texte); }
.rdv-panneau a:not(.btn):not(.agenda-bouton) { color: var(--encre); }
.rdv-panneau a:not(.btn):not(.agenda-bouton):hover { color: var(--accent-texte); }
/* Habillage d'un agenda qui lit les variables --ag-* (l'exemple .agi garde son style neutre) */
.agenda-embed {
  --ag-accent: var(--accent);
  --ag-accent-ink: var(--accent-ink);
  --ag-ink: var(--encre);
  --ag-muted: var(--gris);
  --ag-bg: var(--papier);
  --ag-surface: var(--papier-2);
  --ag-line: var(--filet-doux);
  --ag-radius: 0;
  --ag-font: var(--f-texte);
  width: 100%;
}
.rdv-agenda .agi { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 4px; }
/* Agenda derrière un bouton, ou rendez-vous par téléphone et e-mail */
.rdv-carte { display: grid; gap: 16px; align-content: start; }
.rdv-carte p { margin: 0; }
.rdv-carte-titre { padding-bottom: 14px; border-bottom: 1px solid var(--encre); font-size: 1.375rem; font-weight: 500; }
.rdv-carte-texte { font-size: var(--fs-petit); color: var(--gris); }
.rdv-lien {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 12px 0; border-bottom: 1px solid var(--filet-doux);
  text-decoration: none;
}
.rdv-lien .mono { color: var(--gris); }
.rdv-lien strong { font-size: 1.375rem; font-weight: 400; overflow-wrap: anywhere; }
.rdv-carte .btn, .rdv-carte .agenda-bouton { justify-self: start; margin-top: 6px; }
.agenda-bouton, .rdv-panneau .agenda-bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 26px;
  border: 1px solid var(--bouton); background: var(--bouton); color: var(--bouton-texte);
  font-family: var(--f-mono); font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25;
  text-decoration: none; cursor: pointer;
}
.agenda-bouton:hover, .rdv-panneau .agenda-bouton:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 1100px) {
  .rdv-grille { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 480px) {
  .rdv-carte .btn, .rdv-carte .agenda-bouton { justify-self: stretch; }
}

/* ---------- 14. Offrir une séance (module) : coupon à découper ---------- */
.bons-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.bons-grille > * { min-width: 0; }
.bons-texte { margin: 24px 0 0; max-width: 32em; color: var(--corps); }
.bons-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Avec le lien de paiement, la commande par e-mail passe au second plan */
.bons-boutons [data-bons-lien]:not([hidden]) ~ .btn-commande { background: transparent; color: var(--encre); border-color: var(--encre); }
.bons-boutons [data-bons-lien]:not([hidden]) ~ .btn-commande:hover { background: var(--encre); color: var(--papier); }
.bon { position: relative; justify-self: center; width: 100%; max-width: 460px; padding: 14px; border: 1.5px dashed var(--encre); }
.bon-ciseaux { position: absolute; top: -12px; left: 26px; display: inline-flex; padding: 0 6px; background: var(--papier); color: var(--encre); }
.bon-coupon {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--encre); box-shadow: inset 0 0 0 4px var(--papier), inset 0 0 0 5px var(--encre);
}
.bon-tete { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0 12px; border-bottom: 1px solid var(--encre); color: var(--accent-texte); }
.bon-titre { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1; letter-spacing: -.015em; }
.bon-nom { font-style: italic; font-size: 1.1875rem; }
.bon-validite { color: var(--gris); }
@media (max-width: 860px) {
  .bons-grille { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bon { justify-self: start; }
}

/* ---------- 15. Questions (Q.1, Q.2… par un compteur : l'aperçu peut ajouter des questions) ---------- */
.faq { counter-reset: question; border-top: 1px solid var(--encre); }
.faq details { counter-increment: question; border-bottom: 1px solid var(--filet-doux); }
.faq details:last-child { border-bottom-color: var(--encre); }
.faq summary {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; gap: 16px; align-items: baseline;
  padding: 24px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-num { color: var(--accent-texte); }
.faq-num::before { content: "Q." counter(question); }
.faq-question { font-size: clamp(1.3125rem, 1.1rem + .8vw, 1.625rem); line-height: 1.25; }
.faq summary:hover .faq-question { color: var(--accent-texte); }
.faq-plus { justify-self: end; font-size: 1.75rem; line-height: 1; color: var(--accent-texte); }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq-reponse { max-width: 40em; margin: 0 0 26px 72px; color: var(--corps); }
.faq-reponse p { margin: 0 0 12px; }
.faq-reponse p:last-child { margin-bottom: 0; }
.questions-autre { margin: 28px 0 0; font-style: italic; color: var(--gris); }
@media (prefers-reduced-motion: no-preference) {
  .faq-plus { transition: transform .3s ease; }
}
@media (max-width: 600px) {
  .faq summary { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 12px; }
  .faq-reponse { margin-left: 52px; }
}

/* ---------- 16. Contact et cabinet (bande) ---------- */
.contact-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
.contact-grille > * { min-width: 0; }
.contact-seul { grid-template-columns: minmax(0, 1fr); }
.contact-form .sec-titre { margin-bottom: 18px; }
.fc-intro { margin-bottom: 28px; font-style: italic; color: var(--corps); }
.form-contact { display: flex; flex-direction: column; gap: 24px; }
.form-contact p { margin: 0; }
.fc-paire { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.fc-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fc-champ label span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--gris); }
.fc-champ input,
.fc-champ textarea {
  width: 100%; min-height: 46px; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--encre); border-radius: 0;
  background: transparent; color: var(--encre);
  font: inherit; font-size: 1.125rem; line-height: 1.4;
}
.fc-champ textarea { min-height: 120px; resize: vertical; }
.fc-champ input:focus,
.fc-champ textarea:focus { border-bottom: 2px solid var(--accent-texte); padding-bottom: 9px; }
.fc-champ input:focus-visible,
.fc-champ textarea:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 4px; }
.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: .9375rem; font-weight: 500; line-height: 1.4; color: var(--danger);
}
.fc-erreur::before {
  content: "!"; flex: none; display: grid; place-items: center;
  width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--danger); color: var(--papier-2);
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500; line-height: 1;
}
.form-contact > .fc-erreur { margin-top: -14px; }
.fc-case { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.5; color: var(--corps); cursor: pointer; }
.fc-case input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--encre); cursor: pointer; }
.fc-envoye {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--encre);
  font-style: italic; line-height: 1.45;
}
.fc-envoye::before { content: "\2726"; flex: none; font-style: normal; color: var(--accent-texte); }
.fc-envoye:focus { outline: none; }
.fc-envoye:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 3px; }
.fc-piege input { width: 1px; height: 1px; padding: 0; border: 0; }
@media (max-width: 480px) {
  .form-contact .btn { width: 100%; }
}

.cabinet { display: flex; flex-direction: column; gap: 32px; scroll-margin-top: 12px; }
.cab-titre { margin-bottom: 10px; color: var(--accent-texte); }
.adresse { font-style: normal; font-size: 1.375rem; line-height: 1.35; }
.horaires { margin: 0; padding: 0; list-style: none; font-size: 1.0625rem; }
.horaires li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding-block: 2px; }
.horaires [data-k="heures"] { font-variant-numeric: tabular-nums; }
.horaires .ferme { color: var(--gris); }
.horaires .ferme span { color: var(--gris); }
.acces { margin: 0; padding: 0; list-style: none; font-size: 1.0625rem; }
.acces li + li { margin-top: 4px; }
.acces-k { font-style: italic; color: var(--gris); }
.joindre { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; font-size: 1.0625rem; }
.joindre a { display: inline-block; padding-block: 10px; background-position: 0 calc(100% - 10px); overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .contact-grille { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

/* Plan d'accès : gravure (îlots hachurés, rues au trait, repère d'accent) */
.plan { overflow: hidden; border: 1px solid var(--encre); background: var(--papier); }
.plan svg { display: block; width: 100%; height: auto; }
.plan .p-fond { fill: var(--papier); }
.plan .p-hachure { fill: color-mix(in srgb, var(--encre) 34%, transparent); }
.plan .p-ilot { fill: url(#carnet-hachures); }
.plan .p-batiment { fill: color-mix(in srgb, var(--accent) 26%, var(--papier)); }
.plan .p-parc { fill: color-mix(in oklab, var(--papier-2) 74%, #6E7B45); }
.plan .p-arbre { fill: var(--papier); stroke: var(--encre); stroke-width: 1.2; }
.plan .p-eau { fill: none; stroke: color-mix(in srgb, var(--encre) 22%, transparent); stroke-width: 14; stroke-linecap: round; }
.plan .p-rue { fill: none; stroke: var(--encre); stroke-width: 1.4; }
.plan .p-rue-principale { stroke-width: 3; }
.plan .p-onde { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.plan .p-repere { fill: var(--accent); }
.plan .p-point { fill: var(--accent-ink); }
.plan-lien { margin: 8px 0 0; }
.plan-lien a { display: inline-flex; align-items: center; gap: 8px; padding-block: 13px; background-position: 0 calc(100% - 11px); }
.plan-lien svg { flex: none; }

/* ---------- 17. 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(--papier); color: var(--encre);
}
html:has(.page-legale:target) { overflow: hidden; }
.legale-barre { position: sticky; top: 0; z-index: 1; background: var(--papier); border-bottom: 1px solid var(--encre); }
.legale-barre::after { content: ""; display: block; height: 4px; border-bottom: 1px solid var(--encre); background: var(--papier); }
.legale-barre-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 24px; padding-block: 12px;
}
.legale-retour { gap: 8px; padding-left: 16px; }
.legale-site { display: flex; flex-direction: column; min-width: 0; text-align: right; line-height: 1.2; }
.legale-site .js-italique { font-size: 1.5rem; letter-spacing: -.01em; }
.legale-pro { font-style: italic; font-size: .9375rem; color: var(--gris); }
.legale-corps {
  width: min(100% - 2 * var(--gutter), 70ch);
  margin-inline: auto;
  padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px);
  line-height: 1.65; color: var(--corps);
}
.legale-titre { margin-bottom: 24px; font-size: var(--fs-h2); line-height: 1; letter-spacing: -.015em; color: var(--encre); }
.legale-intro { font-size: 1.25rem; font-style: italic; }
.legale-corps h3 {
  margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid var(--encre);
  font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-texte);
}
.legale-titre + h3 { margin-top: 28px; }
.legale-corps h4 { margin: 22px 0 4px; font-size: 1.1875rem; font-style: italic; line-height: 1.35; color: var(--encre); }
.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: 1px solid var(--encre); color: var(--encre); }
.legale-agrements:not(:has(li:not([hidden]))) { display: none; }
.legale-date { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--encre); font-size: var(--fs-petit); font-style: italic; color: var(--gris); }
@media (max-width: 480px) {
  .legale-pro { display: none; }
}

/* ---------- 18. Pied de page : double filet, titre, liens légaux ---------- */
.site-footer { padding-block: 40px 36px; }
.site-footer > .wrap { padding-top: 3px; border-top: 1px solid var(--encre); }
.pied-ligne {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px;
  padding-block: 22px; border-top: 1px solid var(--encre);
}
.pied-nom { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.01em; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 0; padding: 0; list-style: none; }
.pied-liens a { display: inline-block; padding-block: 14px; line-height: 16px; background-position: 0 calc(100% - 11px); }
.pied-service { margin: 8px 0 0; text-align: center; font-size: .75rem; color: var(--gris); }
.pied-service a { color: var(--gris); }

/* ---------- 19. Bandeau « Message important » (module, encre) ---------- */
.module-bandeau { background: var(--fonce); color: var(--sur-fonce); }
.module-bandeau p {
  margin: 0 auto; padding-block: 12px; text-align: center;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
}

/* =========================================================
   20. 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.
   ========================================================= */

/* ---------- 20.0 Couleur d'accent choisie avec les couleurs du modèle ----------
   Texte posé sur l'accent, accent écrit sur le papier et la bande, accent sur l'encre :
   calculés par le serveur (≥ 4,5:1, <style id="accent-modele"> dans la vue) et, dans l'aperçu,
   par assets/js/sites/carnet.js quand la couleur change. */

/* ---------- 20.1 Couleurs choisies (data-couleurs="clair" ou "sombre") ---------- */
:root[data-couleurs] {
  --papier: var(--p-fond);
  --papier-2: var(--p-bande);
  --encre: var(--p-texte);
  --corps: var(--p-texte);
  --gris: var(--p-texte-doux);
  --filet-doux: var(--p-ligne);
  --photo-fond: color-mix(in oklab, var(--p-bande) 82%, var(--p-texte));
  --hachure: color-mix(in srgb, var(--p-texte) 9%, transparent);

  --accent: var(--p-accent);
  --accent-texte: var(--p-accent-texte);
  --accent-ink: var(--p-accent-ink);
  --accent-sur-fonce: var(--p-accent-sur-fonce);

  --bouton: var(--p-texte);
  --bouton-texte: var(--p-fond);

  --fonce: var(--p-fonce);
  --sur-fonce: var(--p-sur-fonce);
  --sur-fonce-doux: var(--p-sur-fonce-doux);
  --sur-fonce-trait: color-mix(in srgb, var(--p-sur-fonce) 24%, transparent);

  --danger: var(--p-danger);
}
:root[data-couleurs] .agenda-embed { --ag-muted: var(--p-texte-doux); --ag-line: var(--p-ligne); }

/* ---------- 20.2 Ambiance sombre ---------- */
/* Le bloc foncé est plus sombre que la page : un filet le détache */
:root[data-couleurs="sombre"] .sec-fonce,
:root[data-couleurs="sombre"] .module-bandeau { box-shadow: inset 0 1px 0 var(--p-ligne), inset 0 -1px 0 var(--p-ligne); }
:root[data-couleurs="sombre"] .rdv-panneau { box-shadow: 0 0 0 1px var(--p-ligne); }
/* Les illustrations du cabinet restent des « photos » claires, un peu adoucies */
:root[data-couleurs="sombre"] .galerie-photo svg { filter: brightness(.92); }

/* ---------- 20.3 Police choisie (data-police) : les étiquettes restent en IBM Plex Mono ---------- */
:root[data-police] {
  --f-texte: var(--p-police-texte);
  --f-titres: var(--p-police-titres);
  --poids-titres: var(--p-poids-titres);
}
/* (titres, chiffres, lettrine et grands textes suivent --f-titres, le texte courant --f-texte) */
:root[data-police] body { font-synthesis-weight: none; }
:root[data-police] :is(.hero-titre, .titre-nom) { letter-spacing: -.01em; }
:root[data-police] .hero-titre { line-height: .98; }

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

/* ---------------------------------------------------------
   Logo à côté du titre (facultatif) — posé par apercu.js / le serveur
   data-logo : le logo se place devant le titre ; 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 papier.
   --------------------------------------------------------- */
:root { --logo-h: 64px; --logo-max: 240px; }
: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: center; }
:root[data-logo-seul] { --logo-h: 96px; --logo-max: 420px; }
:root[data-logo-seul] .titre-nom { 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: 6px 10px; background: var(--logo-pastille); }
@media (max-width: 600px) {
  :root { --logo-h: 44px; --logo-max: 30vw; }
  :root[data-logo-seul] { --logo-h: 68px; --logo-max: 76vw; }
  .titre-site { gap: 12px; }
}
@media (max-width: 480px) {
  :root[data-logo-large] { --logo-h: 56px; --logo-max: 76vw; }
  :root[data-logo-large] .titre-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* =========================================================
   21. Animations : entrée du haut de page (une fois) et fil qui défile ;
   au défilement, touches propres au modèle (marquage data-reveal).
   Rien ne bouge avec <html data-animations="non"> (defilement.css coupe les
   animations, ce bloc les transitions) ni si le visiteur demande moins d'animations.
   ========================================================= */
@keyframes c-monte { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
@keyframes c-trait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes c-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes c-apparait { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .titre-nom { animation: c-monte .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-image { animation: c-apparait 1.4s ease .4s both; }
  .hero-surtitre { animation: c-monte .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
  .hero-titre { animation: c-monte .9s cubic-bezier(.2, .7, .2, 1) .24s both; }
  .hero-trait { animation: c-trait 1.1s cubic-bezier(.7, 0, .2, 1) .8s both; }
  .fil-piste { animation: c-defile 38s linear infinite; }
  .fil:hover .fil-piste { animation-play-state: paused; }
}
/* Les montées du modèle : plus amples et plus lentes que celles par défaut */
.defilement .rubrique [data-reveal="monte"],
.defilement .chapeau [data-reveal="monte"] { transform: translateY(42px); }
.defilement [data-reveal].vu { transform: none; }
/* Les rues du plan se dessinent lentement */
.defilement .plan [data-reveal="trace"].vu :is(path, circle) { transition-duration: 2.4s; }
html[data-animations="non"] *, html[data-animations="non"] *::before, html[data-animations="non"] *::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html *, html *::before, html *::after { transition: none !important; }
}

/* =========================================================
   22. Impression : fonds clairs, décor retiré
   ========================================================= */
@media print {
  .hero-image, .hero-voile, .fil, .skip, .contact-form, .bon-ciseaux, .nav, .tete-menu .btn { display: none !important; }
  .hero-cadre, .sec-fonce, .module-bandeau, .rdv-panneau { min-height: 0; background: #FFFFFF !important; color: #000000 !important; box-shadow: none !important; }
  .hero-cadre *, .sec-fonce *, .module-bandeau * { color: #000000 !important; }
  .hero-bas { padding-top: 24px; background: none !important; }
  .hero-trait { background: #000000; }
  .page-legale:target { position: static; overflow: visible; }
  .legale-barre { display: none; }
}

/* =========================================================
   Titre du site = l'enseigne du cabinet (1.9.0, <html data-titre-enseigne>) :
   le nom de la personne s'affiche en italique sous l'enseigne (.titre-sous,
   data-field="sous-titre", caché quand vide) ; mentions légales : ligne « enseigne »
   ========================================================= */
:root[data-titre-enseigne] .tete-titre { padding-bottom: 16px; }

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

/* Carnet : citations en italique éditorial, filets à l'encre, signature en machine à écrire ; l'avis mis en avant en grand */
.module-avis { padding-block: var(--section); }
.avis-intro { margin: 18px 0 0; max-width: 46ch; font-style: italic; color: var(--gris); }
.avis-liste { display: flex; flex-wrap: wrap; gap: 0 clamp(24px, 4vw, 48px); margin-top: 40px; border-top: 1px solid var(--encre); --avis-base: 19rem; }
.avis-carte { display: flex; flex-direction: column; gap: 14px; padding: 28px 0 30px; border-bottom: 1px solid var(--filet-doux); }
.avis-texte p { font-size: 1.25rem; line-height: 1.5; font-style: italic; font-weight: var(--poids-leger); color: var(--corps); }
.avis-texte p::before { content: "« " / ""; }
.avis-texte p::after { content: " »" / ""; }
.avis-auteur { margin-top: auto; font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-texte); }
.avis-item[data-en-avant] { flex-basis: 100%; }
.avis-item[data-en-avant] .avis-carte { position: relative; padding: 40px 0 36px clamp(0px, 8vw, 96px); border-bottom-color: var(--encre); }
.avis-item[data-en-avant] .avis-carte::before { content: "«" / ""; position: absolute; left: 0; top: 18px; font: var(--poids-leger) clamp(3.5rem, 7vw, 5.5rem)/1 var(--f-titres); color: var(--accent-texte); }
.avis-item[data-en-avant] .avis-texte p { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.25; color: var(--encre); }
.avis-item[data-en-avant] .avis-texte p::before { content: none; }
@media (max-width: 640px) { .avis-item[data-en-avant] .avis-carte { padding-top: 76px; } }
.avis-vide { margin: 24px 0 0; padding: 18px 0; border-block: 1px dashed var(--filet-doux); font-style: italic; color: var(--gris); }
.avis-google { margin-top: 32px; }
/* ==================== 1.12.0 : rubrique « Avis de patients » (fin) ==================== */
