/* ──────────────────────────────────────────────────────────────
   Les trois thèmes. Le choix se fait dans contenu/reglages/site.yml
   (ligne « theme »). Pour changer une couleur, on change ici.
   ────────────────────────────────────────────────────────────── */
:root,
[data-theme="lac"] {
  --fond: #f6f3ec;
  --surface: #ffffff;
  --texte: #1f2e2d;
  --doux: #55666a;
  --trait: #e2ddd2;
  --principal: #1d5c63;
  --principal-fonce: #143f44;
  --principal-clair: #dcebe8;
  --accent: #c7744a;
}
[data-theme="alpage"] {
  --fond: #f6f5ee;
  --surface: #ffffff;
  --texte: #202b1f;
  --doux: #59665a;
  --trait: #e0ddcf;
  --principal: #36613d;
  --principal-fonce: #24432a;
  --principal-clair: #e0eadb;
  --accent: #c08b2c;
}
[data-theme="tilleul"] {
  --fond: #f8f5f1;
  --surface: #ffffff;
  --texte: #2a2433;
  --doux: #645b6e;
  --trait: #e6dfd8;
  --principal: #5b4a78;
  --principal-fonce: #3f3354;
  --principal-clair: #e8e2f0;
  --accent: #c97d55;
}
:root[data-theme="sauge"] {
  --fond: #f3f1ea;
  --surface: #ffffff;
  --texte: #26302a;
  --doux: #5b6a5f;
  --trait: #dcd8cc;
  --principal: #4e6b57;
  --principal-fonce: #34493b;
  --principal-clair: #dce5d8;
  --accent: #a85a3f;
  --rose: #f1d9cc;
  --police-titre: "DM Serif Display", Georgia, serif;
  --police-texte: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --poids-titre: 400;
  --forme-carte: 2rem 2rem 2rem 0.5rem;
}

/* Les polices de « sauge », servies avec le site (licence SIL OFL). */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/polices/dm-serif-display-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/polices/dm-serif-display-latin-400-normal.woff2") format("woff2"); 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: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/polices/dm-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/polices/dm-sans-latin-400-normal.woff2") format("woff2"); 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: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/polices/dm-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/polices/dm-sans-latin-600-normal.woff2") format("woff2"); 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; }

