/* =========================================================
   Modèle « Élan » — pop et énergique
   (coaching, kinésiologie, enfants et ados)
   Unbounded + DM Sans ; jaune soleil, encre, crème, bleu vif, rose ;
   ruban de mots qui défile, autocollant qui tourne, coups de feutre
   sous les mots, flèche qui rebondit, cartes inclinées qui se
   redressent au survol, ombres franches décalées.
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  /* Couleur principale (modifiable depuis l'espace client) */
  --accent: #2F4BFF;

  /* Palette fixe du modèle */
  --jaune: #FFD23F;
  --encre: #17171C;
  --creme: #FFFBF2;          /* fond de page */
  --blanc: #FFFFFF;
  --rose: #FF8FB1;
  --texte-doux: #4A4844;     /* texte secondaire : 7.4:1 sur crème, 6.3:1 sur jaune */
  --gris-nuit: #D8D6CF;      /* texte secondaire sur l'encre (12.3:1) */

  /* Couleurs dérivées de --accent (repli si la syntaxe relative n'est pas reconnue) */
  --accent-texte: color-mix(in srgb, var(--accent) 78%, var(--encre));
  --accent-encre: #FFFFFF;
  --accent-titre: var(--accent);

  /* Rôles des couleurs (reliés aux jetons --p-* dans :root[data-couleurs]) */
  --titre: var(--encre);
  --trait: var(--encre);                 /* bords des cartes */
  --ombre: var(--encre);                 /* ombres franches */
  --soleil: var(--jaune);                /* hero, en-tête, cabinet (portent du texte) */
  --soleil-texte: var(--encre);
  --soleil-doux: var(--texte-doux);
  --nuit: var(--encre);                  /* séances, ruban, pied de page */
  --sur-nuit: var(--creme);
  --sur-nuit-doux: var(--gris-nuit);
  --carte-1: var(--jaune);               /* cartes des séances (sur la nuit) */
  --carte-2: var(--creme);
  --carte-3: var(--rose);
  --carte-texte: var(--encre);
  --bulle-1: var(--jaune);  --bulle-1-texte: var(--encre);
  --bulle-2: var(--rose);   --bulle-2-texte: var(--encre);
  --bulle-3: var(--accent); --bulle-3-texte: var(--accent-encre);
  --ombre-1: var(--jaune);
  --ombre-2: var(--rose);
  --ombre-3: var(--accent);
  --feutre: var(--jaune);                /* coup de feutre sous un mot, sur fond clair */
  --feutre-nuit: var(--jaune);
  --feutre-soleil: var(--encre);
  --etoile-1: var(--jaune);
  --etoile-2: var(--rose);
  --sticker: var(--rose);
  --sticker-texte: var(--encre);
  --pastille: var(--blanc);
  --pastille-texte: var(--encre);
  --pastille-foncee: var(--encre);
  --pastille-foncee-texte: var(--jaune);
  --danger: #B42318;         /* erreurs : 6.4:1 sur crème */
  --champ-bord: var(--encre);

  /* Illustrations de la galerie (en attendant les photos) */
  --ge-creme: #FFF4DA;
  --ge-ciel: #CFE0FF;
  --ge-rose-pale: #FFE1EA;
  --ge-vert: #4FBF8B;

  /* Plan d'accès */
  --plan-fond: #FFF1C2;
  --plan-route: #FFFFFF;
  --plan-bati: #F6D987;
  --plan-vert: #BFE3C8;
  --plan-eau: #9DB8FF;
  --plan-trait: var(--encre);
  --plan-clair: #FFFFFF;
  --plan-repere-centre: #FFFFFF;

  /* Typographie */
  --f-titre: "Unbounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-texte: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --poids-titre: 800;
  --poids-titre-2: 700;      /* sous-titres (h3), noms */

  /* Mise en page */
  --largeur: 1180px;
  --gouttiere: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 96px);
  --rayon: 24px;
  --rebond: cubic-bezier(.3, 1.5, .5, 1);
}

/* Accent foncé et encre du bouton calculés depuis --accent :
   restent lisibles quelle que soit la couleur choisie */
@supports (color: oklch(from red l c h)) {
  :root {
    --accent-texte: oklch(from var(--accent) min(l, 0.5) c h);
    --accent-encre: oklch(from var(--accent) clamp(0.2, (0.66 - l) * 999, 1) 0 h);
  }
}

/* ---------- Personnalisation (assets/js/theme.js) ----------
   Couleurs choisies par le thérapeute : theme.js pose data-couleurs="clair|sombre"
   sur <html> et calcule les jetons --p-* (contrastes vérifiés). Les fonds qui portent
   du texte (jaune, nuit, cartes) sont reliés à des jetons vérifiés ; les teintes de
   décor (ombres, étoiles, feutre) suivent l'accent.
   Sans cet attribut, le modèle garde exactement ses couleurs d'origine. */
