/* ==========================================================================
   Massage chez soi — massagechezsoi.ca
   Design system v0.1.0 — DA « boréal · chaleureux · rigoureux » (DA.md)
   Fondations 2026 : mobile-first (min-width seul), typo fluide clamp(),
   variable fonts auto-hébergées, dark mode natif, WCAG 2.2 (cibles 44 px,
   contraste 4,5:1), prefers-reduced-motion.
   Palette : sapin #302b28 · lin #f2edea · miel #75856a · brume #e0e3de
   ========================================================================== */

/* ---------- Polices variables (latin, auto-hébergées) ------------------- */
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-var-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Jetons ------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Couleurs — intentions (DA.md) */
  --taupe-profond: #302b28;        /* le bois taupe — confiance, calme */
  --taupe-fonce: #24201d;
  --taupe-nuit: #1a1816;
  --creme: #f2edea;          /* le foyer — chez soi */
  --creme-chaud: #f8f4f2;
  --sauge: #75856a;         /* la sauge — accents larges et CTA */
  --sauge-texte: #5f6b54;   /* miel assombri — accessible en petit corps */
  --brume: #e0e3de;        /* surfaces douces */
  --mousse: #545f4a;       /* halo froid du hero */

  --bg: var(--creme);
  --bg-surface: var(--creme-chaud);
  --bg-carte: #ffffff;
  --texte: #282421;
  --texte-doux: #514d4a;
  --accent: var(--sauge);
  --accent-texte: var(--sauge-texte);
  --ligne: #ddd6d1;
  --focus: #5a6650;

  /* Typo fluide (Utopia-like) */
  --step--1: clamp(0.875rem, 0.84rem + 0.18vw, 0.975rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.14rem);
  --step-1: clamp(1.19rem, 1.11rem + 0.4vw, 1.42rem);
  --step-2: clamp(1.42rem, 1.29rem + 0.65vw, 1.78rem);
  --step-3: clamp(1.7rem, 1.5rem + 1vw, 2.28rem);
  --step-4: clamp(2.03rem, 1.72rem + 1.55vw, 2.93rem);
  --step-5: clamp(2.42rem, 1.96rem + 2.3vw, 3.75rem);

  --espace-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.65rem);
  --espace-s: clamp(0.75rem, 0.68rem + 0.35vw, 0.95rem);
  --espace-m: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  --espace-l: clamp(1.8rem, 1.5rem + 1.5vw, 2.7rem);
  --espace-xl: clamp(2.8rem, 2.2rem + 3vw, 4.6rem);
  --espace-2xl: clamp(4rem, 3rem + 5vw, 7rem);

  --rayon: 14px;
  --rayon-l: 22px;
  --header-h: 72px;
  --largeur: 1240px;
}

/* Mode sombre : suit le système, SAUF choix explicite du visiteur mémorisé
   par la bascule de l'en-tête (html[data-theme], décision F. 2026-07-25).
   Chaque bloc sombre existe en deux sélecteurs : média (auto) + attribut. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--taupe-nuit);
    --bg-surface: #201c1a;
    --bg-carte: #25211e;
    --texte: #e5e0dc;
    --texte-doux: #b7bbb4;
    --accent: #96a38b;
    --accent-texte: #a5b19b;
    --ligne: #312d2b;
    --focus: #a5b19b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--taupe-nuit);
  --bg-surface: #201c1a;
  --bg-carte: #25211e;
  --texte: #e5e0dc;
  --texte-doux: #b7bbb4;
  --accent: #96a38b;
  --accent-texte: #a5b19b;
  --ligne: #312d2b;
  --focus: #a5b19b;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--texte);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 420;
}

/* Titres : Urbanist (choix Frédérique, étude de titres ronde 2 — lettre B).
   Graisses alignées sur la page d'étude approuvée : h1 640 · h2-h4 600. */
h1, h2, h3, h4 {
  font-family: "Urbanist", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--espace-s);
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 640; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 var(--espace-m); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-texte);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--texte); }

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

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

.conteneur {
  width: min(var(--largeur), 100% - 2.4rem);
  margin-inline: auto;
}

.visuellement-cache {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Lien d'évitement */
.evitement {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--taupe-profond);
  color: var(--creme);
  padding: 12px 20px;
  border-radius: 8px;
}
.evitement:focus { left: 8px; }

