/* =========================================================
   Mas d'Âme — Feuille de style principale
   Référence : Figma « Mas d'âme – design » (maquettes 1920 px)
   Couleurs : terracotta #974315 · accent site #8c4420
              crème #f0ede4 · sable #e3d6c5 · olive #7a7b6d
   Typographie : CCS Belvare (titres) + Urbanist (texte)
   ========================================================= */

@font-face {
  font-family: "CCS Belvare";
  src: url("../fonts/ccs-belvare.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --accent: #8c4420;
  --accent-dark: #6e3417;
  --brand: #974315;
  --sand: #e3d6c5;
  --cream: #f0ede4;
  --olive: #7a7b6d;
  --bg: #ffffff;
  --bg-accent: #f1f1ea;
  --ink: #1c1814;
  --ink-soft: #4a443d;
  --muted: #cfc7bc;
  --line: #e3ddd2;
  --max: 1240px;
  --gutter: 28px;
  --radius: 4px;
  --radius-btn: 3px;
  --radius-bar: 18px;
  /* Barre d'en-tête : valeurs de la maquette à 1920 px, réduites en proportion en dessous */
  --bar-top: clamp(10px, 0.9375vw, 18px);
  --bar-h: clamp(76px, 5vw, 96px);
  --shadow-card: 0 20px 45px -34px rgba(28, 24, 20, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-serif: "CCS Belvare", "Times New Roman", serif;
  --font-sans: "Urbanist", "Helvetica Neue", Arial, sans-serif;

  /* Tailles de titres (valeurs Figma en desktop) */
  --fs-h1: clamp(3.4rem, 2rem + 4.6vw, 6.8rem);      /* 108.8px */
  --fs-h2: clamp(2.2rem, 1.2rem + 2.6vw, 3.4rem);    /* 54.4px */
  --fs-lead: clamp(1.15rem, 0.9rem + 0.9vw, 1.5rem); /* 24px */
}

/* ---------- Reset léger ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
}

p { margin: 0 0 1.2em; }

/* ---------- Préchargeur ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  width: clamp(180px, 30vw, 380px);
  height: auto;
  filter: brightness(0) invert(1);
  animation: preloaderSpin 4.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes preloaderSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__logo { animation: none; }
}

/* ---------- Logo vectoriel (barres + texte) ----------
   Reconstitué à partir des vecteurs Figma : 5 barres en masque
   (couleur = currentColor) + texte CCS Belvare. Toutes les cotes
   sont exprimées en em de la taille du mot « Mas ». */
.logo {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--logo-size, 72.709px);
  line-height: 1.0424;
  height: 1.5399em;
  padding-left: 1.0011em;
  white-space: nowrap;
  color: inherit;
}
.logo__mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.868em;
  height: 1.41em;
  background: currentColor;
  -webkit-mask-image: url("../images/icons/logo-bar-1.svg"), url("../images/icons/logo-bar-2.svg"), url("../images/icons/logo-bar-4.svg"), url("../images/icons/logo-bar-5.svg");
  mask-image: url("../images/icons/logo-bar-1.svg"), url("../images/icons/logo-bar-2.svg"), url("../images/icons/logo-bar-4.svg"), url("../images/icons/logo-bar-5.svg");
  -webkit-mask-position: 0 0.04057em, 0.14935em 0.14544em, 0.49149em 0.14166em, 0.64531em 0.06945em;
  mask-position: 0 0.04057em, 0.14935em 0.14544em, 0.49149em 0.14166em, 0.64531em 0.06945em;
  -webkit-mask-size: 0.22256em 1.27145em, 0.21934em 1.14718em, 0.21942em 1.18897em, 0.22265em 1.2156em;
  mask-size: 0.22256em 1.27145em, 0.21934em 1.14718em, 0.21942em 1.18897em, 0.22265em 1.2156em;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* Barre centrale : retournée verticalement dans la maquette
   (hors de .logo__mark, sinon son masque la rognerait) */
.logo::before {
  content: "";
  position: absolute;
  left: 0.32027em;
  top: 0.0381em;
  width: 0.21964em;
  height: 1.29651em;
  background: currentColor;
  -webkit-mask: url("../images/icons/logo-bar-3.svg") no-repeat 0 0 / 100% 100%;
  mask: url("../images/icons/logo-bar-3.svg") no-repeat 0 0 / 100% 100%;
  transform: scaleY(-1);
}
.logo__mas,
.logo__ame { display: block; }
.logo__ame {
  font-size: 0.68099em;
  margin-top: -0.31185em;
}

/* ---------- Utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 20.16px;
  letter-spacing: 3.686px;
  text-transform: uppercase;
  color: #000;
}
.eyebrow--lg { font-size: 16px; }
.eyebrow--regular { font-weight: 400; }

.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--accent { background: var(--bg-accent); }

.title {
  font-size: var(--fs-h2);
  line-height: 1.08;
  color: var(--accent);
}
.title--brand { color: var(--brand); }

.lead {
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  line-height: 1.4583;
  font-weight: 300;
  color: var(--ink);
  margin: 0;
}

/* En-tête de section centré : sur-titre, titre, chapô */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  margin: 0 auto 48px;
}
.section-head__titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 56px;
  padding: 0 34px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 21.84px;
  font-weight: 400;
  letter-spacing: 2.246px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
  background: var(--accent);
  color: #fff;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--md { font-size: 16px; font-weight: 500; }

