/* =========================================================
   1. PALETTE - les 5 constantes à remplacer par les codes
      définitifs de la graphiste. Ne toucher qu'ici.
   ========================================================= */

:root {
  /* Palette officielle - "Charte typographique et colorimétrique"
     de l'identité visuelle (codes hex définitifs). */
  --c-blanc:      #FFFFFF; /* fond du site */
  --c-terracotta: #A6533C; /* R166 V83 B60  - accent chaud principal */
  --c-terre:      #99634E; /* R153 V99 B78  - brun terre */
  --c-sable:      #EDE1C9; /* R237 V225 B201 - crème : cartes, fonds, formes */
  --c-sauge:      #A3B096; /* R163 V176 B150 - vert sauge pâle */
  --c-feuille:    #505E41; /* R80 V94 B65   - vert profond */
  --c-cendre:     #000000; /* R0 V0 B0      - noir */

  /* Couleur "signature" de chaque praticienne, utilisée PARTOUT (accueil,
     sa page, halo du portrait, badge, avatar des avis) :
     Valérie terracotta · Adélaïde sauge · Alix sable. */
  --id-reflexo:   var(--c-terracotta);
  --id-sophro:    var(--c-sauge);
  --id-mtc:       var(--c-sable);

  /* Couleur de TEXTE / boutons de chaque page : la signature si elle est
     assez foncée (terracotta), sinon une nuance foncée de la même famille
     (sauge -> vert feuille ; sable -> terre). Secondaire = fonds teintés. */
  --reflexo:      var(--c-terracotta);
  --reflexo-2:    var(--c-sauge);
  --sophro:       color-mix(in srgb, var(--c-sauge) 35%, var(--c-feuille)); /* sauge foncé : le plus clair qui reste lisible (≥ 4.5:1 sur blanc) */
  --sophro-2:     var(--c-sauge);
  --sophro-detail: var(--c-terre);  /* terre : réservée aux boutons et petits détails */
  --mtc:          var(--c-terre);
  --mtc-2:        var(--c-sable);

  /* Variantes sombres (thème nuit) - dérivées des 5 ci-dessus.
     À réajuster si la graphiste fournit une palette nuit dédiée. */
  --c-gris:       #26262A; /* fond du site en thème sombre */
  --c-gris-clair: #323237; /* cartes / surfaces surélevées */
  --c-blanchatre: #EDEAE3; /* texte principal en thème sombre */
}

/* =========================================================
   2. RÔLES - le reste du CSS n'utilise QUE ces variables-là,
      jamais les couleurs brutes. Changer la palette ci-dessus
      met tout le site à jour d'un coup.
   ========================================================= */

:root {
  --fond:            var(--c-blanc);
  --fond-alt:        var(--c-sable);      /* sections alternées */
  --surface:         #FFFFFF;             /* cartes, bulles */
  --texte:           #2B2A26;
  --texte-doux:      #555148;             /* sous-titres, légendes (≥ 4.5:1 sur sable + photo voilée) */
  --accent:          var(--c-terracotta);
  --accent-contrast: #FFFFFF;             /* texte posé sur --accent */
  --accent-2:        var(--c-feuille);
  --bordure:         #E2DCD0;
  --ombre:           0 12px 32px rgba(43, 42, 38, 0.08);
  --ombre-hover:     0 20px 40px rgba(43, 42, 38, 0.16);
  --ombre-petite:    0 6px 16px rgba(43, 42, 38, 0.07);
  --feuille-lisible: var(--c-feuille); /* feuille éclairci en thème sombre */
  --tint:            30%;   /* dose d'une couleur secondaire dans un fond teinté */
  --tint-clair:      100%;  /* idem pour une couleur déjà claire (sable) */
  /* opacité du voile posé sur les photos de fond des sections alternées :
     sous ~88 %, les zones sombres des photos font chuter le contraste du texte */
  --voile-photo:     88%;
  color-scheme: light;
}

/* Thème sombre : suit le réglage du système... */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond:            var(--c-gris);
    --fond-alt:        var(--c-gris-clair);
    --surface:         var(--c-gris-clair);
    --texte:           var(--c-blanchatre);
    --texte-doux:      #B4AFA3;
    --voile-photo:     92%;
    color-scheme: dark;
    --accent:          #E0836A;           /* terracotta éclairci pour le contraste */
    --accent-contrast: #1E1E21;
    --accent-2:        #8CA173;
    --bordure:         #43434A;
    --ombre:           0 12px 32px rgba(0, 0, 0, 0.4);
    --ombre-hover:     0 20px 40px rgba(0, 0, 0, 0.55);
    --ombre-petite:    0 6px 16px rgba(0, 0, 0, 0.3);
    --tint:            14%;
    --tint-clair:      12%;
    --feuille-lisible: color-mix(in srgb, var(--c-feuille) 60%, #FFFFFF);
  }
}

/* ...ou forcé par un bouton (html data-theme="dark") */
:root[data-theme="dark"] {
  --fond:            var(--c-gris);
  --fond-alt:        var(--c-gris-clair);
  --surface:         var(--c-gris-clair);
  --texte:           var(--c-blanchatre);
  --texte-doux:      #B4AFA3;
  --voile-photo:     92%;
  color-scheme: dark;
  --accent:          #E0836A;
  --accent-contrast: #1E1E21;
  --accent-2:        #8CA173;
  --bordure:         #43434A;
  --ombre:           0 12px 32px rgba(0, 0, 0, 0.4);
  --ombre-hover:     0 20px 40px rgba(0, 0, 0, 0.55);
  --ombre-petite:    0 6px 16px rgba(0, 0, 0, 0.3);
  --tint:            14%;
  --tint-clair:      12%;
  --feuille-lisible: color-mix(in srgb, var(--c-feuille) 60%, #FFFFFF);
}

/* =========================================================
   3. Typographie - d'après la page "typographies" de l'identité :
      Cinzel (logo et titres), Cormorant Garamond (sous-titres /
      légendes / signature), PT Sans Narrow (sur-titres, paragraphes
      et texte technique).
      Polices hébergées en local (assets/fonts) - aucune requête
      vers un serveur tiers, aucune IP transmise à Google/Fontshare.
   ========================================================= */

@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans Narrow";
  src: url("fonts/PTSansNarrow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans Narrow";
  src: url("fonts/PTSansNarrow-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-logo:    "Cinzel", Georgia, "Times New Roman", serif;           /* logo */
  --font-titre:   "Cinzel", Georgia, "Times New Roman", serif;           /* grand titre */
  --font-italic:  "Cormorant Garamond", Georgia, serif;                  /* sous-titre / signature */
  --font-caption: "Cormorant Garamond", Georgia, serif;                  /* petites infos / légendes */
  --font-kicker:  "PT Sans Narrow", "Arial Narrow", system-ui, sans-serif; /* sur-titre / catégorie */
  --font-texte:   "PT Sans Narrow", "Arial Narrow", system-ui, sans-serif; /* paragraphes */
  --font-mono:    "PT Sans Narrow", "Arial Narrow", system-ui, sans-serif; /* texte technique */
}

/* =========================================================
   4. Base minimale (le reste du front viendra ensuite)
   ========================================================= */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--font-texte);
  line-height: 1.6;
  --alt-photo: url("img/fonds-corps/corps-05.jpg"); /* par défaut ; chaque section choisit le sien (.fond-corps-XX) */
}

h1, h2, h3 {
  font-family: var(--font-titre);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--accent); }

img { max-width: 100%; display: block; }

/* --- Accessibilité --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -3.5rem;
  left: 0.5rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   4bis. Motif quadrilobe (logo)
   ========================================================= */

/* Logo officiel (cf. inc/motif.php) : le SVG sert de masque, la couleur
   vient de `color`. Une seule version par forme dans assets/img/logo/. */
.dm-mark {
  display: block;
  aspect-ratio: 1;
  background-color: currentColor;
  -webkit-mask: var(--dm-src) center / contain no-repeat;
          mask: var(--dm-src) center / contain no-repeat;
}

.dm-mark--logo           { --dm-src: url("img/logo/logo.svg"); }
.dm-mark--logo-principal { --dm-src: url("img/logo/logo-principal.svg"); }
.dm-mark--logo-tampon    { --dm-src: url("img/logo/logo-tampon.svg"); }
.dm-mark--sigle          { --dm-src: url("img/logo/sigle.svg"); }
.dm-mark--sigle-tige     { --dm-src: url("img/logo/sigle-tige.svg"); }
.dm-mark--picto          { --dm-src: url("img/logo/picto.svg"); }
.dm-mark--picto-tige     { --dm-src: url("img/logo/picto-tige.svg"); }