:root {
  --rose: color-mix(in srgb, var(--accent) 20%, var(--fond));
  --police-titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rayon: 1.25rem;
  --poids-titre: 600;
  --douceur: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 1.0625rem/1.65 var(--police-texte);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: var(--principal); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: var(--poids-titre); line-height: 1.2; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.conteneur { width: min(70rem, 100% - 2rem); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.teintee { background: var(--surface); border-block: 1px solid var(--trait); }
.petit-texte { font-size: 0.92rem; color: var(--doux); }
.chapo { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--doux); max-width: 40rem; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--texte); color: #fff; border-radius: 0.5rem; }
.evitement:focus { top: 1rem; }

/* ── Passage d'une page à l'autre : un fondu, sans écran blanc ── */
@view-transition { navigation: auto; }
.entete { view-transition-name: entete; }
::view-transition-old(root) { animation: 220ms ease both sortie; }
::view-transition-new(root) { animation: 380ms var(--douceur) both entree-page; }
@keyframes sortie { to { opacity: 0; } }
@keyframes entree-page { from { opacity: 0; transform: translateY(14px); } }

/* ── Apparitions au défilement (seulement si le script tourne) ── */
.js .apparait {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--douceur), transform 0.8s var(--douceur);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .apparait.visible { opacity: 1; transform: none; }
.entree { animation: entree 0.9s var(--douceur) both; animation-delay: calc(var(--d, 0) * 110ms + 100ms); }
@keyframes entree { from { opacity: 0; transform: translateY(22px); } }

/* ── Bandeau de démonstration ───────────────────────────────── */
.bandeau-demo {
  margin: 0; padding: 0.45rem 1rem;
  background: var(--texte); color: var(--fond);
  text-align: center; font-size: 0.85rem;
}

/* ── En-tête ────────────────────────────────────────────────── */
.entete {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.entete.defile { border-color: var(--trait); box-shadow: 0 8px 24px -18px rgba(0,0,0,0.35); }
.entete .conteneur { display: flex; align-items: center; gap: 1rem; padding-block: 0.85rem; transition: padding 0.3s var(--douceur); }
.entete.defile .conteneur { padding-block: 0.5rem; }
.marque { display: flex; align-items: center; gap: 0.7rem; color: var(--texte); text-decoration: none; margin-right: auto; }
.marque img { transition: transform 0.6s var(--douceur); }
.marque:hover img { transform: rotate(-8deg) scale(1.06); }
.marque span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.marque strong { font-family: var(--police-titre); font-weight: var(--poids-titre); font-size: 1.3rem; }
.marque small { font-size: 0.82rem; color: var(--doux); }
.entete-tel { white-space: nowrap; flex-shrink: 0; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; }
nav a {
  display: block; padding: 0.45rem 0.8rem; border-radius: 999px;
  color: var(--texte); text-decoration: none; font-size: 0.95rem; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
nav a:hover { background: var(--principal-clair); }
nav a[aria-current="page"] { background: var(--principal); color: #fff; font-weight: 600; }

.icone-tel { width: 1.1rem; height: 1.1rem; flex: none; }
.menu-bouton { display: none; }

/* Jusqu'à 1100 px : le menu passe sous un bouton « Menu » et s'ouvre en liste.
   Sans script, il reste affiché, sur plusieurs lignes. */
@media (max-width: 1100px) {
  .entete .conteneur { flex-wrap: wrap; row-gap: 0.4rem; gap: 0.6rem; }
  nav { order: 3; width: 100%; }
  nav ul { flex-wrap: wrap; }
  .menu-bouton {
    display: inline-flex; align-items: center; gap: 0.45rem; flex-shrink: 0;
    min-height: 2.75rem; padding: 0.5rem 0.95rem; border: 1.5px solid var(--trait); border-radius: 999px;
    background: var(--surface); color: var(--texte); font: 600 0.95rem/1 var(--police-texte); cursor: pointer;
  }
  .menu-bouton svg { width: 1.2rem; height: 1.2rem; }
  .menu-ouvert .menu-bouton { border-color: var(--principal); color: var(--principal-fonce); }
  .js nav { display: none; }
  .js .menu-ouvert nav { display: block; animation: entree 0.3s var(--douceur) both; }
  .js nav ul { flex-direction: column; gap: 0.2rem; padding: 0.35rem 0 0.75rem; }
  .js nav a { padding: 0.8rem 1rem; font-size: 1.05rem; border-radius: 0.9rem; }
  .entete-tel { min-height: 2.75rem; }
  .marque { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 560px) {
  .entete .conteneur { padding-block: 0.6rem; }
  .entete .bouton.entete-tel { width: 2.75rem; padding: 0; }
  .entete-tel-numero { display: none; }
  .marque img { width: 34px; height: 34px; }
  .marque strong { font-size: 1.15rem; }
  .marque small { font-size: 0.74rem; }
}
@media (max-width: 420px) {
  .marque small { display: none; }
  .icone-tel { width: 1.25rem; height: 1.25rem; }
}
@media (max-width: 380px) {
  .menu-bouton { width: 2.75rem; padding: 0; justify-content: center; }
  .menu-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ── Boutons et liens ───────────────────────────────────────── */
.boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.bouton {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.4rem; border: 0; border-radius: 999px;
  background: var(--principal); color: #fff;
  font: 600 1rem/1.2 var(--police-texte); text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--douceur), box-shadow 0.2s;
}
.bouton:hover { background: var(--principal-fonce); transform: translateY(-2px); box-shadow: 0 10px 20px -12px var(--principal); }
.bouton:active { transform: translateY(0); }
.bouton.petit { padding: 0.55rem 1rem; font-size: 0.92rem; }
.bouton.contour { background: transparent; color: var(--principal); box-shadow: inset 0 0 0 2px var(--principal); }
.bouton.contour:hover { background: var(--principal-clair); }
.bouton.clair { background: #fff; color: var(--principal-fonce); }
.bouton.clair:hover { background: var(--principal-clair); box-shadow: none; }
.bouton.contour-clair { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }
.bouton.contour-clair:hover { background: rgba(255,255,255,0.12); }
.lien-fleche { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; margin-top: 0.5rem; }
.lien-fleche::after { content: "→"; transition: transform 0.25s var(--douceur); }
.lien-fleche:hover::after { transform: translateX(5px); }

/* ── Haut de la page d'accueil ──────────────────────────────── */
.heros { position: relative; isolation: isolate; overflow: hidden; }
.heros-photo {
  position: absolute; inset: 0 0 0 auto; width: 56%; z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
          mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}
.heros-photo img { width: 100%; height: 100%; object-fit: cover; animation: lent-zoom 22s ease-out both; }
@keyframes lent-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.heros-grille {
  display: grid; gap: 2.5rem; align-items: end;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding-block: clamp(3rem, 8vw, 6.5rem);
  min-height: min(78vh, 46rem);
}
.heros-texte { align-self: center; }
.heros-texte h1 { max-width: 19ch; font-size: clamp(2rem, 4.2vw, 3rem); }
.heros-texte .chapo { max-width: 32rem; }
.carte-rdv { justify-self: end; width: min(100%, 21rem); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); }
.surtitre {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--principal); margin-bottom: 1rem;
}
@media (max-width: 820px) {
  .heros-photo { position: relative; inset: auto; width: 100%; height: 42vh; min-height: 15rem;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
  .heros-grille { grid-template-columns: 1fr; min-height: 0; padding-top: 0; margin-top: -3rem; }
  .carte-rdv { justify-self: stretch; width: auto; }
}

/* ── Haut de l'accueil sans photo : le portrait dans une arche ── */
.formes { position: absolute; z-index: 0; border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%; pointer-events: none; }
@keyframes flotte { to { transform: translate(0.8rem, -0.6rem) rotate(6deg); } }
.heros-arche .heros-grille { align-items: center; min-height: 0; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.heros-arche .surtitre {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 999px;
  background: var(--principal-clair); color: var(--principal-fonce);
  text-transform: none; letter-spacing: 0; font-size: 0.95rem;
}
.heros-arche h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.06; max-width: 15ch; }
.heros-marque { display: block; font-size: 0.5em; line-height: 1.2; color: var(--principal); margin-bottom: 0.35em; }
.cache-visuel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Le médaillon en filigrane, gris et fixe : il part de la marge de gauche et passe sous le début du titre
   (un tiers de sa largeur). Il grandit avec l'écran ; sous 1280 px, plus petit, il sort du bord gauche
   et passe sous le titre. */
.heros-arche::before {
  --l: clamp(26rem, 28vw, 44rem);
  content: ""; display: block; position: absolute; z-index: -1; pointer-events: none;
  top: 50%; translate: 0 -50%; width: var(--l); aspect-ratio: 1; left: calc(50% - 35rem - var(--l) * 0.65);
  background: url("/images/icone.svg") center / contain no-repeat; filter: grayscale(1); opacity: 0.09;
}
@media (max-width: 1279px) { .heros-arche::before { width: 20rem; left: -7rem; top: 5.5rem; translate: none; } }
/* « L'accompagnement » d'un seul tenant touchait le bord des plus petits téléphones. */
@media (max-width: 380px) { .heros-arche h1 { font-size: 2.05rem; } }
.heros-portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 23rem); }
.heros-portrait .forme-1 { width: 72%; aspect-ratio: 1; left: -22%; top: 14%; background: var(--rose); animation: flotte 11s ease-in-out infinite alternate; }
.heros-portrait .forme-2 { width: 52%; aspect-ratio: 1; right: -14%; bottom: -8%; background: var(--principal-clair);
  border-radius: 42% 58% 38% 62% / 55% 40% 60% 45%; animation: flotte 14s ease-in-out infinite alternate-reverse; }
.arche {
  position: relative; z-index: 1; overflow: hidden; aspect-ratio: 5 / 7;
  border-radius: 999px 999px 1.5rem 1.5rem; border: 0.5rem solid var(--fond);
}
.arche img { width: 100%; height: 100%; object-fit: cover; animation: lent-zoom 18s ease-out both; }
.heros-etiquette {
  position: absolute; z-index: 2; left: -2rem; bottom: 2.5rem; margin: 0; padding: 0.9rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.1rem; box-shadow: 0 18px 36px -22px rgba(0,0,0,0.4);
}
.heros-etiquette strong { font-family: var(--police-titre); font-weight: var(--poids-titre); font-size: 1.15rem; }
.heros-etiquette span { font-size: 0.9rem; color: var(--doux); }
@media (max-width: 820px) {
  .heros-arche .heros-grille { grid-template-columns: 1fr; margin-top: 0; padding-top: 2rem; }
  .heros-portrait { width: min(80%, 18rem); }
  .heros-etiquette { left: -1rem; bottom: 1.5rem; }
}

/* ── En-tête des autres pages ───────────────────────────────── */
.tete-page { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); background: linear-gradient(180deg, var(--fond), var(--principal-clair)); }
.tete-page.avec-photo { background: var(--fond); padding-block: clamp(3.5rem, 9vw, 7rem); }
.tete-page:not(.avec-photo)::before, .tete-page:not(.avec-photo)::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%;
}
.tete-page:not(.avec-photo)::before { width: clamp(12rem, 28vw, 20rem); aspect-ratio: 1; right: 6%; top: -4rem; background: var(--rose); animation: flotte 13s ease-in-out infinite alternate; }
.tete-page:not(.avec-photo)::after { width: clamp(7rem, 14vw, 10rem); aspect-ratio: 1; right: 22%; bottom: -3rem; background: color-mix(in srgb, var(--principal) 22%, var(--fond));
  border-radius: 42% 58% 38% 62% / 55% 40% 60% 45%; animation: flotte 16s ease-in-out infinite alternate-reverse; }
.tete-photo {
  position: absolute; inset: 0 0 0 auto; width: 58%; z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
          mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}
.tete-photo img { width: 100%; height: 100%; object-fit: cover; animation: lent-zoom 18s ease-out both; }
@media (max-width: 820px) {
  .tete-page:not(.avec-photo)::before { width: 8rem; right: -2.5rem; top: -2.5rem; opacity: 0.8; }
  .tete-page:not(.avec-photo)::after { width: 4.5rem; right: 3.5rem; bottom: -2rem; opacity: 0.8; }
}
.tete-texte > * { animation: entree 0.8s var(--douceur) both; }
.tete-texte > :nth-child(2) { animation-delay: 0.1s; }
.tete-texte > :nth-child(3) { animation-delay: 0.2s; }
.tete-page.avec-photo .chapo { max-width: 34rem; }
.tete-page.avec-photo h1 { max-width: 16ch; }
@media (max-width: 820px) {
  .tete-page.avec-photo { padding-top: 0; }
  .tete-photo { position: relative; inset: auto; width: 100%; height: 34vh; min-height: 13rem;
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); }
  .tete-page.avec-photo .tete-texte { margin-top: -2rem; }
}

