/* ==========================================================================
   EHPAD Les Hauts Vents — feuille de style
   Palette issue du logo : vert de l'arbre, bleu du lettrage, rouge des roses
   du parc. Typographies : Fraunces (titres) et Atkinson Hyperlegible (texte),
   conçue pour les personnes malvoyantes.
   ========================================================================== */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}

:root {
  --green-950: #0b2f25;
  --green-900: #0e3b2e;
  --green-800: #145240;
  --green-700: #1b6a52;
  --green-600: #23805f;
  --green-200: #c7e2d4;
  --green-100: #e4f1ea;
  --green-50: #f1f8f4;
  --blue-800: #1c3f78;
  --blue-700: #24529a;
  --blue-100: #e6edf8;
  --rose-700: #a8323a;
  --rose-600: #c0424a;
  --rose-100: #fbe9e8;
  --sand-50: #fbf8f2;
  --sand-100: #f4eee3;
  --sand-200: #e8dfcf;
  --ink: #1b2420;
  --ink-2: #44514b;
  --line: #ddd5c6;
  --white: #fff;

  --bg: var(--sand-50);
  --surface: var(--white);
  --text: var(--ink);
  --muted: var(--ink-2);
  --primary: var(--green-700);
  --primary-strong: var(--green-800);
  --link: var(--green-800);
  --focus: #e0a000;

  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(14 59 46 / .06), 0 2px 8px rgb(14 59 46 / .06);
  --shadow: 0 2px 4px rgb(14 59 46 / .05), 0 12px 32px rgb(14 59 46 / .10);
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

/* Confort de lecture : tailles de texte et contraste renforcé */
html { font-size: 100%; }
html[data-size="1"] { font-size: 115%; }
html[data-size="2"] { font-size: 132%; }
html[data-contrast="high"] {
  --bg: #fff;
  --surface: #fff;
  --text: #000;
  --muted: #1a1a1a;
  --primary: #0b3d2d;
  --primary-strong: #062419;
  --link: #062419;
  --line: #000;
  --green-50: #fff;
  --green-100: #fff;
  --sand-100: #fff;
  --sand-50: #fff;
  --rose-700: #7a1219;
  --blue-700: #0d2a5c;
}
html[data-contrast="high"] a:not(.brand):not(.btn):not(.card__link):not(.doc-card__link) { text-decoration: underline !important; }
html[data-contrast="high"] .card,
html[data-contrast="high"] .feature,
html[data-contrast="high"] .accordion__item,
html[data-contrast="high"] .doc-card,
html[data-contrast="high"] .callout { border: 2px solid #000; box-shadow: none; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 7.5rem; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 560;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
html[data-contrast="high"] h1, html[data-contrast="high"] h2, html[data-contrast="high"] h3 { color: #000; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
strong { font-weight: 700; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--green-900); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px;
  font: 700 1.05rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-strong); }
.btn--accent { background: var(--rose-700); color: #fff; }
.btn--accent:hover { background: #8e2830; }
.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { background: var(--green-50); }
.btn--ghost { background: transparent; color: var(--primary-strong); border-color: currentColor; }
.btn--ghost:hover { background: var(--green-50); }
.btn--outline-light { color: #fff; border-color: rgb(255 255 255 / .7); background: transparent; }
.btn--outline-light:hover { background: rgb(255 255 255 / .12); }
.btn--sm { white-space: nowrap; min-height: 2.6rem; padding: .5rem 1.05rem; font-size: .98rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--link);
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--green-900); color: #e8f3ee; font-size: .95rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.9rem; flex-wrap: wrap; }
.topbar__info { display: flex; gap: 1.5rem; margin: 0; align-items: center; flex-wrap: wrap; }
.topbar__info a, .topbar__hours { color: inherit; text-decoration: none; display: inline-flex; gap: .45em; align-items: center; }
.topbar__info a { font-weight: 700; }
.topbar__info a:hover { text-decoration: underline; }
.a11y { display: flex; align-items: center; gap: .3rem; }
.a11y__label { display: inline-flex; align-items: center; gap: .35em; margin-right: .3rem; opacity: .9; }
.a11y__btn {
  min-width: 2.3rem; height: 2.1rem; padding: 0 .55rem; border-radius: 8px;
  border: 1px solid rgb(255 255 255 / .35); background: transparent; color: #fff;
  font: 700 .95rem/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: .35em;
}
.a11y__btn--md { font-size: 1.12rem; }
.a11y__btn--lg { font-size: 1.32rem; }
.a11y__btn--contrast { margin-left: .4rem; font-size: .9rem; }
.a11y__btn[aria-pressed="true"] { background: #fff; color: var(--green-900); border-color: #fff; }
.a11y__btn:hover { border-color: #fff; }

/* ---------- En-tête et navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 248 242 / .94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
html[data-contrast="high"] .site-header { background: #fff; }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 5.2rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--green-900); flex: none; }
.brand__logo { width: 3.6rem; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-title); font-size: 1.45rem; font-weight: 600; color: var(--blue-800); }
.brand__sub { font-size: .85rem; color: var(--muted); letter-spacing: .02em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .2em; padding: .6rem .6rem; border-radius: 10px;
  font: 700 1rem/1.2 var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  white-space: nowrap;
}
.nav__link:hover, .nav__item.is-active > .nav__link, .nav__link.is-active { color: var(--primary); background: var(--green-50); }
.icon--chevron { width: 1.1em; height: 1.1em; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .icon--chevron { transform: rotate(180deg); }
.nav__sub {
  list-style: none; margin: 0; padding: .6rem; position: absolute; top: calc(100% + .5rem); left: 50%;
  width: 21rem; transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__sub::before { content: ""; position: absolute; inset: -.6rem 0 auto; height: .6rem; }
.nav__item.has-sub:hover > .nav__sub,
.nav__item.has-sub:focus-within > .nav__sub,
.nav__toggle[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__sub a { display: block; padding: .65rem .85rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--green-50); }
.nav__sub a[aria-current="page"] .nav__sub-title { color: var(--primary); }
.nav__sub-title { display: block; font-weight: 700; }
.nav__sub-hint { display: block; font-size: .9rem; color: var(--muted); }
.nav__cta { display: flex; gap: .5rem; }
.menu-toggle { display: none; }

@media (max-width: 1320px) {
  .nav__cta .btn--ghost { display: none; }
}
/* Menu compact (burger) : activé par main.js sous 1060 px ou dès que le menu ne tient plus
   sur une ligne, par exemple avec le texte agrandi. */
@media (max-width: 1060px) {
  .topbar__hours, .a11y__label { display: none; }
}
/* le flou crée un bloc conteneur qui piégerait le panneau de menu fixe */
.nav-compact .site-header { backdrop-filter: none; background: var(--bg); }
.nav-compact .site-header__inner { min-height: 4.5rem; }
.nav-compact .brand__logo { width: 3rem; }
.nav-compact .menu-toggle {
  display: inline-flex; align-items: center; gap: .4rem; margin-left: auto;
  min-height: 2.9rem; padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--green-800);
  background: transparent; color: var(--green-900); font: 700 1rem var(--font-body); cursor: pointer;
}
.nav-compact .menu-toggle .icon { width: 1.4em; height: 1.4em; }
.nav-compact .menu-toggle .icon--close, .nav-compact .menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-compact .menu-toggle[aria-expanded="true"] .icon--close { display: block; }
.nav-compact .nav {
  position: fixed; inset: var(--header-h, 7.4rem) 0 0 0; z-index: 49;
  flex-direction: column; align-items: stretch; gap: 1.25rem; margin: 0;
  padding: 1.25rem var(--gutter) 6rem; background: var(--bg); overflow-y: auto;
  display: none;
}
.nav-compact .nav.is-open { display: flex; animation: nav-in .2s ease-out; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } }
.nav-compact .nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
.nav-compact .nav__link { width: 100%; justify-content: space-between; font-size: 1.15rem; padding: .9rem 1rem; }
.nav-compact .nav__sub {
  position: static; width: auto; transform: none; opacity: 1; visibility: visible; box-shadow: none;
  display: none; border: 0; padding: 0 0 .5rem .75rem; background: transparent;
}
.nav-compact .nav__item.has-sub:hover > .nav__sub, .nav-compact .nav__item.has-sub:focus-within > .nav__sub { transform: none; }
.nav-compact .nav__toggle[aria-expanded="true"] + .nav__sub { display: block; transform: none; }
.nav-compact .nav__cta { flex-direction: column; }
.nav-compact .nav__cta .btn, .nav-compact .nav__cta .btn--ghost { display: flex; width: 100%; }
.nav-compact body.menu-open { overflow: hidden; }

@media (max-width: 560px) {
  .topbar__inner { justify-content: center; }
  .topbar__info { display: none; }
  .a11y { width: 100%; justify-content: center; padding: .3rem 0; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.25rem; }
}

/* ---------- Bandeau de page ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 110% -20%, rgb(35 128 95 / .14), transparent 60%),
    linear-gradient(180deg, var(--green-50), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2rem, 5vw, 3.75rem); }
.page-hero--with-media .page-hero__inner { grid-template-columns: 1.15fr .85fr; }
.page-hero h1 { margin-bottom: .35em; max-width: 18ch; }
.page-hero__lead { font-size: 1.25rem; color: var(--muted); max-width: 46ch; margin: 0; }
.page-hero__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 6px solid #fff;
}
.kicker {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: .8rem;
  font-weight: 700; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700);
}
.kicker::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1.25rem; font-size: .95rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: var(--green-600); }
.breadcrumb a { color: var(--muted); }
@media (max-width: 820px) {
  .page-hero--with-media .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media { order: -1; }
  .page-hero__media img { aspect-ratio: 16 / 9; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--soft { background: var(--green-50); }
.section--sand { background: var(--sand-100); }
.section--dark { background: var(--green-900); color: #e8f3ee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a:not(.btn) { color: #fff; }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { font-size: 1.2rem; color: var(--muted); }
.section--dark .section__head p { color: #cfe5db; }
.section--dark .kicker { color: #9fd6bd; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--green-600); }
.lead { font-size: 1.25rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--wide-text { grid-template-columns: 1.2fr .8fr; }
.split--top { align-items: start; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.split__media--stack { position: relative; padding: 0 0 2.5rem 2.5rem; }
.split__media--stack img:first-child { aspect-ratio: 4 / 3; }
.split__media--stack img:nth-child(2) {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid var(--bg);
}
@media (max-width: 860px) {
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split--reverse-mobile .split__media { order: -1; }
}

/* ---------- Accueil ---------- */
.home-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.home-hero__bg { position: absolute; inset: 0; z-index: -2; }
.home-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(11 47 37 / .9) 0%, rgb(11 47 37 / .72) 42%, rgb(11 47 37 / .15) 100%),
    linear-gradient(0deg, rgb(11 47 37 / .5), transparent 40%);
}
.home-hero__inner { padding-block: clamp(4rem, 12vw, 9rem) clamp(5rem, 12vw, 9.5rem); max-width: var(--container); }
.home-hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.5rem, 6vw, 4.4rem); }
.home-hero h1 em { font-style: italic; color: #bfe6d3; font-weight: 500; }
.home-hero p { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 36rem; color: #e9f4ef; }
.home-hero .kicker { color: #bfe6d3; }
.home-hero .btn-row { margin-top: 2rem; }
html[data-contrast="high"] .home-hero::before { background: rgb(0 0 0 / .78); }

.facts { position: relative; z-index: 2; margin-top: clamp(-4.5rem, -6vw, -3rem); }
.facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line);
}
.fact { padding: 1.6rem 1.5rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact__num { display: block; font-family: var(--font-title); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 600; color: var(--green-700); line-height: 1; margin-bottom: .35rem; }
.fact__label { color: var(--muted); font-size: 1rem; line-height: 1.4; display: block; }
@media (max-width: 860px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.value { padding: 1.5rem; border-radius: var(--radius); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); }
.value h3 { margin-bottom: .3em; font-size: 1.4rem; }
.value p { margin: 0; color: #cfe5db; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media { overflow: hidden; }
.card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.35rem; }
.card__body p { margin: 0; color: var(--muted); }
.card__link { text-decoration: none; color: inherit; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card__more { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--link); display: inline-flex; align-items: center; gap: .35em; }

.feature-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); margin: 1.5rem 0; padding: 0; list-style: none; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem;
}
.feature h3 { font-size: 1.2rem; margin-bottom: .35em; }
.feature p { margin: 0; color: var(--muted); }
.feature__icon {
  width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; margin-bottom: .8rem;
  background: var(--green-100); color: var(--green-800);
}
.feature__icon .icon { width: 1.4rem; height: 1.4rem; }