.btn--light {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

.btn--glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.btn--glass:hover { background: #fff; color: var(--accent); border-color: #fff; }

.btn--outline-light {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.btn--outline-light:hover { background: transparent; color: #fff; }

/* ---------- En-tête / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: clamp(66px, 4.2625vw, 81.84px);
  padding: 0 clamp(20px, 3.125vw, 60px);
  transition: height 0.5s var(--ease), padding 0.5s var(--ease), top 0.5s var(--ease),
    left 0.5s var(--ease), right 0.5s var(--ease), border-radius 0.5s var(--ease);
}

/* Zones gauche / droite égales pour centrer parfaitement le logo */
.header-side {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  min-width: 0;
}
.header-side--right { justify-content: flex-end; }

/* Fond « liquid glass » porté par un pseudo-élément :
   évite que backdrop-filter crée un bloc conteneur qui casserait
   le menu tiroir (position: fixed). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 40px -18px rgba(28, 24, 20, 0.35),
    inset 0 1px 0 1px rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
  pointer-events: none;
}

/* Barre flottante au scroll et sur les pages intérieures */
.site-header.is-scrolled,
.site-header--solid {
  top: var(--bar-top);
  left: clamp(12px, 1.458vw, 28px);
  right: clamp(12px, 1.458vw, 28px);
  height: var(--bar-h);
  padding: 0 clamp(14px, 1.5625vw, 30px);
  border-radius: var(--radius-bar);
}
.site-header.is-scrolled::before,
.site-header--solid::before { opacity: 1; }

/* Logo centré dans la barre (pages intérieures) */
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand img { width: clamp(116px, 7.5vw, 144px); height: auto; }

/* Bouton Réserver de l'en-tête */
.header-cta {
  height: clamp(40px, 2.3875vw, 45.84px);
  padding: 0 clamp(20px, 1.25vw, 24px);
  font-size: 12.5px;
}
/* Accueil, en haut de page : bouton plus grand (maquette) */
.home-page .site-header:not(.is-scrolled) .header-cta {
  height: clamp(40px, 2.396vw, 46px);
  padding: 0 clamp(26px, 1.823vw, 35px);
  font-size: clamp(13.5px, 0.833vw, 16px);
}

/* Burger : toujours visible, à gauche */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  z-index: 1060;
  position: relative;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.4s var(--ease);
}
.is-scrolled .nav-toggle span,
.site-header--solid .nav-toggle span,
.nav-toggle.open span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo de l'accueil : grand dans le hero, puis se loge dans la barre */
.home-logo-flight {
  position: fixed;
  z-index: 101;
  top: 50%;
  left: 50%;
  line-height: 0;
  color: var(--cream);
  transform: translate(-50%, -50%);
  transition: top 0.9s var(--ease), color 0.7s var(--ease);
}
.home-logo-flight .logo {
  --logo-size: clamp(88px, 8.22vw, 157.821px);
  transition: font-size 0.9s var(--ease);
}
/* Dans la barre : même encombrement que le logo des pages intérieures */
.site-header.is-scrolled + .home-logo-flight {
  top: calc(var(--bar-top) + var(--bar-h) / 2);
  color: #8f4424;
}
.site-header.is-scrolled + .home-logo-flight .logo { --logo-size: clamp(42.3px, 2.734vw, 52.5px); }
/* Menu ouvert : le logo repasse sous le voile */
.nav-open .home-logo-flight { z-index: 99; }

/* Menu tiroir */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: min(86vw, clamp(280px, 17.708vw, 340px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(100px, 7.1875vw, 138px) 0 0;
  background: var(--cream);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0s linear 0.55s;
  box-shadow: 20px 0 60px -30px rgba(0, 0, 0, 0.4);
  z-index: 1050;
}
.nav.open {
  transform: none;
  visibility: visible;
  transition: transform 0.55s var(--ease), visibility 0s;
}

.nav__brand {
  display: block;
  width: clamp(116px, 7.5vw, 144px);
  margin: 0 0 clamp(29px, 1.875vw, 36px) clamp(40px, 2.5vw, 48px);
  line-height: 0;
}
.nav__brand img { width: 100%; height: auto; }

.nav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(32px, 2.083vw, 40px);
  padding: clamp(19px, 1.25vw, 24px) 24px clamp(19px, 1.25vw, 24px) clamp(36px, 2.292vw, 44px);
}
/* Maquette : blocs texte de 17 px de haut (pas de 57 px entre deux liens) */
.nav__links a {
  position: relative;
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 0.95;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.52em;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--brand); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active {
  margin-bottom: 0.333em;
  line-height: 1.3222;
  font-weight: 600;
  color: var(--brand);
}
.nav__links a.active::after { bottom: -0.333em; }

/* Bouton Réserver dans le tiroir : mobile uniquement */
.nav__cta {
  display: none;
  align-self: flex-start;
  margin: 8px 0 0 44px;
  height: 46px;
  padding: 0 28px;
}

/* Voile derrière le tiroir */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
  z-index: 1040;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Voile renforcé : la façade en pierre claire (photo 04) est très lumineuse */
  background: radial-gradient(ellipse 55% 45% at 50% 58%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.26) 40%, rgba(0, 0, 0, 0.6) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 28px clamp(96px, 15vh, 180px);
  text-align: center;
}
.hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1rem + 2.2vw, 3.5rem);
  line-height: 0.85;
  font-weight: 400;
  opacity: 0.95;
  margin: 0 auto 32.8px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__cta .btn {
  height: 55.84px;
  font-size: 14px;
  border-radius: var(--radius);
}
.hero__cta .btn--light { font-weight: 500; }
.hero__cta .btn--glass { font-weight: 600; }

.scroll-hint {
  position: absolute;
  right: clamp(28px, 4.5vw, 87px);
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 9.9px;
  line-height: 17.36px;
  letter-spacing: 2.976px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  transform: translateX(50%);
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 42px;
  background: #fff;
  animation: scrollPulse 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Accueil : à propos ---------- */
.about { padding: 130px 0; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 574.34fr) minmax(0, 519.66fr);
  gap: clamp(40px, 4.7vw, 90px);
  align-items: center;
}
.about__media {
  aspect-ratio: 574.34 / 717.92;
  background: var(--bg-accent);
  overflow: hidden;
  border-radius: var(--radius);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__body .eyebrow { font-size: 16px; }
.about__body h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
  line-height: 1.08;
  color: var(--accent);
}
.about__body .lead {
  margin-top: 20px;
  font-size: var(--fs-lead);
  line-height: 1.5467;
  color: var(--ink-soft);
}
.about__body p:not(.lead) {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.about__body { padding-bottom: 21px; }
.about__body p.about__sign {
  margin-top: 23px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 42px;
  color: var(--ink-soft);
}

/* ---------- Accueil : les expériences du Domaine ---------- */
.domaine { padding: 137px 0 116px; background: var(--bg-accent); }
.domaine .section-head { gap: 37px; margin-bottom: 100px; }
.domaine .section-head__titles { gap: 17px; }
.domaine .eyebrow { font-size: 16px; font-weight: 400; }
.domaine .lead { line-height: 32px; }

.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.offer {
  position: relative;
  overflow: hidden;
  height: 460px;
  display: flex;
  color: #fff;
  border-radius: var(--radius);
}
.offer__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.offer:hover .offer__media { transform: scale(1.06); }
.offer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 24, 20, 0.15) 0%, rgba(28, 24, 20, 0.35) 45%, rgba(28, 24, 20, 0.85) 100%);
  transition: opacity 0.5s var(--ease);
}
.offer__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 272px 31px 22px 30px;
}
.offer__num {
  display: block;
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  opacity: 0.85;
}
.offer__body h3 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 30.24px;
}
.offer__body p {
  margin: 8px 0 0;
  font-size: 14.7px;
  line-height: 23.55px;
  font-weight: 400;
  opacity: 0.92;
}
.offer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-bottom: 3px;
  font-size: 11.5px;
  line-height: 20.16px;
  font-weight: 500;
  letter-spacing: 2.074px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: gap 0.4s var(--ease), border-color 0.4s var(--ease);
}
.offer:hover .offer__link { gap: 14px; border-color: #fff; }

/* ---------- Séjours de charme : cartes des gîtes ---------- */
.stays { padding: 130px 0 179px; }
.stays__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 579px));
  justify-content: center;
  gap: 48px 24px;
}
.gite-card {
  position: relative;
  display: block;
  aspect-ratio: 579 / 434.25;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-accent);
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
a.gite-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 55px -32px rgba(28, 24, 20, 0.68);
}
.gite-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.gite-card__media img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
a.gite-card:hover .gite-card__media img { transform: scale(1.05); }
/* Cadrages des photos choisies par la propriétaire (portraits recadrés) */
.gite-card--tilleuls .gite-card__media img { object-position: 50% 58%; }
.gite-card--cypres .gite-card__media img { object-position: 50% 45%; }

