/* ==========================================================================
   Verte Fontaine — maison de repos familiale à Warneton
   Feuille de style principale
   ========================================================================== */

/* ---------- Couleurs, typographie, espacements ---------- */
:root {
  --cream: #fbf7ef;
  --cream-2: #f4eee1;
  --paper: #ffffff;
  --sage-50: #eef3ec;
  --sage-100: #dfe9dc;
  --green-200: #c5d9c3;
  --green-500: #5c8d6a;
  --green-700: #2f5d45;
  --green-800: #244a37;
  --green-900: #1b3328;
  --terracotta: #ad512d;   /* assez foncé pour être lisible en petit texte */
  --terracotta-soft: #f6e2d8;
  --gold: #e7b43c;
  --gold-soft: #fbefd2;
  --ink: #26302a;
  --muted: #5b655e;
  --line: #e4ddcf;

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

  --radius-s: 12px;
  --radius: 22px;
  --radius-l: 36px;
  --shadow-s: 0 2px 8px rgba(27, 51, 40, .06);
  --shadow: 0 18px 40px -18px rgba(27, 51, 40, .28);
  --shadow-l: 0 30px 70px -25px rgba(27, 51, 40, .38);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 130px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --text-scale: 1;
}

html[data-text="large"] { --text-scale: 1.14; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(1.125rem * var(--text-scale));
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Rien ne doit déborder à droite (photos qui glissent en apparaissant, décor des saisons) :
   sans ça, sur iPhone, la page peut glisser de côté avec le doigt. « clip » ne crée pas de zone de défilement. */
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.12;
  color: var(--green-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
h1 { font-size: calc(clamp(2.5rem, 6vw, 4.6rem) * var(--text-scale)); }
h2 { font-size: calc(clamp(2rem, 4.2vw, 3.2rem) * var(--text-scale)); }
h3 { font-size: calc(clamp(1.35rem, 2.2vw, 1.7rem) * var(--text-scale)); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--green-700); font-variation-settings: "SOFT" 100, "WONK" 1; }
::selection { background: var(--gold); color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--green-900); color: #fff; padding: 10px 18px; border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--sage-50); }
.section--dark { background: var(--green-900); color: #e9efe8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h2 em { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor;
}
.section--dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.18em; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--green-700); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s, border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--terracotta); transform: translateY(101%); border-radius: inherit;
  transition: transform .45s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--terracotta); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--green-800); border-color: var(--green-200); }
.btn--light { --bg: #fff; --fg: var(--green-900); border-color: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.55); }
.btn--gold { --bg: var(--gold); --fg: var(--green-900); border-color: var(--gold); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none;
  color: var(--green-700);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .4s, box-shadow .4s, transform .4s var(--ease);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 92px; transition: height .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 247, 239, .88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .site-header__bar { height: 74px; }
.site-header.is-hidden { transform: translateY(-100%); }

.brand {
  display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--green-900);
  line-height: 1; flex: none;
}
.brand__logo {
  height: 70px; width: auto; transition: height .4s var(--ease), transform .6s var(--ease), filter .4s;
  filter: drop-shadow(0 1px 1px rgba(255,255,255,.35));
}
.brand:hover .brand__logo { transform: rotate(-2deg) scale(1.03); }
.brand__sub { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-top: -2px; white-space: nowrap; }
.site-header.is-scrolled .brand__logo { height: 54px; }

/* Header sur fond photo (accueil + bandeaux de pages) */
.site-header--over:not(.is-scrolled) .brand__logo { filter: drop-shadow(0 0 1px rgba(255,255,255,.7)) drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
.site-header--over:not(.is-scrolled) .brand__sub { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

.site-header--over:not(.is-scrolled) .nav__link { color: #fff; }
.site-header--over:not(.is-scrolled) .nav__link:hover,
.site-header--over:not(.is-scrolled) .nav__item:focus-within > .nav__link { background: rgba(255,255,255,.14); }
.site-header--over:not(.is-scrolled) .tools__btn { color: #fff; border-color: rgba(255,255,255,.4); }
.site-header--over:not(.is-scrolled) .burger span { background: #fff; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: 700 .98rem/1.2 var(--font-body); color: var(--green-900); text-decoration: none;
  transition: background .25s, color .25s;
}
.nav__link:hover { background: var(--sage-100); color: var(--green-900); }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__link { position: relative; }
.nav__link[aria-current="page"]::after, .nav__item.is-current > .nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--terracotta);
}
.nav__link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__item:hover .nav__link svg, .nav__item:focus-within .nav__link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 280px;
  list-style: none; margin: 0; padding: 10px;
  background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-l);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.nav .nav__item.is-dismissed .dropdown { opacity: 0; visibility: hidden; transform: translate(-50%, 10px); }
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown, .nav__item.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.dropdown a {
  display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px;
  text-decoration: none; color: var(--ink); line-height: 1.3;
  transition: background .2s;
}
.dropdown a:hover { background: var(--sage-50); color: var(--ink); }
.dropdown a[aria-current="page"] { background: var(--sage-50); }
.dropdown__icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--sage-100); color: var(--green-700);
}
.dropdown__icon svg { width: 22px; height: 22px; }
.dropdown strong { display: block; font-size: .98rem; color: var(--green-900); }
.dropdown small { color: var(--muted); font-size: .84rem; }