.motif-watermark {
  position: absolute;
  width: min(620px, 78vw);
  height: min(620px, 78vw);
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   5. Accent par page - une couleur principale (--accent : boutons,
      titres, formes) et une secondaire (--accent-2 : fonds teintés)
      par discipline. Ajouter data-page="..." sur <body>.
   ========================================================= */

/* --accent-doux : touche secondaire pour les éléments graphiques (puces,
   pastilles, pointillés, halos). Par défaut = --accent ; une page peut la
   passer sur sa couleur secondaire. --accent-doux-fonce : même teinte
   assombrie, pour les traits fins qui doivent rester visibles. */
body {
  --accent-doux: var(--accent);
  --accent-doux-fonce: var(--accent);
  --accent-doux-contrast: var(--accent-contrast);
}

body[data-page="reflexo"] {
  --accent: var(--reflexo);
  --accent-2: var(--reflexo-2);
  --accent-doux: var(--c-sauge);
  --accent-doux-fonce: color-mix(in srgb, var(--c-sauge) 60%, var(--c-feuille));
  --accent-doux-contrast: var(--c-cendre);
  --accent-contrast: #FFFFFF;
  --fond-alt-page: color-mix(in srgb, var(--accent-2) var(--tint), var(--fond));
  --shape-accent: var(--c-sauge); /* halo du portrait : sauge */
  /* fond du portrait : blanc cassé, comme Alix */
  --portrait-bg: color-mix(in srgb, var(--c-sable) 35%, var(--c-blanc));
}

/* Page de Valérie : logo sans cercle, en vert sauge (en-tête + pied de page) */
body[data-page="reflexo"] .logo .logo-mark,
body[data-page="reflexo"] .site-footer .footer-mark { color: var(--c-sauge); }

body[data-page="sophro"] {
  --accent: var(--sophro);
  --accent-2: var(--sophro-2);
  --shape-accent: var(--c-terre); /* halo du portrait : terre (portrait dessiné en sauge) */
  --accent-contrast: #FFFFFF;
  /* fonds teintés sauge (voile des photos de fond) : plus marqué que les autres pages */
  --fond-alt-page: color-mix(in srgb, var(--c-sauge) 45%, var(--fond));
  --detail: var(--sophro-detail);
  --detail-contrast: #FFFFFF;
  --accent-doux: var(--c-sauge);
  --accent-doux-fonce: color-mix(in srgb, var(--c-sauge) 80%, var(--c-feuille));
  --accent-doux-contrast: var(--c-cendre);
  /* fond du portrait : blanc cassé, comme Valérie et Alix */
  --portrait-bg: color-mix(in srgb, var(--c-sable) 35%, var(--c-blanc));
}

body[data-page="tmp"] {
  --accent: var(--mtc);
  --accent-2: var(--mtc-2);
  --shape-accent: var(--id-mtc); /* halo du portrait = couleur signature */
  /* blanc cassé : le portrait se détache du halo sable (comme sur l'accueil) */
  --portrait-bg: color-mix(in srgb, var(--c-sable) 35%, var(--c-blanc));
  --accent-contrast: #FFFFFF;
  --fond-alt-page: color-mix(in srgb, var(--accent-2) var(--tint-clair), var(--fond));
  /* sable trop clair pour des traits fins : version "foncée" tirée vers la terre */
  --accent-doux: var(--c-sable);
  --accent-doux-fonce: color-mix(in srgb, var(--c-sable) 40%, var(--c-terre));
  --accent-doux-contrast: var(--c-cendre);
}

/* Thème sombre : versions éclaircies des couleurs de page (texte, boutons,
   traits fins) pour rester lisibles sur le fond gris foncé. Les couleurs
   signature (halos, pastilles) ne changent pas. Deux sélecteurs : réglage
   système (sauf thème clair forcé) ou thème sombre forcé par le bouton. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-page="reflexo"] {
    --accent: #E0836A;
    --accent-contrast: #1E1E21;
    --accent-doux-fonce: var(--c-sauge);
  }
  :root:not([data-theme="light"]) body[data-page="sophro"] {
    --accent: color-mix(in srgb, var(--c-sauge) 75%, #FFFFFF);
    --fond-alt-page: color-mix(in srgb, var(--c-sauge) var(--tint), var(--fond));
    --accent-contrast: #1E1E21;
    --accent-doux-fonce: var(--c-sauge);
    --detail: color-mix(in srgb, var(--c-terre) 60%, #FFFFFF);
    --detail-contrast: #1E1E21;
  }
  :root:not([data-theme="light"]) body[data-page="tmp"] {
    --accent: color-mix(in srgb, var(--c-sable) 70%, var(--c-terre));
    --accent-contrast: #1E1E21;
    --accent-doux-fonce: color-mix(in srgb, var(--c-sable) 75%, var(--c-terre));
  }
}

:root[data-theme="dark"] body[data-page="reflexo"] {
  --accent: #E0836A;
  --accent-contrast: #1E1E21;
  --accent-doux-fonce: var(--c-sauge);
}

:root[data-theme="dark"] body[data-page="sophro"] {
  --accent: color-mix(in srgb, var(--c-sauge) 75%, #FFFFFF);
  --fond-alt-page: color-mix(in srgb, var(--c-sauge) var(--tint), var(--fond));
  --accent-contrast: #1E1E21;
  --accent-doux-fonce: var(--c-sauge);
  --detail: color-mix(in srgb, var(--c-terre) 60%, #FFFFFF);
  --detail-contrast: #1E1E21;
}

/* Page d'Adélaïde : le sauge domine, la terre ne sert qu'aux boutons et petits détails */
body[data-page="sophro"] :is(.btn-primary, .seance-num, .seance-tabs button[aria-selected="true"]) {
  color: var(--detail-contrast);
  background: var(--detail);
  border-color: var(--detail);
}
body[data-page="sophro"] .btn-outline:hover { border-color: var(--detail); color: var(--detail); }
body[data-page="sophro"] .seance-thumbs button[aria-current="true"] { border-color: var(--detail); }
body[data-page="sophro"] .price-card .amount,
body[data-page="sophro"] .sophro-list li:nth-child(3n+2) .dm-mark { color: var(--detail); }

/* Encart « professionnels » : grand aplat sauge, texte noir (≥ 9:1) */
body[data-page="sophro"] .sophro-pros {
  --accent-contrast: var(--c-cendre);
  background: var(--c-sauge);
}
/* titre en terre, assez foncé pour rester lisible sur le sauge (≥ 4.5:1) */
body[data-page="sophro"] .sophro-pros h3 { color: color-mix(in srgb, var(--c-terre) 55%, var(--c-cendre)); }

:root[data-theme="dark"] body[data-page="tmp"] {
  --accent: color-mix(in srgb, var(--c-sable) 70%, var(--c-terre));
  --accent-contrast: #1E1E21;
  --accent-doux-fonce: color-mix(in srgb, var(--c-sable) 75%, var(--c-terre));
}

/* Accessibilité (WCAG 1.4.3) : sur les sections alternées (fond teinté +
   photo voilée), la couleur d'accent utilisée pour le texte (sur-titres,
   liens, intertitres) est légèrement foncée en thème clair et éclaircie en
   thème sombre pour garder un contraste ≥ 4.5:1. */
body:not([data-page]) .section-alt,
body[data-page="reflexo"] .section-alt { --accent: #833C2B; }
body[data-page="sophro"] .section-alt  { --accent: var(--c-feuille); } /* vert profond : ≥ 4.5:1 sur fond sauge */
body[data-page="tmp"] .section-alt     { --accent: #73453A; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body:not([data-page]) .section-alt,
  :root:not([data-theme="light"]) body[data-page="reflexo"] .section-alt { --accent: #EC9A82; }
  :root:not([data-theme="light"]) body[data-page="sophro"] .section-alt { --accent: color-mix(in srgb, var(--c-sauge) 75%, #FFFFFF); }
  :root:not([data-theme="light"]) body[data-page="tmp"] .section-alt { --accent: color-mix(in srgb, var(--c-sable) 70%, var(--c-terre)); }
}
:root[data-theme="dark"] body:not([data-page]) .section-alt,
:root[data-theme="dark"] body[data-page="reflexo"] .section-alt { --accent: #EC9A82; }
:root[data-theme="dark"] body[data-page="sophro"] .section-alt { --accent: color-mix(in srgb, var(--c-sauge) 75%, #FFFFFF); }
:root[data-theme="dark"] body[data-page="tmp"] .section-alt { --accent: color-mix(in srgb, var(--c-sable) 70%, var(--c-terre)); }

/* =========================================================
   6. Header / navigation
   ========================================================= */

.site-header {
  padding: 1.5rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-logo);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0;
  max-width: 340px;
}

.logo .logo-mark {
  flex-shrink: 0;
  width: 72px;
  transition: transform 0.6s ease;
}

.logo:hover .logo-mark,
.logo:focus-visible .logo-mark {
  transform: rotate(-12deg);
}

@media (prefers-reduced-motion: reduce) {
  .logo:hover .logo-mark,
  .logo:focus-visible .logo-mark { transform: none; }
}

.main-nav ul {
  position: relative;
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--texte);
  border-color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--bordure);
  background: var(--surface);
  color: var(--texte);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.theme-toggle:hover { border-color: var(--accent); }

.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

.theme-toggle.is-dark .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle.is-dark .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* --- Menu hamburger (écrans < 960px) ---
   Le bouton n'existe qu'en dessous de 960px ; le menu devient un panneau
   déroulant sous l'en-tête. Sans JavaScript (pas de classe .js sur <html>),
   le menu reste affiché normalement. */
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .site-header { position: relative; z-index: 50; }
  .site-header .container { flex-wrap: nowrap; }
  .header-right { gap: 0.75rem; flex-wrap: nowrap; }

  .js .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--bordure);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.2s;
  }

  .js .nav-toggle:hover,
  .js .nav-toggle[aria-expanded="true"] { border-color: var(--accent); }

  .nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--texte);
    transition: transform 0.35s ease, opacity 0.25s ease;
  }

  /* les 3 barres deviennent une croix */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* le menu : panneau sous l'en-tête */
  .js .main-nav {
    order: 3; /* après les boutons dans .header-right */
    position: absolute;
    top: calc(100% - 0.5rem);
    left: 1rem;
    right: 1rem;
    padding: 0.75rem;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--accent-doux) 50%, var(--bordure));
    box-shadow: var(--ombre);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.35s ease, visibility 0s linear 0.35s;
  }

  .js .site-header.is-nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.35s ease, visibility 0s;
  }

  .js .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .main-nav li + li { border-top: 1px solid var(--bordure); }

  .js .main-nav a {
    display: block;
    padding: 0.9rem 1rem;
    border-bottom: 0;
    border-radius: 14px;
    font-size: 1.05rem;
    color: var(--texte);
  }

  .js .main-nav a:hover,
  .js .main-nav a:focus-visible { background: color-mix(in srgb, var(--accent-doux) 18%, var(--surface)); }

  .js .main-nav a[aria-current="page"] {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .js .main-nav, .nav-toggle-bar { transition: none; }
}