.gite-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180.04deg, rgba(20, 16, 12, 0.12) 60.894%, rgba(20, 16, 12, 0.04) 38.844%, rgba(20, 16, 12, 0.9) 90.322%);
  pointer-events: none;
}
.gite-card--presbytere::after {
  background-image: linear-gradient(180.04deg, rgba(20, 16, 12, 0.12) 60.894%, rgba(20, 16, 12, 0.04) 38.844%, rgba(20, 16, 12, 0.9) 71.846%);
}
.gite-card__badge {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px;
  border-radius: var(--radius);
  background: rgba(140, 68, 32, 0.7);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  font-size: 16px;
  line-height: 23.31px;
  font-weight: 500;
  white-space: nowrap;
}
.gite-card__badge::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("../images/icons/user.svg") no-repeat 3.19px 1.69px / 11.625px 14.0265px;
}
.gite-card__body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}
.gite-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gite-card__name,
.gite-card__price {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 35px;
  font-weight: 400;
  white-space: nowrap;
}
.gite-card__name {
  letter-spacing: 2.176px;
  text-transform: uppercase;
}
.gite-card__euro {
  font-family: var(--font-sans);
  font-weight: 400;
}
.gite-card__price small {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}
.gite-card__body p {
  min-height: calc(3 * 23.31px);
  margin: 0;
  font-size: 18px;
  line-height: 23.31px;
  font-weight: 300;
}