/* ── Cartes ─────────────────────────────────────────────────── */
.grille { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }
.carte {
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--forme-carte, var(--rayon));
  padding: 1.6rem; box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.carte p { color: var(--doux); }
.carte-service { transition: transform 0.35s var(--douceur), box-shadow 0.35s, opacity 0.8s var(--douceur); }
.js .carte-service.apparait.visible:hover, .carte-service:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -26px rgba(0,0,0,0.35); }
.pastille-icone {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem;
  border-radius: 1rem; background: var(--principal-clair); color: var(--principal);
  transition: transform 0.4s var(--douceur), background 0.3s, color 0.3s;
}
.carte-service:hover .pastille-icone { transform: rotate(-6deg) scale(1.08); background: var(--principal); color: #fff; }
.icone { width: 1.6rem; height: 1.6rem; }
.carte-rdv { box-shadow: 0 24px 48px -28px rgba(0,0,0,0.35); }
.carte-rdv-titre { font-family: var(--police-titre); font-size: 1.35rem; font-weight: var(--poids-titre); color: var(--texte) !important; }
.liste-coches { list-style: none; padding: 0; margin: 0 0 1rem; }
.liste-coches li { padding: 0.4rem 0 0.4rem 1.8rem; position: relative; }
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: 0.75rem;
  width: 1.05rem; height: 0.55rem;
  border-left: 3px solid var(--principal); border-bottom: 3px solid var(--principal);
  transform: rotate(-45deg);
}
.carte-lien { display: flex; flex-direction: column; gap: 0.4rem; color: var(--texte); text-decoration: none; transition: transform 0.3s var(--douceur), box-shadow 0.3s, opacity 0.8s var(--douceur); }
.carte-lien:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(0,0,0,0.3); }
.etiquette { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--principal); }
.gros { font-family: var(--police-titre); font-size: 1.4rem; font-weight: var(--poids-titre); overflow-wrap: anywhere; }