/* =========================================================
   7. Formes décoratives : rectangle à coin franc + vagues
      (repris du style Fuel+ : rayon énorme sur 3 coins,
      un coin resté presque droit)
   ========================================================= */

.shape-wrap {
  --shape-size: 240px;
  --shape-radius: 140px 140px 140px 18px; /* coin franc en bas à gauche */
  position: relative;
  width: 100%;
  max-width: var(--shape-size);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}

.shape-wrap::before {
  content: "";
  position: absolute;
  top: -8%;
  left: -8%;
  right: 8%;
  bottom: 8%;
  background: var(--shape-accent, var(--accent));
  border-radius: var(--shape-radius);
  z-index: 0;
}

.shape-wrap .shape-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--shape-radius);
  overflow: hidden;
  background: var(--surface);
}

.shape-wrap .shape-media img { width: 100%; height: 100%; object-fit: cover; }

/* Halo dans la couleur secondaire de la page (alterne avec le halo principal) */
.shape-wrap--doux { --shape-accent: var(--accent-doux); }

/* Portraits illustrés des praticiennes (traits colorés sur fond transparent) :
   fond crème fixe pour rester lisible en thème clair comme sombre,
   dessin posé en bas de la forme, épaules coupées par le bord. */
.shape-wrap .shape-media img.shape-portrait {
  background: var(--portrait-bg, var(--c-sable));
  object-fit: contain;
  object-position: center bottom;
  padding: 8% 4% 0;
}

/* variante : coin franc en bas à droite, halo décalé en haut à droite */
.shape-wrap.shape-b {
  --shape-radius: 140px 140px 18px 140px;
}

.shape-wrap.shape-b::before {
  left: 8%;
  right: -8%;
}

/* variante : coin franc en haut à droite, halo décalé en bas à gauche */
.shape-wrap.shape-c {
  --shape-radius: 140px 18px 140px 140px;
}

.shape-wrap.shape-c::before {
  top: 8%;
  bottom: -8%;
}

.shape-wrap--large {
  --shape-size: min(360px, 80vw);
  --shape-radius: 220px 220px 220px 24px;
}

/* recalcule les rayons en grand format selon la variante de coin franc
   (règles placées après pour trancher l'égalité de spécificité) */
.shape-wrap--large.shape-b { --shape-radius: 220px 220px 24px 220px; }
.shape-wrap--large.shape-c { --shape-radius: 220px 24px 220px 220px; }

.wave-divider {
  display: block;
  width: 100%;
  height: 70px;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -1px;
  background: var(--fond); /* toujours précédé d'une section "plane" */
}

.wave-divider svg { width: 100%; height: 74px; display: block; margin: -2px 0; }

/* La couleur du tracé est fixée ici (et non en attribut fill="" inline)
   pour que var()/color-mix() se résolvent de façon fiable dans tous
   les navigateurs et restent identiques au fond de la section visée. */
.wave-divider path {
  fill: var(--fond-alt-page, var(--fond-alt));
}

.wave-divider--out {
  background: var(--fond-alt-page, var(--fond-alt)); /* toujours précédé de la section teintée */
}

.wave-divider--out path {
  fill: var(--fond);
}

/* =========================================================
   8. Boutons
   ========================================================= */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--ombre); }

.btn-outline {
  background: transparent;
  color: var(--texte);
  border: 1.5px solid var(--bordure);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   9. Page d'accueil : intro + bulles des 3 personnes
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(72vh, 350px);
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--texte-doux);
  font-size: 1.05rem;
}

/* --- Formes en parallax --- */

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: hero-blobs-in 1.4s ease forwards;
  animation-delay: 0.1s;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hero-blob-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.5;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-blob.is-active .hero-blob-core {
  opacity: 0.75;
  transform: scale(1.18);
}

.hero-blob--sophro  { width: 380px; height: 380px; top: -120px; left: -140px; }
.hero-blob--sophro  .hero-blob-core { background: var(--id-sophro); }

.hero-blob--reflexo { width: 340px; height: 340px; top: 20%;    right: -150px; }
.hero-blob--reflexo .hero-blob-core { background: var(--id-reflexo); }

.hero-blob--mtc     { width: 260px; height: 260px; bottom: -110px; left: -60px; }
.hero-blob--mtc     .hero-blob-core { background: var(--id-mtc); }

@keyframes hero-blobs-in {
  to { opacity: 1; }
}

/* --- Trèfles qui éclosent à l'apparition ---
   Chaque trèfle part minuscule et retourné, puis s'ouvre en tournant
   jusqu'à sa rotation finale (--r), un par un (--delay). La classe
   .is-visible est posée par theme.js quand le bloc entre à l'écran,
   et retirée quand il en sort : l'éclosion rejoue à chaque retour. */

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-leaves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-leaf {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); /* centré sur (x, y) */
  opacity: 0;
  transform: scale(0.2) rotate(-120deg);
  transition:
    opacity 1.4s ease var(--delay),
    transform 1.6s cubic-bezier(0.22, 1.2, 0.36, 1) var(--delay); /* léger rebond à l'ouverture */
}

.hero.is-visible .hero-leaf {
  opacity: 0.55;
  transform: scale(1) rotate(var(--r));
}

.hero-leaf .dm-mark {
  width: 100%;
  color: var(--c);
}

@media (max-width: 700px) {
  .hero-leaf { width: calc(var(--s) * 0.6); margin: calc(var(--s) * -0.3) 0 0 calc(var(--s) * -0.3); }
  .hero.is-visible .hero-leaf { opacity: 0.4; }
}

/* Sans JavaScript ou si l'appareil demande moins d'animations : trèfles affichés d'emblée */
html:not(.js) .hero-leaf { opacity: 0.55; transform: rotate(var(--r)); }

@media (prefers-reduced-motion: reduce) {
  .hero-leaf { transition: none; opacity: 0.55; transform: rotate(var(--r)); }
}

/* --- Mise en page : contenu centré, motif en filigrane --- */
.hero-layout--centered {
  display: block;
  max-width: 920px; /* le titre tient sur une ligne ; le paragraphe reste limité à 640px */
  margin: 0 auto;
}