/* ---------- Bandeau citation ---------- */
.quote {
  padding: 137px 0 131px;
  text-align: center;
  background: var(--bg-accent);
}
.quote blockquote {
  margin: 0 auto;
  max-width: 1101px;
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: 1.04;
  color: var(--accent);
}
.quote cite {
  display: block;
  margin-top: 17.3px;
  font-style: normal;
  font-size: 16px;
  line-height: 20.72px;
  font-weight: 600;
  letter-spacing: 3.315px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Découvrir / alentours ---------- */
.discover { padding: 150px 0 121px; }
.discover .section-head { gap: 22px; margin-bottom: 62px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 28px;
}
.card {
  min-height: 417.8px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -28px rgba(140, 68, 32, 0.45);
}
.card__media {
  aspect-ratio: 375.33 / 250.22;
  overflow: hidden;
  background: var(--bg-accent);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 26px 26px 32px; }
.card__dist {
  display: block;
  font-size: 14px;
  line-height: 19.04px;
  font-weight: 500;
  letter-spacing: 2.176px;
  text-transform: uppercase;
  color: var(--accent);
}
.card__body h3 {
  margin-top: 6px;
  font-size: 23.2px;
  line-height: 25.06px;
  color: var(--ink);
}
.card__body p {
  margin: 7px 0 0;
  font-size: 14.7px;
  line-height: 25.76px;
  font-weight: 300;
  color: var(--ink-soft);
}

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band {
  padding: 137px 0 178px;
  background: var(--bg-accent);
  text-align: center;
}
.cta-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-band h2 {
  margin-top: 17px;
  font-size: clamp(2.1rem, 1.2rem + 2.4vw, 3.2rem);
  line-height: 1.08;
  color: var(--accent);
}
.cta-band .btn { margin-top: 25.6px; }
.cta-band__note {
  margin: 26.4px 0 0;
  font-size: 16px;
  line-height: 20.16px;
  font-weight: 300;
  letter-spacing: 2.534px;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s var(--ease);
}
a.cta-band__note:hover { color: var(--accent-dark); }
/* Variante des pages intérieures : chapô + bouton moyen */
.cta-band--page { padding: 137px 0 179px; }
.cta-band--page .eyebrow { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.cta-band--page h2 { margin-top: 8px; }
.cta-band--page p {
  max-width: 879px;
  margin: 24px 0 0;
  font-size: var(--fs-lead);
  line-height: 29.75px;
  font-weight: 400;
  color: var(--ink-soft);
}
.cta-band--page .btn { margin-top: 24px; padding: 0 14.5px; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted);
  padding: 90px 0 34px;
}
.site-footer .container { max-width: calc(1184px + 2 * var(--gutter)); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 436fr) minmax(0, 309fr) minmax(0, 319fr);
  column-gap: 60px;
  row-gap: 44px;
  min-height: 295.92px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand {
  --logo-size: 72.709px;
  display: inline-block;
  margin-top: -3.7px;
  color: var(--bg-accent);
  line-height: 0;
}
.footer__about {
  margin: 16.7px 0 0;
  font-size: 14.7px;
  line-height: 25.02px;
  font-weight: 300;
}
.footer__grid h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 12.44px;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
}
.footer__nav h4 { margin-bottom: 17px; }
.footer__nav a {
  display: block;
  width: fit-content;
  padding: 5px 0;
  font-size: 14.7px;
  line-height: 25.76px;
  font-weight: 300;
  transition: color 0.3s;
}
.footer__nav a:hover,
.footer__contact a:hover { color: #fff; }
.footer__contact p {
  margin: 7.5px 0 0;
  font-size: 14.7px;
  line-height: 25.02px;
  font-weight: 300;
}
.footer__contact h4 + p { margin-top: 7.5px; }
.footer__contact .footer__h4-contact { margin-top: 33.6px; }
.footer__contact .footer__lines {
  margin-top: 6.26px;
  display: flex;
  flex-direction: column;
}
.footer__contact .footer__lines a {
  display: block;
  width: fit-content;
  font-size: 14.7px;
  line-height: 20px;
  transition: color 0.3s;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 8px;
}
.social-links a,
.social-links span {
  display: block;
  background: var(--line);
  -webkit-mask: var(--icon) no-repeat center / 100% 100%;
  mask: var(--icon) no-repeat center / 100% 100%;
  transition: background 0.3s var(--ease);
}
.social-links a:hover { background: #fff; }
.social-links .icon-instagram { --icon: url("../images/icons/instagram.png"); width: 38.655px; height: 38.655px; }
.social-links .icon-whatsapp { --icon: url("../images/icons/whatsapp.png"); width: 39.538px; height: 39.538px; }
.social-links .icon-facebook { --icon: url("../images/icons/facebook.png"); width: 28.715px; height: 28.715px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 12.5px;
  line-height: 21.84px;
  font-weight: 300;
  opacity: 0.7;
}
.footer__bottom .credit-link {
  color: inherit;
  font-weight: 400;
  transition: color 0.3s var(--ease);
}
.footer__bottom .credit-link:hover { color: #fff; }

/* ---------- Pages intérieures : hero photo ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 760px;
  max-height: 100svh;
  min-height: 520px;
  overflow: hidden;
  color: #fff;
  background: #27221d;
}
.page-hero__media {
  position: absolute;
  inset: -7.6px -19.2px;
  width: calc(100% + 38.4px);
  height: calc(100% + 15.2px);
  max-width: none;
  object-fit: cover;
  object-position: center 45%;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 17, 13, 0.74) 0%, rgba(22, 17, 13, 0.3) 84.615%, rgba(22, 17, 13, 0.08) 100%);
}
.page-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(64px, 9vw, 168px);
}
.page-hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  color: #fff;
}
.page-hero__text {
  margin: 8px 0 0;
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.27;
  font-weight: 500;
}

.page-hero__text p { margin: 0; }
@media (min-width: 1240px) {
  .page-hero__text { width: min(1192px, calc(100% + 8px)); }
}

/* Page Séjourner */
.stays--page { padding: 96px 0 150px; }

/* ---------- Hero des pages intérieures : texte calé en haut (desktop) ---------- */
@media (min-width: 1100px) and (min-height: 760px) {
  .page-hero { align-items: flex-start; }
  .page-hero .container { padding-top: var(--hero-top, 415.83px); padding-bottom: 0; }
}
.page-hero--reunir { --hero-top: 447px; }

/* ---------- Galerie mosaïque paginée ---------- */
.gallery-block {
  padding: 48px 0;
  background: var(--bg-accent);
}
.gallery-block .section-head { margin-bottom: 48px; }
.gallery-block__kicker {
  font-size: 18px;
  line-height: 20.16px;
  font-weight: 400;
  color: #000;
}
.gallery-block__wrap {
  width: min(1703px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

/* Filtres (repris de la galerie du site, échelle de la maquette) */
.mgallery-filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 5px 53.33px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 auto 24px;
  padding: 5.33px 0 16px;
}
.mgallery-filters::-webkit-scrollbar { display: none; }
.mgallery-filters button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10.67px;
  height: 48px;
  padding: 13.33px 0 10.67px;
  background: transparent;
  border: 0;
  border-bottom: 1.33px solid transparent;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 16.77px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 2.01px;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.mgallery-filters button[hidden] { display: none; }
.mgallery-filters svg {
  width: 22.67px;
  height: 22.67px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mgallery-filters button:hover { color: var(--accent); }
.mgallery-filters button.active { color: var(--accent); border-color: var(--accent); }

/* Bloc de 6 photos : grille issue de la maquette (1703 × 1243 px) */
.mosaic {
  display: grid;
  grid-template-columns: 463.202fr 477.839fr 720.632fr;
  grid-template-rows: 507.112fr 324.586fr 370.217fr;
  gap: 20.663px;
  aspect-ratio: 1703 / 1243.24;
}
.mosaic + .mosaic { margin-top: 96px; }
.mosaic__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 3.444px;
  background: #e6e1d6;
  cursor: zoom-in;
}
.mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic__item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.mosaic__item:nth-child(2) { grid-column: 1; grid-row: 3; }
.mosaic__item:nth-child(3) { grid-column: 2 / span 2; grid-row: 1; }
.mosaic__item:nth-child(4) { grid-column: 2; grid-row: 2; }
.mosaic__item:nth-child(5) { grid-column: 2; grid-row: 3; }
.mosaic__item:nth-child(6) { grid-column: 3; grid-row: 2 / span 2; }
/* Dernier bloc incomplet : grille simple */
.mosaic--partial {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: auto;
  aspect-ratio: auto;
}
.mosaic--partial .mosaic__item {
  grid-column: auto !important;
  grid-row: auto !important;
  aspect-ratio: 4 / 3;
}
/* Sans JavaScript : toutes les photos en grille */
.mgallery:not(.is-ready) .mgallery__source {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20.663px;
}
.mgallery:not(.is-ready) .mosaic__item { aspect-ratio: 4 / 3; }
.mgallery.is-ready .mgallery__source { display: none; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 48px;
}
.pagination[hidden] { display: none; }
.pagination button,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: #1e1e1e;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.pagination button:hover { background: rgba(151, 67, 21, 0.1); }
.pagination button[aria-current="page"] {
  border-radius: 4px;
  background: var(--brand);
  color: #f5f5f5;
  cursor: default;
}
.pagination span {
  height: 38px;
  padding: 8px 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  cursor: default;
}

/* ---------- Bandeau CTA compact (Se ressourcer, Se réunir, gîtes) ---------- */
.cta-band--compact { padding: 72px 0; }
.cta-band--compact .container { gap: 25px; }
.cta-band--compact .eyebrow {
  line-height: 21px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}
.cta-band--compact h2 {
  margin: 0;
  font-size: clamp(2.1rem, 1.2rem + 2.4vw, 3.2rem);
  line-height: 56px;
  color: var(--brand);
}
.cta-band--compact p {
  margin: 0;
  font-size: 18px;
  line-height: 30px;
  font-weight: 400;
  color: var(--ink-soft);
}
.cta-band--compact .btn { margin: 0; }

/* ---------- Page contact ---------- */
.contact-hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 475.78px;
  padding: 191px var(--gutter) 60px;
  background: var(--bg-accent);
  text-align: center;
}
.contact-hero__inner { width: min(744px, 100%); }
.contact-hero .eyebrow { display: block; }
.contact-hero h1 {
  margin-top: 24px;
  font-size: clamp(2.6rem, 1.6rem + 2.6vw, 4rem);
  line-height: 74px;
  color: var(--accent);
}
.contact-hero p {
  max-width: 676px;
  margin: 24px auto 0;
  font-size: var(--fs-lead);
  line-height: 30px;
  font-weight: 300;
  color: var(--ink-soft);
}

.contact-main { padding: 165.22px 0 149.78px; }
.contact-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 616px) minmax(0, 624px);
  justify-content: center;
  align-items: start;
  column-gap: 96px;
  width: min(1336px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}
.contact-main h2 {
  font-size: clamp(2.2rem, 1.6rem + 1.4vw, 3rem);
  line-height: 30px;
  color: var(--accent);
}
.contact-main__intro {
  margin: 24px 0 0;
  font-size: var(--fs-lead);
  line-height: 30px;
  font-weight: 400;
  color: var(--ink);
}
.contact-list {
  margin: 48px 0 0;
  padding: 0;
}
.contact-row {
  display: grid;
  grid-template-columns: 287px minmax(0, 1fr);
  align-items: center;
  box-sizing: content-box;
  min-height: 56px;
  padding: 24px 0 23px;
  border-bottom: 1px solid var(--line);
}
.contact-row:first-child { padding-top: 0; }
.contact-row dt {
  font-size: 24px;
  line-height: 20px;
  font-weight: 300;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-row dd {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  color: #000;
}
.contact-row dd a { transition: color 0.3s var(--ease); }
.contact-row dd a:hover { color: var(--accent); }
.contact-socials {
  display: grid;
  grid-template-columns: 142px auto;
}

.booking-card {
  margin-top: 74px;
  padding: 48px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
}
.booking-card__media {
  aspect-ratio: 528 / 258;
  overflow: hidden;
  border-radius: var(--radius);
}
.booking-card__media img { width: 100%; height: 100%; object-fit: cover; }
.booking-card h3 {
  margin-top: 24px;
  font-size: clamp(1.8rem, 1.3rem + 1.1vw, 2.6rem);
  line-height: 42px;
}
.booking-card p {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 30px;
  font-weight: 300;
}
.booking-card .btn {
  margin-top: 24px;
  width: 160px;
  font-size: 14.7px;
}

/* ---------- Pages gîtes : hero ---------- */
.gite-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 900px;
  max-height: 100svh;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background: #27221d;
}
.gite-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gite-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.12) 0%, rgba(20, 16, 12, 0.72) 100%);
}
.gite-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: 45px;
}
.gite-hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
}
.gite-hero__price {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 32px;
}
.gite-hero__price small {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 19px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}
.gite-hero__text {
  max-width: 1192px;
  margin-top: 8px;
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 25px;
  font-weight: 500;
}
.gite-hero__text p { margin: 0; }
.gite-hero__text p + p { margin-top: 25px; }
.gite-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.gite-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
}
.gite-facts svg,
.gite-facts img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.gite-facts svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gite-facts .icon-user {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: url("../images/icons/user.svg") no-repeat center / 14px 16.9px;
}