:root[data-couleurs] {
  --accent: var(--p-accent);
  --creme: var(--p-fond);
  --blanc: var(--p-surface);
  --encre: var(--p-texte);
  --texte-doux: var(--p-texte-doux);
  --accent-texte: var(--p-accent-texte);
  --accent-encre: var(--p-accent-ink);
  --accent-titre: var(--p-accent-texte);

  --titre: var(--p-texte);
  --trait: var(--p-texte);
  --ombre: var(--p-texte);
  --soleil: var(--p-bande);
  --soleil-texte: var(--p-texte);
  --soleil-doux: var(--p-texte-doux);
  --nuit: var(--p-fonce);
  --sur-nuit: var(--p-sur-fonce);
  --sur-nuit-doux: var(--p-sur-fonce-doux);
  --carte-1: var(--p-bande);
  --carte-2: var(--p-fond);
  --carte-3: var(--p-surface);
  --carte-texte: var(--p-texte);
  --bulle-1: var(--p-bande);   --bulle-1-texte: var(--p-texte);
  --bulle-2: var(--p-surface); --bulle-2-texte: var(--p-texte);
  --bulle-3: var(--p-accent);  --bulle-3-texte: var(--p-accent-ink);
  --ombre-1: var(--p-accent);
  --ombre-2: color-mix(in oklab, var(--p-accent) 45%, var(--p-fond));
  --ombre-3: var(--p-texte);
  --feutre: color-mix(in oklab, var(--p-accent) 55%, var(--p-fond));
  --feutre-nuit: var(--p-accent-sur-fonce);
  --feutre-soleil: var(--p-accent-texte);
  --etoile-1: var(--p-accent-sur-fonce);
  --etoile-2: var(--p-sur-fonce-doux);
  --sticker: var(--p-accent);
  --sticker-texte: var(--p-accent-ink);
  --pastille: var(--p-surface);
  --pastille-texte: var(--p-texte);
  --pastille-foncee: var(--p-fonce);
  --pastille-foncee-texte: var(--p-sur-fonce);
  --danger: var(--p-danger);
  --champ-bord: color-mix(in srgb, var(--p-texte) 70%, var(--p-surface));

  --ge-creme: color-mix(in oklab, var(--p-bande) 80%, var(--p-surface));
  --ge-ciel: color-mix(in oklab, #9DB8FF 30%, var(--p-surface));
  --ge-rose-pale: color-mix(in oklab, var(--p-accent) 14%, var(--p-surface));
  --ge-vert: color-mix(in oklab, #4FBF8B 75%, var(--p-surface));

  --plan-fond: var(--p-bande);
  --plan-route: var(--p-surface);
  --plan-bati: color-mix(in oklab, var(--p-bande) 80%, var(--p-texte));
  --plan-vert: color-mix(in oklab, #8FC79E 40%, var(--p-bande));
  --plan-eau: color-mix(in oklab, #7F9FEF 50%, var(--p-bande));
  --plan-trait: var(--p-texte);
  --plan-clair: var(--p-fond);
  --plan-repere-centre: var(--p-accent-ink);
}
/* Ambiances sombres : traits adoucis, ombres plus sombres que le fond */
:root[data-couleurs="sombre"] {
  color-scheme: dark;
  --trait: color-mix(in oklab, var(--p-texte) 62%, var(--p-fond));
  --ombre: color-mix(in oklab, var(--p-fonce) 55%, #000);
  --ombre-3: color-mix(in oklab, var(--p-fonce) 55%, #000);
  --ombre-2: color-mix(in oklab, var(--p-accent) 40%, var(--p-fond));
  --feutre: color-mix(in oklab, var(--p-accent) 70%, var(--p-fond));
  --ge-creme: color-mix(in oklab, var(--p-sur-fonce) 80%, var(--p-surface));
  --plan-route: color-mix(in oklab, var(--p-bande) 76%, var(--p-texte));
  --plan-bati: color-mix(in oklab, var(--p-bande) 55%, var(--p-fonce));
}

/* Police choisie par le thérapeute (titres + texte) */
:root[data-police] {
  --f-titre: var(--p-police-titres);
  --f-texte: var(--p-police-texte);
  --poids-titre: var(--p-poids-titres);
  --poids-titre-2: var(--p-poids-titres);
  font-synthesis-weight: none;             /* pas de faux gras */
}
:root[data-police] :is(h1, h2) { letter-spacing: 0; }

/* Texte agrandi */
:root[data-taille="grande"] { font-size: 112.5%; }
:root[data-taille="grande"] :is(.bouton, .bouton-entete) { max-width: 100%; white-space: normal; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-family: var(--f-titre); color: var(--titre); }
h1, h2 { font-weight: var(--poids-titre); }
h3 { font-weight: var(--poids-titre-2); }
h2 {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-texte); }
a:hover { color: var(--encre); }
:focus-visible {
  outline: 3px solid var(--accent-texte);
  outline-offset: 3px;
  border-radius: 6px;
}

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.lien-evitement {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--blanc);
  color: var(--encre);
  padding: 10px 16px;
  border: 2px solid var(--trait);
  border-radius: 12px;
  font-weight: 700;
}
.lien-evitement:focus { top: 12px; }

.sr-texte {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Boutons : ombre franche qui se tasse au clic ---------- */
.bouton,
.rdv-widget .agenda-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 15px 28px;
  border: 2px solid var(--trait);
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-encre);
  font-family: var(--f-texte);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ombre);
  transition: translate .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.bouton:hover,
.rdv-widget .agenda-bouton:hover { color: var(--accent-encre); translate: -2px -2px; box-shadow: 7px 7px 0 var(--ombre); }
.bouton:active,
.rdv-widget .agenda-bouton:active { translate: 3px 3px; box-shadow: 2px 2px 0 var(--ombre); }
.bouton-clair { background: var(--blanc); color: var(--encre); box-shadow: none; }
.bouton-clair:hover { color: var(--encre); box-shadow: 5px 5px 0 var(--ombre); }

/* ---------- Message important (rubrique en plus) ---------- */
.module-bandeau {
  background: var(--nuit);
  color: var(--sur-nuit);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.45;
}
.module-bandeau p { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin: 0; padding-block: 10px; }
.module-bandeau svg { width: 16px; height: 16px; flex: none; margin-top: .16em; color: var(--etoile-1); }
.module-bandeau span { min-width: 0; overflow-wrap: break-word; }

/* ---------- En-tête (sur le jaune du hero) ---------- */
.entete { background: var(--soleil); color: var(--soleil-texte); }
.entete-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: 18px; }
.marque { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--soleil-texte); text-decoration: none; }
.marque:hover { color: var(--soleil-texte); }
.marque-pastille {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--pastille-foncee);
  color: var(--pastille-foncee-texte);
  font-family: var(--f-titre);
  font-weight: var(--poids-titre);
  font-size: .9375rem;
  line-height: 1;
  rotate: -6deg;
  transition: rotate .4s var(--rebond);
}
.marque:hover .marque-pastille { rotate: 6deg; }
.marque-textes { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.marque-nom {
  font-family: var(--f-titre);
  font-weight: var(--poids-titre-2);
  font-size: 1.0625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.marque-metier { font-size: .8125rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 26px); margin: 0; padding: 0; list-style: none; }
.nav a {
  color: var(--soleil-texte);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  padding-block: 6px;
  background: linear-gradient(var(--soleil-texte), var(--soleil-texte)) 0 100% / 0 3px no-repeat;
  transition: background-size .25s ease;
}
.nav a:hover { background-size: 100% 3px; }
.bouton-entete {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 14px;
  background: var(--pastille-foncee);
  color: var(--pastille-foncee-texte);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--accent);
  transition: translate .2s ease, box-shadow .2s ease;
}
.bouton-entete:hover { color: var(--pastille-foncee-texte); translate: -2px -2px; box-shadow: 6px 6px 0 var(--accent); }
.bouton-entete .court { display: none; }
:root:not([data-couleurs]) .bouton-entete { color: #FFFFFF; }   /* maquette : texte blanc sur l'encre */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--soleil);
  color: var(--soleil-texte);
  padding-top: clamp(20px, 4vw, 48px);
}
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(32px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 56px); }
.hero-texte { flex: 1 1 560px; min-width: 0; position: relative; z-index: 1; }
.hero-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; font-size: .875rem; font-weight: 700; line-height: 1.3; }
.hero-pastilles span { padding: 6px 14px; border-radius: 999px; background: var(--pastille); color: var(--pastille-texte); }
.hero-pastilles .pastille-foncee { background: var(--pastille-foncee); color: var(--pastille-foncee-texte); }
.hero-titre {
  font-size: clamp(2.375rem, 6.4vw, 4.875rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--soleil-texte);
  overflow-wrap: break-word;               /* filet de sécurité si le script d'ajustement ne tourne pas */
}
.hero-titre[data-longueur="moyen"] { font-size: clamp(2.125rem, 5vw, 3.75rem); }
.hero-titre[data-longueur="long"] { font-size: clamp(1.75rem, 3.8vw, 2.875rem); line-height: 1.12; }
.hero-titre.mesure { overflow-wrap: normal; }
.hero-nom-repli { display: none; }
.hero-accroche:empty + .hero-nom-repli,
.hero-titre > .hero-nom-repli:first-child { display: inline; }
.mot-cle { position: relative; display: inline-block; color: var(--accent-titre); }
.marqueur { position: absolute; left: 0; bottom: -.14em; width: 100%; height: .3em; overflow: visible; pointer-events: none; }
.marqueur path { fill: none; stroke: var(--feutre-soleil); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 420; animation: e-trace 1.4s ease-out .7s both; }
.hero-intro { margin: 30px 0 0; max-width: 32em; font-size: 1.1875rem; font-weight: 500; color: var(--soleil-texte); }
.hero-boutons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Portrait incliné et autocollant qui tourne */
.hero-visuel { position: relative; flex: 0 1 320px; min-width: 0; display: flex; justify-content: center; padding: 36px 0 12px 36px; }
.portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: min(300px, 70vw);
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border: 2px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--carte-3);
  box-shadow: 8px 8px 0 var(--ombre-3);
  rotate: 3deg;
  animation: e-saute .9s cubic-bezier(.2, .8, .3, 1.2) .25s both;
  transition: rotate .4s var(--rebond);
}
.portrait:hover { rotate: 0deg; }
:root:not([data-couleurs]) .portrait { background-color: var(--rose); }
.portrait-initiales {
  font-family: var(--f-titre);
  font-weight: var(--poids-titre);
  font-size: clamp(4rem, 9vw, 6rem);
  line-height: 1;
  color: var(--carte-texte);
}
.portrait.has-photo .portrait-initiales { display: none; }
.portrait:not(.has-photo)::after { content: "✦"; position: absolute; right: 18px; bottom: 12px; font-size: 2.25rem; line-height: 1; color: var(--accent); animation: e-scintille 4s ease-in-out infinite; }
:root[data-couleurs] .portrait:not(.has-photo)::after { color: var(--accent-texte); }
.sticker {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: clamp(130px, 14vw, 168px);
  aspect-ratio: 1;
}
.sticker-etoile { position: absolute; inset: 0; width: 100%; height: 100%; animation: e-tourne 16s linear infinite; }
.sticker-etoile path { fill: var(--sticker); stroke: var(--trait); stroke-width: 4; stroke-linejoin: round; }
.sticker-texte {
  position: absolute;
  inset: 27%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sticker-texte);
  animation: e-balance 3s ease-in-out infinite;
}
.sticker-texte strong { display: flex; flex-direction: column; font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1; }
.sticker-texte span { font-size: .6875rem; font-weight: 700; line-height: 1.2; margin-top: 3px; }
.sticker-texte strong span { font-size: inherit; margin: 0; }
.sticker:not(:has([data-show]:not([hidden]))) { display: none; }