.hero-watermark {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --- Contenu et effet d'ouverture --- */

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content > * {
  opacity: 0;
  animation: hero-fade-up 0.7s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.18s; }
.hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.hero-content > *:nth-child(4) { animation-delay: 0.5s; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-rotator {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  margin: 0.5rem 0 1.5rem;
  min-height: 1.6em;
}

.hero-rotator-static { color: var(--texte-doux); }

.hero-rotator-word {
  display: inline-block;
  color: var(--rotator-color, var(--accent));
  animation: hero-rotator-in 0.5s ease;
}
/* Mot tournant seul sur sa ligne ; le fantôme réserve la place du mot
   le plus long : la page ne saute plus à chaque mot */
.hero-rotator-slot {
  display: grid;             /* bloc = retour à la ligne forcé */
  justify-items: center;
}
.hero-rotator-slot > * {
  grid-area: 1 / 1;          /* fantôme et mot superposés */
}
.hero-rotator-ghost {
  visibility: hidden;        /* invisible, mais occupe sa place */
}

/* Couleurs claires (sauge, sable) mêlées au texte pour rester lisibles */
.hero-rotator-word--sophro  { --rotator-color: color-mix(in srgb, var(--id-sophro) 55%, var(--texte)); }
.hero-rotator-word--reflexo { --rotator-color: color-mix(in srgb, var(--id-reflexo) 70%, var(--texte)); }
.hero-rotator-word--mtc     { --rotator-color: color-mix(in srgb, var(--id-mtc) 40%, var(--texte)); }

@keyframes hero-rotator-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator-word,
  .hero-content > *,
  .hero-blobs {
    animation: none;
    opacity: 1;
  }
  .hero-blob-core { transition: opacity 0.3s ease; }
}

/* --- Section "philosophie" : les 4 dimensions --- */

.dimensions {
  position: relative;
  padding: 3rem 0 5rem;
  overflow: hidden;
}

.kicker {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-family: var(--font-kicker);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dimensions .kicker {
  text-align: center;
}

.dimensions h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.dimensions-intro {
  max-width: 620px;
  margin: 0.75rem auto 3rem;
  text-align: center;
  color: var(--texte-doux);
}

.dimensions-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.5rem;
}

.dimension-card {
  text-align: center;
  padding: 0 0.5rem;
}

.dimension-card .dm-mark {
  width: 104px; /* le trèfle n'occupe que ~55 % du fichier (marges d'origine) */
  margin: -0.75rem auto 0;
  color: var(--dim-color, var(--accent));
}

.dimension-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.dimension-card p {
  color: var(--texte-doux);
  font-size: 0.9rem;
  margin: 0;
}

.dimension-card:nth-child(1) { --dim-color: var(--c-terracotta); }
.dimension-card:nth-child(2) { --dim-color: var(--feuille-lisible); }
.dimension-card:nth-child(3) { --dim-color: var(--c-sauge); }
.dimension-card:nth-child(4) { --dim-color: var(--c-terre); }

.dimensions-outro {
  max-width: 560px;
  margin: 3rem auto 0;
  text-align: center;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--accent);
}

.team {
  padding: 2rem 0 5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
}

.person-bubble {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.person-bubble .btn {
  margin-top: auto;
  align-self: center;
}

.person-bubble .shape-wrap {
  margin-bottom: 1.75rem;
}

.person-bubble .discipline {
  display: inline-block;
  align-self: center;
  margin-top: 1rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--bubble-contrast, #fff);
  background: var(--bubble-accent, var(--accent));
}

.person-bubble h2 { font-size: 1.3rem; margin-top: 1.1rem; }

.person-bubble p.teaser {
  color: var(--texte-doux);
  font-size: 0.92rem;
  margin: 0.4rem 0 1.1rem;
}

.person-bubble[data-accent="reflexo"] {
  --shape-accent: var(--c-sauge); /* halo sauge, fond blanc cassé (comme sur sa page) */
  --portrait-bg: color-mix(in srgb, var(--c-sable) 35%, var(--c-blanc));
  --bubble-accent: var(--c-sauge);
  --bubble-contrast: var(--c-cendre); /* sauge trop clair pour du texte blanc */
}

.person-bubble[data-accent="sophro"] {
  --shape-accent: var(--c-terre); /* halo terre, portrait sauge (comme sur sa page) */
  --bubble-accent: var(--c-terre);
  --portrait-bg: color-mix(in srgb, var(--c-sable) 35%, var(--c-blanc));
}

.person-bubble[data-accent="tmp"] {
  --shape-accent: var(--id-mtc);
  --bubble-accent: var(--id-mtc);
  --bubble-contrast: var(--c-cendre);
  /* blanc cassé : se détache à la fois du halo sable et du fond blanc de la page */
  --portrait-bg: color-mix(in srgb, var(--c-sable) 35%, var(--c-blanc));
}

/* En attente de vraies photos : la forme accueille un monogramme
   (initiale + motif quadrilobe en filigrane) plutôt qu'un portrait. */
.shape-monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shape-accent, var(--accent));
}

.shape-monogram .dm-mark {
  position: absolute;
  width: 74%;
  color: var(--monogram-contrast, var(--accent-contrast));
  opacity: 0.3;
}

/* Variante sans lettre : motif seul, en attente d'une vraie photo */
.shape-monogram--motif-only .dm-mark {
  width: 70%;
  opacity: 0.6;
}

/* --- Section "À propos du centre" (accueil) --- */

.about { padding: 4rem 0 5rem; }

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 3rem;
  align-items: center;
}

/* Diaporama photos (accueil) : les photos se succèdent en fondu dans un seul
   cadre arrondi ; clic = agrandissement dans la visionneuse (.lightbox). */
.about-slider { position: relative; }

.about-slider-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 100px 24px 100px 24px;
  box-shadow: var(--ombre-petite);
  background: var(--surface);
}

.about-slide {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 6s ease;
  pointer-events: none;
}

.about-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-slide:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }

.about-slider-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--accent);
  pointer-events: none;
}

.about-slider-zoom svg,
.lightbox-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.about-dot { /* zone cliquable 24px, pastille visible 10px */
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.about-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-doux-fonce) 45%, transparent);
  transition: background 0.3s, width 0.3s;
}

.about-dot.is-active::before { width: 22px; border-radius: 5px; background: var(--accent); }
.about-dot:focus-visible { outline: 2px solid var(--accent); border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .about-slide { transition: opacity 0.3s; transform: none; }
}

/* Visionneuse plein écran */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1.5rem 4.5rem;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.lightbox[open] { display: flex; align-items: center; justify-content: center; }

.lightbox::backdrop { background: rgba(20, 16, 12, 0.85); }

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  border-radius: 24px;
  object-fit: contain;
  animation: lightbox-in 0.25s ease;
}

.lightbox-caption {
  color: #f3ece4;
  font-size: 0.95rem;
  text-align: center;
}

@keyframes lightbox-in { from { opacity: 0; transform: scale(0.97); } }

.lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 1rem; right: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .lightbox-img { animation: none; }
}

@media (max-width: 640px) {
  .lightbox { padding: 4.5rem 0.75rem 5.5rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-slider { width: 100%; max-width: 380px; margin: 0 auto; }
}

/* =========================================================
   10. Pages personne : profil / métier / tarifs / blog
   ========================================================= */

.section { padding: 4rem 0; }

.section-alt {
  position: relative;
  overflow: hidden;
  background: var(--fond-alt-page, var(--fond-alt));
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--fond-alt-page, var(--fond-alt)) var(--voile-photo, 65%), transparent),
      color-mix(in srgb, var(--fond-alt-page, var(--fond-alt)) var(--voile-photo, 65%), transparent)
    ),
    var(--alt-photo, none);
  background-size: cover;
  background-position: center;
  /* flou très léger (test sans éclaircissement ; avant : brightness(1.15) saturate(0.95)) */
  filter: blur(1.5px);
  /* la photo s'efface pile en haut/bas (dans la zone masquée, le flou
     n'est jamais visible) pour raccorder aux vagues sur une couleur
     plate identique, sans coupure visible - inset:0 et pas de scale()
     ici : un transform décale le calcul du masque par rapport au bord
     réel de la section et rouvrait exactement la même fuite de couleur */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
}

.section-alt > * {
  position: relative;
  z-index: 1;
}

/* Visuels "corps" (assets/img/fonds-corps, versions allégées pour le web).
   Un visuel par section, choisi selon son contenu. */
.fond-corps-01 { --alt-photo: url("img/fonds-corps/corps-01.jpg"); } /* épaule, lin, feuillage */
.fond-corps-02 { --alt-photo: url("img/fonds-corps/corps-02.jpg"); } /* mains jointes en mouvement */
.fond-corps-03 { --alt-photo: url("img/fonds-corps/corps-03.jpg"); } /* mains sur la poitrine */
.fond-corps-05 { --alt-photo: url("img/fonds-corps/corps-05.jpg"); } /* mains, ombres de feuilles */
.fond-corps-06 { --alt-photo: url("img/fonds-corps/corps-06.jpg"); } /* pied massé */
.fond-corps-11 { --alt-photo: url("img/fonds-corps/corps-11.jpg"); } /* dos, ombres de feuilles */
.fond-corps-18 { --alt-photo: url("img/fonds-corps/corps-18.jpg"); } /* mains sur le dos */
.fond-corps-22 { --alt-photo: url("img/fonds-corps/corps-22.jpg"); } /* mains dans la lumière */

.profile {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 3rem;
  align-items: start;
}

.profile .shape-wrap--large {
  margin: 0 auto 0 clamp(0.75rem, 3vw, 2rem);
}

/* variante test : parcours affiché en 3e colonne, à côté du texte
   proportions en 8e : 2 (photo) / 4 (texte) / 2 (parcours), marges du .container normales */
.profile--3col {
  grid-template-columns: 2fr 4fr 2fr;
  align-items: center;
}