.tools { display: flex; align-items: center; gap: 10px; }
.tools__btn {
  height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--green-900); font: 800 .95rem var(--font-body); cursor: pointer;
  transition: background .25s, border-color .25s;
}
.tools__btn:hover { background: var(--sage-100); }
.tools__btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--green-900); }

.burger {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--green-900);
  transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
body.menu-open .burger span { background: var(--green-900) !important; }
body.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--cream);
  padding: 110px var(--gutter) 40px; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 44px) 44px);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .site-header .brand__sub { color: var(--muted); }
body.menu-open .site-header .brand__logo { filter: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul > li {
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
body.menu-open .mobile-menu > ul > li { opacity: 1; transform: none; }
.mobile-menu > ul > li:nth-child(2) { transition-delay: .05s; }
.mobile-menu > ul > li:nth-child(3) { transition-delay: .1s; }
.mobile-menu > ul > li:nth-child(4) { transition-delay: .15s; }
.mobile-menu > ul > li:nth-child(5) { transition-delay: .2s; }
.mobile-menu > ul > li:nth-child(6) { transition-delay: .25s; }
.mobile-menu > ul > li:nth-child(7) { transition-delay: .3s; }
.mobile-menu a.mm-link {
  display: block; padding: 16px 0; font-family: var(--font-title); font-size: 1.7rem;
  color: var(--green-900); text-decoration: none;
}
.mobile-menu .mm-sub { padding: 0 0 14px 14px; }
.mobile-menu .mm-sub a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-weight: 700; }
.mobile-menu .mm-contact { margin-top: 20px; display: grid; gap: 12px; }
.mm-text {
  margin-top: 26px; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 18px 8px 8px;
  border: 1.5px solid var(--line); border-radius: 18px; background: var(--paper); cursor: pointer;
  font: 800 1.05rem var(--font-body); color: var(--green-900); text-align: left;
}
.mm-text__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sage-100); }
.mm-text[aria-pressed="true"] { border-color: var(--gold); }
.mm-text[aria-pressed="true"] .mm-text__icon { background: var(--gold); }

/* ---------- Héros d'accueil ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
  padding: 140px 0 clamp(90px, 13vw, 160px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 28s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease-in-out;
}
.hero.has-video .hero__video.is-on { opacity: 1; }
.hero__video.is-top { z-index: 1; }
.hero.has-video .hero__media img { animation-play-state: paused; }
.hero__video-toggle {
  position: absolute; right: var(--gutter); bottom: clamp(70px, 9vw, 110px); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); cursor: pointer;
  background: rgba(20,38,29,.35); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, transform .3s var(--ease);
}
.hero__video-toggle:hover { background: rgba(20,38,29,.6); transform: scale(1.06); }
.hero__video-toggle svg { width: 18px; height: 18px; }
.hero__video-toggle .i-play, .hero__video-toggle.is-paused .i-pause { display: none; }
.hero__video-toggle.is-paused .i-play { display: block; }
.hero__video-toggle .i-play svg { margin-left: 3px; }
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-2%, -1.5%, 0); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 38, 29, .55) 0%, rgba(20, 38, 29, .05) 30%, rgba(20, 38, 29, .15) 55%, rgba(20, 38, 29, .78) 100%),
    linear-gradient(90deg, rgba(20, 38, 29, .7), rgba(20, 38, 29, .25) 55%, transparent 80%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
/* Grand logo de l'accueil (le petit logo du menu n'apparaît qu'en faisant défiler) */
.hero__logo {
  display: block; width: clamp(260px, 34vw, 500px); height: auto; margin: 0 0 clamp(10px, 2vw, 22px) -6px;
  filter: brightness(1.12) drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 22px rgba(251,247,239,.45)) drop-shadow(0 6px 22px rgba(0,0,0,.45));
  animation-delay: .05s;
}
body:has(.hero__logo) .site-header:not(.is-scrolled) .brand { opacity: 0; visibility: hidden; transform: translateY(-8px); }
body:has(.hero__logo) .site-header .brand { transition: opacity .45s, transform .45s cubic-bezier(.22,1,.36,1), visibility .45s; }
body.menu-open:has(.hero__logo) .site-header .brand { opacity: 1; visibility: visible; transform: none; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 em { color: var(--gold); }
.hero h1 .hero__kicker {
  display: flex; width: fit-content; max-width: 100%; color: var(--gold);
  font-family: var(--font-body); font-size: calc(.78 * 1.125rem * var(--text-scale)); line-height: 1.7;
  font-variation-settings: normal; text-shadow: none; text-wrap: wrap;
}
.hero__lead { font-size: 1.25em; max-width: 50ch; color: rgba(255,255,255,.92); margin-bottom: 34px; }
.hero__badge {
  width: 168px; height: 168px; border-radius: 50%; position: relative; flex: none;
  display: grid; place-items: center; text-align: center;
  background: rgba(251, 247, 239, .95); color: var(--green-900);
  box-shadow: var(--shadow-l);
}
.hero__badge-ring { position: absolute; inset: 8px; animation: spin 26s linear infinite; }
.hero__badge-ring text { font: 800 10.5px var(--font-body); text-transform: uppercase; fill: var(--green-700); dominant-baseline: central; }
.hero__badge strong { font-family: var(--font-title); font-size: 2.2rem; line-height: .9; display: block; color: var(--terracotta); }
.hero__badge > div { display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translateY(-3px); }
.hero__badge span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Vague décorative en bas des héros */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 7vw, 90px); z-index: 2; pointer-events: none; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave path { fill: var(--cream); }