/* ---------- Boutons (cibles >= 48 px) ------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: var(--step-0);
  font-weight: 640;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primaire {
  background: var(--taupe-profond);
  color: var(--creme);
}
.btn-primaire:hover { background: var(--taupe-fonce); color: var(--creme); }

.btn-miel {
  background: var(--sauge);
  color: #fff;
}
.btn-miel:hover { background: color-mix(in oklab, var(--sauge) 84%, black); color: #fff; }

.btn-contour {
  background: transparent;
  color: var(--texte);
  border-color: currentColor;
}

.hero .btn-contour { color: var(--creme); }
.hero .btn-primaire { background: var(--creme); color: var(--taupe-nuit); }
.hero .btn-primaire:hover { background: #fff; color: var(--taupe-nuit); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .btn-primaire { background: var(--creme); color: var(--taupe-nuit); }
  html:not([data-theme="light"]) .btn-primaire:hover { background: #fff; color: var(--taupe-nuit); }
}
html[data-theme="dark"] .btn-primaire { background: var(--creme); color: var(--taupe-nuit); }
html[data-theme="dark"] .btn-primaire:hover { background: #fff; color: var(--taupe-nuit); }

/* ---------- En-tête ------------------------------------------------------ */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--ligne);
}
.entete-inner {
  display: flex;
  align-items: center;
  gap: var(--espace-m);
  min-height: var(--header-h);
  /* Compense le border-bottom 1px de .entete (observation F. 2026-07-27,
     choix A) : sans lui, l'œil compte le filet dans la marge basse (12 px
     au-dessus / 13 au-dessous) — avec, 12,5/12,5 filet compris, tous thèmes. */
  padding-top: 1px;
}
/* Logo v0.10.0 (décision F. 2026-07-26, cran T1) : icône cliente maison+main
   au trait SANS cadre (bitmap 512 px servi en mask CSS — background:
   currentColor => suit la couleur du wordmark, thèmes et pied compris),
   wordmark Manrope 700. Lockup T1 : icône 88 : texte 50 · espace 18 ·
   abaissé 3 -> en-tête : icône 46x44 · texte 26 px · espace 9 · abaissé 1.5. */
.marque {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--texte);
  text-decoration: none;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}
.marque .icone-logo {
  width: 46px;
  height: 44px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("../img/icone-logo.png") center / contain no-repeat;
  mask: url("../img/icone-logo.png") center / contain no-repeat;
}
.marque .marque-texte { transform: translateY(1.5px); white-space: nowrap; }

/* Bascule de thème — 2 états (lune en clair, soleil en sombre) */
.bascule-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ligne);
  border-radius: 50%;
  background: transparent;
  color: var(--texte);
  cursor: pointer;
  flex: none;
}
.bascule-theme:hover { background: var(--bg-surface); }
.bascule-theme svg { width: 22px; height: 22px; }
.bascule-theme .ic-soleil { display: none; }
html[data-theme="dark"] .bascule-theme .ic-lune { display: none; }
html[data-theme="dark"] .bascule-theme .ic-soleil { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .bascule-theme .ic-lune { display: none; }
  html:not([data-theme]) .bascule-theme .ic-soleil { display: block; }
}
@media (max-width: 480px) {
  /* petit écran : mêmes proportions, un cran plus compact — la bascule
     de thème + le menu doivent tenir avec la marque sur 393 px
     (relevés F. 2026-07-27 : 1.1rem/31x30 -> 1.2rem/34x33 -> 1.3rem/37x35) */
  .marque { font-size: 1.3rem; gap: 8px; }
  .marque .icone-logo { width: 37px; height: 35px; }
  .entete-inner { gap: 0.6rem; }
  /* Bascule + burger : taille de base 48x48 conservée sur mobile (choix F.
     2026-07-27, option A) — l'ancien cran 44px était une règle morte pour le
     burger (base déclarée plus loin dans la feuille = elle gagnait). */
  /* Wordmark remonté de 3 px À CE CRAN SEULEMENT (observation F. 2026-07-27,
     mesure d'encre : bande capitale ~3 px sous l'axe 36 des boutons) — le
     lockup desktop garde son « abaissé 1,5 » validé (T1). */
  .marque .marque-texte { transform: translateY(-1.5px); }
  /* Icône remontée de 3 px à ce cran (observation F. 2026-07-27, ajustée
     touche par touche : trop basse dans le lockup mobile après la remontée
     du wordmark). */
  .marque .icone-logo { transform: translateY(-3px); }
}