.hero-suite { position: relative; z-index: 3; display: flex; justify-content: center; padding-bottom: 46px; }
.fleche {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pastille-foncee);
  color: var(--pastille-foncee-texte);
  animation: e-rebond 1.6s ease-in-out infinite;
}
.fleche svg { width: 20px; height: 20px; }

/* Ruban de mots incliné : le cadre coupe ce qui dépasse (jamais de défilement horizontal) */
.ruban-cadre { position: relative; z-index: 2; overflow: hidden; margin-top: -46px; padding-block: 24px; }
.ruban { margin-inline: -40px; padding: 18px 0; background: var(--nuit); color: var(--sur-nuit); rotate: -1.5deg; }
.ruban-piste {
  display: flex;
  gap: 40px;
  width: max-content;
  font-family: var(--f-titre);
  font-weight: var(--poids-titre-2);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.2;
  white-space: nowrap;
  animation: e-defile 26s linear infinite;
}
.etoile-1 { color: var(--etoile-1); }
.etoile-2 { color: var(--etoile-2); }

@keyframes e-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes e-tourne { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes e-rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes e-trace { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes e-saute { 0% { opacity: 0; transform: translateY(30px) rotate(-4deg); } 60% { opacity: 1; transform: translateY(-6px) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes e-balance { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes e-scintille { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(20deg); } }
.saute { animation: e-saute .9s cubic-bezier(.2, .8, .3, 1.2) both; }
.saute-2 { animation: e-saute .9s cubic-bezier(.2, .8, .3, 1.2) .15s both; }
.saute-3 { animation: e-saute .9s cubic-bezier(.2, .8, .3, 1.2) .3s both; }
/* animations coupées : le trait du feutre reste plein */
html[data-animations="non"] .marqueur path { stroke-dasharray: none; }
@media (prefers-reduced-motion: reduce) { .marqueur path { stroke-dasharray: none; } }

/* Étoiles de décor (glissent un peu au défilement : data-parallaxe) */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--etoile-2);
  animation: e-scintille 4s ease-in-out infinite;
}
.deco-1 { right: 6%; top: 130px; color: var(--accent); }
.deco-2 { right: 36%; top: 52px; color: var(--etoile-1); font-size: 2rem; animation-delay: 1s; }
.deco-3 { right: 8%; top: 40px; color: var(--etoile-2); font-size: 2.25rem; animation-delay: 2s; }

/* Coup de feutre sous un mot des titres (se dessine au défilement : data-reveal="trace") */
.mot-feutre { position: relative; display: inline-block; }
.insecable { white-space: nowrap; }
.feutre { position: absolute; left: -2%; bottom: -.26em; width: 104%; height: .34em; overflow: visible; pointer-events: none; }
.feutre path { fill: none; stroke: var(--feutre); stroke-width: 9; stroke-linecap: round; }

/* ---------- Sections ---------- */
.approche, .parcours, .remboursement, .rdv, .bons, .images, .questions, .contact { position: relative; padding-block: var(--section); overflow-x: clip; }
.approche { padding-top: calc(var(--section) - 20px); }
:is(.approche, .parcours, .remboursement, .rdv, .bons, .images, .questions) + :is(.parcours, .remboursement, .rdv, .bons, .images, .questions, .contact) { padding-top: 0; }
section > .conteneur { position: relative; z-index: 1; }

.surtitre {
  margin: 0 0 12px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-texte);
}

/* ---------- Approche : chaque paragraphe devient une carte numérotée ---------- */
.approche h2 { max-width: 17em; margin-bottom: clamp(32px, 4vw, 44px); }
.approche-texte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 26px 22px;
  counter-reset: carte;
}
.approche-texte p {
  --incline: -1.5deg;
  counter-increment: carte;
  position: relative;
  margin: 0;
  padding: 88px 28px 28px;
  border: 2px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--blanc);
  box-shadow: 6px 6px 0 var(--ombre-1);
  font-size: 1.0625rem;
  rotate: var(--incline);
  transition: rotate .35s var(--rebond), translate .35s var(--rebond);
}
.approche-texte p::before {               /* numéro dans sa bulle */
  content: counter(carte);
  position: absolute;
  left: 28px;
  top: 28px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--trait);
  border-radius: 50%;
  background: var(--bulle-1);
  color: var(--bulle-1-texte);
  font-family: var(--f-titre);
  font-weight: var(--poids-titre);
  font-size: 1rem;
  line-height: 1;
}
.approche-texte p:nth-child(3n+2) { --incline: 1deg; box-shadow: 6px 6px 0 var(--ombre-2); }
.approche-texte p:nth-child(3n+2)::before { background: var(--bulle-2); color: var(--bulle-2-texte); }
.approche-texte p:nth-child(3n) { --incline: -.5deg; box-shadow: 6px 6px 0 var(--ombre-3); }
.approche-texte p:nth-child(3n)::before { background: var(--bulle-3); color: var(--bulle-3-texte); }
.approche-texte p:hover { rotate: 0deg; translate: 0 -8px; }
.approche-texte p:only-child { padding: 28px 32px 28px 104px; font-size: 1.1875rem; min-height: 104px; }
.approche-texte p:only-child::before { content: "✦"; }

