/* =========================================================
   DOMAINE DU MARENSIN — Stylesheet
   Inspired by Sublime Comporta: editorial, calm, full-bleed.
   ========================================================= */

/* ===== Theme tokens ===== */
:root {
  /* Forest theme (default) */
  --c-bg: #F2EDE3;
  --c-bg-soft: #EAE3D3;
  --c-bg-deep: #2B2F26;
  --c-text: #221F19;
  --c-text-soft: #5E574B;
  --c-line: rgba(34,31,25,0.18);
  --c-line-light: rgba(255,255,255,0.18);
  --c-accent-warm: #B05C3B;          /* soft terracotta */
  --c-accent-pool: #5B7A78;          /* river-stone teal */
  --c-on-deep: #F2EDE3;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", system-ui, sans-serif;

  /* Spacing scale */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;
  --sp-7: 140px;
  --sp-8: 200px;

  --container: 1480px;
  --max-text: 720px;

  --header-h: 76px;
  --header-h-condensed: 64px;
  --radius-photo: 0px;
  --transition: 0.45s cubic-bezier(.2,.7,.2,1);
}

/* Palette variants applied by Tweaks */
.theme-forest {} /* default — defined above */

.theme-pampas {
  --c-bg: #ECE3D0;
  --c-bg-soft: #DFD3B8;
  --c-bg-deep: #3D3221;
  --c-text: #2A2317;
  --c-text-soft: #6A5D45;
  --c-line: rgba(42,35,23,0.20);
  --c-accent-warm: #C28A55;
  --c-accent-pool: #7E704A;
  --c-on-deep: #ECE3D0;
}

.theme-ocean {
  --c-bg: #E8E5DE;
  --c-bg-soft: #D6D1C5;
  --c-bg-deep: #1F2D34;
  --c-text: #1A2228;
  --c-text-soft: #4F5A64;
  --c-line: rgba(26,34,40,0.18);
  --c-accent-warm: #C56A4E;
  --c-accent-pool: #345A66;
  --c-on-deep: #E8E5DE;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
p { text-wrap: pretty; }

/* ===== Reusable bits ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-bottom: var(--sp-3);
}
.eyebrow--light { color: rgba(242,237,227,0.78); }
.eyebrow--mini { font-size: 10px; letter-spacing: 0.34em; margin-bottom: 8px; }

.display-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
  color: var(--c-text);
  white-space: pre-line;
  text-wrap: balance;
}
.display-title--light { color: var(--c-on-deep); }

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.5;
  color: var(--c-text);
  letter-spacing: 0.005em;
  font-style: italic;
  margin: 0 0 var(--sp-3);
  max-width: var(--max-text);
}
.lede--center { margin-left: auto; margin-right: auto; text-align: center; }

p { font-size: 16.5px; line-height: 1.78; color: var(--c-text-soft); margin: 0 0 var(--sp-3); }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  color: #F2EDE3;
  transition: background var(--transition), color var(--transition), backdrop-filter var(--transition), padding var(--transition);
  padding: 16px 0;
}
.site-header.is-condensed {
  background: rgba(242, 237, 227, 0.92);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  backdrop-filter: saturate(120%) blur(10px);
  color: var(--c-text);
  padding: 8px 0;
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand__word { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand__line1 { font-family: var(--font-display); font-size: 18px; font-style: italic; font-weight: 400; }
.brand__line2 { font-family: var(--font-sans); font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 500; }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
}
.site-nav a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.88;
  position: relative;
  padding: 6px 0;
}
.site-nav a:hover { opacity: 1; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s ease, left 0.4s ease;
}
.site-nav a:hover::after { width: 100%; left: 0; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.lang-switch button {
  padding: 4px 2px;
  opacity: 0.6;
  transition: opacity 0.3s;
  letter-spacing: 0.22em;
}
.lang-switch button[aria-pressed="true"] { opacity: 1; }
.lang-switch__sep { opacity: 0.35; }

.btn-reserve {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.4s, color 0.4s;
}
.btn-reserve svg { width: 18px; height: 11px; }
.btn-reserve:hover { background: currentColor; color: var(--c-bg-deep); }
.site-header.is-condensed .btn-reserve:hover { color: var(--c-bg); }

.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: currentColor;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #F2EDE3;
  padding: 0 32px var(--sp-6);
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero__video, .hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__photo { display: none; }
body[data-hero="photo"] .hero__photo { display: block; }
body[data-hero="photo"] .hero__video { display: none; }

.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,18,0.35) 0%, rgba(20,20,18,0.05) 30%, rgba(20,20,18,0.05) 60%, rgba(20,20,18,0.65) 100%),
    radial-gradient(80% 60% at 20% 100%, rgba(20,20,18,0.5), transparent 70%);
}

.hero__content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding-bottom: var(--sp-5);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 16px 0 28px;
  color: #F2EDE3;
}
.hero__line { display: block; }
.hero__line--italic { font-style: italic; font-weight: 300; padding-left: 0.1em; }

.hero__sub {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(242,237,227,0.85);
  max-width: 480px;
  margin: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(242,237,227,0.85);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}
.hero__scroll svg {
  width: 10px;
  height: 30px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

.hero__meta {
  position: absolute;
  right: 32px;
  bottom: 36px;
  display: flex;
  gap: 36px;
  align-items: end;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: rgba(242,237,227,0.9);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero__meta-item strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 42px;
  line-height: 1;
}

/* ===== Chapeau ===== */
.chapeau {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-7) 32px var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.chapeau__col--body { padding-top: 12px; }
.chapeau__col--body p:last-child { margin-bottom: 0; }

/* ===== Editorial full-bleed image ===== */
.editorial-image {
  position: relative;
  margin: var(--sp-6) 0;
}
.editorial-image__full {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: 78vh;
  min-height: 540px;
}
.editorial-image__full img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.02);
}
.editorial-image figcaption {
  position: absolute;
  left: 32px; bottom: 32px;
  color: #F2EDE3;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.editorial-image figcaption span:last-child {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
}
.editorial-image__quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35;
  color: #F2EDE3;
}