.profile--3col .shape-wrap--large {
  grid-column: 1;
  margin: 0 auto;
}

.profile--3col .profile-text { grid-column: 2; }
.profile--3col .profile-timeline { grid-column: 3; }

.profile--3col .kicker,
.profile--3col h1,
.profile--3col .timeline-title {
  text-align: center;
}

.profile--3col .timeline-list {
  text-align: left;
  display: inline-block;
}

.profile h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }


.timeline { margin-top: 2rem; }

.timeline-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texte-doux);
  margin: 0 0 1rem;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-list li {
  position: relative;
  padding-left: 1.75rem;
  padding-bottom: 1.25rem;
}

.timeline-list li:last-child { padding-bottom: 0; }

/* Section Origine : photo à gauche, frise qui défile dans la colonne de droite.
   min-width: 0 sinon la colonne grid s'élargit au lieu de laisser défiler. */
.origin-layout {
  align-items: center;
  max-width: 1440px; /* plus large que le reste du site : la frise respire */
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}
.origin-layout .profile-text { min-width: 0; }

/* Frise historique horizontale (section Origine, page réflexologie) :
   défile de gauche à droite, avec aimantation sur chaque étape. */
.history-track {
  position: relative;
  list-style: none;
  margin: 1rem 0 0;
  padding: 2.2rem 0.25rem 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-doux) transparent;
  /* fondu à droite : signale qu'il reste du contenu */
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
          mask-image: linear-gradient(to right, #000 88%, transparent);
}

.history-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.history-item {
  position: relative;
  scroll-snap-align: start;
  padding-top: 1.4rem;
}

.history-item::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-doux);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-doux) 30%, transparent);
}

.history-item::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 5px;
  width: calc(100% + 1.25rem - 5px);
  height: 2px;
  background: color-mix(in srgb, var(--accent-doux) 45%, var(--bordure));
}

.history-item:last-child::before {
  background: var(--accent);
}

.history-item:last-child::after {
  display: none;
}

.history-item:last-child { margin-right: 4rem; } /* sort du fondu en fin de défilement */

.history-when {
  font-family: var(--font-titre);
  font-size: 1.15rem;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.history-item p:not(.history-when) {
  margin: 0;
  font-size: 0.95rem;
  color: var(--texte);
}

/* Section Moxibustion (page réflexologie) : 3 étapes illustrées
   armoise → moxa → chaleur, puis bandeau histoire / UNESCO. */
.moxa-subtitle {
  margin: -0.25rem 0 1.5rem;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--texte-doux);
}

.moxa-steps {
  list-style: none;
  margin: 2.5rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: moxa-step;
}

.moxa-step {
  position: relative;
  text-align: center;
  padding: 0 0.5rem;
}

.moxa-step:not(:last-child)::after { /* liaison pointillée vers l'étape suivante */
  content: "";
  position: absolute;
  top: 55px;
  left: calc(50% + 70px);
  width: calc(100% - 140px + 2rem);
  border-top: 2px dotted var(--accent-doux-fonce);
}

.moxa-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-doux) 30%, var(--surface));
}

.moxa-step:nth-child(2) .moxa-icon { background: color-mix(in srgb, var(--accent) 15%, var(--surface)); }

.moxa-icon .dm-mark { width: 120px; color: var(--accent-doux-fonce); }
.moxa-step:nth-child(2) .moxa-icon .dm-mark { color: var(--accent); }

/* photo à la place du trèfle : remplit le rond */
.moxa-icon:has(img) { overflow: hidden; }
.moxa-icon img { width: 100%; height: 100%; object-fit: cover; }

.moxa-step h3 { font-size: 1.15rem; color: var(--accent); }

.moxa-step h3::before {
  counter-increment: moxa-step;
  content: counter(moxa-step) ". ";
  color: var(--accent);
}

.moxa-step p { font-size: 0.95rem; }

.moxa-pourquoi {
  max-width: 780px;
  margin: 0 0 2rem;
}

.moxa-pourquoi h3 { color: var(--accent); }

.moxa-foot {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-radius: 22px;
  /* bloc UNESCO sur fond sauge : texte foncé (sauge trop clair pour du blanc) */
  background: var(--accent-doux);
  color: var(--accent-doux-contrast);
}

/* logo sauge sur pastille blanche (le sauge seul se perdrait sur le fond sauge) */
.moxa-foot-logo {
  flex-shrink: 0;
  padding: 10px;
  border-radius: 50%;
  background: var(--c-blanc);
}

.moxa-foot .dm-mark { width: 96px; color: var(--c-sauge); }

/* Page de Valérie : bloc UNESCO en terracotta, texte clair (le logo reste sauge sur pastille blanche) */
body[data-page="reflexo"] .moxa-foot {
  background: var(--accent);
  color: var(--accent-contrast);
}
.moxa-foot p { margin: 0; }

@media (max-width: 760px) {
  .moxa-steps { grid-template-columns: 1fr; }
  .moxa-step:not(:last-child)::after { display: none; }
  .moxa-foot { flex-direction: column; text-align: center; }
}

/* Déroulé de la séance (page sophrologie) : texte en onglets à gauche,
   photo associée à l'onglet à droite. Onglets pilotés par theme.js. */
.seance-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.seance-duree {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.9rem 0.3rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-kicker);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-doux) 25%, var(--surface));
}

.seance-duree .dm-mark { width: 22px; color: var(--accent); }

.seance-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }

.seance-tabs button {
  padding: 0.45rem 1rem;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  background: var(--surface);
  color: var(--texte);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.seance-tabs button:hover { background: color-mix(in srgb, var(--accent-doux) 30%, var(--surface)); }
.seance-tabs button[aria-selected="true"] { color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); }
.seance-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.seance-panel p { margin: 0 0 0.8rem; }

.seance-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.seance-steps li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.8rem; align-items: start; }
.seance-steps p { margin: 0.1rem 0 0; color: var(--texte-doux); }

.seance-num {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-family: var(--font-titre);
  color: var(--accent-contrast);
  background: var(--accent);
}

.seance-panel .seance-confid {
  margin: 1.1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--texte-doux);
  background: color-mix(in srgb, var(--accent-doux) 14%, var(--surface));
}

.seance-quote {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent-doux);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--accent);
}

.seance-photos { position: sticky; top: 1.5rem; }
/* La page Médecine contient un bandeau sous la galerie : la galerie ne doit
   pas rester au-dessus de ce contenu pendant le défilement. */
body[data-page="tmp"] .seance-photos { position: static; }

.seance-main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 100px 24px 24px 24px;
  box-shadow: var(--ombre-petite);
}

.seance-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.seance-main img.is-on { opacity: 1; }

.seance-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.75rem; }

.seance-thumbs button {
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  background: none;
  cursor: pointer;
}

.seance-thumbs button[aria-current="true"] { border-color: var(--accent); }
.seance-thumbs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.seance-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.seance-thumbs--4 { grid-template-columns: repeat(4, 1fr); }
/* Cadrage réglé photo par photo dans le HTML (style="--pos: x y") */
:is(.seance-main, .seance-thumbs, .price-card-media) img { object-position: var(--pos, 50% 50%); }

/* Photos agrandissables (img[data-zoom]) : ouvertes dans la visionneuse .lightbox */
img[data-zoom] { cursor: zoom-in; }
img[data-zoom]:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
.seance-main img:not(.is-on) { pointer-events: none; } /* le clic vise la photo affichée */
.seance-main .about-slider-zoom { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .seance-main img { transition: none; }
}

@media (max-width: 900px) {
  .seance-grid { grid-template-columns: 1fr; }
  .seance-photos { position: static; }
}

@media (max-width: 640px) {
  .seance-main { border-radius: 60px 20px 20px 20px; }
}

.history-hint {
  margin: 0.75rem 0 0;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--texte-doux);
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-doux);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-doux) 30%, transparent);
}

.timeline-list li:last-child::before { background: var(--accent); } /* étape actuelle */

.timeline-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.1em;
  bottom: -0.25rem;
  width: 2px;
  background: color-mix(in srgb, var(--accent-doux) 45%, var(--bordure));
}

.timeline-list li:last-child::after { display: none; }

.timeline-year {
  display: block;
  font-family: var(--font-caption);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.timeline-text {
  display: block;
  color: var(--texte);
  font-size: 0.95rem;
}

.metier ul {
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}

.metier li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.metier li::marker { color: var(--accent-doux-fonce); font-size: 1.2em; }

/* Bienfaits en 3 familles (page réflexologie) : colonnes numérotées
   I / II / III, séparées par un filet, sur un grand trèfle en filigrane. */
.metier-intro {
  max-width: 780px;
  margin: 0 0 2.5rem; /* aligné à gauche, comme la sophrologie ; seules les colonnes sont centrées */
}

.bienfaits { position: relative; }

.bienfaits-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  transform: translate(-50%, -50%);
  color: var(--accent-doux);
  opacity: 0.22;
  pointer-events: none;
}

.bienfaits-cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bienfaits-col {
  padding: 0.5rem 2rem;
  text-align: center;
}