/* ---------- Pages gîtes : équipements ---------- */
.equip { padding: 72px 0; }
.equip--flat { padding: 48px 0; }
.equip .section-head { margin-bottom: 72px; }
.equip__grid {
  display: grid;
  grid-template-columns: minmax(0, 639fr) minmax(0, 918fr);
  align-items: center;
  gap: 48px;
  width: min(1605px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}
.equip__media {
  aspect-ratio: 639 / 434;
  overflow: hidden;
  border-radius: var(--radius);
}
.equip__media img { width: 100%; height: 100%; object-fit: cover; }
.head-kicker {
  font-size: 16.8px;
  line-height: 21px;
  font-weight: 400;
  color: #000;
}
.section-head--tight { gap: 24px; }
.section-head--tight .section-head__titles { gap: 8px; }

.amenities-card {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.amenities-card h3 {
  font-size: 32px;
  line-height: 36px;
  color: var(--brand);
}
.amenities-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 40px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}
.amenities-card li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ink);
}
.amenities-card svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Fenêtre modale : liste complète des équipements */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 16, 12, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; }
.modal__panel {
  position: relative;
  width: min(779px, 100%);
  max-height: min(1224px, calc(100svh - 48px));
  overflow-y: auto;
  padding: 24px 40px 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5);
  transform: translateY(24px);
  transition: transform 0.45s var(--ease);
}
.modal.open .modal__panel { transform: none; }
.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 0 16px -8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.modal__close:hover { background: var(--bg-accent); }
.modal__panel h2 {
  font-size: 32px;
  line-height: 36px;
  color: var(--brand);
}
.amenity-group { margin-top: 32px; }
.amenity-group h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  color: var(--ink);
}
.amenity-group ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.amenity-group li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 24px;
  font-weight: 300;
  color: var(--ink);
}