.agrements { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 10px;
  border: 2px solid var(--trait);
  border-radius: 999px;
  background: var(--carte-1);
  color: var(--carte-texte);
  font-weight: 700;
  font-size: .9375rem;
}
.badge svg { width: 22px; height: 22px; flex: none; }
.agrements-note { margin: 0; font-size: .9375rem; color: var(--texte-doux); }
.agrements:not(:has(.badge:not([hidden]))) { display: none; }

/* ---------- Parcours (rubrique en plus) ---------- */
.parcours-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
.parcours-texte h2 { margin-bottom: 26px; }
.parcours-intro { font-size: 1.125rem; color: var(--texte-doux); max-width: 46ch; }
.parcours-faits { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.parcours-faits li { flex: 1 1 11rem; padding: 16px 20px; border: 2px solid var(--trait); border-radius: 20px; background: var(--carte-1); color: var(--carte-texte); }
.parcours-faits li:nth-child(2) { background: var(--carte-3); }
.fait-titre { display: block; font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: 1.125rem; line-height: 1.2; }
.fait-detail { display: block; margin-top: 4px; font-size: .9375rem; line-height: 1.45; }
.parcours-liste { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.parcours-liste li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid var(--trait);
  border-radius: 20px;
  background: var(--blanc);
  box-shadow: 4px 4px 0 var(--ombre);
  transition: translate .3s var(--rebond), box-shadow .3s ease;
}
.parcours-liste li:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ombre); }
.parcours-liste li:nth-child(odd) { rotate: -.6deg; }
.parcours-liste li:nth-child(even) { rotate: .5deg; }
.parcours-liste [data-k="annee"] {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  min-width: 4.6rem;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--pastille-foncee);
  color: var(--pastille-foncee-texte);
  font-family: var(--f-titre);
  font-weight: var(--poids-titre-2);
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}
.parcours-liste [data-k="titre"] { grid-column: 2; font-family: var(--f-titre); font-weight: var(--poids-titre-2); font-size: 1rem; line-height: 1.3; }
.parcours-liste [data-k="ecole"] { grid-column: 2; font-size: .9375rem; color: var(--texte-doux); }

/* ---------- Séances et tarifs (bloc foncé) ---------- */
.seances { position: relative; padding-block: var(--section); background: var(--nuit); color: var(--sur-nuit); overflow-x: clip; }
.seances h2 { color: var(--sur-nuit); }
.seances .feutre path { stroke: var(--feutre-nuit); }
.seances-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.seances-note { margin: 0; font-size: .9375rem; color: var(--sur-nuit-doux); }
.seances-note [data-show="asca"]:not([hidden]) + [data-show="rme"]:not([hidden])::before { content: " et "; }
.seances-note:not(:has([data-show]:not([hidden]))) { display: none; }
.seances-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 24px 20px; }
.seance {
  --incline: -1deg;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border-radius: var(--rayon);
  background: var(--carte-1);
  color: var(--carte-texte);
  rotate: var(--incline);
  transition: rotate .35s var(--rebond), translate .35s var(--rebond);
}
.seance:nth-child(3n+2) { --incline: .8deg; background: var(--carte-2); }
.seance:nth-child(3n) { --incline: -.6deg; background: var(--carte-3); }
.seance:hover { rotate: 0deg; translate: 0 -8px; }
.seance-duree { margin: 0; font-size: .875rem; font-weight: 700; }
.seance-nom { margin: 8px 0 10px; font-size: 1.375rem; line-height: 1.2; color: var(--carte-texte); overflow-wrap: break-word; }
.seance-desc { margin: 0; font-size: .9375rem; }
.seance-prix { margin: auto 0 0; padding-top: 20px; font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.seance :is(.seance-duree, .seance-prix):empty { display: none; }
.seances-conditions { margin: 36px 0 0; max-width: 62ch; font-size: .9375rem; color: var(--sur-nuit-doux); }

/* ---------- Remboursement (rubrique en plus) ---------- */
.remb-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: baseline; }
.remb-tete h2 { font-size: clamp(1.625rem, 3.4vw, 2.625rem); }   /* « Remboursement » (Unbounded, très large) tient sur sa ligne */
.remb-intro > p { font-size: 1.125rem; color: var(--texte-doux); max-width: 48ch; }
.remb-intro .badges { margin-top: 16px; }
.remb-intro .badges:not(:has(.badge:not([hidden]))) { display: none; }
.remb-etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: etape; }
.remb-etapes li {
  counter-increment: etape;
  padding: 24px 26px 26px;
  border: 2px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--blanc);
  box-shadow: 6px 6px 0 var(--ombre-1);
  transition: translate .3s var(--rebond);
}
.remb-etapes li:nth-child(2) { box-shadow: 6px 6px 0 var(--ombre-2); }
.remb-etapes li:nth-child(3) { box-shadow: 6px 6px 0 var(--ombre-3); }
.remb-etapes li:hover { translate: 0 -6px; }
.remb-etapes li::before { content: counter(etape); display: block; margin-bottom: 10px; font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: 2.5rem; line-height: 1; color: var(--accent-texte); }
.remb-etapes h3 { font-size: 1.125rem; line-height: 1.25; margin-bottom: 6px; }
.remb-etapes p { margin: 0; font-size: .9375rem; color: var(--texte-doux); }
.remb-note { display: flex; align-items: flex-start; gap: 10px; margin: 28px 0 0; font-size: .9375rem; color: var(--texte-doux); }
.remb-note svg { width: 18px; height: 18px; flex: none; margin-top: .15em; }