/* Mots qui apparaissent un par un */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(110%); animation: word-up 1s var(--ease) forwards; }
@keyframes word-up { to { transform: translateY(0); } }
.fade-in { opacity: 0; animation: fade-up 1s var(--ease) forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau des pages intérieures ---------- */
.page-hero {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  padding: clamp(160px, 22vw, 230px) 0 clamp(90px, 12vw, 140px);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,38,29,.6), rgba(20,38,29,.35) 45%, rgba(20,38,29,.75));
}
.page-hero h1 { color: #fff; max-width: 21ch; margin-bottom: .3em; }
.page-hero h1 em { color: var(--gold); }
.page-hero p { max-width: 58ch; font-size: 1.15em; color: rgba(255,255,255,.9); margin: 0; }
.page-hero--soft .page-hero__media { inset: -14px; filter: blur(3px) saturate(1.08); }
.page-hero--404 { min-height: 100svh; display: flex; align-items: center; }
.page-hero--404 h1 { max-width: 16ch; }
.page-hero--404 .wave path { fill: var(--green-900); }
body:has(.page-hero--404) .site-footer { padding-top: 40px; }
body:has(.page-hero--404) .site-footer > .wave { display: none; }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 22px; font-size: .9rem; font-weight: 700; }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "›"; margin-right: 10px; color: rgba(255,255,255,.55); }
.breadcrumb [aria-current] { color: var(--gold); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal--left { transform: translateX(-50px); }
.reveal--right { transform: translateX(50px); }
.reveal--zoom { transform: scale(.92); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after {
  content: ""; position: absolute; inset: 0; background: var(--green-700); transform-origin: right;
  transition: transform 1.2s var(--ease); transition-delay: var(--d, .1s);
}
.img-reveal img { transform: scale(1.25); transition: transform 1.6s var(--ease); transition-delay: var(--d, .1s); }
.img-reveal.is-visible::after { transform: scaleX(0); }
.img-reveal.is-visible img { transform: scale(1); }
.no-js .img-reveal::after { display: none; }
.no-js .img-reveal img { transform: none; }

/* ---------- Mise en page ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split--wide-text { grid-template-columns: 1.1fr .9fr; }
.stack > * + * { margin-top: 1em; }

/* Composition de photos superposées */
.photo-stack { position: relative; padding: 0 0 70px 40px; }
.photo-stack__main { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); aspect-ratio: 4 / 3.2; }
.photo-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack__small {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; border: 8px solid var(--cream); box-shadow: var(--shadow);
}
.section--tint .photo-stack__small { border-color: var(--sage-50); }
.photo-stack__small img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack__tag {
  position: absolute; right: -14px; top: 30px; background: var(--gold); color: var(--green-900);
  padding: 14px 20px; border-radius: 18px; font-weight: 800; line-height: 1.25; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.photo-stack__tag strong { display: block; font-family: var(--font-title); font-size: 1.8rem; font-weight: 600; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

/* Citation */
.quote {
  font-family: var(--font-title); font-style: italic; font-size: calc(clamp(1.5rem, 2.8vw, 2.1rem) * var(--text-scale));
  line-height: 1.35; color: var(--green-800); margin: 1.2em 0; padding-left: 28px; position: relative;
  border: 0;
}
.quote::before {
  content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px;
  background: linear-gradient(var(--gold), var(--terracotta));
}
.quote--center { text-align: center; padding: 34px 0 0; }
.quote--center::before { left: 50%; top: 0; bottom: auto; width: 56px; height: 4px; margin-left: -28px; background: linear-gradient(90deg, var(--gold), var(--terracotta)); }
.quote footer { font: 700 .55em var(--font-body); color: var(--muted); font-style: normal; margin-top: 12px; letter-spacing: .02em; }

/* Liste avec coches */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.checklist li::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%; margin-top: 2px;
  background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.checklist--cross li::before {
  background: var(--terracotta-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4623c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: var(--paper); border-radius: var(--radius); padding: 30px 26px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-s); border: 1px solid var(--line);
}
.stat__num { font-family: var(--font-title); font-size: calc(clamp(2.4rem, 4vw, 3.4rem) * var(--text-scale)); line-height: 1; color: var(--green-700); font-weight: 500; }
.stat__num small { font-size: .45em; color: var(--terracotta); margin-left: 4px; }
.stat p { margin: 10px 0 0; color: var(--muted); font-weight: 600; line-height: 1.45; }
.stat__icon { position: absolute; right: 22px; top: 24px; width: 46px; height: 46px; color: var(--green-200); opacity: .7; }

/* ---------- Cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-s); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
a.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); color: var(--ink); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
a.card:hover .card__media img { transform: scale(1.08); }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .35em; }
.card__body p { color: var(--muted); margin-bottom: 18px; }
.card__body .link-arrow { margin-top: auto; }
.card__tag {
  position: absolute; left: 16px; top: 16px; z-index: 1; background: rgba(251,247,239,.94); color: var(--green-800);
  border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 800;
}

/* Cartes "valeurs" avec icône */
.feature {
  background: var(--paper); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--sage-100); color: var(--green-700);
  transition: transform .6s var(--ease), background .4s, color .4s;
}
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.08); background: var(--gold); color: var(--green-900); }
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: calc(1.35rem * var(--text-scale)); }
.feature p { color: var(--muted); margin: 0; }
.section--dark .feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.section--dark .feature p { color: rgba(233,239,232,.75); }
.section--dark .feature__icon { background: rgba(255,255,255,.08); color: var(--gold); }