.checklist { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23145240'%3E%3Cpath d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.checklist--cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); column-gap: 2rem; }
.checklist--minus li::before { background: var(--rose-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a8323a'%3E%3Cpath d='M5 11h14v2H5z'/%3E%3C/svg%3E") center / 70% no-repeat; }

.callout {
  border-radius: var(--radius); padding: 1.35rem 1.5rem; background: var(--green-50); border: 1px solid var(--green-200);
  border-left: 6px solid var(--green-700); margin: 1.5rem 0;
}
.callout p:last-child { margin: 0; }
.callout--info { background: var(--blue-100); border-color: #c8d6ee; border-left-color: var(--blue-700); }
.callout--rose { background: var(--rose-100); border-color: #f0cccb; border-left-color: var(--rose-700); }
.callout__title { font-weight: 700; display: block; margin-bottom: .3rem; color: var(--green-900); }

.pill {
  display: inline-flex; align-items: center; gap: .4em; padding: .3rem .8rem; border-radius: 999px;
  background: var(--green-100); color: var(--green-900); font-weight: 700; font-size: .95rem;
}

/* ---------- Horaires des repas ---------- */
.schedule { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
.schedule li {
  display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: baseline; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.schedule time, .schedule .time { font-family: var(--font-title); font-weight: 600; font-size: 1.4rem; color: var(--green-700); }

/* ---------- Frise historique ---------- */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.4rem; top: .5rem; bottom: .5rem; width: 3px; background: var(--green-200); border-radius: 3px; }
.timeline li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 2.2rem; padding-bottom: 1.8rem; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 4.95rem; top: .45rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--bg); border: 4px solid var(--green-700);
}
.timeline__year { font-family: var(--font-title); font-weight: 650; font-size: 1.35rem; color: var(--green-800); text-align: right; line-height: 1.5; }
.timeline__text h3 { font-size: 1.2rem; margin-bottom: .25em; }
.timeline__text p { margin: 0; color: var(--muted); }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 2rem 0; counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; position: relative;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--green-700); color: #fff; font-family: var(--font-title); font-weight: 650; font-size: 1.3rem; margin-bottom: .9rem;
}
.steps h3 { font-size: 1.22rem; margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Accordéons ---------- */
.accordion { display: grid; gap: .75rem; margin: 1rem 0 2rem; }
.accordion__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.accordion__item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3.5rem 1.1rem 1.35rem; position: relative;
  font-weight: 700; font-size: 1.12rem; color: var(--green-900);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 1.7rem; height: 1.7rem; margin-top: -.85rem; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23145240'%3E%3Cpath d='M11 5h2v14h-2zM5 11h14v2H5z'/%3E%3C/svg%3E") center / 60% no-repeat;
  transition: transform .2s;
}
.accordion__item[open] summary::after { transform: rotate(45deg); }
.accordion__item summary:hover { background: var(--green-50); }
.accordion__body { padding: 0 1.35rem 1.2rem; color: var(--ink-2); }
.accordion__body p:last-child { margin-bottom: 0; }
.faq__cat { font-size: 1.6rem; margin-top: 2.2rem; }
.faq__cat:first-child { margin-top: 0; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 38rem; }
.table caption { text-align: left; padding: 1rem 1.15rem .25rem; font-weight: 700; font-family: var(--font-title); font-size: 1.25rem; color: var(--green-900); }
.table th, .table td { padding: .8rem 1.15rem; text-align: right; border-bottom: 1px solid var(--line); }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th { background: var(--green-50); font-size: .95rem; color: var(--green-900); vertical-align: bottom; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table .total { font-weight: 700; color: var(--green-800); }
.table--simple { min-width: 0; }

.price-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 1.5rem 0; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.price-card__label { font-weight: 700; color: var(--muted); display: block; font-size: 1rem; }
.price-card__value { font-family: var(--font-title); font-size: 2.1rem; font-weight: 600; color: var(--green-700); line-height: 1.15; display: block; margin: .2rem 0; }
.price-card p { margin: 0; font-size: .98rem; color: var(--muted); }

/* ---------- Documents ---------- */
.docs { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.doc-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.doc-card__cover { background: var(--sand-100); padding: 1.25rem 1.25rem 0; height: 13rem; overflow: hidden; display: flex; justify-content: center; }
.doc-card__cover img { width: 78%; box-shadow: 0 6px 20px rgb(0 0 0 / .14); border-radius: 4px 4px 0 0; object-fit: cover; object-position: top; }
.doc-card__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.doc-card__body h3 { font-size: 1.18rem; margin: 0; }
.doc-card__body p { margin: 0; color: var(--muted); font-size: .98rem; }
.doc-card__link { text-decoration: none; color: inherit; }
.doc-card__link::after { content: ""; position: absolute; inset: 0; }
.doc-card:has(.doc-card__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.doc-card__meta { margin-top: auto; padding-top: .5rem; display: inline-flex; gap: .4em; align-items: center; font-weight: 700; color: var(--link); font-size: .98rem; }

/* ---------- Évaluation qualité ---------- */
.scores { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .7rem; }
.score { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: center; }
.score__bar { grid-column: 1 / -1; height: .6rem; border-radius: 999px; background: var(--sand-200); overflow: hidden; }
.score__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-600), var(--green-700)); }
.score__value { font-weight: 700; color: var(--green-800); }
.grade { display: inline-flex; gap: .3rem; margin: .25rem 0 1rem; }
.grade span {
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 10px; font-weight: 700; font-size: 1.2rem;
  background: var(--sand-100); color: var(--muted);
}
.grade span.is-on { background: var(--green-700); color: #fff; transform: scale(1.12); box-shadow: var(--shadow-sm); }

/* ---------- Galerie et visionneuse ---------- */
.gallery { columns: 4 15rem; column-gap: 1rem; }
.gallery__item { display: block; margin-bottom: 1rem; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; position: relative; }
.gallery__item img { width: 100%; transition: transform .45s; }
.gallery__item:hover img { transform: scale(1.04); }
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgb(8 24 19 / .92); }
.lightbox__figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 4.5rem 2rem; }
.lightbox__figure img { max-height: calc(100vh - 9rem); max-width: 100%; width: auto; border-radius: 8px; }
.lightbox__figure figcaption { color: #e6f1ec; margin-top: 1rem; text-align: center; font-size: 1.05rem; }
.lightbox__btn {
  position: absolute; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / .14); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.lightbox__btn:hover { background: rgb(255 255 255 / .28); }
.lightbox__btn .icon { width: 1.6rem; height: 1.6rem; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__figure { padding: 4rem .75rem 5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__prev { transform: scaleX(-1); }
}

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 9.5rem; gap: .8rem; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.mosaic > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 8.5rem; }
  .mosaic > :nth-child(n+6) { display: none; }
}

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 640px) { .photo-row { grid-template-columns: 1fr 1fr; } .photo-row > :nth-child(3) { display: none; } }

