/* =====================================================================
   Site de Stéphanie | psychogénéalogie, Alsace
   Feuille de style unique. Mobile d'abord.
   Palette : encre (texte), page (fond), mousse (bandes claires),
             sapin (bandes sombres), lumière (accent), vigne (entreprises).
   ===================================================================== */

:root {
  --encre: #22302a;
  --encre-douce: #4a5750;
  --page: #f8f7f2;
  --mousse: #e7ebe1;
  --mousse-foncee: #d6dccf;
  --sapin: #244236;
  --sapin-fonce: #1b3228;
  --lumiere: #c99a3a;
  --lumiere-texte: #7e5d14;
  --vigne: #6e3b48;
  --vigne-claire: #f1e6e8;
  --blanc: #ffffff;
  --erreur: #9b2c2c;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --mesure: 36rem;        /* ~70 caractères en 19px */
  --largeur: 72rem;
  --gouttiere: 1.25rem;
  --rayon: 0.4rem;
  --rayon-image: 1rem;
  --transition: 180ms ease;
}

@media (min-width: 48em) {
  :root { --gouttiere: 2.5rem; }
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.1875rem;   /* 19px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 64em) {
  body { font-size: 1.25rem; } /* 20px sur grand écran */
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  color: var(--encre);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.9rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.65rem); line-height: 1.25; }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; }

p, ul, ol { margin: 0 0 1.1em; max-width: var(--mesure); }
li { margin-bottom: 0.35em; }
ul { padding-left: 1.2em; }

a {
  color: var(--sapin);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color var(--transition);
}
a:hover { color: var(--lumiere-texte); }

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

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

strong { font-weight: 700; }
em { font-style: italic; }

hr {
  border: 0;
  height: 1px;
  background: var(--mousse-foncee);
  margin: 2.5rem 0;
}

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

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--sapin); color: var(--blanc);
  padding: 0.6rem 1rem; border-radius: var(--rayon);
  z-index: 100; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Conteneurs ---------- */

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

.etroit { max-width: 46rem; }

.bande { padding-block: 3.5rem; }
@media (min-width: 48em) { .bande { padding-block: 5.5rem; } }