.nav-principale { margin-left: auto; }
.nav-principale ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 0.8vw, 0.9rem);
}
.nav-principale a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--texte);
  text-decoration: none;
  font-weight: 540;
  font-size: var(--step--1);
}
.nav-principale a:hover { background: var(--brume); color: var(--taupe-profond); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .nav-principale a:hover { background: var(--bg-surface); color: var(--creme); }
}
html[data-theme="dark"] .nav-principale a:hover { background: var(--bg-surface); color: var(--creme); }
.nav-principale a[aria-current="page"] {
  color: var(--accent-texte);
  font-weight: 680;
}
.nav-cta { margin-left: 0.4rem; }
.nav-cta .btn { min-height: 44px; padding: 8px 20px; font-size: var(--step--1); }
/* CTA de l'en-tête — contraste WCAG (correctif 2026-07-27, go F.) : le sauge
   moyen (--sauge) ne peut porter AUCUN texte à 4,5:1 (mesuré : taupe 3,89,
   blanc 4,05). Fond --sauge-texte + crème = 5,07:1. Scopé et placé APRÈS la
   règle [aria-current] : .nav-principale a écrasait la couleur de .btn-miel
   (spécificité) — c'est la cause du texte taupe servi. Le hover reste celui
   de la nav (brume + taupe, contraste élevé — comportement déjà servi). */
.nav-principale .nav-cta a {
  background: var(--sauge-texte);
  color: var(--creme);
}

.bouton-menu {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  background: transparent;
  color: var(--texte);
  cursor: pointer;
}
.bouton-menu svg { width: 24px; height: 24px; }
.bouton-menu .icone-fermer { display: none; }

/* Mobile d'abord : nav repliée */
@media (max-width: 919.98px) {
  .nav-principale {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--ligne);
    box-shadow: 0 18px 40px rgb(26 24 22 / 0.14);
    padding: var(--espace-s) 1.2rem var(--espace-m);
  }
  .nav-principale ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-principale a { min-height: 48px; font-size: var(--step-0); }
  .nav-cta { margin: 0.6rem 0 0; }
  .nav-cta .btn { width: 100%; min-height: 48px; }
  .nav-ouverte .nav-principale { display: block; }
  .nav-ouverte .bouton-menu .icone-menu { display: none; }
  .nav-ouverte .bouton-menu .icone-fermer { display: block; }
  /* nav absolue sur mobile : la bascule de thème reprend la poussée à droite
     et le burger DOIT perdre son auto de base — deux marges auto se partagent
     l'espace libre et font flotter la bascule au milieu (observation F.
     2026-07-27, choix A) : le duo bascule+burger se groupe au bord droit. */
  .bascule-theme { margin-left: auto; }
  .bouton-menu { margin-left: 0; }
}
@media (min-width: 920px) {
  .bouton-menu { display: none; }
}