.bienfaits-col + .bienfaits-col {
  border-left: 1px solid color-mix(in srgb, var(--accent-doux-fonce) 45%, transparent);
}

.bienfaits-num {
  display: block;
  font-family: var(--font-titre);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-doux-fonce);
}

.bienfaits-col h3 {
  margin: 0.4rem 0 1rem;
  color: var(--accent);
}

.metier .bienfaits-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 1;
}

.metier .bienfaits-col li {
  margin: 0;
  padding: 0.35rem 0;
  font-size: 0.98rem;
}

.bienfaits-col li::before {
  content: "·";
  margin-right: 0.4rem;
  color: var(--accent);
  font-weight: 700;
}

.bienfaits ~ .metier-invite {
  margin-top: 2.5rem;
}

@media (max-width: 860px) {
  .bienfaits-cols { grid-template-columns: 1fr; gap: 2rem; }
  .bienfaits-col + .bienfaits-col {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--accent-doux-fonce) 45%, transparent);
    padding-top: 2rem;
  }
  .bienfaits-mark { width: 320px; }
}

@media (max-width: 560px) {
  .metier ul { columns: 1; }
}

.metier-invite {
  margin-top: 2rem;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--accent);
}

/* petit pied terracotta en fin de phrase (page réflexologie) */
.pied-smiley {
  display: inline-block;
  width: 0.9em;
  height: 1.2em;
  margin-left: 0.15em;
  vertical-align: -0.2em;
  fill: var(--c-terracotta);
  transform: rotate(12deg);
}

.pricing-group-title {
  font-family: var(--font-caption);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--texte-doux);
  margin: 2rem 0 0;
}

.pricing-group-title:first-of-type { margin-top: 0.5rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0 2.5rem;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent-doux) 40%, var(--bordure));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--ombre-petite);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover,
.price-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--ombre-hover);
}

.price-card-media {
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0.4rem;
  background: var(--fond-alt-page, var(--fond-alt));
}

.price-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

/* Photo verticale du cœur (sophrologie) : cadrage remonté sur les mains */
.price-card-media .price-img--coeur { object-position: 50% 14%; }

.price-card:hover .price-card-media img {
  transform: scale(1.06);
}

.price-card-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.price-card--no-media .price-card-body {
  padding-top: 1.5rem;
}

.price-card-body h3 {
  font-size: 1.1rem;
  min-height: 2.75rem;
  margin: 0 0 0.2rem;
}

.price-card-body > p:last-child {
  margin-top: auto;
  padding-top: 0.75rem;
}

.price-card .amount {
  font-family: var(--font-titre);
  font-size: 1.8rem;
  color: var(--accent);
  margin: 0.4rem 0 0.6rem;
}

/* Pied de carte : durée à gauche, prix à droite, toujours en bas */
.price-card-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--accent-doux) 45%, var(--bordure));
}

.price-card-foot .amount { margin: 0; }

.price-duration {
  font-family: var(--font-kicker);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.pricing-grid--soins {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 1.25rem;
}

/* Option (Oshibori) : bandeau fin sous les soins */
.pricing-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 3rem;
  padding: 0.6rem 1.25rem 0.6rem 0.6rem;
  border: 1px dashed var(--accent-doux-fonce);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-doux) 12%, var(--surface));
}

.pricing-option--cadeau { margin-bottom: 1rem; }

.pricing-option-img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.pricing-option p {
  flex: 1;
  margin: 0;
  color: var(--texte-doux);
}

.pricing-option strong { color: var(--texte); font-weight: 700; }

.pricing-option-tag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-kicker);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-doux-contrast);
  background: var(--accent-doux);
  vertical-align: 0.1em;
}

.pricing-option .amount {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  color: var(--accent);
}

/* Formules : présentation "carte de menu" avec points de suite */
.pricing-menu {
  position: relative;
  overflow: hidden;
  margin: 1rem 0 2.5rem;
  padding: 1.25rem 2.5rem;
  border-radius: 28px;
  background: var(--fond-alt-page, var(--fond-alt));
}

.pricing-menu-mark {
  position: absolute;
  right: -95px;
  bottom: -110px;
  width: 280px;
  color: var(--accent-doux-fonce);
  opacity: 0.18;
  pointer-events: none;
}

.menu-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item { padding: 1.1rem 0; }

.menu-item + .menu-item {
  border-top: 1px solid color-mix(in srgb, var(--accent-doux-fonce) 35%, transparent);
}

.menu-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.menu-name {
  font-family: var(--font-titre);
  font-size: 1.25rem;
  color: var(--texte);
}

.menu-duration {
  flex-shrink: 0;
  font-family: var(--font-kicker);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.menu-leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--accent-doux-fonce);
  transform: translateY(-0.3em);
}

.menu-price {
  flex-shrink: 0;
  font-family: var(--font-titre);
  font-size: 1.5rem;
  color: var(--accent);
}

.menu-detail {
  margin: 0.25rem 0 0;
  font-family: var(--font-caption);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--texte-doux);
}

.menu-item--pack .menu-name::before {
  content: "Pack";
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-kicker);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-doux-contrast);
  background: var(--accent-doux);
  vertical-align: 0.3em;
}

/* Page de Valérie : formules teintées terracotta (fond, pointillés, pastille "Pack", trèfle) */
body[data-page="reflexo"] .pricing-menu {
  background: color-mix(in srgb, var(--c-terracotta) calc(var(--tint) * 0.6), var(--fond));
  --accent-doux-fonce: var(--accent);
}
body[data-page="reflexo"] .menu-item--pack .menu-name::before {
  color: var(--accent-contrast);
  background: var(--accent);
}

@media (max-width: 600px) {
  .pricing-menu { padding: 0.75rem 1.25rem; }
  .menu-line { flex-wrap: wrap; row-gap: 0.2rem; }
  .menu-name { flex-basis: 100%; }
  .pricing-option { border-radius: 20px; flex-wrap: wrap; }
}

.price-desc {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  color: var(--texte-doux);
}

.pricing-option .amount--text { font-size: 1.25rem; white-space: nowrap; }

.pricing-note {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  font-family: var(--font-caption);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--texte-doux);
}

.pricing-cta { text-align: center; }

/* =========================================================
   Page sophrologie : "Le métier" avec respiration guidée
   ========================================================= */

.sophro-metier {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Titre étymologique : So·phro·logie, une couleur et une accolade par racine grecque */
.etymo {
  display: flex;
  margin: 0.2rem 0 3.4rem;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1;
}

.etymo-part--1 { --c: var(--c-terracotta); }
.etymo-part--2 { --c: var(--c-sauge); }
.etymo-part--3 { --c: var(--c-terre); }

.etymo-part {
  position: relative;
  color: var(--c);
  transition: opacity 0.4s ease;
}

.etymo-part::after {
  content: "";
  display: block;
  height: 0.16em;
  margin: 0.1em 0.04em 0;
  border: 3px solid var(--c);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.etymo-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  font-family: var(--font-texte);
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
  color: var(--texte-doux);
}

.etymo-label em {
  display: block;
  font-family: var(--font-italic);
  font-size: 1.1rem;
  color: var(--c);
}

.etymo:hover .etymo-part:not(:hover) { opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  .etymo-part { transition: none; }
}

.sophro-lead {
  font-size: 1.15rem;
  color: var(--texte);
}

.sophro-quote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent-doux);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--accent);
}

.sophro-audio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem 0.7rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-doux) 25%, var(--surface));
  font-size: 0.95rem;
}

.sophro-audio .dm-mark { width: 44px; flex-shrink: 0; color: var(--accent-doux-fonce); }

/* Respiration : trèfle qui gonfle / dégonfle (5 s / 5 s), tourne au défilement */
.breath { margin: 0; text-align: center; }

.breath-circle {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent-doux) 25%, transparent);
}

.breath-marks {
  position: absolute;
  inset: -14%; /* le trèfle n'occupe que ~55 % de son fichier : on compense */
  transform: rotate(var(--rot, 0deg));
}

.breath-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  color: var(--accent-doux-fonce);
  opacity: 0.45;
  animation: breathe 10s ease-in-out infinite;
}

/* 2e trèfle en terre : alternance sauge / terre pendant la respiration */
.breath-mark--2 {
  color: var(--detail, var(--accent));
  opacity: 0.3;
  animation-name: breathe-alt;
  animation-delay: -5s;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.8); }
  50%      { transform: scale(1.05); }
}

@keyframes breathe-alt {
  0%, 100% { transform: rotate(45deg) scale(0.8); }
  50%      { transform: rotate(45deg) scale(1.05); }
}

.breath-cue {
  position: relative;
  width: 10em;
  height: 1.6em;
  margin: 1.25rem auto 0;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
}

.breath-cue span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: breath-cue 10s ease-in-out infinite;
}

.breath-cue span + span { animation-delay: -5s; }

@keyframes breath-cue {
  0%, 45%, 100% { opacity: 0; }
  10%, 35%      { opacity: 1; }
}