/* ---------- Mosaïque d'albums / actualités ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 18px; }
.bento__item {
  position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none;
  display: flex; align-items: flex-end; padding: 24px; isolation: isolate;
}
.bento__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.bento__item:hover img { transform: scale(1.07); }
.bento__item:hover { color: #fff; }
.bento__item h3 { color: #fff; margin: 0; font-size: calc(1.45rem * var(--text-scale)); text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 3px 16px rgba(0,0,0,.45); }   /* lisible sans voile sombre sur la photo */
.bento__item p { margin: 4px 0 0; font-size: .92rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 12px rgba(0,0,0,.45); }
.bento__item--big { grid-column: span 2; grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__item--full { grid-column: 1 / -1; grid-row: span 2; }
.bento__item--tall { grid-row: span 2; }
.bento__date {
  position: absolute; top: 18px; left: 18px; background: var(--gold); color: var(--green-900);
  padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800;
}

/* ---------- Photo du cadre (accueil) ---------- */
.photo-card {
  position: relative; display: block; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l);
  aspect-ratio: 16 / 10; color: #fff; text-decoration: none; isolation: isolate;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,38,29,.7)); }
.photo-card:hover { color: #fff; }
.photo-card:hover img { transform: scale(1.05); }
.photo-card__label {
  position: absolute; left: 26px; bottom: 22px; z-index: 1; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.photo-card__label svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.photo-card:hover .photo-card__label svg { transform: translateX(5px); }

/* ---------- Galerie ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(15, 28, 21, .94);
  display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 70px 16px 24px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 100%); max-height: calc(100svh - 170px); border-radius: 16px; object-fit: contain;
  transform: scale(.94); transition: transform .5s var(--ease), opacity .3s;
}
.lightbox.is-open img { transform: none; }
.lightbox__video { max-width: min(1100px, 100%); max-height: calc(100svh - 170px); border-radius: 16px; background: #000; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.lightbox img[hidden], .lightbox__video[hidden] { display: none; }

/* Vidéos dans les albums */
.photo-tile__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(251,247,239,.92); color: var(--green-800);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); transition: transform .35s var(--ease), background .3s;
}
.photo-tile__play svg { width: 22px; height: 22px; margin-left: 3px; }
.photo-tile--big .photo-tile__play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.photo-tile--big .photo-tile__play svg { width: 30px; height: 30px; }
.photo-tile--video:hover .photo-tile__play { transform: scale(1.1); background: var(--gold); }
.photo-tile--video::after { display: none; }
.photo-tile__dur { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 2px 8px; border-radius: 999px; background: rgba(20,38,29,.78); color: #fff; font-size: .78rem; font-weight: 800; }
.album-card__vids { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding-left: 8px; border-left: 1px solid rgba(27,51,40,.2); }
.album-card__vids svg { width: 12px; height: 12px; }
.lightbox__caption { color: #fff; text-align: center; padding-top: 16px; font-weight: 700; }
.lightbox__caption small { display: block; color: rgba(255,255,255,.6); font-weight: 600; }
.lightbox__btn {
  position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .25s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -27px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -27px; }

/* ---------- Calendrier des animations ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.activity {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.activity:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); }
.activity__media { aspect-ratio: 16 / 10; overflow: hidden; }
.activity__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.activity:hover .activity__media img { transform: scale(1.07); }
.activity__body { padding: 20px 22px 24px; }
.activity__when { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
.activity h3 { margin: 6px 0 6px; font-size: calc(1.3rem * var(--text-scale)); }
.activity p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Galerie : en-tête mur de photos ---------- */
.gallery-hero {
  position: relative; overflow: hidden; background: var(--green-900); color: #fff;
  padding: clamp(130px, 14vw, 170px) 0 clamp(90px, 10vw, 130px);
}
.gallery-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 15% 30%, rgba(231,180,60,.16), transparent 70%), radial-gradient(50% 60% at 90% 80%, rgba(92,141,106,.25), transparent 70%);
}
.gallery-hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.gallery-hero h1 { color: #fff; margin-bottom: .3em; }
.gallery-hero h1 em { color: var(--gold); }
.gallery-hero p { color: rgba(255,255,255,.85); font-size: 1.15em; max-width: 46ch; }
.gallery-hero__stats { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 26px 0 30px; }
.gallery-hero__stats li {
  padding: 10px 18px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8); font-weight: 700; font-size: .95rem;
}
.gallery-hero__stats strong { display: block; font-family: var(--font-title); font-size: 1.7rem; font-weight: 500; color: var(--gold); line-height: 1.1; }
.photo-wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: clamp(420px, 46vw, 560px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  transform: rotate(-4deg); margin-block: -30px;
}
.photo-wall__col { overflow: hidden; }
.photo-wall__track { display: flex; flex-direction: column; gap: 14px; animation: wall-up 60s linear infinite; }
.photo-wall__col:nth-child(2) .photo-wall__track { animation-direction: reverse; animation-duration: 70s; }
.photo-wall__col:nth-child(3) .photo-wall__track { animation-duration: 54s; }
.photo-wall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
@keyframes wall-up { to { transform: translateY(calc(-50% - 7px)); } }
.photo-wall:hover .photo-wall__track { animation-play-state: paused; }

/* ---------- Galerie : dernier album ---------- */
.album-feature-section { padding-block: clamp(60px, 8vw, 100px); }
.album-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center;
  text-decoration: none; color: var(--ink);
}
.album-feature:hover { color: var(--ink); }
.album-feature__media { position: relative; padding: 0 0 60px 0; }
.album-feature__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-l); transition: transform .8s var(--ease); }
.album-feature:hover .album-feature__main { transform: scale(1.015) rotate(-.4deg); }
.album-feature__minis { position: absolute; right: 24px; bottom: 0; display: flex; gap: 12px; }
.album-feature__minis img {
  width: clamp(80px, 9vw, 118px); aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 6px solid var(--cream);
  box-shadow: var(--shadow); transition: transform .5s var(--ease);
}
.album-feature__minis img:nth-child(2) { transform: translateY(-14px) rotate(3deg); }
.album-feature__minis img:nth-child(3) { transform: rotate(-3deg); }
.album-feature:hover .album-feature__minis img { transform: translateY(-6px); }
.album-feature__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
  background: var(--gold-soft); color: #8a6208; font-weight: 800; font-size: .85rem; letter-spacing: .04em;
}
.album-feature__badge svg { width: 16px; height: 16px; }
.album-feature h2 { margin-bottom: .2em; }
.album-feature__meta { color: var(--terracotta); font-weight: 800; letter-spacing: .02em; }
.album-feature__body > p:not(.album-feature__meta) { color: var(--muted); margin-bottom: 26px; }