/* ---------- Hero (accueil) ----------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, color-mix(in oklab, var(--mousse) 55%, var(--taupe-nuit)) 0%, transparent 60%),
    linear-gradient(160deg, #282421 0%, var(--taupe-nuit) 62%, #151312 100%);
  color: var(--creme);
  padding: calc(var(--espace-xl)) 0 var(--espace-xl);
}
.hero::after {
  /* grain — la matière, pas l'aplat */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
}
.halo {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(78px);
  opacity: 0.5;
  pointer-events: none;
}
.halo-mousse {
  width: 520px; height: 520px;
  background: var(--mousse);
  top: -160px; right: -90px;
  animation: derive-a 18s ease-in-out infinite alternate;
}
.halo-miel {
  width: 420px; height: 420px;
  background: var(--sauge);
  bottom: -130px; left: -60px;
  opacity: 0.44;
  animation: derive-b 14s ease-in-out infinite alternate;
}
/* Halo sauge du hero : pseudo-élément, PAS un div. Le rectangle du div
   débordait de 130 px sous le hero (le rendu, lui, est rogné par
   overflow: hidden) et axe — qui raisonne sur les rectangles, sans le
   blur ni le rognage — le mélangeait au fond de la section suivante :
   échec color-contrast 3,01:1 théorique (rendu réel conforme, 5,07:1).
   Un pseudo-élément n'entre pas dans la grille axe ; rendu identique
   prouvé au pixel (delta max 3/255). Ne pas reconvertir en div. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(78px);
  pointer-events: none;
  width: 420px; height: 420px;
  background: var(--sauge);
  bottom: -130px; left: -60px;
  opacity: 0.44;
  animation: derive-b 14s ease-in-out infinite alternate;
}
@keyframes derive-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-70px, 46px, 0) scale(1.13); }
}
@keyframes derive-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, -40px, 0) scale(1.1); }
}

.hero-grille {
  display: grid;
  gap: var(--espace-l);
  align-items: center;
}
@media (min-width: 920px) {
  .hero-grille { grid-template-columns: 1.15fr 0.85fr; gap: var(--espace-xl); }
}

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--step--1);
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--sauge) 72%, white);
  margin-bottom: var(--espace-s);
}
.surtitre::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* LE PARI — le titre qui respire (Urbanist n'a que l'axe wght : la
   respiration se joue sur la graisse seule, centrée sur le 640 du h1) */
.titre-respire {
  color: var(--creme);
  animation: respiration 7s ease-in-out infinite alternate;
}
@keyframes respiration {
  from { font-weight: 680; }
  to { font-weight: 600; }
}
.titre-respire .mot-miel {
  background: linear-gradient(100deg, #ceb5a4 0%, var(--sauge) 45%, #7e8974 80%, #ceb5a4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-texte { max-width: 34em; font-size: var(--step-1); color: #d8d9cf; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-s);
  margin-top: var(--espace-l);
}
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: var(--espace-m);
  font-size: var(--step--1);
  color: #bdc0ba;
}
/* Lien « gant blanc » (décision F. 2026-07-26) : la ligne entière mène au hub
   Villes, apparence STRICTEMENT identique à la note — aucun indice visuel au
   repos ni au survol (les chemins visibles vers villes.html existent ailleurs :
   nav, section territoire, pied). Seuls restent le curseur natif et le
   :focus-visible global (clavier). */