/* ===== Stats ===== */
.stats {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-6) 32px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--sp-5);
  align-items: center;
}
.stats__eyebrow { margin-bottom: 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-3);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 4.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.stat__lbl {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  font-weight: 500;
  max-width: 14ch;
}

/* ===== Maison ===== */
.maison {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-7) 32px var(--sp-6);
}
.maison__head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-5);
  align-items: start;
  margin-bottom: var(--sp-6);
}
.maison__copy {
  max-width: var(--max-text);
  margin: 0 auto var(--sp-6);
  text-align: center;
}
.maison__copy p { color: var(--c-text-soft); }

.features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: var(--sp-5);
}
.feature--reverse { grid-template-columns: 1fr 1.05fr; }
.feature--reverse .feature__img { order: 2; }
.feature__img {
  margin: 0;
  overflow: hidden;
}
.feature__img img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.feature__img:hover img { transform: scale(1.03); }
.feature__body { padding: 0 var(--sp-4); }
.feature__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--c-accent-warm);
  display: block;
  margin-bottom: var(--sp-3);
}
.feature__body h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
  margin: 0 0 var(--sp-3);
  color: var(--c-text);
}
.feature__body p { max-width: 38ch; }

/* ===== Gallery ===== */
.gallery-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-7) 32px var(--sp-6);
}
.gallery-section__head {
  text-align: center;
  margin-bottom: var(--sp-5);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
  gap: 8px;
}
.g {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: zoom-in;
  background: var(--c-bg-soft);
}
.g img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s ease, opacity 0.3s;
}
.g:hover img { transform: scale(1.04); }
.g::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18));
  opacity: 0;
  transition: opacity 0.3s;
}
.g:hover::after { opacity: 1; }

.g--a { grid-column: span 4; grid-row: span 4; }   /* wide hero terrasse */
.g--b { grid-column: span 2; grid-row: span 2; }
.g--c { grid-column: span 2; grid-row: span 2; }
.g--d { grid-column: span 3; grid-row: span 3; }
.g--e { grid-column: span 3; grid-row: span 3; }
.g--f { grid-column: span 2; grid-row: span 3; }
.g--g { grid-column: span 2; grid-row: span 3; }
.g--h { grid-column: span 2; grid-row: span 3; }
.g--i { grid-column: span 2; grid-row: span 2; }
.g--j { grid-column: span 2; grid-row: span 2; }
.g--k { grid-column: span 2; grid-row: span 2; }
.g--l { grid-column: span 6; grid-row: span 3; }   /* aerial banner */