/* ---------- Rendez-vous ---------- */
.rdv-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 44px; }
.rdv-intro { flex: 1 1 340px; min-width: 0; }
.rdv-intro h2 { margin-bottom: 28px; }
.rdv-intro p { max-width: 36ch; margin-bottom: 22px; font-size: 1.0625rem; }
.lien-tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--encre);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  border-bottom: 4px solid var(--feutre);
  transition: border-color .2s ease;
}
.lien-tel:hover { color: var(--encre); border-color: var(--accent); }
.rdv-widget {
  flex: 1 1 500px;
  min-width: 0;
  padding: clamp(16px, 2.6vw, 28px);
  border: 2px solid var(--trait);
  border-radius: 28px;
  background: var(--blanc);
  box-shadow: 8px 8px 0 var(--ombre);
}
.rdv-widget .agi { border-color: transparent; box-shadow: none; padding: 4px; }
.rdv-widget-bouton, .rdv-sans-agenda .rdv-widget { padding: clamp(24px, 3.4vw, 36px); }
.rdv-carte-titre { margin-bottom: 8px; font-family: var(--f-titre); font-weight: var(--poids-titre-2); font-size: 1.25rem; line-height: 1.2; color: var(--titre); }
.rdv-carte-texte { margin-bottom: 22px; color: var(--texte-doux); }
.rdv-sans-agenda .contact-liens + .bouton { margin-top: 28px; }

/* ---------- Bons cadeaux (rubrique en plus) ---------- */
.bons-panneau {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 2px solid var(--trait);
  border-radius: 32px;
  background: var(--carte-3);
  color: var(--carte-texte);
  box-shadow: 8px 8px 0 var(--ombre);
}
:root:not([data-couleurs]) .bons-panneau { background: var(--rose); }
.bons h2 { margin-bottom: 26px; color: var(--carte-texte); }
.bons .feutre path { stroke: var(--jaune); }
:root[data-couleurs] .bons .feutre path { stroke: var(--feutre); }
.bons-texte > p { max-width: 40ch; margin-bottom: 28px; font-size: 1.0625rem; }
.bons-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.bons-boutons [data-bons-lien]:not([hidden]) + .bouton-commande { background: var(--blanc); color: var(--encre); }
.bons-visuel { position: relative; width: 100%; max-width: 440px; margin: 16px auto; padding: 20px 10px 10px 0; }
.bon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  min-height: 240px;
  border: 2px solid var(--trait);
  border-radius: 20px;
  background: var(--blanc);
  color: var(--encre);
  box-shadow: 8px 8px 0 var(--ombre);
  rotate: -3deg;
  transition: rotate .4s var(--rebond);
}
.bons-visuel:hover .bon { rotate: 0deg; }
.bon-corps { display: flex; flex-direction: column; min-width: 0; padding: 26px 24px 22px; }
.bon-etiquette { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-texte); }
.bon-nom { margin-top: 10px; font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: clamp(1.25rem, 2.4vw, 1.625rem); line-height: 1.12; overflow-wrap: anywhere; }
.bon-seance { margin-top: 8px; font-size: .9375rem; color: var(--texte-doux); }
.bon-pour { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 20px; font-size: .85rem; font-weight: 600; }
.bon-pour::after { content: ""; flex: 1; border-bottom: 2px dotted var(--trait); }
.bon-validite { margin-top: 10px; font-size: .85rem; color: var(--texte-doux); }
.bon-talon {
  display: grid;
  place-items: center;
  border-left: 2px dashed var(--trait);
  border-radius: 0 18px 18px 0;
  background: var(--carte-1);
}
.bon-talon span { writing-mode: vertical-rl; rotate: 180deg; font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: 1.125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--carte-texte); }
.bon-sticker { position: absolute; right: -14px; top: -10px; z-index: 1; display: grid; place-items: center; width: 104px; aspect-ratio: 1; rotate: 12deg; }
.bon-sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bon-sticker path { fill: var(--sticker-2, var(--accent)); stroke: var(--trait); stroke-width: 6; stroke-linejoin: round; }
.bon-sticker span { position: relative; padding: 0 18px; font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: .75rem; line-height: 1.1; text-align: center; color: var(--accent-encre); }