/* ---------- Bandeaux d'appel ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--green-800); color: #fff;
  padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -4rem; bottom: -5rem; width: 18rem; height: 18rem; opacity: .08;
  background: url("../img/logo.webp") center / contain no-repeat; filter: brightness(10);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #d6ebe1; font-size: 1.15rem; max-width: 40rem; }
.cta-band .btn-row { position: relative; z-index: 1; }
.cta-band--rose { background: linear-gradient(120deg, #8e2830, var(--rose-700)); }
.cta-band--rose p { color: #fbe2e1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .feature__icon { margin: 0; flex: none; }
.contact-list strong { display: block; color: var(--green-900); }
.contact-list a { font-size: 1.15rem; font-weight: 700; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.15rem; }
.field label, .field legend { font-weight: 700; color: var(--green-900); }
.field .hint { font-size: .95rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.08rem; color: var(--ink); background: #fff; border: 2px solid #c9c0af; border-radius: 12px;
  padding: .75rem .9rem; min-height: 3.1rem; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 4px rgb(35 128 95 / .2); outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--rose-700); }
.field--check { flex-direction: row; align-items: flex-start; gap: .75rem; }
.field--check input { width: 1.4rem; height: 1.4rem; min-height: 0; margin-top: .2rem; flex: none; accent-color: var(--green-700); }
.field--check label { font-weight: 400; color: var(--ink-2); font-size: 1rem; }
.field--hp { position: absolute; left: -9999px; }
.form__status { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: 12px; font-weight: 700; display: none; }
.form__status.is-ok { display: block; background: var(--green-100); color: var(--green-900); }
.form__status.is-error { display: block; background: var(--rose-100); color: #7a1219; }
.required { color: var(--rose-700); }
.map-facade {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 22rem; display: grid; place-items: center; text-align: center;
  background: var(--green-100) url("../img/batiment-ciel-bleu-sm.webp") center / cover;
}
.map-facade::before { content: ""; position: absolute; inset: 0; background: rgb(11 47 37 / .6); }
.map-facade__inner { position: relative; color: #fff; padding: 2rem; max-width: 30rem; }
.map-facade__inner p { color: #e3f1eb; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--green-950); color: #cfe2d9; margin-top: 0; position: relative; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr .85fr .85fr; gap: 2.5rem; padding-block: 4rem 2.5rem; }
.site-footer__logo { width: 5.5rem; background: #fff; border-radius: 16px; padding: .5rem; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 22rem; }
.site-footer__brand strong { color: #fff; }
.site-footer__title { font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: #9fd6bd; margin-bottom: 1rem; }
.site-footer__list, .site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.site-footer__list li { display: flex; gap: .7rem; align-items: flex-start; }
.site-footer__list .icon { margin-top: .3em; color: #9fd6bd; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__social { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; padding: .55rem 1rem .55rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .08); }
.site-footer__social:hover { background: rgb(255 255 255 / .16); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; border-top: 1px solid rgb(255 255 255 / .12); padding-block: 1.25rem 1.5rem; font-size: .95rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__dog { width: 11rem; filter: invert(1) opacity(.35); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__dog { display: none; }
  .site-footer { padding-bottom: 4.5rem; }
}

/* ---------- Barre d'actions mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 600px) {
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--green-900); border-top: 1px solid rgb(255 255 255 / .15); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .25rem; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
  .mobile-bar a + a { border-left: 1px solid rgb(255 255 255 / .12); }
  .mobile-bar .icon { width: 1.4rem; height: 1.4rem; }
}

/* ---------- Divers ---------- */
.dog-divider { display: flex; justify-content: center; margin: 0 auto; opacity: .85; }
.dog-divider img { width: min(22rem, 70%); }
.sitemap li { margin-bottom: .4rem; }
.sitemap ul { margin-top: .4rem; }
.two-cols { columns: 2 18rem; column-gap: 3rem; }
.two-cols > * { break-inside: avoid; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }
.legal h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.2rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .5rem; } }
.notfound { text-align: center; padding-block: 6rem; }
.notfound img { width: 9rem; margin: 0 auto 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .mobile-bar, .site-footer, .cta-band, .btn { display: none !important; }
  body { font-size: 12pt; background: #fff; }
}