/* ===== Experiences ===== */
.experiences {
  background: var(--c-bg-soft);
  padding: var(--sp-7) 0 var(--sp-7);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.experiences__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-6);
  padding: 0 32px;
}
.experiences__head .display-title { margin-bottom: var(--sp-3); }
.exp-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.exp {
  display: flex;
  flex-direction: column;
}
.exp__img {
  margin: 0 0 var(--sp-3);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.exp__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s ease;
}
.exp:hover .exp__img img { transform: scale(1.04); }
.exp__body { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.exp__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--c-accent-warm);
}
.exp__body h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
  color: var(--c-text);
}
.exp__body p { margin: 4px 0 12px; color: var(--c-text-soft); }
.exp__tag {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-text-soft);
  padding: 6px 12px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
}

/* ===== Estate Map ===== */
.estate-map {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-7) 32px var(--sp-6);
}
.estate-map__head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-5); }
.estate-map__board {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.estate-map__canvas {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-deep);
}
.estate-map__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(0.92) brightness(0.85);
}
.estate-map__veil {
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 50%, rgba(0,0,0,0) 0%, rgba(20,20,18,0.45) 100%);
}

.pin {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 6px;
  background: transparent;
  cursor: pointer;
  color: #F2EDE3;
}
.pin__dot {
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--c-accent-warm);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(176, 92, 59, 0.25);
  transition: box-shadow 0.4s, transform 0.4s;
}
.pin__dot::after {
  content: "";
  position: absolute; inset: -10px;
  border: 1px solid rgba(176, 92, 59, 0.55);
  border-radius: 999px;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.pin__label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.01em;
  background: rgba(20,20,18,0.55);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pin:hover .pin__label,
.pin.is-active .pin__label { opacity: 1; transform: translateX(0); }
.pin:hover .pin__dot,
.pin.is-active .pin__dot {
  box-shadow: 0 0 0 6px rgba(176, 92, 59, 0.35);
  transform: scale(1.15);
}

.estate-map__legend {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.estate-map__legend li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text-soft);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.005em;
  transition: color 0.3s, padding-left 0.3s;
}
.estate-map__legend li:last-child { border-bottom: 0; }
.estate-map__legend li.is-active {
  color: var(--c-text);
  padding-left: 8px;
}
.estate-map__legend li.is-active .dot { background: var(--c-accent-warm); color: var(--c-on-deep); border-color: transparent; }
.estate-map__legend .dot {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--c-text-soft);
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}

/* ===== Environs ===== */
.environs {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-7) 32px var(--sp-6);
}
.environs__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: end;
  margin-bottom: var(--sp-5);
}
.environs__head .lede { font-style: normal; font-family: var(--font-sans); font-size: 17px; line-height: 1.7; color: var(--c-text-soft); }
.distances {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.distances li {
  background: var(--c-bg);
  padding: var(--sp-4) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.distances h4 {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  margin: 0;
}
.distances__km {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-text-soft);
  margin-top: auto;
}

/* ===== Accès ===== */
.acces {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-7) 32px var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-6);
  align-items: start;
}
.acces__copy { padding-top: 8px; }
.acces__modes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.acces__modes > div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--c-text); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
  color: var(--c-accent-warm);
}
.link-arrow svg { width: 18px; height: 11px; transition: transform 0.4s; }
.link-arrow:hover svg { transform: translateX(6px); }

.acces__map {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-bg-deep);
}
.acces__map svg { width: 100%; height: 100%; }

/* ===== Booking band ===== */
.book {
  background: var(--c-bg-deep);
  color: var(--c-on-deep);
  padding: var(--sp-7) 32px;
  margin-top: var(--sp-6);
}
.book__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.book__p {
  color: rgba(242,237,227,0.78);
  max-width: 580px;
  margin: 0 auto var(--sp-4);
  font-size: 17px;
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--c-on-deep);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.4s, color 0.4s;
}
.btn-ghost-light:hover { background: var(--c-on-deep); color: var(--c-bg-deep); }
.btn-ghost-light svg { width: 20px; height: 12px; }

.book__policy {
  margin: var(--sp-5) auto 0;
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(242,237,227,0.18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  text-align: left;
  max-width: 640px;
  font-size: 14px;
  color: rgba(242,237,227,0.75);
}
.book__policy dt {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 8px;
}
.book__policy dd { margin: 0; }
.book__policy dd::before {
  content: "";
  display: inline-block;
  width: 6px; height: 1px;
  background: var(--c-accent-warm);
  vertical-align: middle;
  margin-right: 10px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--c-bg);
  color: var(--c-text);
  padding: var(--sp-6) 32px var(--sp-3);
  border-top: 1px solid var(--c-line);
}
.site-footer__top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: var(--sp-5);
  align-items: start;
}
.site-footer__mark { display: flex; flex-direction: column; gap: var(--sp-3); }
.site-footer__mark svg { width: 36px; height: 36px; color: var(--c-text); }
.site-footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.2;
  margin: 0;
  white-space: pre-line;
  color: var(--c-text);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.site-footer__cols p { color: var(--c-text); font-size: 15px; line-height: 1.6; white-space: pre-line; }