/* ---------- Cabinet (sur le jaune) ---------- */
.cabinet { position: relative; padding-block: var(--section); background: var(--soleil); color: var(--soleil-texte); }
.cabinet h2 { margin-bottom: clamp(24px, 3vw, 32px); color: var(--soleil-texte); }
.cabinet .feutre path { stroke: var(--feutre-soleil); stroke-width: 9; }
.cabinet-grille { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px clamp(32px, 4vw, 56px); align-items: start; }
.infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 40px); align-content: start; }
.info-horaires { grid-column: 2; grid-row: 1 / span 2; }
.info h3 { margin-bottom: 12px; font-family: var(--f-texte); font-weight: 700; font-size: 1.0625rem; color: var(--soleil-texte); }
.info p, .info ul { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.info .info-note { margin-top: 12px; font-size: .9375rem; font-weight: 400; color: var(--soleil-doux); }
.info ul { padding: 0; list-style: none; }
.horaires { max-width: 22rem; font-variant-numeric: tabular-nums; }
.horaires li { display: flex; align-items: baseline; gap: 10px; padding-block: 3px; }
.horaires li::before { content: ""; order: 1; flex: 1; min-width: 16px; border-bottom: 2px dotted color-mix(in srgb, var(--soleil-texte) 45%, transparent); transform: translateY(-.3em); }
.horaires [data-k="jour"] { order: 0; font-weight: 700; }
.horaires [data-k="heures"] { order: 2; text-align: right; }
.horaires .ferme [data-k="jour"], .horaires .ferme [data-k="heures"] { color: var(--soleil-doux); font-weight: 400; }
.acces li { display: flex; align-items: flex-start; gap: 12px; }
.acces li + li { margin-top: 12px; }
.acces svg { width: 22px; height: 22px; flex: none; margin-top: .12em; }
.plan {
  aspect-ratio: 480 / 340;
  overflow: hidden;
  border: 2px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--plan-fond);
  box-shadow: 8px 8px 0 var(--ombre);
  rotate: 1.5deg;
  transition: rotate .4s var(--rebond);
}
.plan:hover { rotate: 0deg; }
.plan svg { width: 100%; height: 100%; }
.plan-fond { fill: var(--plan-fond); }
.plan-route { fill: none; stroke: var(--plan-route); stroke-linecap: round; }
.plan-rail { fill: none; stroke: var(--plan-trait); }
.plan-chemin { fill: none; stroke: var(--plan-trait); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .5 9; }
.plan-sombre { fill: var(--plan-trait); }
.plan-vert { fill: var(--plan-vert); }
.plan-eau { fill: none; stroke: var(--plan-eau); stroke-width: 7; stroke-linecap: round; }
.plan-bati { fill: var(--plan-bati); }
.plan-clair { fill: var(--plan-clair); }
.plan-trait-clair { fill: none; stroke: var(--plan-clair); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plan-ombre { fill: var(--plan-trait); opacity: .2; }
.plan-repere { fill: var(--accent); stroke: var(--plan-trait); stroke-width: 2.5; }
.plan-repere-centre { fill: var(--plan-repere-centre); }
.plan-lien {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--soleil-texte);
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.plan-lien:hover { color: var(--soleil-texte); text-decoration-color: var(--accent); }
.plan-lien svg { width: 16px; height: 16px; flex: none; }
.cabinet :focus-visible { outline-color: var(--soleil-texte); }

/* ---------- Galerie (rubrique en plus) : photos façon polaroïd ---------- */
.images h2 { margin-bottom: clamp(32px, 4vw, 48px); }
.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
.galerie li { min-width: 0; }
.galerie figure {
  --incline: -2deg;
  margin: 0;
  padding: 10px 10px 14px;
  border: 2px solid var(--trait);
  border-radius: 18px;
  background: var(--blanc);
  box-shadow: 6px 6px 0 var(--ombre-1);
  rotate: var(--incline);
  transition: rotate .35s var(--rebond), translate .35s var(--rebond);
}
.galerie li:nth-child(4n+2) figure { --incline: 1.5deg; box-shadow: 6px 6px 0 var(--ombre-2); }
.galerie li:nth-child(4n+3) figure { --incline: -1deg; box-shadow: 6px 6px 0 var(--ombre-3); }
.galerie li:nth-child(4n) figure { --incline: 2deg; }
.galerie figure:hover { rotate: 0deg; translate: 0 -6px; }
.galerie-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--ge-creme); }
.galerie-photo svg { width: 100%; height: 100%; }
.galerie-photo img { width: 100%; height: 100%; object-fit: cover; }
.galerie-photo.has-photo svg { display: none; }
.galerie figcaption { margin-top: 10px; font-weight: 700; font-size: .9375rem; text-align: center; }
.ge-creme { fill: var(--ge-creme); }
.ge-ciel { fill: var(--ge-ciel); }
.ge-rose-pale { fill: var(--ge-rose-pale); }
.ge-jaune { fill: var(--carte-1); }
.ge-rose { fill: var(--carte-3); }
:root:not([data-couleurs]) .ge-rose { fill: var(--rose); }
.ge-accent { fill: var(--accent); }
.ge-blanc { fill: var(--blanc); }
.ge-vert { fill: var(--ge-vert); }
.ge-encre { fill: var(--trait); }
.ge-etoile { fill: var(--carte-1); stroke: var(--trait); stroke-width: 3; stroke-linejoin: round; }
:root[data-couleurs] .ge-etoile, :root[data-couleurs] .ge-jaune { fill: var(--ombre-2); }
.ge-trait { stroke: var(--trait); stroke-width: 3; }
.ge-ligne { fill: none; stroke: var(--trait); stroke-width: 3; stroke-linecap: round; }