a.hero-note,
a.hero-note:hover {
  color: #bdc0ba;
  text-decoration: none;
}
.pastille-pouls {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sauge);
  box-shadow: 0 0 0 0 rgb(117 133 106 / 0.55);
  animation: pouls 2.6s ease-out infinite;
  flex: none;
}
@keyframes pouls {
  70% { box-shadow: 0 0 0 12px rgb(117 133 106 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(117 133 106 / 0); }
}

/* Slot visuel du hero — <picture> quand le master arrive ; d'ici là,
   composition riche (dégradé multi-arrêts + grain hérité + lueur) */
.hero-visuel {
  position: relative;
  min-height: clamp(300px, 44vw, 520px);
  border-radius: var(--rayon-l);
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M26 5C15 5 7.5 10 6 20c-.6 4 .6 7 .6 7s1-2.6 3.4-3.4C18 21 24 15 26 5Z' fill='%2375856a' fill-opacity='.2'/%3E%3Cpath d='M7 26c4-9 10-14 17-18' stroke='%23f2edea' stroke-opacity='.28' stroke-width='.9' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 118% -14% / 78% auto,
    radial-gradient(80% 60% at 70% 18%, rgb(227 220 216 / 0.22) 0%, transparent 58%),
    radial-gradient(95% 85% at 16% 92%, rgb(117 133 106 / 0.42) 0%, transparent 56%),
    linear-gradient(150deg, #524943 0%, #332e2a 46%, #221e1c 100%);
  border: 1px solid rgb(242 237 234 / 0.14);
  box-shadow: 0 34px 70px rgb(14 13 12 / 0.45);
}
.hero-visuel img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Détail-signature : carte glass posée sur le hero — en HAUT du visuel :
   le bas de la photo montre la table de massage (le cœur du message),
   elle ne doit jamais être recouverte (demande F. 2026-07-25) */
.carte-certif {
  position: absolute;
  left: clamp(10px, 3vw, 26px);
  top: clamp(10px, 3vw, 26px);
  right: clamp(10px, 12vw, 40%);
  /* glass SOMBRE (sapin) : en haut, le fond photo est clair (rideau,
     fenêtre) — le texte lin doit garder son contraste */
  background: rgb(34 30 28 / 0.52);
  border: 1px solid rgb(242 237 234 / 0.25);
  border-radius: var(--rayon);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  padding: 14px 18px;
  color: var(--creme);
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 14px 34px rgb(14 13 12 / 0.35);
}
.carte-certif .feuille { width: 34px; height: 34px; flex: none; }
.carte-certif strong {
  display: block;
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 620;
  line-height: 1.25;
}
.carte-certif span { font-size: 0.86rem; color: #cfd2cd; display: block; line-height: 1.3; }

/* ---------- Sections ------------------------------------------------------ */
.section { padding: var(--espace-2xl) 0; }
.section-surface { background: var(--bg-surface); border-block: 1px solid var(--ligne); }
.section-sapin {
  background: linear-gradient(165deg, var(--taupe-profond) 0%, var(--taupe-nuit) 90%);
  color: var(--creme);
}
.section-sapin h2, .section-sapin h3 { color: var(--creme); }
.section-sapin p { color: #cdd0ca; }
.section-sapin a { color: #d0b9a9; }
.section-sapin a:hover { color: var(--creme); }

.entete-section { max-width: 46em; margin-bottom: var(--espace-l); }
.entete-section .surtitre { color: var(--accent-texte); }
.entete-section p { color: var(--texte-doux); font-size: var(--step-1); }
.section-sapin .entete-section .surtitre { color: #a5b19b; }
.section-sapin .entete-section p { color: #cdd0ca; }

/* ---------- Cartes / grilles (container queries) -------------------------- */
.grille { display: grid; gap: var(--espace-m); container-type: inline-size; }
.grille-2 { grid-template-columns: 1fr; }
.grille-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grille-2 { grid-template-columns: 1fr 1fr; }
  .grille-3 { grid-template-columns: repeat(3, 1fr); }
}
/* rythme asymétrique : la 1re carte des duos pèse plus lourd */
@media (min-width: 920px) {
  .grille-asym { grid-template-columns: 1.25fr 1fr; }
}

.carte {
  background: var(--bg-carte);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-l);
  padding: var(--espace-l);
  box-shadow: 0 10px 30px rgb(40 36 33 / 0.06);
  position: relative; /* ancre du lien étendu ci-dessous */
}
.carte h3 { font-size: var(--step-2); }
.carte .lien-carte {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.4em;
  font-weight: 640;
  text-decoration: none;
}
.carte .lien-carte::after { content: "→"; transition: transform 0.18s ease; }
.carte .lien-carte:hover::after { transform: translateX(4px); }
/* Gant blanc (décision F. 2026-07-26) : les soins sont le cœur du site — la
   carte ENTIÈRE mène à sa page, pas seulement le lien. Le ::before du lien
   existant s'étend sur la carte (le ::after porte la flèche) : cible pleine
   carte, markup et apparence inchangés, et le survol de la carte anime la
   flèche puisque c'est le même <a>. */
.carte .lien-carte::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--rayon-l);
}

.etiquette {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-texte);
  background: color-mix(in oklab, var(--sauge) 13%, var(--bg-carte));
  border: 1px solid color-mix(in oklab, var(--sauge) 30%, var(--bg-carte));
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: var(--espace-s);
}

/* Étapes (déroulement) */
.etapes { counter-reset: etape; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-m); }
@media (min-width: 720px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
.etapes li {
  counter-increment: etape;
  background: var(--bg-carte);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: var(--espace-m);
}
.etapes li::before {
  content: counter(etape, decimal-leading-zero);
  display: block;
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: var(--step-3);
  font-weight: 500;
  color: var(--accent-texte);
  margin-bottom: 0.35rem;
}
.etapes h3 { font-size: var(--step-0); font-family: "Mulish", sans-serif; font-weight: 700; font-variation-settings: normal; }
.etapes p { font-size: var(--step--1); color: var(--texte-doux); margin: 0; }

/* ---------- Tableau des tarifs -------------------------------------------- */
.table-defilement { overflow-x: auto; }
.tarifs {
  width: 100%;
  /* separate, pas collapse : border-collapse: collapse casse le
     border-radius — les fonds des cellules d'angle débordent en carré
     derrière les coins ronds (signalement F. 2026-07-25) */
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-carte);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-l);
  overflow: hidden;
}
.tarifs th, .tarifs td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--ligne);
  font-size: var(--step-0);
}
.tarifs th {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--texte-doux);
  background: var(--bg-surface);
}
.tarifs tr:last-child td { border-bottom: 0; }
.tarifs tfoot td {
  background: var(--bg-surface);
  color: var(--texte-doux);
  font-size: var(--step--1);
  border-top: 1px solid var(--ligne);
  border-bottom: 0;
}
.tarifs .prix {
  /* 700 : la graisse « chiffres » de la page d'étude approuvée */
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--texte);
  white-space: nowrap;
}