/* ── Photo et texte côte à côte ─────────────────────────────── */
.image-texte { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.image-texte.inverse > .cadre-photo { order: 2; }
@media (max-width: 820px) { .image-texte { grid-template-columns: 1fr; } .image-texte.inverse > .cadre-photo { order: 0; } }
.cadre-photo { position: relative; margin: 0; }
.cadre-photo::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: 0;
  border-radius: calc(var(--rayon) * 1.4); background: var(--principal-clair);
}
.inverse .cadre-photo::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; background: color-mix(in srgb, var(--accent) 25%, var(--fond)); }
.cadre-photo img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: calc(var(--rayon) * 1.4);
  transition: transform 0.8s var(--douceur);
}
.cadre-photo:hover img { transform: scale(1.015) rotate(-0.4deg); }

/* ── La frise des étapes ────────────────────────────────────── */
.frise { list-style: none; counter-reset: etape; padding: 0; margin: 1.5rem 0 0; position: relative; }
.frise::before {
  content: ""; position: absolute; left: 1.45rem; top: 1.5rem; bottom: 2rem; width: 2px;
  background: linear-gradient(var(--principal), var(--accent));
  transform-origin: top; transform: scaleY(var(--trace, 1)); transition: transform 1.4s var(--douceur);
}
.js .frise:not(:has(.visible))::before { --trace: 0; }
.frise li { counter-increment: etape; position: relative; padding: 0 0 1.75rem 4.25rem; }
.frise li:last-child { padding-bottom: 0; }
.frise li::before {
  content: counter(etape);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--surface); color: var(--principal-fonce); box-shadow: inset 0 0 0 2px var(--principal), 0 0 0 6px var(--fond);
  font-family: var(--police-titre); font-size: 1.3rem; font-weight: var(--poids-titre);
}
.frise h3 { padding-top: 0.6rem; }
@media (min-width: 761px) {
  .frise-horizontale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2rem; }
  .frise-horizontale::before {
    left: 1.5rem; right: calc((100% - 5rem) / 3 - 1.5rem); top: 1.5rem; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--principal), var(--accent));
    transform-origin: left; transform: scaleX(var(--trace, 1));
  }
  .frise-horizontale li { padding: 4.5rem 0 0; }
  .frise-horizontale h3 { padding-top: 0; }
}
.frise p { color: var(--doux); }