/* ---------- Questions fréquentes ---------- */
.questions-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 56px; align-items: start; }
.questions-tete p { margin-top: 26px; color: var(--texte-doux); max-width: 34ch; }
.questions-tete a { font-weight: 700; }
.faq { display: grid; gap: 14px; }
.faq details { border: 2px solid var(--trait); border-radius: 20px; background: var(--blanc); box-shadow: 4px 4px 0 var(--ombre); transition: box-shadow .2s ease, translate .2s ease; }
.faq details[open] { box-shadow: 6px 6px 0 var(--ombre-3); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 22px;
  border-radius: 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-titre);
  font-weight: var(--poids-titre-2);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--titre);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  border: 2px solid var(--trait);
  border-radius: 50%;
  background:
    linear-gradient(var(--bulle-1-texte), var(--bulle-1-texte)) center / 14px 3px no-repeat,
    linear-gradient(var(--bulle-1-texte), var(--bulle-1-texte)) center / 3px 14px no-repeat,
    var(--bulle-1);
  transition: rotate .35s var(--rebond);
}
.faq details[open] summary::after { rotate: 135deg; }
.faq-reponse { padding: 0 22px 20px; color: var(--texte-doux); }
.questions:not(:has(.faq [data-item]:not([hidden]))) { display: none; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 56px; align-items: start; }
.contact h2 { margin-bottom: 26px; }
.contact-corps > p { margin-bottom: 24px; color: var(--texte-doux); }
.contact-liens { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.contact-liens span { display: block; margin-bottom: 2px; font-size: .875rem; font-weight: 700; color: var(--texte-doux); }
.contact-liens a {
  font-family: var(--f-titre);
  font-weight: var(--poids-titre-2);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: var(--encre);
  text-decoration: none;
  border-bottom: 4px solid var(--feutre);
  overflow-wrap: anywhere;
  transition: border-color .2s ease;
}
.contact-liens a:hover { color: var(--encre); border-color: var(--accent); }

/* ---------- Formulaire de contact ---------- */
.contact-formulaire { padding: clamp(22px, 3.4vw, 40px); border: 2px solid var(--trait); border-radius: 28px; background: var(--blanc); box-shadow: 8px 8px 0 var(--ombre-3); }
:root:not([data-couleurs]) .contact-formulaire { box-shadow: 8px 8px 0 var(--accent); }
.fc-intro { font-family: var(--f-titre); font-weight: var(--poids-titre-2); font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.3; color: var(--titre); text-wrap: balance; }
.contact-formulaire > .fc-intro { margin-bottom: 22px; }
.form-contact { display: grid; align-items: start; gap: 20px; }
@media (min-width: 1081px), (min-width: 560px) and (max-width: 860px) {
  .form-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .form-contact > * { grid-column: 1 / -1; }
  .form-contact > .fc-champ:has(#fc-email),
  .form-contact > .fc-champ:has(#fc-tel) { grid-column: auto; }
}
.fc-champ { display: grid; gap: 6px; }
.fc-champ label { font-weight: 700; font-size: .9375rem; }
.fc-champ label span { font-weight: 400; color: var(--texte-doux); }
.form-contact input:not([type="checkbox"]),
.form-contact textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--champ-bord);
  border-radius: 14px;
  background: var(--creme);
  color: var(--encre);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.form-contact textarea { resize: vertical; min-height: 132px; }
.form-contact input:not([type="checkbox"]):focus-visible,
.form-contact textarea:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; background: var(--blanc); box-shadow: 4px 4px 0 var(--ombre-1); }
.form-contact [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.fc-erreur { margin: 0; font-size: .9rem; font-weight: 700; line-height: 1.4; color: var(--danger); }
.form-contact > .fc-erreur { margin-top: -12px; padding-left: 32px; }
.fc-case { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.fc-case input { width: 20px; height: 20px; margin: .12em 0 0; accent-color: var(--accent-texte); cursor: pointer; }
.fc-case a { color: var(--encre); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.form-contact .bouton { justify-self: start; }
.fc-envoye { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 18px; border: 2px solid var(--trait); border-radius: 14px; background: var(--carte-1); color: var(--carte-texte); font-weight: 700; }
.fc-envoye::before { content: ""; flex: none; width: 7px; height: 13px; margin: .15em 4px 0 6px; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.fc-envoye:focus-visible { outline-color: var(--encre); }

/* ---------- Pied de page ---------- */
.pied { padding-block: 28px; background: var(--nuit); color: var(--sur-nuit-doux); font-size: .875rem; }
.pied-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.pied p { margin: 0; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.pied a { color: var(--sur-nuit); text-underline-offset: 3px; }
.pied a:hover { color: var(--sur-nuit); text-decoration-color: var(--feutre-nuit); text-decoration-thickness: 2px; }
.pied :focus-visible { outline-color: var(--sur-nuit); }
.pied-credit { width: 100%; font-size: .8rem; }

/* ---------- Pages légales (surimpression) ---------- */
.page-legale { display: none; }
.page-legale:target { display: block; position: fixed; inset: 0; z-index: 500; overflow-y: auto; overscroll-behavior: contain; background: var(--creme); color: var(--encre); }
html:has(.page-legale:target) { overflow: hidden; }   /* la page ne défile plus derrière */
.legale-barre { position: sticky; top: 0; z-index: 1; background: var(--soleil); color: var(--soleil-texte); border-bottom: 2px solid var(--trait); }
.legale-barre-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-block: 10px; }
.legale-site { min-width: 0; font-family: var(--f-titre); font-weight: var(--poids-titre-2); font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legale-retour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  background: var(--pastille-foncee);
  color: var(--pastille-foncee-texte);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--accent);
}
.legale-retour:hover { color: var(--pastille-foncee-texte); }
.legale-retour svg { width: 16px; height: 16px; flex: none; }
.legale-barre :focus-visible { outline-color: var(--soleil-texte); }
.legale-corps { max-width: calc(70ch + 2 * var(--gouttiere)); margin-inline: auto; padding: clamp(40px, 7vw, 88px) var(--gouttiere) clamp(56px, 8vw, 104px); }
.legale-corps h2 { margin-bottom: clamp(20px, 3vw, 32px); }
.legale-chapeau { font-size: clamp(1.1rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--texte-doux); }
.legale-corps h3 { margin: 2.2em 0 .5em; font-size: clamp(1.125rem, 1.7vw, 1.3rem); line-height: 1.25; }
.legale-corps h2 + h3 { margin-top: 0; }
.legale-corps address { font-style: normal; margin-bottom: 1em; }
.legale-corps ul { margin: 0 0 1em; padding-left: 1.2em; }
.legale-corps li::marker { color: var(--accent-texte); }
.legale-corps strong { font-weight: 700; }
.legale-corps a { color: var(--encre); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legale-corps a:hover { color: var(--accent-texte); }
.legale-agrements:not(:has([data-show]:not([hidden]))) { display: none; }
.legale-date { margin-top: 2.5em; padding-top: 16px; border-top: 2px solid var(--trait); font-size: .92rem; color: var(--texte-doux); }

/* ---------- Logo à côté du nom (facultatif) — posé par apercu.js / assets/js/logo.js ----------
   data-logo : logo présent (+ --logo-ratio) ; il remplace le carré aux initiales.
   data-logo-seul : le logo contient déjà le nom (le nom reste dans la page pour Google et les lecteurs d'écran).
   data-logo-pastille + --logo-pastille : fond derrière un logo qui se verrait mal. */
:root { --logo-h: 44px; --logo-max: 180px; }
:root[data-logo] { --logo-w: min(calc(var(--logo-h) * var(--logo-ratio, 1)), var(--logo-max)); }
.logo-site { display: block; flex: none; width: var(--logo-w, auto); height: var(--logo-h); object-fit: contain; object-position: left center; }
:root[data-logo] .marque-pastille { display: none; }
:root[data-logo-seul] { --logo-h: 52px; --logo-max: 220px; }
:root[data-logo-seul] .marque-textes { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:root[data-logo-pastille] .logo-site { box-sizing: content-box; padding: 5px 9px; border-radius: 12px; background: var(--logo-pastille); }
@media (max-width: 600px) {
  :root { --logo-h: 38px; --logo-max: 34vw; }
  :root[data-logo-seul] { --logo-h: 42px; --logo-max: 52vw; }
}
@media (max-width: 420px) {
  :root[data-logo]:not([data-logo-seul]) .marque-metier { display: none; }
}
@media (max-width: 480px) {
  :root[data-logo-large] { --logo-h: 40px; --logo-max: 52vw; }
  :root[data-logo-large]:not([data-logo-seul]) .marque-textes { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :root[data-logo] .bouton-entete .long { display: none; }
  :root[data-logo] .bouton-entete .court { display: inline; }
}

/* ---------- Animations au défilement : variantes propres au modèle ----------
   (assets/js/defilement.js ; voir assets/css/sites/defilement.css pour les autres)
   « pop » : arrive de biais, dépasse un peu et se pose ; « tampon » : posé d'un coup, comme un autocollant.
   Les inclinaisons des cartes passent par la propriété « rotate » : elles restent après l'arrivée. */
.defilement [data-reveal="pop"] {
  transform: translateY(36px) rotate(-5deg) scale(.95);
  transition: opacity .6s ease, transform .85s cubic-bezier(.2, .8, .3, 1.3), rotate .35s var(--rebond), translate .35s var(--rebond), box-shadow .2s ease;
  transition-delay: calc(var(--rang, 0) * 100ms + var(--delai, 0ms)), calc(var(--rang, 0) * 100ms + var(--delai, 0ms)), 0s, 0s, 0s;
}
.defilement [data-reveal="tampon"] {
  transform: scale(1.5) rotate(-14deg);
  transition: opacity .3s ease, transform .55s cubic-bezier(.3, 1.4, .5, 1);
  transition-delay: calc(var(--rang, 0) * 120ms + var(--delai, 0ms));
}
/* le coup de feutre se dessine un peu après l'arrivée du titre */
.defilement .feutre[data-reveal="trace"] path { transition-duration: 1.1s; transition-delay: calc(350ms + var(--delai, 0ms)); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .parcours-inner, .remb-tete, .questions-inner, .contact-inner, .cabinet-grille { grid-template-columns: minmax(0, 1fr); }
  .bons-panneau { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .remb-etapes { grid-template-columns: minmax(0, 1fr); }
  .contact-formulaire { max-width: 680px; }
  .cabinet-plan { max-width: 560px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 720px) {
  .hero-visuel { flex-basis: 100%; padding: 30px 0 8px 24px; }
  .portrait { width: min(230px, 60vw); }
  .sticker { width: 124px; left: max(0px, calc(50% - 190px)); }
  .infos { grid-template-columns: minmax(0, 1fr); }
  .info-horaires { grid-column: auto; grid-row: auto; }
}
@media (max-width: 600px) {
  .marque-metier { display: none; }
  .approche-texte p, .approche-texte p:only-child { padding: 84px 22px 24px; font-size: 1.0625rem; }
  .approche-texte p::before { left: 22px; top: 22px; }
  .galerie { gap: 26px 16px; }
  .galerie figure { padding: 7px 7px 10px; }
  .seance { padding: 24px; }
  .hero-boutons .bouton { flex: 1 1 auto; }
  .bon { grid-template-columns: minmax(0, 1fr) 56px; min-height: 210px; }
  .bon-talon span { font-size: .9375rem; }
  .bon-sticker { width: 86px; right: -8px; }
  .ruban-piste { gap: 28px; }
}
@media (max-width: 400px) {
  .bouton-entete .long { display: none; }
  .bouton-entete .court { display: inline; }
  .bouton-entete { padding-inline: 16px; }
  .marque-nom { font-size: .9375rem; }
  .marque-pastille { width: 38px; height: 38px; font-size: .8125rem; }
  :root[data-taille="grande"] h2 { font-size: 1.6rem; }
  :root[data-taille="grande"] .bouton { padding-inline: 18px; }
  .galerie { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {
  .legale-site { display: none; }
  .legale-barre-inner { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Impression ---------- */
@media print {
  body { background: #fff; color: #000; }
  .nav, .bouton-entete, .hero-visuel, .hero-suite, .ruban-cadre, .deco, .hero-boutons, .rdv-widget, .contact-formulaire, .bons-visuel, .plan, .plan-lien, .lien-evitement { display: none !important; }
  .entete, .hero, .seances, .cabinet, .pied, .bons-panneau, .approche-texte p, .seance, .faq details, .remb-etapes li, .parcours-liste li { background: #fff !important; color: #000 !important; box-shadow: none !important; rotate: none !important; }
  .seances h2, .seance-nom, .cabinet h2 { color: #000 !important; }
  .module-bandeau, .marque-pastille, .hero-pastilles span, .parcours-liste [data-k="annee"], .bon-talon, .badge { background: none !important; color: #000 !important; }
  .feutre { display: none; }
  .faq details > :not(summary) { display: block; }
  .page-legale:target { position: static; overflow: visible; }
  .legale-barre { display: none; }
  a { color: inherit; }
}

/* =========================================================
   Ajouts de la version PHP (absents de la maquette)
   Cas du site en ligne : agenda derrière un bouton, pas d'agenda,
   rubriques sans contenu (non écrites dans la page).
   ========================================================= */
.rdv-widget-bouton, .rdv-sans-agenda .rdv-widget { align-self: center; }

/* =========================================================
   Titre du site = l'enseigne du cabinet (1.9.0, <html data-titre-enseigne>) :
   le nom de la personne a sa pastille dans le hero (.hero-sous-titre, data-field="sous-titre",
   cachée quand vide) ; mentions légales : ligne « enseigne »
   ========================================================= */
.hero-pastilles span { overflow-wrap: anywhere; }

/* ==================== 1.12.0 : rubrique « Avis de patients » (début) ====================
   Section « Ce qu'en disent mes patients » (vues/sites/elan.php, données communes vues/sites/_avis.php).
   Couleurs : variables du modèle (reliées aux jetons --p-* : ambiances claires et sombres). */
/* Liste des avis : ul > li[data-item] (data-en-avant) > figure > blockquote > p[data-k="texte"] + figcaption[data-k="auteur"] */
.avis-liste { list-style: none; margin: 0; padding: 0; }
.avis-item { flex: 1 1 var(--avis-base, 17rem); min-width: 0; }
.avis-carte { margin: 0; height: 100%; }
.avis-texte { margin: 0; }
.avis-texte p { margin: 0; overflow-wrap: break-word; }
.avis-auteur { margin: 0; }
.avis-google { margin: 0; }
.avis-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Élan : cartes à bord franc et ombre pleine décalée, légèrement penchées ; bulles de couleur ; l'avis mis en avant en jaune */
.avis { position: relative; padding-block: var(--section); overflow-x: clip; }
.remboursement:not([hidden]) + .avis { padding-top: 0; }
.avis + .rdv { padding-top: 0; }
.avis-tete { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 44px); }
.avis-tete h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.avis-intro { margin-top: 14px; color: var(--texte-doux); }
.avis-liste { display: flex; flex-wrap: wrap; gap: 26px; --avis-base: 16.5rem; }
.avis-carte {
  --incline: -.6deg;
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 26px 24px;
  border: 3px solid var(--trait); border-radius: 22px; background: var(--blanc); color: var(--encre);
  box-shadow: 6px 6px 0 var(--ombre-1); rotate: var(--incline); transition: rotate .3s var(--rebond, ease), translate .3s;
}
.avis-item:nth-child(3n+2) .avis-carte { --incline: .8deg; box-shadow: 6px 6px 0 var(--ombre-2); }
.avis-item:nth-child(3n) .avis-carte { --incline: -.3deg; box-shadow: 6px 6px 0 var(--ombre-3); }
.avis-carte:hover { rotate: 0deg; translate: 0 -4px; }
.avis-carte::before { content: "\201C" / ""; position: absolute; top: -20px; left: 22px; display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--trait); border-radius: 50%; background: var(--bulle-1); color: var(--bulle-1-texte); font: 800 1.9rem/1 var(--f-titre); padding-top: 14px; }
.avis-item:nth-child(3n+2) .avis-carte::before { background: var(--bulle-2); color: var(--bulle-2-texte); }
.avis-item:nth-child(3n) .avis-carte::before { background: var(--bulle-3); color: var(--bulle-3-texte); }
.avis-texte p { font-size: 1.0625rem; line-height: 1.6; }
.avis-auteur { margin-top: auto; font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: 1rem; }
.avis-item[data-en-avant] { flex-basis: 100%; }
.avis-item[data-en-avant] .avis-carte { --incline: 0deg; background: var(--soleil); color: var(--soleil-texte); box-shadow: 8px 8px 0 var(--ombre); padding: clamp(32px, 4vw, 44px); }
.avis-item[data-en-avant] .avis-texte p { font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); line-height: 1.35; }
.avis-vide { margin: 0; padding: 18px 22px; border: 3px dashed var(--trait); border-radius: 22px; color: var(--texte-doux); }
.avis-google { margin-top: 34px; }
@media (prefers-reduced-motion: reduce) { .avis-carte { rotate: none; transition: none; } }
:root[data-animations="non"] .avis-carte { rotate: none; transition: none; }
/* ==================== 1.12.0 : rubrique « Avis de patients » (fin) ==================== */