.site-footer__cols a { border-bottom: 1px solid transparent; }
.site-footer__cols a:hover { border-color: var(--c-text); }

.site-footer__bottom {
  max-width: var(--container);
  margin: var(--sp-5) auto 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}
.site-footer__bottom a { color: var(--c-text-soft); }
.site-footer__bottom a:hover { color: var(--c-text); }

/* ===== Drawer ===== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,20,18,0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 90;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(560px, 100vw);
  background: var(--c-bg);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--c-line);
}
.drawer__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  margin: 0 0 8px;
}
.drawer__sub { font-size: 14px; color: var(--c-text-soft); margin: 0; }
.drawer__close {
  width: 40px; height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.drawer__close svg { width: 16px; height: 16px; }
.drawer__close:hover { background: var(--c-bg-soft); }

.drawer__form {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
}
.drawer__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field__lbl {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-text-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
  color: var(--c-text);
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 88px; padding: 12px 0; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-accent-warm);
}

.drawer__submit { margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--c-line); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--c-bg-deep);
  color: var(--c-on-deep);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s;
  width: 100%;
  justify-content: center;
}
.btn-primary:hover { background: var(--c-accent-warm); }
.btn-primary svg { width: 18px; height: 11px; }

.drawer__form-success {
  display: none;
  text-align: center;
  padding: var(--sp-6) var(--sp-3);
}
.drawer__form-success .display-title { font-size: 56px; margin-bottom: 12px; }
.drawer__form.is-sent .drawer__fields,
.drawer__form.is-sent .drawer__submit { display: none; }
.drawer__form.is-sent .drawer__form-success { display: block; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 20, 18, 0.96);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; }
.lightbox__cap {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: rgba(242,237,227,0.78);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 48px; height: 48px;
  border: 1px solid rgba(242,237,227,0.4);
  border-radius: 999px;
  color: rgba(242,237,227,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(242,237,227,0.12); color: #fff; }
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .chapeau { grid-template-columns: 1fr; gap: var(--sp-4); padding-top: var(--sp-6); }
  .maison__head { grid-template-columns: 1fr; }
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature--reverse .feature__img { order: 0; }
  .feature__body { padding: 0; }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .estate-map__board { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .acces { grid-template-columns: 1fr; }
  .environs__head { grid-template-columns: 1fr; }
  .distances { grid-template-columns: 1fr 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .hero__meta { display: none; }
  .hero__title { font-size: clamp(56px, 14vw, 110px); }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100px; }
  .g--a, .g--l { grid-column: span 4; }
  .g--b, .g--c, .g--d, .g--e, .g--f, .g--g, .g--h, .g--i, .g--j, .g--k { grid-column: span 2; }
}
@media (max-width: 720px) {
  .site-header__inner { padding: 0 18px; gap: 12px; }
  .btn-reserve span { display: none; }
  .btn-reserve { padding: 12px; }
  .lang-switch { display: none; }
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 0; right: 0;
    width: min(360px, 90vw); height: 100vh;
    background: var(--c-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-3);
    transform: translateX(100%);
    transition: transform 0.45s ease;
    z-index: 60;
    display: flex;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { font-size: 14px; color: var(--c-text) !important; }
  .hero { padding: 0 18px var(--sp-5); }
  .hero__sub { font-size: 14px; }
  .chapeau, .maison, .gallery-section, .experiences, .estate-map, .environs, .acces, .book, .editorial-image figcaption { padding-left: 18px; padding-right: 18px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .exp-grid { grid-template-columns: 1fr; }
  .editorial-image__full { height: 60vh; min-height: 380px; }
  .editorial-image figcaption { left: 18px; bottom: 18px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; gap: 6px; }
  .g--a, .g--b, .g--c, .g--d, .g--e, .g--f, .g--g, .g--h, .g--i, .g--j, .g--k, .g--l { grid-column: span 2; grid-row: span 2; }
  .features { gap: var(--sp-5); }
  .pin__label { font-size: 13px; opacity: 1; transform: none; }
  .drawer__fields { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .lightbox { padding: 24px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: var(--sp-3); }
  .site-footer__bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