/* ---------- Pages gîtes : galerie ---------- */
.gallery-block--gite { padding: 72px 0; }
.gallery-block--gite.gallery-block--flat { padding: 48px 0; }
.gallery-block--gite .section-head { margin-bottom: 24px; }
.gallery-block--gite .pagination { margin-top: 24px; }

/* ---------- Pages gîtes : le Domaine ---------- */
.estate { padding: 72px 0; }
.estate .section-head { margin-bottom: 48px; }
.estate__wrap {
  width: min(1281.33px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}
.estate-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.estate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 302.2 / 226.65;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.estate-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.estate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 16, 12, 0.45);
  transition: background 0.5s var(--ease);
}
a.estate-card:hover img { transform: scale(1.05); }
a.estate-card:hover::before { background: rgba(74, 34, 15, 0.55); }
.estate-card { box-shadow: var(--shadow-card); }
.estate-card.is-current { outline: 3px solid var(--brand); outline-offset: 0; }
.estate-card .logo {
  --logo-size: 57.56px;
  width: 0.868em;
  height: 1.41em;
  padding: 0;
  color: #fff;
}
.estate-card__name {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2vw, 38.4px);
  line-height: 38px;
}
.estate-card__meta {
  margin-top: 6px;
  font-size: 14px;
  line-height: 17px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.estate-map {
  display: block;
  width: 100%;
  aspect-ratio: 1281 / 403;
  margin-top: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-accent);
}

/* ---------- Galerie complète (page masquée, conservée) ---------- */
.gallery-hero {
  position: relative;
  min-height: min(72vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(150px, 21vh, 230px) 0 clamp(60px, 8vw, 100px);
  color: #fff;
  text-align: left;
  background: #27221d;
}
.gallery-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.02);
  animation: gallery-hero-arrive 1.8s var(--ease) both;
}
.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 17, 13, 0.74) 0%, rgba(22, 17, 13, 0.3) 58%, rgba(22, 17, 13, 0.08) 100%);
}
.gallery-hero .container { position: relative; z-index: 1; width: 100%; }
.gallery-hero .eyebrow { color: rgba(255, 255, 255, 0.78); }
.gallery-hero h1 {
  max-width: 760px;
  margin-bottom: 0.2em;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  color: #fff;
}
.gallery-hero p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
@keyframes gallery-hero-arrive {
  from { transform: scale(1.09); opacity: 0.6; }
  to { transform: scale(1.02); opacity: 1; }
}