.breath figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--texte-doux);
}

/* Section "Ce que la sophrologie peut accompagner" : situations en cartes
   (2 colonnes). L'encart professionnels de santé est un bloc à part, dessous. */
.sophro-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.sophro-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.65rem 1rem 0.65rem 0.4rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: 0.97rem;
}

.sophro-list .dm-mark { width: 40px; flex-shrink: 0; color: var(--accent-doux-fonce); }
.sophro-list li:nth-child(3n+2) .dm-mark { color: var(--accent); }

.sophro-list li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 7e carte en pleine largeur */

/* Encart dédié "professionnels de santé" (bloc pleine largeur, comme le
   bloc UNESCO de la page réflexologie) */
.sophro-pros-section { padding-bottom: 0; }

.sophro-pros {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem 2.5rem;
  padding-right: max(2.5rem, 200px); /* place pour le trèfle en filigrane */
  border-radius: 24px;
  background: var(--accent);
  color: var(--accent-contrast);
}

.sophro-pros-tag {
  font-family: var(--font-kicker);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.sophro-pros h3 { position: relative; color: var(--accent-contrast); margin: 0.3rem 0 0.6rem; font-size: 1.35rem; }
.sophro-pros p { position: relative; margin: 0; max-width: 760px; }
.sophro-pros p.sophro-pros-quote { margin-bottom: 0.75rem; font-style: italic; }

.sophro-pros-subtitle {
  position: relative;
  margin: 1.5rem 0 0.6rem;
  font-size: 1.05rem;
  color: var(--accent-contrast);
}

.sophro-pros-list {
  position: relative;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sophro-pros-list li {
  position: relative;
  margin: 0 0 0.4rem;
  padding-left: 1.25rem;
}

/* puce ronde claire, lisible sur le fond coloré */
.sophro-pros-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.sophro-pros p.sophro-pros-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  font-size: 0.95rem;
}

.sophro-pros-mark {
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 200px;
  color: var(--accent-contrast);
  opacity: 0.18;
}

@media (max-width: 860px) {
  .sophro-metier { grid-template-columns: 1fr; }
  .breath-circle { width: min(100%, 320px); }
}

@media (max-width: 560px) {
  .sophro-list { grid-template-columns: 1fr; }
  .sophro-pros { padding: 1.75rem 1.5rem; }
}

/* =========================================================
   Page médecine traditionnelle chinoise
   ========================================================= */

/* Pluie de trèfles (inc/motif.php : pluie_trefles) - derrière le contenu */
.has-pluie {
  position: relative;
  overflow: hidden;
}

.has-pluie > .container {
  position: relative;
  z-index: 1;
}

.pluie {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pluie-feuille {
  position: absolute;
  top: -12%;
  left: var(--x);
  width: var(--s);
  opacity: 0.35;
  animation: pluie-tombe var(--d) linear var(--delay) infinite;
}

.pluie-balance {
  display: block;
  animation: pluie-balance var(--sw) ease-in-out infinite alternate;
}

.pluie-feuille .dm-mark { width: 100%; color: var(--c); }

@keyframes pluie-tombe { to { top: 108%; } }

@keyframes pluie-balance {
  from { transform: translateX(-26px) rotate(-35deg); }
  to   { transform: translateX(26px) rotate(35deg); }
}

@media (max-width: 700px) {
  .pluie-feuille { width: calc(var(--s) * 0.7); opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .pluie { display: none; }
}

/* Trèfles qui volent doucement de gauche à droite */
.has-trefles-vent {
  position: relative;
  overflow: hidden;
}

.has-trefles-vent > .container {
  position: relative;
  z-index: 1;
}

.trefles-vent {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.trefle-vent {
  position: absolute;
  left: -12%;
  top: var(--y);
  width: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  opacity: 0.34;
  animation: trefle-vole var(--d) ease-in-out var(--delay) infinite;
}

.trefle-vent .dm-mark {
  width: 100%;
  color: var(--c);
  transform: rotate(var(--r));
}

@keyframes trefle-vole {
  0% { transform: translateX(0) translateY(8px) rotate(-8deg); }
  50% { transform: translateX(56vw) translateY(-14px) rotate(8deg); }
  100% { transform: translateX(118vw) translateY(6px) rotate(-5deg); }
}

@media (max-width: 700px) {
  .trefle-vent { width: calc(var(--s) * 0.65); opacity: 0.26; }
}

@media (prefers-reduced-motion: reduce) {
  .trefles-vent { display: none; }
}

/* Le métier : texte à gauche, les 4 dimensions en tuiles à droite */
.mtc-metier {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mtc-dimensions {
  padding: 1.75rem;
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.mtc-dimensions-title {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--font-kicker);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.mtc-dimensions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.metier .mtc-dimensions li {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 0.5rem 1.1rem;
  border-radius: 20px;
  text-align: center;
  font-family: var(--font-titre);
  font-size: 1rem;
  color: var(--accent);
  background: var(--surface);
}

.mtc-dimensions li:nth-child(2),
.mtc-dimensions li:nth-child(3) { background: color-mix(in srgb, var(--accent-doux) var(--dose-tuile, 55%), var(--surface)); }

/* thème sombre : tuiles à peine teintées, sinon texte clair sur fond clair */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mtc-dimensions { --dose-tuile: 16%; }
}
:root[data-theme="dark"] .mtc-dimensions { --dose-tuile: 16%; }

.mtc-dimensions .dm-mark { width: 76px; color: var(--accent); }
.mtc-dimensions li:nth-child(2) .dm-mark,
.mtc-dimensions li:nth-child(3) .dm-mark { color: var(--accent-doux-fonce); }

.mtc-indications-title {
  margin: 3rem 0 1.5rem;
}

/* Les 4 dimensions détaillées, sous les tuiles */
.mtc-dim-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.mtc-dim-details article {
  padding: 1.25rem 1.4rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.mtc-dim-details h3 { font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--accent); }
.mtc-dim-details p { margin: 0; color: var(--texte-doux); }

/* Accueil, section « Le Centre » : carte Accès façon plan
   (adresse en en-tête, lignes en pastilles, bouton itinéraire) */
.about-acces {
  margin-top: 1.75rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent-doux) 45%, var(--bordure));
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.about-acces svg {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-acces-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem 0.75rem;
  border-bottom: 1px dashed var(--accent-doux-fonce);
  color: var(--accent);
}

.about-acces-top svg { width: 24px; height: 24px; }
.about-acces-top h3 { margin: 0; font-size: 1.05rem; color: inherit; }
.about-acces-top p {
  margin: 0;
  font-family: var(--font-kicker);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.about-acces-top .about-acces-itin {
  margin-left: auto;
  font-family: var(--font-kicker);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.about-acces-top .about-acces-itin:hover { color: var(--accent-doux-fonce); }

.about-acces ul {
  list-style: none;
  margin: 0;
  padding: 0.8rem 1.2rem 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.about-acces li { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.about-acces li svg { width: 20px; height: 20px; color: var(--accent); }
.about-acces li > span:last-child { color: var(--texte-doux); }

.about-acces-ligne {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 1.55rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-family: var(--font-kicker);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-doux) 35%, var(--surface));
}

.about-acces-ligne--rer { border: 1px solid var(--accent-doux-fonce); }

/* Bénéfices : texte court, visuel réduit à sa mesure */
.mtc-benefices {
  grid-template-columns: minmax(200px, 260px) 1fr;
  align-items: center;
}

.mtc-benefices .shape-wrap--large {
  --shape-size: min(240px, 70vw);
  --shape-radius: 150px 150px 150px 18px;
}

/* Bandeau « Pour qui ? » sous le déroulé des séances : trèfle + titre à gauche, texte à droite */
.mtc-pourqui {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 2rem;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 28px;
  background: color-mix(in srgb, var(--accent-doux) 25%, var(--surface));
}

.mtc-pourqui-head { display: flex; align-items: center; gap: 0.75rem; }
.mtc-pourqui-head .kicker { margin: 0; }
.mtc-pourqui .mtc-pourqui-mark { display: block; width: 56px; flex-shrink: 0; color: var(--accent); }
.mtc-pourqui p { margin: 0; font-size: 1.1rem; }

@media (max-width: 640px) {
  .mtc-pourqui { grid-template-columns: 1fr; padding: 1rem 1.25rem; }
}

.seance-grid > .mtc-pourqui { grid-column: 1 / -1; } /* bandeau sur toute la largeur, sous le texte et la galerie */

.sophro-list--3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 961px) {
  .sophro-list--3 li:last-child:nth-child(odd) { grid-column: auto; } /* 9 cartes = 3 rangées pleines */
  .sophro-list--3 li:last-child:nth-child(3n+1) { grid-column: 1 / -1; } /* carte seule sur sa rangée (ex. 7 cartes) */
}

.pricing-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing-grid--2 .price-card-media { aspect-ratio: 16 / 8; } /* cartes larges : images panoramiques */

.pricing-option-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-doux) 60%, var(--surface));
}

.pricing-option-mark .dm-mark { width: 64px; color: var(--accent); }

@media (max-width: 960px) {
  .sophro-list--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .mtc-metier { grid-template-columns: 1fr; }
  .mtc-dim-details { grid-template-columns: 1fr; }
  .pricing-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .sophro-list--3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .breath-mark, .breath-cue span { animation: none; }
  .breath-cue span:first-child { opacity: 1; }
}

/* =========================================================
   11. Footer
   ========================================================= */

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--bordure);
  color: var(--texte-doux);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer .footer-mark {
  width: 96px;
  margin: 0 auto 1.25rem;
  color: var(--accent);
}

/* Mention en bas de page, juste au-dessus du pied de page (ex. sophrologie) */
.page-note {
  max-width: 720px;
  margin: 2.5rem auto;
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  color: var(--texte-doux);
}

.site-footer p { margin: 0 0 0.5rem; }
.site-footer p:last-child { margin-bottom: 0; }

.site-footer .footer-reviews {
  font-family: var(--font-caption);
  font-weight: 600;
  font-size: 1rem;
  color: var(--texte);
}

.link-google-reviews {
  font: inherit;
  font-weight: inherit;
  color: var(--accent);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.link-google-reviews:hover,
.link-google-reviews:focus-visible {
  color: var(--texte);
}

.site-footer a {
  color: var(--texte-doux);
  text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

/* =========================================================
   11bis. Fenêtre "Nos avis Google"
   ========================================================= */

.reviews-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.reviews-modal[hidden] { display: none; }

.reviews-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--texte) 55%, transparent);
}