/* ---------- Galerie : onglets par année ---------- */
.tabs-wrap { text-align: center; }
.tabs--years { margin-bottom: 44px; box-shadow: var(--shadow-s); }
.tabs--years .tabs__btn { padding: 10px 22px; font-size: 1.05rem; }
.tabs__count {
  display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 999px;
  background: var(--sage-100); color: var(--green-800); font-size: .78rem; transition: background .35s, color .35s;
}
.tabs__btn[aria-selected="true"] .tabs__count { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Cartes d'album ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 26px; }
.album-card {
  display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); padding: 10px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-s); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); color: var(--ink); }
.album-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--sage-100); }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.album-card:hover .album-card__media img { transform: scale(1.07); }
.album-card__count {
  position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(251,247,239,.94); color: var(--green-900); padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 800;
}
.album-card__count svg { width: 15px; height: 15px; }
.album-card:not(:has(.album-card__strip)) .album-card__media { aspect-ratio: auto; flex: 1; min-height: 220px; }
.album-card:not(:has(.album-card__strip)) .album-card__body { flex: none; }
.album-card__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.album-card__strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; transition: opacity .4s; }
.album-card:hover .album-card__strip img { opacity: .85; }
.album-card__body { padding: 14px 10px 8px; display: flex; flex-direction: column; flex: 1; }
.album-card__date { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
.album-card h3 { margin: 5px 0 12px; font-size: calc(1.2rem * var(--text-scale)); line-height: 1.25; }
.album-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; color: var(--green-700); }
.album-card__more svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.album-card:hover .album-card__more svg { transform: translateX(5px); }