/* ---------- Listes de villes ---------------------------------------------- */
.villes-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.villes-liste a, .villes-liste span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  background: var(--bg-carte);
  color: var(--texte);
  text-decoration: none;
  font-weight: 540;
  font-size: var(--step--1);
}
.villes-liste a:hover { border-color: var(--sauge); color: var(--accent-texte); }
.villes-liste .a-venir { color: var(--texte-doux); border-style: dashed; }

/* ---------- FAQ ------------------------------------------------------------ */
.faq-item {
  background: var(--bg-carte);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  margin-bottom: var(--espace-s);
  padding: 4px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 660;
  font-size: var(--step-0);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent-texte); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-reponse { padding: 0 22px 18px; color: var(--texte-doux); }

/* ---------- Formulaire ------------------------------------------------------ */
.formulaire { display: grid; gap: var(--espace-s); }
@media (min-width: 720px) {
  .formulaire { grid-template-columns: 1fr 1fr; }
  .formulaire .pleine-largeur { grid-column: 1 / -1; }
}
.champ label {
  display: block;
  font-weight: 640;
  font-size: var(--step--1);
  margin-bottom: 6px;
}
.champ input, .champ textarea, .champ select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font: inherit;
  color: var(--texte);
  background: var(--bg-carte);
  border: 1px solid var(--ligne);
  border-radius: 10px;
}
.champ textarea { min-height: 160px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.champ-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-etat { font-weight: 640; min-height: 1.4em; }
.form-etat.ok { color: #2e7d4f; }
.form-etat.erreur { color: #b3402e; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .form-etat.ok { color: #7fce9f; }
  html:not([data-theme="light"]) .form-etat.erreur { color: #f09b8a; }
}
html[data-theme="dark"] .form-etat.ok { color: #7fce9f; }
html[data-theme="dark"] .form-etat.erreur { color: #f09b8a; }

/* ---------- Bandeau CTA ------------------------------------------------------ */
.bandeau-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(150deg, #3a3430 0%, var(--taupe-nuit) 100%);
  color: var(--creme);
  text-align: center;
  padding: var(--espace-xl) 0;
}
.bandeau-cta h2 { color: var(--creme); }
.bandeau-cta p { color: #cdd0ca; max-width: 38em; margin-inline: auto; }
.bandeau-cta .hero-actions { justify-content: center; }
.bandeau-cta .halo-miel { opacity: 0.22; }
/* fond sapin nuit : mêmes traitements que le hero — bouton contour en lin
   (sinon texte et bordure sombres sur fond sombre, invisible), bouton
   primaire inversé (fond lin — la pilule sapin ressortait peu) */
.bandeau-cta .btn-contour { color: var(--creme); }
.bandeau-cta .btn-primaire { background: var(--creme); color: var(--taupe-nuit); }
.bandeau-cta .btn-primaire:hover { background: #fff; color: var(--taupe-nuit); }

.tel-geant {
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: var(--step-4);
  font-weight: 700;
  color: var(--creme);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  border-bottom: 4px solid var(--sauge);
  padding-bottom: 4px;
}
.tel-geant:hover { color: #fff; }

/* ---------- Pied de page ------------------------------------------------------ */
.pied {
  background: var(--taupe-nuit);
  color: #c6c9c4;
  padding: var(--espace-xl) 0 var(--espace-l);
  font-size: var(--step--1);
}
.pied-grille { display: grid; gap: var(--espace-l); }
@media (min-width: 720px) { .pied-grille { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.pied h2 {
  color: var(--creme);
  font-size: var(--step-0);
  font-family: "Mulish", sans-serif;
  font-variation-settings: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pied a { color: #d8ddd0; }
.pied a:hover { color: #fff; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 8px; }
.pied .marque { color: var(--creme); margin-bottom: 0.6rem; }
.pied-villes { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pied-villes li { margin: 0; }
.pied-base {
  border-top: 1px solid #312d2a;
  margin-top: var(--espace-l);
  padding-top: var(--espace-m);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: #9da299;
}
.pied-base a { color: #9da299; }
.pied-base a:hover { color: var(--creme); }

/* ---------- Bandeau ambiance (territoire) --------------------------------------- */
.figure-ambiance { margin: 0 0 var(--espace-l); }
.figure-ambiance img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--rayon-l);
  border: 1px solid var(--ligne);
  box-shadow: 0 18px 44px rgb(40 36 33 / 0.14);
}

/* ---------- Figure de soin (pages services / déroulement) ---------------------- */
.figure-soin { margin: 0 0 var(--espace-l); max-width: 720px; }
.figure-soin img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--rayon-l);
  border: 1px solid var(--ligne);
  box-shadow: 0 18px 44px rgb(40 36 33 / 0.14);
}

/* ---------- Portrait & signature ---------------------------------------------- */
.portrait-cadre { margin: 0; }
.portrait-cadre img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--rayon-l);
  border: 1px solid var(--ligne);
  box-shadow: 0 22px 50px rgb(40 36 33 / 0.18);
}
.portrait-cadre figcaption {
  font-size: var(--step--1);
  color: var(--texte-doux);
  margin-top: 10px;
}

.signature-pro {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: var(--espace-l);
}
.signature-pro picture {
  /* La <picture> est l'enfant flex : c'est ELLE qui porte la taille et refuse
     de rétrécir — sinon l'img (hauteur fixe + max-width:100%) s'ovalise. */
  flex: none;
  width: 112px;
  height: 112px;
  display: block;
}
.signature-pro .avatar-rond {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sauge);
  box-shadow: 0 10px 26px rgb(14 13 12 / 0.4);
}
.signature-pro strong {
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: var(--step-1);
  font-weight: 640;
  color: var(--creme);
}
.signature-pro span { color: #cdd0ca; font-size: var(--step--1); }

/* ---------- Fil d'Ariane ------------------------------------------------------ */
.ariane { padding: var(--espace-m) 0 0; font-size: var(--step--1); color: var(--texte-doux); }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0; padding: 0; }
.ariane li + li::before { content: "›"; margin-right: 0.5em; color: var(--texte-doux); }
.ariane a { color: var(--texte-doux); }

/* ---------- Page interne : en-tête ----------------------------------------- */
.entete-page { padding: var(--espace-xl) 0 var(--espace-l); }
/* Surtitre sur fond CLAIR : l'accent lisible (5,07:1), pas le mélange pâle
   de .surtitre conçu pour le hero sombre (2,19:1 sur crème — correctif
   2026-07-27, go F. ; même traitement que .entete-section .surtitre). */
.entete-page .surtitre { color: var(--accent-texte); }
.entete-page h1 { font-size: var(--step-4); max-width: 20em; }
.entete-page .intro { font-size: var(--step-1); color: var(--texte-doux); max-width: 38em; }

/* ---------- Prose ---------------------------------------------------------------
   Plafonner les ENFANTS (pas le conteneur) : .conteneur garde sa largeur et son
   centrage de page, la colonne de lecture reste alignée à gauche sous l'en-tête. */
.prose > * { max-width: 44em; }
.prose > .figure-soin { max-width: 720px; }
.prose h2 { margin-top: var(--espace-l); font-size: var(--step-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }

/* ---------- Mouvement réduit --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .titre-respire { animation: none; font-weight: 640; }
  .halo-mousse, .halo-miel, .hero::before, .pastille-pouls { animation: none; }
  .btn:hover { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Impression ----------------------------------------------------------- */
@media print {
  .entete, .pied, .bandeau-cta, .bouton-menu { display: none; }
  body { background: #fff; color: #000; }
}