.reviews-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 28px 28px 28px 8px;
  box-shadow: var(--ombre-hover);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  animation: reviews-in 0.25s ease;
}

@keyframes reviews-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-modal-panel { animation: none; }
}

.reviews-modal-watermark {
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  opacity: 0.08;
}

.reviews-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--bordure);
  background: var(--surface);
  color: var(--texte);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-modal-close:hover,
.reviews-modal-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.reviews-modal-intro {
  position: relative;
  z-index: 1;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  color: var(--texte-doux);
  font-size: 1rem;
  margin: 0.5rem 0 1.5rem;
}

.reviews-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.reviews-list a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--bordure);
  text-decoration: none;
  color: var(--texte);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.reviews-list a:hover,
.reviews-list a:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--ombre-petite);
}

.reviews-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background: var(--bubble-accent, var(--accent));
}

.reviews-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-texte);
  font-size: 0.95rem;
  font-weight: 600;
}

.reviews-name small {
  font-family: var(--font-caption);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--texte-doux);
}

/* Fenêtre « Prendre rendez-vous » (page sophrologie) : réutilise la fenêtre des avis */
.rdv-hours {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-doux) 18%, var(--surface));
}

.rdv-hours strong {
  font-family: var(--font-kicker);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.rdv-hours p { margin: 0.2rem 0 0; }

/* Horaires jour par jour */
.rdv-week { width: 100%; margin-top: 0.4rem; border-collapse: collapse; font-size: 0.95rem; }
.rdv-week th { text-align: left; font-weight: 600; padding: 0.15rem 0; }
.rdv-week td { text-align: right; padding: 0.15rem 0; }
.rdv-week .is-closed { color: var(--texte-doux); }
.rdv-week .is-closed th { font-weight: 400; }
.rdv-hours .rdv-week-note { margin-top: 0.5rem; font-size: 0.85rem; font-style: italic; color: var(--texte-doux); }

.rdv-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* l'adresse e-mail est longue : elle peut passer à la ligne sur téléphone */
.reviews-name { overflow-wrap: anywhere; }

.rdv-address {
  position: relative;
  z-index: 1;
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--texte-doux);
}

/* =========================================================
   12. Page mentions légales
   ========================================================= */

.legal h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 1rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

/* Passages à compléter / à valider par les praticiennes (provisoire, à retirer avant la mise en ligne) */
.a-completer {
  color: var(--feuille-lisible);
  background: color-mix(in srgb, var(--c-sauge) 25%, transparent);
  border-radius: 4px;
  padding: 0 0.25em;
}

p.a-completer,
div.a-completer {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--feuille-lisible);
}

/* =========================================================
   13. Responsive
   ========================================================= */

@media (max-width: 720px) {
  .profile {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .profile .shape-wrap--large {
    margin: 0 auto;
  }
  .profile--3col {
    padding: 0 1.5rem;
  }
  .profile--3col .shape-wrap--large,
  .profile--3col .profile-text,
  .profile--3col .profile-timeline {
    grid-column: auto;
  }
}

/* =========================================================
   14. Accessibilité : pause des animations, crédits photo,
       liens externes, mode contraste élevé
   ========================================================= */

/* --- Bouton "pause des animations" (en-tête) --- */
.motion-toggle .icon-play  { opacity: 0; transform: scale(0.5); }
.motion-toggle[aria-pressed="true"] .icon-pause { opacity: 0; transform: scale(0.5); }
.motion-toggle[aria-pressed="true"] .icon-play  { opacity: 1; transform: scale(1); }
.motion-toggle svg { width: 16px; height: 16px; }

@media (min-width: 961px) {
  .header-right .motion-toggle + .theme-toggle { margin-left: -1.1rem; } /* boutons groupés */
}

/* Animations mises en pause par le bouton : mêmes réglages que
   prefers-reduced-motion (cf. chaque composant), html[data-motion="reduce"]. */
:root[data-motion="reduce"] *,
:root[data-motion="reduce"] *::before,
:root[data-motion="reduce"] *::after {
  scroll-behavior: auto !important;
}
:root[data-motion="reduce"] .logo:hover .logo-mark,
:root[data-motion="reduce"] .logo:focus-visible .logo-mark { transform: none; }
:root[data-motion="reduce"] .hero-leaf { transition: none; opacity: 0.55; transform: rotate(var(--r)); }
:root[data-motion="reduce"] .hero-rotator-word,
:root[data-motion="reduce"] .hero-content > *,
:root[data-motion="reduce"] .hero-blobs { animation: none; opacity: 1; }
:root[data-motion="reduce"] .hero-blob { transform: none !important; }
:root[data-motion="reduce"] .about-slide { transition: opacity 0.3s; transform: none; }
:root[data-motion="reduce"] .lightbox-img,
:root[data-motion="reduce"] .reviews-modal-panel { animation: none; }
:root[data-motion="reduce"] .pluie { display: none; }
:root[data-motion="reduce"] .trefles-vent { display: none; }
:root[data-motion="reduce"] .breath-mark,
:root[data-motion="reduce"] .breath-cue span { animation: none; }
:root[data-motion="reduce"] .breath-cue span:first-child { opacity: 1; }
:root[data-motion="reduce"] .price-card:hover .price-card-media img { transform: none; }

/* --- Diaporama d'accueil : points de navigation --- */
.about-slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.about-slider-controls .about-slider-dots { margin-top: 0; }

/* --- Crédits photo (inc/credits.php) : un petit « © » discret dans le coin ;
   au survol de la carte / de la photo, il se déploie avec le nom de l'auteur.
   Le texte n'est jamais en display:none : les lecteurs d'écran le lisent. --- */
.price-card-media,
.has-credit { position: relative; }

.photo-credit {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  display: flex;
  align-items: center;
  max-width: calc(100% - 1.8rem);
  height: 22px;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.45);
  color: #FFFFFF;
  font-family: var(--font-kicker);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  transition: background 0.3s ease;
}

.photo-credit-icon {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.9;
}

.photo-credit-text {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

:is(.price-card, .shape-wrap, .has-credit):is(:hover, :focus-within) .photo-credit {
  background: rgba(20, 16, 12, 0.72); /* déployé : blanc dessus ≥ 4.5:1 même sur photo claire */
}

:is(.price-card, .shape-wrap, .has-credit):is(:hover, :focus-within) .photo-credit-text {
  max-width: 16rem;
  opacity: 1;
  padding: 0 0.4rem 0 0.1rem;
}

.shape-media .photo-credit { right: 50%; transform: translateX(50%); bottom: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .photo-credit, .photo-credit-text { transition: none; }
}
:root[data-motion="reduce"] .photo-credit,
:root[data-motion="reduce"] .photo-credit-text { transition: none; }

/* Liste des crédits (mentions légales) */
.credits-list { list-style: none; padding: 0 !important; }
.credits-list li { margin-bottom: 0.4rem !important; }
.credits-list a { word-break: break-word; }

/* --- Mode contraste élevé de Windows : garder les logos et les contours --- */
@media (forced-colors: active) {
  .dm-mark { forced-color-adjust: none; background-color: CanvasText; }
  .btn, .theme-toggle, .seance-tabs button, .about-dot::before { border: 1px solid ButtonText; }
  .photo-credit { forced-color-adjust: none; }
  .section-alt::before { display: none; } /* photos de fond masquées */
}