.gallery-section { background: var(--bg); }
.gallery-properties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 30px);
  margin-top: clamp(-92px, -7vw, -64px);
  margin-bottom: clamp(70px, 9vw, 120px);
  position: relative;
  z-index: 2;
}
.gallery-property {
  position: relative;
  min-height: clamp(190px, 25vw, 290px);
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: #fff;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 24px 60px -40px rgba(31, 22, 17, 0.6);
}
.gallery-property::before,
.gallery-property::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s var(--ease);
}
.gallery-property:first-child::before { background-image: url("../images/exterieur/exterieur-30.avif"); }
.gallery-property:last-child::before { background-image: url("../images/tilleuls/tilleuls-14.avif"); }
.gallery-property::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 14, 11, 0.02) 20%, rgba(18, 14, 11, 0.76) 100%);
}
.gallery-property:hover::before { transform: scale(1.045); }
.gallery-property.active { outline: 3px solid var(--accent); outline-offset: 5px; }
.gallery-property img {
  width: min(230px, 65%);
  height: 82px;
  object-fit: contain;
  object-position: left bottom;
  filter: brightness(0) invert(1);
  margin-bottom: 8px;
}
.gallery-property span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}
.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(28px, 4vw, 42px);
  margin-bottom: 24px;
}
.gallery-heading h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.gallery-heading p { max-width: 430px; margin: 0 0 0.35em auto; color: var(--ink-soft); }

.gallery-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px clamp(20px, 3vw, 40px);
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: clamp(40px, 6vw, 72px);
  padding: 4px 0 12px;
  scroll-snap-type: x proximity;
}
.gallery-filters::-webkit-scrollbar { display: none; }
.gallery-filters button {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 10px 0 8px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.gallery-filters button[hidden] { display: none; }
.gallery-filters button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s var(--ease);
}
.gallery-filters button:hover {
  color: var(--accent);
}
.gallery-filters button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 20px);
}
/* Points indicateurs : masqués par défaut (desktop) */
.gallery-dots { display: none; }
.gallery-item {
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  aspect-ratio: 4 / 5;
  background: var(--bg-accent);
  cursor: pointer;
  border-radius: 2px;
}
.gallery-item.span-2 { grid-column: span 8; aspect-ratio: 2 / 1.21; }
.gallery-item:nth-child(7n + 4):not(.span-2) { grid-column: span 5; }
.gallery-item:nth-child(7n + 5):not(.span-2) { grid-column: span 7; aspect-ratio: 7 / 5; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.045); filter: saturate(1.04); }
.gallery-item__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s var(--ease);
}
.gallery-item:hover .gallery-item__cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img,
.lightbox .ph {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
}
.lightbox .ph { width: 60vw; height: 60vh; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
  line-height: 1;
}
.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 26px; right: 32px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 20px; }
.lightbox__nav.prev { left: 18px; }
.lightbox__nav.next { right: 18px; }


@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .gallery-hero {
    min-height: 72svh;
    padding-bottom: 58px;
  }
  .gallery-hero__media { background-position: 62% center; }
  .gallery-hero::after {
    background: linear-gradient(180deg, rgba(22, 17, 13, 0.12) 20%, rgba(22, 17, 13, 0.82) 100%);
  }
  .gallery-hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .gallery-properties {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    margin: -68px -28px 70px;
    padding: 6px 28px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery-properties::-webkit-scrollbar { display: none; }
  .gallery-property {
    flex: 0 0 82%;
    min-height: 230px;
    scroll-snap-align: center;
  }
  .gallery-heading { grid-template-columns: 1fr; gap: 18px; }
  .gallery-heading p { margin-left: 0; }

  /* Filtres galerie : bord à bord sur mobile */
  .gallery-filters {
    gap: 10px;
    margin-left: -28px;
    margin-right: -28px;
    padding: 4px 28px;
  }

  /* Galerie : diaporama à défilement horizontal (snap) */
  .gallery-grid {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: -28px;
    margin-right: -28px;
    padding: 0 28px;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item,
  .gallery-item.span-2 {
    flex: 0 0 88%;
    grid-column: auto;
    aspect-ratio: 4 / 3;
    scroll-snap-align: center;
  }
  /* Légende toujours visible sur mobile (pas de survol) */
  .gallery-item__cap { opacity: 1; transform: none; }

  /* Points indicateurs du diaporama */
  .gallery-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }
  .gallery-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .gallery-dots span.active {
    background: var(--accent);
    transform: scale(1.35);
  }

}

/* ---------- Animations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* Variantes directionnelles */
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-up { transform: translateY(46px); }
.reveal-zoom { transform: scale(0.94); }
.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible,
.reveal-zoom.visible { transform: none; }