/* ── Encart (bilan de compétences) ──────────────────────────── */
.encart {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden;
  border-radius: calc(var(--rayon) * 1.4);
  background: var(--principal); color: #fff;
  background-image: radial-gradient(circle at 0% 100%, rgba(255,255,255,0.12), transparent 55%);
}
.encart-texte { padding: clamp(1.75rem, 4vw, 3.25rem); }
.encart-texte p { color: rgba(255,255,255,0.88); max-width: 34rem; }
.encart-texte .bouton { margin-top: 0.75rem; }
.encart-photo { position: relative; min-height: 16rem; }
.encart-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--douceur); }
.encart:hover .encart-photo img { transform: scale(1.04); }
@media (max-width: 720px) { .encart { grid-template-columns: 1fr; } .encart-photo { order: -1; min-height: 12rem; } }
.badge, .annonce {
  display: inline-block; margin-bottom: 1rem; padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: #fff !important;
}
.badge { animation: pulsation 2.8s ease-in-out infinite; }
@keyframes pulsation { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 25%, transparent); } }
.annonce { text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 600; border-radius: 0.75rem; padding: 0.45rem 0.9rem; }

/* ── Engagements, communes ──────────────────────────────────── */
.deux-colonnes { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.engagements { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.engagements li { padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--doux); }
.engagements strong { color: var(--texte); }
.pastilles { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pastilles li { padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--principal-clair); color: var(--principal-fonce); font-size: 0.92rem; }

/* ── Pages de texte ─────────────────────────────────────────── */
.texte { max-width: 44rem; }
.texte h2 { margin-top: 2.75rem; }
.texte h2:first-child { margin-top: 0; }
.texte ul, .texte ol { padding-left: 1.3rem; margin: 0 0 1.25rem; }
.texte li { margin-bottom: 0.6rem; }
.texte a { overflow-wrap: anywhere; }
.texte li::marker { color: var(--accent); font-weight: 700; }
.urgences strong { display: inline-block; min-width: 2.6rem; color: var(--principal-fonce); }

/* ── Tarifs ─────────────────────────────────────────────────── */
.tarifs { list-style: none; padding: 0; margin: 0 0 1.5rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.tarifs li { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; text-align: left; padding: 1.4rem 1.6rem; transition: background 0.2s; }
.tarifs li:hover { background: color-mix(in srgb, var(--principal-clair) 45%, var(--surface)); }
.tarifs li + li { border-top: 1px solid var(--trait); }
.tarifs p { color: var(--doux); }
.prix { font-family: var(--police-titre); font-size: 1.35rem; font-weight: var(--poids-titre); color: var(--principal-fonce) !important; white-space: nowrap; }
@media (max-width: 560px) { .tarifs li { flex-direction: column; align-items: flex-start; gap: 0.5rem; } }

/* ── Contact : formulaire ───────────────────────────────────── */
.contact-grille { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.contact-cotes { display: grid; gap: 1.25rem; }
@media (max-width: 860px) { .contact-grille { grid-template-columns: minmax(0, 1fr); } }
.boite-contact { padding: clamp(1.25rem, 3.5vw, 2.25rem); }
.onglets { display: flex; gap: 0.35rem; padding: 0.35rem; margin-bottom: 1.5rem; border-radius: 999px; background: var(--fond); border: 1px solid var(--trait); }
.onglets [role="tab"] {
  flex: 1; padding: 0.7rem 1rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 0.95rem/1.2 var(--police-texte); color: var(--doux); transition: background 0.25s var(--douceur), color 0.25s;
}
.onglets [role="tab"]:hover { color: var(--texte); }
.onglets [aria-selected="true"] { background: var(--principal); color: #fff; box-shadow: 0 6px 16px -10px var(--principal); }
.panneau:not([hidden]) { animation: entree 0.45s var(--douceur) both; }
.agenda-accueil { text-align: center; padding: 2rem 0.5rem; }
.agenda-accueil .bouton { margin: 0.5rem 0 1.25rem; }
.agenda-cadre { display: block; width: 100%; height: 44rem; border: 0; border-radius: 0.8rem; }
.champ { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.champ label, .choix legend { font-weight: 600; font-size: 0.95rem; }
.facultatif { font-weight: 400; color: var(--doux); }
.deux { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.deux .champ { margin-bottom: 0.25rem; }
input:not([type=radio]):not([type=checkbox]), textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--trait); border-radius: 0.8rem;
  background: var(--fond); color: var(--texte); font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { resize: vertical; min-height: 7rem; }
input:focus, textarea:focus { outline: none; border-color: var(--principal); background: var(--surface); box-shadow: 0 0 0 4px var(--principal-clair); }
[aria-invalid="true"] { border-color: #b3261e !important; box-shadow: 0 0 0 4px #f9dedc !important; }
.aide { font-size: 0.88rem; color: var(--doux); margin: 0 0 1.25rem; }
.choix { border: 0; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choix legend { margin-bottom: 0.5rem; }
.choix label { cursor: pointer; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix span {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; border: 1.5px solid var(--trait);
  font-size: 0.93rem; background: var(--fond); transition: all 0.2s var(--douceur);
}
.choix label:hover span { border-color: var(--principal); }
.choix input:checked + span { background: var(--principal); border-color: var(--principal); color: #fff; }
.choix input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.accord { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0.5rem 0 1.25rem; font-size: 0.9rem; color: var(--doux); cursor: pointer; }
.accord input { margin-top: 0.2rem; width: 1.15rem; height: 1.15rem; accent-color: var(--principal); flex: none; }
.message-erreur { padding: 0.75rem 1rem; border-radius: 0.8rem; background: #fbeae8; color: #8c1d18; font-size: 0.95rem; animation: secousse 0.4s; }
@keyframes secousse { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.envoyer { min-width: 13rem; }
.roue { display: none; width: 1.1rem; height: 1.1rem; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: tourne 0.7s linear infinite; }
.en-cours .roue { display: inline-block; }
.en-cours .envoyer { cursor: progress; opacity: 0.85; }
@keyframes tourne { to { transform: rotate(360deg); } }
.envoye .champs { display: none; }
.merci { text-align: center; padding: 2rem 0.5rem; outline: none; }
.merci h2 { animation: entree 0.6s 0.5s var(--douceur) both; }
.merci p { animation: entree 0.6s 0.65s var(--douceur) both; margin-inline: auto; max-width: 30rem; }
.coche { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.25rem; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.coche circle { stroke: var(--principal); stroke-dasharray: 160; stroke-dashoffset: 160; animation: trace 0.6s var(--douceur) forwards; }
.coche path { stroke: var(--accent); stroke-dasharray: 40; stroke-dashoffset: 40; animation: trace 0.35s 0.45s var(--douceur) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ── Contact : la carte ─────────────────────────────────────── */
.carte-zone {
  height: clamp(20rem, 50vw, 28rem); margin-bottom: 1.5rem; z-index: 0;
  border-radius: calc(var(--rayon) * 1.2); overflow: hidden;
  background: var(--principal-clair); border: 1px solid var(--trait);
  display: grid; place-items: center;
}
.carte-attente { color: var(--doux); }
.carte-zone .leaflet-tile-pane { filter: saturate(0.45) sepia(0.12) contrast(0.95) brightness(1.03); }
.carte-zone .leaflet-container, .carte-zone.leaflet-container { font: inherit; background: var(--principal-clair); }
.point-carte { transform-box: fill-box; transform-origin: center; animation: apparition-point 0.6s var(--douceur) both; }
@keyframes apparition-point { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.25); } }
.leaflet-tooltip.etiquette-carte {
  background: var(--texte); color: #fff; border: 0; border-radius: 999px; padding: 0.25rem 0.7rem;
  font-size: 0.82rem; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(0,0,0,0.5);
}
.leaflet-tooltip-top.etiquette-carte::before { border-top-color: var(--texte); }

/* ── Appel à prendre contact ────────────────────────────────── */
.appel { padding-top: 0; }
.tete-page + .section + .appel, .teintee + .appel { padding-top: clamp(3rem, 7vw, 5.5rem); }
.appel-boite {
  position: relative; overflow: hidden;
  display: grid; gap: 1rem 3rem; align-items: center; grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(1.75rem, 4vw, 3rem); border-radius: calc(var(--rayon) * 1.4);
  background: var(--principal-fonce); color: #fff;
}
.appel-boite::after {
  content: ""; position: absolute; width: 22rem; height: 22rem; right: -6rem; top: -10rem; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%);
  animation: derive 14s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes derive { to { transform: translate(-6rem, 6rem) scale(1.15); } }
.appel-boite > * { position: relative; z-index: 1; }
.appel-boite p { color: rgba(255,255,255,0.85); }
.appel-boite .boutons { margin-top: 0; }
@media (max-width: 760px) { .appel-boite { grid-template-columns: 1fr; } }

/* ── Pied de page ───────────────────────────────────────────── */
.pied { background: var(--texte); color: rgba(255,255,255,0.78); padding-block: 3rem 1.5rem; font-size: 0.95rem; }
.pied a { color: #fff; }
.pied-grille > * { min-width: 0; }
.pied p { overflow-wrap: anywhere; }
.pied-grille { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pied-nom { font-family: var(--police-titre); font-size: 1.3rem; color: #fff; margin-bottom: 0.4rem; }
.pied-bas { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; }
.credits { font-size: 0.92rem; }

/* ── Portrait, vignettes ────────────────────────────────────── */
.avatar { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--principal-clair); }
.carte-rdv-qui, .carte-qui { display: flex; align-items: center; gap: 1rem; }
.carte-rdv-qui { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--trait); }
.carte-rdv-qui p, .carte-qui p { display: flex; flex-direction: column; margin: 0; line-height: 1.3; color: var(--texte) !important; }
.carte-rdv-qui strong, .carte-qui strong { font-family: var(--police-titre); font-size: 1.15rem; }
.carte-rdv-qui span, .carte-qui span { font-size: 0.88rem; color: var(--doux); }
.carte-qui .avatar { width: 5rem; height: 5rem; }
.petit-gros { font-size: 1.1rem; }
.avec-portrait { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 20rem) minmax(0, 44rem); align-items: start; }
@media (max-width: 820px) { .avec-portrait { grid-template-columns: 1fr; } }
.portrait { position: sticky; top: 7rem; margin: 0; }
@media (max-width: 820px) { .portrait { position: static; max-width: min(18rem, 100% - 1.5rem); } }
.portrait-cadre { position: relative; }
.portrait-cadre::before {
  content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; z-index: 0;
  border-radius: calc(var(--rayon) * 1.4); background: var(--principal-clair);
}
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--rayon) * 1.4); }
.portrait figcaption { position: relative; z-index: 1; margin-top: 1.75rem; font-family: var(--police-titre); font-size: 1.25rem; font-weight: var(--poids-titre); }
.portrait figcaption span { display: block; font-family: var(--police-texte); font-size: 0.92rem; font-weight: 400; color: var(--doux); }

/* ── Avis ───────────────────────────────────────────────────── */
.avis-carte { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.etoiles { margin: 0; color: #e0a526; letter-spacing: 0.1em; font-size: 1.1rem; }
.etoiles .vide { color: var(--trait); }
.avis-carte blockquote { margin: 0; flex: 1; font-style: italic; color: var(--texte); }
.avis-carte figcaption { font-size: 0.9rem; color: var(--doux); }

/* ── Crédit d'impôt ─────────────────────────────────────────── */
.prix-bloc { text-align: right; flex: none; }
.prix-bloc p { margin: 0; }
.apres-credit { margin: 0.2rem 0 0; font-size: 0.88rem; font-weight: 600; color: var(--accent) !important; }
@media (max-width: 560px) { .prix-bloc { text-align: left; } .prix { white-space: normal; } }
.credit-impot {
  display: flex; gap: 1.5rem; align-items: center; margin: 0 0 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--rayon);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--trait));
}
.credit-impot h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.credit-impot p { color: var(--doux); }
.credit-pastille {
  display: grid; place-items: center; flex: none; width: 5.5rem; height: 5.5rem; margin: 0; border-radius: 50%;
  background: var(--accent); color: #fff !important; font-family: var(--police-titre); font-size: 1.5rem; font-weight: var(--poids-titre);
  animation: pulsation 2.8s ease-in-out infinite;
}
@media (max-width: 560px) { .credit-impot { flex-direction: column; align-items: flex-start; } .credit-pastille { width: 4.5rem; height: 4.5rem; font-size: 1.25rem; } }
.credits li { margin-bottom: 0.4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .coche circle, .coche path { stroke-dashoffset: 0; }
}

/* ── Sauge et argile : le portrait de « À propos » dans une arche, comme à l'accueil ── */
:root[data-theme="sauge"] .portrait img { aspect-ratio: 5 / 6; border-radius: 999px 999px 1.5rem 1.5rem; }
:root[data-theme="sauge"] .portrait-cadre::before { inset: 18% -1.25rem -1rem 1.25rem; background: var(--rose); border-radius: 42% 58% 38% 62% / 55% 40% 60% 45%; }