.bande--mousse { background: var(--mousse); }
.bande--sapin { background: var(--sapin); color: #eef1ea; }
.bande--sapin h1, .bande--sapin h2, .bande--sapin h3 { color: var(--blanc); }
.bande--sapin a { color: #f3dfae; }
.bande--sapin a:hover { color: var(--blanc); }
.bande--vigne { background: var(--vigne-claire); }

.intro {
  font-size: 1.15em;
  line-height: 1.55;
  color: var(--encre-douce);
  max-width: var(--mesure);
}
.bande--sapin .intro { color: #d4dccf; }

.petit { font-size: 0.9em; color: var(--encre-douce); }
.bande--sapin .petit { color: #b9c5b8; }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1em;
  line-height: 1.2;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  text-decoration: none;
  background: var(--lumiere);
  color: var(--encre);
  border: 2px solid var(--lumiere);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.bouton:hover { background: #d9ab4e; border-color: #d9ab4e; color: var(--encre); }
.bouton:active { transform: translateY(1px); }

.bouton--second {
  background: transparent;
  color: var(--sapin);
  border-color: var(--sapin);
}
.bouton--second:hover { background: var(--sapin); color: var(--blanc); border-color: var(--sapin); }

.bande--sapin .bouton--second { color: var(--blanc); border-color: #b9c5b8; }
.bande--sapin .bouton--second:hover { background: var(--blanc); color: var(--sapin); border-color: var(--blanc); }

.actions {
  display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; align-items: center;
  margin-top: 1.8rem;
}

/* ---------- En-tête et navigation ---------- */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mousse-foncee);
}
@supports not (color-mix(in srgb, red, blue)) {
  .entete { background: var(--page); }
}

.entete__barre {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}

.marque {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--encre);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.marque:hover { color: var(--sapin); }
.marque svg { width: 2.2rem; height: 2.2rem; flex: none; }
.marque small {
  display: block; font-family: var(--sans); font-size: 0.78rem;
  font-weight: 400; color: var(--encre-douce); letter-spacing: 0; white-space: nowrap;
}
@media (max-width: 72em) { .marque small { white-space: normal; max-width: 12rem; } }
@media (min-width: 72em) and (max-width: 96em) { .marque small { white-space: normal; max-width: 15rem; } }
@media (min-width: 72em) and (max-width: 80em) {
  .nav a, .nav__groupe > summary { padding: 0.5rem 0.45rem; font-size: 0.9rem; }
  .entete__rdv .bouton { padding: 0.65em 1em; font-size: 0.9rem; }
}

.entete__rdv { display: none; }

/* Menu mobile : <details> sans JavaScript ; le nav est un frère du details */
.menu-zone { position: relative; display: flex; align-items: center; gap: 1rem; }
.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; padding: 0.5rem 0.8rem; border-radius: var(--rayon);
  border: 2px solid var(--sapin); color: var(--sapin);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 1.3rem; height: 1.3rem; }
.menu[open] > summary { background: var(--sapin); color: var(--blanc); }

.nav {
  display: none;
  position: absolute; right: 0; top: calc(100% + 0.6rem);
  width: min(22rem, calc(100vw - 2 * var(--gouttiere)));
  background: var(--blanc);
  border: 1px solid var(--mousse-foncee);
  border-radius: var(--rayon-image);
  box-shadow: 0 18px 40px -20px rgba(34, 48, 42, 0.35);
  padding: 0.8rem;
}
.menu[open] ~ .nav { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: 0.6rem 0.8rem; border-radius: var(--rayon);
  text-decoration: none; color: var(--encre); font-weight: 400;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--mousse); color: var(--sapin); }
.nav a[aria-current="page"] { font-weight: 700; }

.nav__groupe > summary {
  list-style: none; cursor: pointer;
  padding: 0.6rem 0.8rem; border-radius: var(--rayon);
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.nav__groupe > summary::-webkit-details-marker { display: none; }
.nav__groupe > summary::after {
  content: ""; width: 0.55em; height: 0.55em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform var(--transition);
}
.nav__groupe[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.nav__groupe ul { padding-left: 0.8rem; border-left: 2px solid var(--mousse-foncee); margin-left: 0.8rem; }
.nav__groupe.actif > summary { font-weight: 700; color: var(--sapin); }

.nav__rdv { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--mousse-foncee); }
.nav__rdv .bouton { display: block; text-align: center; }

@media (min-width: 72em) {
  .menu { display: none; }
  .nav {
    display: block;
    position: static; width: auto; background: transparent; border: 0;
    box-shadow: none; padding: 0;
  }
  .nav > ul { display: flex; align-items: center; gap: 0.1rem; }
  .nav a, .nav__groupe > summary { padding: 0.5rem 0.55rem; white-space: nowrap; font-size: 0.93rem; }
  .nav__groupe { position: relative; }
  .nav__groupe ul {
    position: absolute; left: 0; top: calc(100% + 0.4rem);
    width: 20rem; background: var(--blanc);
    border: 1px solid var(--mousse-foncee); border-left-width: 1px;
    border-radius: var(--rayon-image); padding: 0.6rem; margin: 0;
    box-shadow: 0 18px 40px -20px rgba(34, 48, 42, 0.35);
  }
  .nav__rdv { display: none; }
  .entete__rdv { display: inline-block; }
  .entete__rdv .bouton { padding: 0.7em 1.2em; font-size: 0.95rem; white-space: nowrap; }
}

/* ---------- Héros ---------- */

.heros {
  position: relative; overflow: hidden;
  padding-block: 3rem 3.5rem;
}
.heros__grille {
  display: grid; gap: 2rem; align-items: center;
}
.heros h1 { margin-bottom: 0.5em; }
.heros__accroche {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--encre-douce);
  max-width: 30rem;
  margin-bottom: 1.2em;
}
.heros__texte > p:not(.heros__accroche) { max-width: 32rem; }
.heros__arbre { margin: 0 auto; max-width: 22rem; }
.heros__arbre svg { width: 100%; height: auto; }

@media (min-width: 48em) {
  .heros { padding-block: 4rem 5rem; }
  .heros__grille { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .heros__arbre { max-width: 34rem; }
}

/* Héros secondaire (pages intérieures) */
.heros--page { padding-block: 3rem 2.5rem; }
.heros--page .heros__grille { grid-template-columns: 1fr; }
.heros--page .heros__texte { max-width: 44rem; order: 1; }
.heros__deco { display: none; order: 2; }
@media (min-width: 48em) {
  .heros--page { padding-block: 4rem 3rem; }
  .heros--page .heros__grille { grid-template-columns: 1.3fr 0.7fr; }
  .heros__deco { display: block; justify-self: end; width: min(100%, 20rem); opacity: 0.55; }
  .heros--vigne .heros__deco { opacity: 0.4; }
  .heros--sapin .heros__deco { opacity: 0.7; }
}
.heros--page + .bande { padding-top: 3rem; }
.heros--vigne { background: var(--vigne-claire); }
.heros--vigne h1 { color: var(--vigne); }
.heros--sapin { background: var(--sapin); color: #eef1ea; }
.heros--sapin h1, .heros--sapin h2 { color: var(--blanc); }
.heros--sapin .heros__accroche { color: #d4dccf; }
.heros--sapin a:not(.bouton) { color: #f3dfae; }

/* Animation unique : les branches se dessinent au chargement */
.arbre-anim .trait {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: tracer 2.4s cubic-bezier(.4,0,.2,1) forwards;
}
.arbre-anim .noeud { opacity: 0; animation: apparaitre 0.8s ease forwards; animation-delay: 1.6s; }
.arbre-anim .lueur { opacity: 0; animation: apparaitre 1.6s ease forwards; animation-delay: 1.2s; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .arbre-anim .trait { stroke-dashoffset: 0; }
  .arbre-anim .noeud, .arbre-anim .lueur { opacity: 1; }
}

/* ---------- Les trois questions ---------- */

.questions {
  list-style: none; padding: 0; margin: 2rem 0 0; max-width: none;
  display: grid; gap: 1.2rem;
}
.questions li {
  margin: 0; padding: 1.4rem 1.5rem 1.4rem 1.6rem;
  background: var(--blanc);
  border-left: 4px solid var(--lumiere);
  border-radius: 0 var(--rayon-image) var(--rayon-image) 0;
}
.questions h3 { margin-bottom: 0.3em; font-size: 1.35rem; }
.questions p { margin: 0; font-size: 0.95em; color: var(--encre-douce); }
@media (min-width: 48em) {
  .questions { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.questions--cinq li:nth-child(5) { border-left-color: var(--sapin); }
@media (min-width: 48em) {
  .questions--cinq { grid-template-columns: repeat(2, 1fr); }
  .questions--cinq li:nth-child(5) { grid-column: 1 / -1; }
}

/* ---------- Deux portes d'entrée ---------- */

.portes {
  display: grid; gap: 1.5rem; margin-top: 2rem;
}
.porte {
  display: block; text-decoration: none; color: inherit;
  padding: 2rem 1.75rem 2rem;
  border-radius: var(--rayon-image);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.porte:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(34,48,42,.5); color: inherit; }
.porte h3 { margin-bottom: 0.4em; }
.porte p { margin-bottom: 1.2em; color: var(--encre-douce); font-size: 0.95em; }
.porte__lien {
  font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 0.2em;
}
.porte--particuliers { background: var(--mousse); }
.porte--particuliers .porte__lien { color: var(--sapin); }
.porte--entreprises { background: var(--vigne-claire); }
.porte--entreprises h3 { color: var(--vigne); }
.porte--entreprises .porte__lien { color: var(--vigne); }
.porte__ico { width: 3rem; height: 3rem; margin-bottom: 1rem; }
.porte--particuliers .porte__ico { color: var(--sapin); }
.porte--entreprises .porte__ico { color: var(--vigne); }
@media (min-width: 48em) {
  .portes { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .porte { padding: 2.5rem 2.25rem; }
}

/* ---------- Étapes ---------- */

.etapes {
  list-style: none; padding: 0; margin: 2rem 0 0; max-width: none;
  counter-reset: etape;
  display: grid; gap: 1.6rem;
}
.etapes li {
  counter-increment: etape;
  margin: 0; position: relative;
  padding-left: 3.6rem;
}
.etapes li::before {
  content: counter(etape);
  position: absolute; left: 0; top: 0.1rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  background: var(--lumiere); color: var(--encre);
}
.bande--sapin .etapes li::before { background: var(--lumiere); }
.etapes h3 { margin-bottom: 0.25em; font-size: 1.3rem; }
.etapes p { margin: 0; font-size: 0.95em; }
@media (min-width: 48em) {
  .etapes { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .etapes li { padding-left: 0; padding-top: 3.4rem; }
  .etapes li::before { top: 0; }
}
.etapes--trois { }
@media (min-width: 48em) { .etapes--trois { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Agenda ---------- */

.agenda { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: none; display: grid; gap: 1rem; }
.agenda li { margin: 0; }
.evenement {
  display: grid; gap: 0.6rem 1.5rem;
  padding: 1.4rem 1.5rem;
  background: var(--blanc);
  border: 1px solid var(--mousse-foncee);
  border-radius: var(--rayon-image);
}
.bande--sapin .evenement { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }
.evenement__date {
  font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-weight: 500;
  color: var(--sapin);
}
.bande--sapin .evenement__date { color: #f3dfae; }
.evenement__date small { display: block; font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--encre-douce); margin-top: 0.2rem; }
.bande--sapin .evenement__date small { color: #b9c5b8; }
.evenement h3 { margin-bottom: 0.2em; font-size: 1.3rem; }
.evenement p { margin: 0 0 0.4em; font-size: 0.95em; max-width: none; }
.evenement__lieu { color: var(--encre-douce); }
.bande--sapin .evenement__lieu { color: #d4dccf; }
.evenement__exemple {
  display: inline-block; font-size: 0.8rem; padding: 0.15em 0.6em;
  border-radius: 999px; background: var(--lumiere); color: var(--encre); margin-left: 0.5em; vertical-align: middle;
}
@media (min-width: 40em) {
  .evenement { grid-template-columns: 8.5rem 1fr; }
}
.agenda-vide { padding: 1.5rem; border: 1px dashed var(--mousse-foncee); border-radius: var(--rayon-image); max-width: var(--mesure); }
.bande--sapin .agenda-vide { border-color: rgba(255,255,255,0.3); }

/* ---------- Grilles de contenu ---------- */

.colonnes { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 48em) {
  .colonnes { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .colonnes--texte-large { grid-template-columns: 1.3fr 1fr; }
}

.situations { list-style: none; padding: 0; margin: 2rem 0 0; max-width: none; display: grid; gap: 1.3rem; }
.situations li {
  margin: 0; padding: 1.4rem 1.5rem; background: var(--blanc);
  border-radius: var(--rayon-image); border: 1px solid var(--mousse-foncee);
}
.situations h3 { font-size: 1.3rem; margin-bottom: 0.35em; }
.situations p { margin: 0; font-size: 0.95em; color: var(--encre-douce); }
.situations q { font-style: italic; }
@media (min-width: 48em) { .situations { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
.situations--vigne li { border-color: #e2cfd4; }
.situations--vigne h3 { color: var(--vigne); }

/* Tarif */
.tarif {
  display: grid; gap: 1.5rem; margin-top: 1.5rem;
  padding: 2rem; background: var(--blanc);
  border-radius: var(--rayon-image); border: 1px solid var(--mousse-foncee);
  max-width: 46rem;
}
.tarif__prix {
  font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  line-height: 1; color: var(--sapin); font-weight: 400;
}
.tarif__prix small { display: block; font-family: var(--sans); font-size: 1rem; color: var(--encre-douce); margin-top: 0.4rem; }
.tarif p { margin-bottom: 0.6em; }
.tarif p:last-child { margin-bottom: 0; }
@media (min-width: 40em) { .tarif { grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; } }

/* Citation */
.citation {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); line-height: 1.35;
  max-width: 34rem; margin: 0; padding-left: 1.4rem;
  border-left: 3px solid var(--lumiere); color: var(--encre);
}
.bande--sapin .citation { color: var(--blanc); }
.citation footer { font-family: var(--sans); font-style: normal; font-size: 1rem; margin-top: 0.8rem; color: var(--encre-douce); }
.bande--sapin .citation footer { color: #b9c5b8; }

/* ---------- Images / emplacements photo ---------- */

.figure { margin: 0; }
.figure img {
  width: 100%; border-radius: var(--rayon-image);
  background: var(--mousse);
}
.figure--4x3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.figure--3x4 img { aspect-ratio: 3 / 4; object-fit: cover; }
.figure--16x9 img { aspect-ratio: 16 / 9; object-fit: cover; }
.figure figcaption { font-size: 0.9rem; color: var(--encre-douce); margin-top: 0.6rem; }

.rameau { width: 7rem; height: auto; margin: 0 0 1.4rem; color: var(--sapin); }
.bande--sapin .rameau { color: var(--lumiere); }
.rameau--centre { margin-inline: auto; }

/* ---------- FAQ (Comprendre) ---------- */

.faq { max-width: 46rem; margin-top: 2rem; }
.faq details {
  border-top: 1px solid var(--mousse-foncee);
}
.faq details:last-child { border-bottom: 1px solid var(--mousse-foncee); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.2rem 2.6rem 1.2rem 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.3;
  color: var(--sapin);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 50%;
  width: 0.7rem; height: 0.7rem; margin-top: -0.5rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -0.1rem; }
.faq summary:hover { color: var(--lumiere-texte); }
.faq .reponse { padding: 0 0 1.4rem; }
.faq .reponse p:last-child { margin-bottom: 0; }

/* ---------- Formulaire ---------- */

.formulaire { max-width: 40rem; }
.champ { margin-bottom: 1.3rem; }
.champ label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.champ .aide { display: block; font-size: 0.9rem; color: var(--encre-douce); margin-bottom: 0.4rem; }
.champ input, .champ textarea, .champ select {
  width: 100%; font: inherit; color: var(--encre);
  padding: 0.75rem 0.9rem; border: 2px solid var(--mousse-foncee);
  border-radius: var(--rayon); background: var(--blanc);
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: 3px solid var(--lumiere); outline-offset: 1px; border-color: var(--sapin);
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ--piege { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.champ .consentement { font-weight: 400; }
.consentement { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95em; }
.consentement input { width: 1.3rem; height: 1.3rem; margin-top: 0.25rem; flex: none; }
.message-erreur {
  background: #fbeaea; border-left: 4px solid var(--erreur); color: #5a1b1b;
  padding: 1rem 1.2rem; border-radius: 0 var(--rayon) var(--rayon) 0; margin-bottom: 1.5rem;
}
.message-erreur[hidden] { display: none; }

/* Coordonnées */
.coordonnees { list-style: none; padding: 0; margin: 0; }
.coordonnees li { margin-bottom: 0.9rem; padding-left: 2.2rem; position: relative; }
.coordonnees svg { position: absolute; left: 0; top: 0.25rem; width: 1.4rem; height: 1.4rem; color: var(--sapin); }
.bande--sapin .coordonnees svg { color: var(--lumiere); }

/* ---------- Appel final ---------- */

.appel { text-align: left; }
.appel h2 { max-width: 30rem; }
.appel p { max-width: 32rem; }

/* ---------- Renvoi croisé ---------- */

.renvoi {
  margin-top: 3rem; padding: 1.6rem 1.8rem;
  border: 1px solid var(--mousse-foncee); border-radius: var(--rayon-image);
  background: var(--blanc); max-width: 46rem;
}
.renvoi p { margin-bottom: 0.4em; }
.renvoi p:last-child { margin: 0; }
.renvoi--vigne { background: var(--vigne-claire); border-color: #e2cfd4; }
.renvoi--vigne a { color: var(--vigne); }

/* ---------- Pied de page ---------- */

.pied {
  background: var(--sapin-fonce); color: #c9d2c6;
  padding-block: 3.5rem 2rem; font-size: 0.95rem;
}
.pied a { color: #e6ecdf; }
.pied a:hover { color: var(--blanc); }
.pied h2 { color: var(--blanc); font-size: 1.3rem; margin-bottom: 0.7em; }
.pied__grille { display: grid; gap: 2.2rem; }
@media (min-width: 48em) { .pied__grille { grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; } }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 0.4rem; }
.pied__arbre { width: 4rem; margin-bottom: 1rem; color: var(--lumiere); }
.pied__bas {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  font-size: 0.85rem; color: #9fac9d;
}
.pied__bas a { color: #c9d2c6; }

/* ---------- Pages spéciales ---------- */

.page-erreur { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.page-erreur h1 { font-size: clamp(3rem, 2rem + 5vw, 6rem); }
.page-erreur p { margin-inline: auto; }

.mentions h2 { margin-top: 2.2em; font-size: 1.6rem; }
.mentions h2:first-of-type { margin-top: 0; }
.placeholder { background: #fff3d6; padding: 0 0.25em; border-radius: 3px; }

/* Lecture longue (démarche, comprendre) */
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul li { margin-bottom: 0.5em; }

.encadre {
  background: var(--blanc); border: 1px solid var(--mousse-foncee);
  border-radius: var(--rayon-image); padding: 1.6rem 1.8rem; max-width: 46rem; margin: 2rem 0;
}
.encadre h3 { font-size: 1.3rem; }
.encadre p:last-child, .encadre ul:last-child { margin-bottom: 0; }

.agenda__passes { margin-top: 2.5rem; }

/* Guillemets français avec espaces insécables */
q { quotes: "«\00a0" "\00a0»"; }

/* Étapes placées dans une colonne étroite : une seule colonne, numéro à gauche */
@media (min-width: 48em) {
  .colonnes .etapes { grid-template-columns: 1fr; gap: 1.4rem; }
  .colonnes .etapes li { padding-left: 3.6rem; padding-top: 0; }
  .colonnes .etapes li::before { top: 0.1rem; }
}

/* logo manuscrit de Stéphanie */
.marque--logo img { height: 3.9rem; width: auto; display: block; }
@media (max-width: 40em) { .marque--logo img { height: 3rem; } }
.arbre-anim .feuillage { opacity: 0; animation: apparaitre 1.2s ease forwards; animation-delay: 0.8s; }
@media (prefers-reduced-motion: reduce) { .arbre-anim .feuillage { opacity: 1; } }
.arbre-anim .tronc { opacity: 0; animation: apparaitre 0.9s ease forwards; animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .arbre-anim .tronc { opacity: 1; } }
/* article de presse */
.presse { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 2rem; align-items: center; }
.presse img { width: 100%; height: auto; border-radius: var(--rayon-image); }
@media (max-width: 48em) { .presse { grid-template-columns: 1fr; } }
.presse__une { margin: 0; padding: 1.6rem 1.5rem; background: var(--blanc); border: 1px solid var(--mousse-foncee); border-top: 6px solid var(--vigne); border-radius: var(--rayon); box-shadow: 0 10px 30px rgba(34, 48, 42, 0.08); transform: rotate(-1.2deg); }
.presse__titre-journal { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 0.3rem; color: var(--encre); letter-spacing: -0.01em; }
.presse__rubrique { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--vigne); margin: 0 0 1rem; border-bottom: 1px solid var(--mousse-foncee); padding-bottom: 0.6rem; }
.presse__gros-titre { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin: 0; color: var(--encre); }
@media (prefers-reduced-motion: reduce) { .presse__une { transform: none; } }
.presse__une--image { display: block; padding: 0.5rem; border-top-width: 1px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.presse__une--image img { display: block; border-radius: calc(var(--rayon) * 0.6); }
.presse__une--image:hover, .presse__une--image:focus-visible { transform: rotate(0deg) scale(1.02); box-shadow: 0 14px 36px rgba(34, 48, 42, 0.14); }
.presse__extrait { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid var(--lumiere); font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.4; }
.presse__extrait p { margin: 0; }
@media (max-width: 48em) { .presse__une--image { max-width: 18rem; } }
/* témoignage long (plusieurs paragraphes) */
.citation + .citation { margin-top: 2.5rem; }
.citation--longue { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.55; max-width: 40rem; }
.citation--longue p { margin: 0 0 0.9em; }
.citation--longue p:last-of-type { margin-bottom: 0; }

/* définitions des mots techniques (survol, focus ou toucher) */
.terme { position: relative; border-bottom: 1px dotted currentColor; cursor: help; }
.terme:focus { outline: 2px solid var(--lumiere); outline-offset: 2px; border-radius: 2px; }
.terme__def { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.terme:hover .terme__def, .terme:focus .terme__def, .terme.ouvert .terme__def {
  clip: auto; clip-path: none; width: max-content; max-width: min(19rem, 72vw); height: auto; overflow: visible; white-space: normal;
  left: 0; bottom: calc(100% + 0.5rem); z-index: 30;
  background: var(--encre); color: var(--page); padding: 0.65rem 0.85rem; border-radius: var(--rayon);
  font: 400 0.9rem/1.45 var(--sans); font-style: normal; text-align: left; letter-spacing: 0; text-transform: none;
  box-shadow: 0 8px 24px rgba(34, 48, 42, 0.18);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* photo à la place de l'arbre (page Contact), sans recadrage */
.heros__photo { display: block; opacity: 1 !important; width: min(100%, 17rem); justify-self: center; margin-top: 1.5rem; }
.heros__photo img { width: 100%; height: auto; border-radius: var(--rayon-image); box-shadow: 0 12px 32px rgba(34, 48, 42, 0.14); }
@media (min-width: 48em) { .heros__photo { justify-self: end; margin-top: 0; width: min(100%, 19rem); } }
/* portrait rond à côté de la présentation (accueil) */
.presentation { display: flex; gap: 1.2rem; align-items: center; }
.presentation > p, .presentation__texte { margin: 0; min-width: 0; }
.presentation__texte p { margin: 0 0 0.7em; }
.presentation__texte p:last-child { margin-bottom: 0; }
.benefices h3 { font-size: 1.3rem; }
.benefices { margin-top: 1.5rem; }
.presentation > picture { flex: none; display: block; line-height: 0; }
.presentation__photo { width: 6.5rem; height: 6.5rem; flex: none; border-radius: 50%; object-fit: cover; border: 3px solid var(--blanc); box-shadow: 0 6px 18px rgba(34, 48, 42, 0.15); }
@media (max-width: 30em) { .presentation { display: block; } .presentation > picture { float: left; margin: 0.2rem 0.9rem 0.3rem 0; shape-outside: circle(50%); } .presentation__photo { width: 4.8rem; height: 4.8rem; } .presentation::after { content: ""; display: table; clear: both; } }
/* réseaux sociaux (pied de page) */
.reseaux { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.reseaux a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.8rem; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-size: 0.95rem; }
.reseaux a:hover { background: rgba(255, 255, 255, 0.08); }
.reseaux svg { width: 1.15rem; height: 1.15rem; flex: none; }
.pied .reseaux { margin: 1.1rem 0 1.3rem; }
.agenda-calendly .calendly-inline-widget { margin-bottom: 1rem; border-radius: var(--rayon); overflow: hidden; background: var(--blanc); }
#agenda, #formulaire { scroll-margin-top: 6rem; }
/* page Contact : trois colonnes (écrire, joindre, réserver) */
@media (min-width: 64em) { .colonnes--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 48em) and (max-width: 63.99em) { .colonnes--trois { grid-template-columns: 1fr 1fr; } .colonnes--trois > .contact-agenda { grid-column: 1 / -1; } }
.colonnes--trois > div { padding: 1.6rem; background: var(--mousse); border-radius: var(--rayon-image); min-width: 0; }
.colonnes--trois > div > h2:first-child { margin-top: 0; }
.contact-agenda .calendly-inline-widget { height: 760px !important; }
@media (min-width: 48em) and (max-width: 63.99em) { .colonnes--trois { gap: 1.5rem; } }
/* grands écrans : un peu plus de largeur */
@media (min-width: 90em) { :root { --largeur: 82rem; --mesure: 40rem; } }
@media (min-width: 110em) { :root { --largeur: 90rem; } }

/* encadré Formations : repères sur les formateurs */
.reperes { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(34, 48, 42, 0.15); }
.reperes__titre { margin: 0 0 0.4em; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-douce); }
.reperes ul { margin: 0; }
.reperes li { margin-bottom: 0.4em; }