/* Apparition échelonnée (enfants) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.37s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.53s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.61s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .stays__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gite-card__name,
  .gite-card__price { font-size: clamp(22px, 2.6vw, 32px); }
  .gite-card__body p { font-size: clamp(15px, 1.45vw, 18px); }
}

@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; }
  .offers { grid-template-columns: 1fr; }
  .offer { height: 400px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stays__grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .gite-card__name,
  .gite-card__price { font-size: 28px; }
  .gite-card__body p { font-size: 17px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .contact-main__grid { grid-template-columns: minmax(0, 640px); row-gap: 56px; }
  .booking-card { margin-top: 0; }
  .equip__grid { grid-template-columns: 1fr; }
  .estate-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .scroll-hint { display: none; }
  .reveal-left,
  .reveal-right { transform: translateY(28px); }

  .section,
  .about,
  .domaine,
  .stays,
  .stays--page,
  .discover { padding: 72px 0; }
  .quote,
  .cta-band,
  .cta-band--page { padding: 80px 0; }
  .domaine .section-head { gap: 20px; margin-bottom: 40px; }
  .section-head { gap: 16px; margin-bottom: 36px; }
  .discover .section-head { margin-bottom: 36px; }
  .eyebrow { font-size: 12px; letter-spacing: 3px; }
  .eyebrow--lg,
  .about__body .eyebrow,
  .domaine .eyebrow,
  .cta-band--page .eyebrow { font-size: 13px; }

  /* En-tête mobile */
  .site-header { height: 72px; }
  .site-header.is-scrolled,
  .site-header--solid { height: 72px; }
  .brand img { width: 112px; height: 56px; }
  .header-cta { display: none; }
  .nav__cta { display: inline-flex; }
  .nav { width: min(86vw, 340px); padding-top: 110px; }
  .nav__links a { font-size: 17px; }
  /* Hero : le slogan est calé en bas, le logo remonte entre la barre et le slogan */
  .home-logo-flight { top: 34%; }
  .home-logo-flight .logo { --logo-size: clamp(64px, 20vw, 96px); }
  .site-header.is-scrolled + .home-logo-flight { top: calc(clamp(10px, 0.9375vw, 18px) + 36px); }
  .site-header.is-scrolled + .home-logo-flight .logo { --logo-size: 40.8px; }

  /* Hero */
  .hero__inner { padding-bottom: clamp(72px, 11vh, 110px); }
  .hero__sub { line-height: 1; max-width: 16ch; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 360px; }

  .about__body .about__sign { font-size: 20px; line-height: 1.5; }
  .offer { height: 380px; }
  .offer__body { justify-content: flex-end; padding: 0 22px 22px; }
  .offer__link { margin-top: 28px; }

  .gite-card { aspect-ratio: 4 / 4.2; }
  .gite-card__badge { top: 14px; left: 14px; font-size: 14px; }
  .gite-card__body { padding: 18px; gap: 8px; }
  .gite-card__row { flex-wrap: wrap; row-gap: 2px; }
  .gite-card__name,
  .gite-card__price { font-size: 23px; line-height: 1.2; }
  .gite-card__price small { font-size: 15px; }
  .gite-card__body p { font-size: 15px; line-height: 1.45; }

  .quote blockquote { line-height: 1.15; }
  .quote cite { font-size: 12px; letter-spacing: 2.4px; margin-top: 22px; }

  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }

  .cta-band__note { font-size: 13px; letter-spacing: 2px; }
  .cta-band--page p { line-height: 1.45; }

  .footer__grid { grid-template-columns: 1fr; min-height: 0; row-gap: 36px; }
  .footer__brand { --logo-size: 60px; }

  .page-hero { height: 78svh; min-height: 460px; }
  .page-hero::after {
    background: linear-gradient(180deg, rgba(22, 17, 13, 0.12) 20%, rgba(22, 17, 13, 0.82) 100%);
  }
  .page-hero h1 { line-height: 1.02; }
  .page-hero .container { padding-bottom: 56px; }

  /* Galerie mosaïque : 2 colonnes */
  .gallery-block .section-head { margin-bottom: 32px; }
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: 150px;
    grid-auto-flow: dense;
    aspect-ratio: auto;
    gap: 10px;
  }
  .mosaic + .mosaic { margin-top: 10px; }
  .mosaic__item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .mosaic__item:nth-child(1),
  .mosaic__item:nth-child(6) { grid-row: span 2; }
  .mosaic__item:nth-child(3) { grid-column: 1 / -1; }
  .mosaic--partial { grid-template-columns: 1fr 1fr; }
  .mgallery-filters {
    justify-content: flex-start;
    gap: 24px;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .mgallery-filters button { font-size: 13px; letter-spacing: 1.5px; gap: 8px; }
  .mgallery-filters svg { width: 18px; height: 18px; }
  .pagination { justify-content: center; margin-top: 28px; }

  /* Contact */
  .contact-hero { min-height: 0; padding: 130px var(--gutter) 64px; }
  .contact-hero h1 { line-height: 1.1; }
  .contact-main { padding: 64px 0 80px; }
  .contact-main h2 { line-height: 1.1; }
  .contact-row { grid-template-columns: 1fr; row-gap: 10px; height: auto; padding: 20px 0; }
  .contact-row:first-child { padding-top: 0; }
  .cta-band--compact h2 { line-height: 1.1; }
  .contact-row dt { font-size: 16px; line-height: 20px; }
  .contact-row dd { font-size: 17px; line-height: 26px; word-break: break-word; }
  .contact-socials { grid-template-columns: 110px auto; }
  .booking-card { padding: 24px; }
  .booking-card h3 { line-height: 1.15; }
  .booking-card p { font-size: 16px; line-height: 26px; }
  /* Pages gîtes */
  .gite-hero { height: 88svh; min-height: 560px; }
  .gite-hero h1 { line-height: 1.02; }
  .gite-hero__price { font-size: 26px; }
  .gite-hero__text { line-height: 1.45; }
  .gite-hero__text p + p { margin-top: 12px; }
  .gite-facts { margin-top: 18px; gap: 10px 18px; }
  .gite-facts li { font-size: 15px; }
  .gite-hero .container { padding-bottom: 36px; }
  .equip,
  .equip--flat,
  .gallery-block--gite,
  .gallery-block--gite.gallery-block--flat,
  .estate { padding: 56px 0; }
  .equip .section-head { margin-bottom: 32px; }
  .equip__grid { gap: 28px; }
  .amenities-card { padding: 24px 0; }
  .amenities-card h3 { font-size: 26px; line-height: 1.2; }
  .amenities-card ul { grid-template-columns: 1fr; gap: 14px; margin: 20px 0 24px; }
  .amenities-card li { font-size: 16px; }
  .amenities-card .btn { width: 100%; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { max-height: 92svh; padding: 18px 20px 32px; border-radius: 16px 16px 0 0; }
  .estate .section-head { margin-bottom: 28px; }
  .estate-cards { gap: 12px; }
  .estate-card .logo { --logo-size: 36px; }
  .estate-card__name { font-size: 22px; line-height: 1.2; }
  .estate-card__meta { font-size: 11px; letter-spacing: 1px; }
  .estate-map { aspect-ratio: 4 / 3; margin-top: 28px; }
}