/* ---------- Grilles de photos (maison + albums) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.photo-grid--album { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; grid-auto-flow: dense; }
.photo-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 16px; overflow: hidden;
  background: var(--sage-100); cursor: zoom-in; isolation: isolate;
}
#la-maison .photo-tile { aspect-ratio: 4 / 3; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.photo-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .35s;
  background: rgba(20,38,29,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 38px no-repeat;
}
.photo-tile:hover img, .photo-tile:focus-visible img { transform: scale(1.07); }
.photo-tile:hover::after, .photo-tile:focus-visible::after { opacity: 1; }
.photo-tile--big { grid-column: span 2; grid-row: span 2; border-radius: 22px; }

.page-hero--album h1 { max-width: 24ch; }
/* Boutons « Retour » des albums */
.back-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; min-height: 52px; padding: 10px 24px 10px 16px;
  border-radius: 999px; background: #fff; color: var(--green-900); font-weight: 800; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); transition: transform .35s var(--ease), background .3s, color .3s;
}
.back-btn svg { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.back-btn:hover { background: var(--gold); color: var(--green-900); transform: translateY(-2px); }
.back-btn:hover svg { transform: translateX(-4px); }
.back-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 24px 0 18px; border-radius: 999px; background: var(--gold); color: var(--green-900);
  font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: var(--shadow-l);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .4s, transform .4s var(--ease), visibility .4s, background .3s;
}
.back-float svg { width: 22px; height: 22px; }
.back-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-float:hover { background: var(--terracotta); color: #fff; }
body:has(.lightbox.is-open) .back-float { opacity: 0; visibility: hidden; }
.album-section { padding-top: clamp(40px, 5vw, 70px); }
.album-nav-section { padding-block: clamp(44px, 6vw, 70px); }
body:has(.album-nav-section) .site-footer > .wave path { fill: var(--sage-50); }
.album-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.album-nav__link {
  display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.album-nav__link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.album-nav__link--next { flex-direction: row-reverse; text-align: right; }
.album-nav__link img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; }
.album-nav__link small { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
.album-nav__link strong { display: block; font-family: var(--font-title); font-weight: 500; font-size: 1.1rem; line-height: 1.25; color: var(--green-900); }
.album-nav__link em { font-style: normal; color: var(--muted); font-size: .9rem; }
.album-nav__all svg { width: 18px; height: 18px; }

a.activity { display: block; text-decoration: none; color: inherit; }
a.activity:hover { color: inherit; }
.activity .link-arrow { margin-top: 14px; font-size: .95rem; }


.tabs { display: inline-flex; padding: 6px; background: var(--paper); border-radius: 999px; border: 1px solid var(--line); gap: 4px; position: relative; margin-bottom: 40px; flex-wrap: wrap; }
.tabs__btn {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; min-height: 48px;
  padding: 10px 24px; border-radius: 999px; font: 800 1rem var(--font-body); color: var(--green-900);
  transition: color .35s;
}
.tabs__btn[aria-selected="true"] { color: #fff; }
.tabs__pill {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--green-700);
  transition: transform .5s var(--ease), width .5s var(--ease);
}
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fade-up .7s var(--ease); }

.room-gallery { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.room-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.room-gallery figure:first-child { grid-row: span 2; }
.room-gallery--two { grid-template-columns: 1fr 1fr; }
.room-gallery--two figure:first-child { grid-row: auto; }
.room-gallery--two img { aspect-ratio: 4 / 5; height: auto; }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; transition: transform 1s var(--ease); }
.room-gallery figure:hover img { transform: scale(1.05); }
.room-gallery figcaption {
  position: absolute; left: 14px; bottom: 14px; background: rgba(251,247,239,.94); color: var(--green-900);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 800;
}

.equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.equip__item { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; border-radius: 18px; font-weight: 700; line-height: 1.35; }
.equip__item svg { width: 30px; height: 30px; flex: none; color: var(--green-700); }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 920px; margin-inline: auto; }
.price-card {
  background: var(--paper); border-radius: var(--radius-l); padding: 40px 36px; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.price-card--featured { background: var(--green-800); color: #e9efe8; border-color: var(--green-800); }
.price-card--featured h3 { color: #fff; }
.price-card__icon { width: 64px; height: 64px; color: var(--green-700); margin-bottom: 18px; }
.price-card--featured .price-card__icon { color: var(--gold); }
.price-card__amount { font-family: var(--font-title); font-size: calc(clamp(3rem, 6vw, 4.2rem) * var(--text-scale)); line-height: 1; color: var(--green-700); margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.price-card--featured .price-card__amount { color: var(--gold); }
.price-card__unit { font-weight: 700; color: var(--muted); }
.price-card--featured .price-card__unit { color: rgba(233,239,232,.75); }
.price-card__month {
  margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: .98rem;
}
.price-card--featured .price-card__month { border-color: rgba(255,255,255,.2); }
.price-card__month strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.price-card__ribbon {
  position: absolute; top: 24px; right: -42px; transform: rotate(45deg); background: var(--gold); color: var(--green-900);
  padding: 6px 50px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

.note {
  background: var(--gold-soft); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid #f1dca6;
}
.note svg { width: 28px; height: 28px; flex: none; color: #a8790f; margin-top: 2px; }
.note p { margin: 0; }

/* ---------- Formulaire ---------- */
.form-card { background: var(--paper); border-radius: var(--radius-l); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; counter-reset: step; }
.steps li {
  flex: 1; font-size: .88rem; font-weight: 800; color: var(--muted); counter-increment: step; position: relative; padding-top: 18px;
}
.steps li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 6px; background: var(--sage-100);
}
.steps li::after {
  content: ""; position: absolute; top: 0; left: 0; height: 6px; border-radius: 6px; background: var(--green-700);
  width: 0; transition: width .6s var(--ease);
}
.steps li.is-done::after, .steps li.is-active::after { width: 100%; }
.steps li.is-active { color: var(--green-900); }
.form-step[hidden] { display: none; }
.form-step { animation: fade-up .6s var(--ease); }
.form-step h3 { margin-bottom: 6px; }
.form-step > p { color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; margin: 22px 0; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 800; font-size: .95rem; color: var(--green-900); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--cream); font: 500 1rem var(--font-body); color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.field select:focus { background-color: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(92,141,106,.18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--terracotta); }
.field__hint { font-size: .85rem; color: var(--muted); }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.segmented legend { margin-bottom: 8px; padding: 0; }
.segmented label {
  position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--cream); cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--ink);
  transition: background .25s, border-color .25s, color .25s;
}
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label:has(input:checked) { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.person-block { border-top: 1px dashed var(--line); padding-top: 22px; margin-top: 10px; }
.person-block[hidden] { display: none; }
.person-block h4 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--terracotta); margin: 0; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--green-700); flex: none; }
.form-success { text-align: center; padding: 30px 0; }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin-top: 18px; padding: 16px 20px; border-radius: var(--radius-s);
  background: var(--terracotta-soft); border: 1px solid rgba(196, 98, 60, .35); color: var(--ink);
}
.form-error[hidden] { display: none; }
.form-error p { margin: 0 0 10px; }
.form-error strong { color: #9a4527; }
.btn[data-submit][aria-busy="true"] { opacity: .75; cursor: progress; }
.btn[data-submit][aria-busy="true"] svg { animation: vf-pulse 1s ease-in-out infinite; }
@keyframes vf-pulse { 50% { transform: translateX(4px); opacity: .5; } }
.form-success svg { width: 90px; height: 90px; color: var(--green-700); margin: 0 auto 14px; }
.form-success .check-path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); }
.contact-list svg { width: 26px; height: 26px; color: var(--green-700); flex: none; margin-top: 3px; }
.contact-list strong { display: block; color: var(--green-900); }
.contact-list a { font-weight: 700; }
.map {
  position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 10; background: var(--sage-100);
  box-shadow: var(--shadow);
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; isolation: isolate; }
.map__placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.map__placeholder::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20,38,29,.55); }
.map__placeholder p { color: rgba(255,255,255,.85); font-size: .9rem; max-width: 40ch; margin: 12px auto 0; }
.map__pin { width: 60px; height: 60px; color: var(--gold); margin: 0 auto 10px; animation: bounce 2s var(--ease) infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Bandeau d'appel ---------- */
.section--quote { padding-block: clamp(56px, 7vw, 100px) 0; }
.section--cta { padding-block: clamp(48px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.cta {
  position: relative; border-radius: var(--radius-l); overflow: hidden; isolation: isolate; color: #fff;
  padding: clamp(46px, 7vw, 90px) clamp(26px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(27,51,40,.94) 30%, rgba(27,51,40,.55)); }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta h2 em { color: var(--gold); }
.cta p { color: rgba(255,255,255,.88); margin: 0; max-width: 52ch; }
.cta .btn-row { justify-content: flex-end; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--green-900); color: rgba(233,239,232,.8); position: relative; padding: clamp(80px, 9vw, 110px) 0 30px; margin-top: 0; }
.site-footer .wave { top: -1px; bottom: auto; transform: scaleY(-1); }
.site-footer a { color: rgba(233,239,232,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer .footer__title { color: #fff; font-size: 1.2rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .brand { margin-bottom: 22px; }
.site-footer .brand__logo { height: 76px; filter: brightness(1.15) drop-shadow(0 1px 0 rgba(255,255,255,.25)); }
.site-footer .brand__sub { color: rgba(233,239,232,.7); }
.footer-family { font-family: var(--font-title); font-style: italic; font-size: 1.2rem; color: var(--gold); }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.footer-credit { margin: 10px 0 0; text-align: left; font-size: .66rem; letter-spacing: .02em; color: rgba(233,239,232,.35); }   /* coin bas gauche : le bouton « remonter » occupe le coin droit */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-700); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .4s, transform .4s var(--ease), visibility .4s, background .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--terracotta); }
.to-top svg { width: 24px; height: 24px; }

/* ---------- Pages légales ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: calc(clamp(1.6rem, 3vw, 2.2rem) * var(--text-scale)); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { margin: 0 0 1em; }
.toc { position: sticky; top: 110px; background: var(--paper); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { text-decoration: none; font-weight: 700; }
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; }

/* ---------- Transitions entre pages (navigateurs compatibles) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
.site-header { view-transition-name: header; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list, .tools .btn { display: none; }
  .burger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split, .split--wide-text, .contact-grid, .legal-grid, .gallery-hero__inner, .album-feature { grid-template-columns: 1fr; }
  .photo-wall { height: 340px; margin-block: 10px -20px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__badge { width: 130px; height: 130px; position: absolute; right: 0; top: -150px; }
  .hero__badge strong { font-size: 1.7rem; }
  .cta { grid-template-columns: 1fr; }
  .cta .btn-row { justify-content: flex-start; }
  .pricing { grid-template-columns: 1fr; }
  .toc { position: static; }
  .photo-stack { padding-left: 20px; }
  .equip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: calc(1.0625rem * var(--text-scale)); }
  .site-header__bar { height: 76px; }
  .brand__logo { height: 50px; }
  .site-header.is-scrolled .brand__logo { height: 44px; }
  .brand__sub { font-size: .52rem; letter-spacing: .14em; }
  .tools__btn { display: none; }
  .fields { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 22px 18px; }
  .stat__icon { display: none; }
  .equip, .timeline { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bento__item--big, .bento__item--wide, .bento__item--full { grid-column: auto; }
  .bento__item--big, .bento__item--full { grid-row: span 1; }
  .bento__item--tall { grid-row: span 1; }
  .room-gallery { grid-template-columns: 1fr; }
  .room-gallery figure:first-child { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
  .hero__logo { width: min(78vw, 320px); margin-left: -4px; }
  .hero__video-toggle { bottom: 64px; width: 44px; height: 44px; }
  .tabs { display: flex; border-radius: 22px; }
  .tabs__btn { flex: 1; padding: 10px 12px; }
  .steps li span { display: none; }
  .photo-stack__tag { right: 0; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; margin: 0; }
  .album-nav { grid-template-columns: 1fr; }
  .back-float { left: 12px; bottom: 16px; padding: 0 20px 0 14px; min-height: 52px; font-size: 1rem; }
  .photo-grid--album { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .photo-tile { border-radius: 12px; }
  .photo-wall { grid-template-columns: repeat(2, 1fr); height: 280px; }
  .photo-wall__col:nth-child(3) { display: none; }
  .tabs--years .tabs__btn { padding: 10px 8px; font-size: .95rem; }
  .tabs__count { display: none; }
  .album-feature__minis img { width: 70px; border-width: 4px; }
  .album-nav__all { order: 3; }
  .album-nav__link--next { flex-direction: row; text-align: left; }
}

/* ---------- Animations réduites ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .img-reveal img { opacity: 1; transform: none; }
  .img-reveal::after { display: none; }
  .split-word > span { transform: none; }
  .fade-in { opacity: 1; }
  .photo-wall__track { animation: none; }
}

/* ---------------------------------------------------------------- questions fréquentes */
.faq__list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: var(--green-200); box-shadow: 0 10px 30px rgba(27, 51, 40, .08); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 26px; font-family: var(--font-title); font-size: 1.15em; font-weight: 500; color: var(--green-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sage-50); color: var(--green-700); font-family: var(--font-body); font-size: 1.3em; font-weight: 700; line-height: 1; padding-bottom: .08em; box-sizing: border-box;
  transition: transform .35s var(--ease), background .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--gold-soft); }
.faq__item summary:hover { color: var(--green-700); }
.faq__item summary:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; border-radius: var(--radius); }
.faq__item p { margin: 0; padding: 0 26px 22px; color: var(--muted); }
