/* ============================================================
   Maison de Beaucamps-Ligny — Feuille de style premium
   ============================================================ */

:root {
  --green: #1f3a2e;
  --green-deep: #142a20;
  --green-soft: #2d4f3f;
  --cream: #f6f1e7;
  --cream-2: #efe7d8;
  --gold: #b08d57;
  --gold-light: #c9a875;
  --ink: #2a2a26;
  --muted: #6c6a62;
  --white: #fffdf9;
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(20, 42, 32, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  color: var(--green);
  letter-spacing: 0.2px;
}

h1 em, h2 em { font-style: italic; color: var(--gold); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 5vw, 4rem);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.header.scrolled {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(12px);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  box-shadow: 0 10px 30px -22px rgba(20,42,32,0.6);
}

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--cream); transition: color 0.4s; }
.header.scrolled .brand { color: var(--green); }
.brand-mark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  flex: none;
}
.brand-text { font-weight: 400; letter-spacing: 0.06em; font-size: 0.95rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: var(--cream);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.3s, text-shadow 0.3s;
  text-shadow: 0 1px 10px rgba(20, 42, 32, 0.55);
}
.header.scrolled .nav a { color: var(--green); text-shadow: none; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold); transition: width 0.35s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--gold);
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  color: var(--gold) !important;
  transition: background 0.35s, color 0.35s;
}
.nav-cta:hover { background: var(--gold); color: var(--green-deep) !important; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--cream); transition: 0.3s; }
.header.scrolled .burger span { background: var(--green); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 15vh, 150px) clamp(1.2rem, 6vw, 6rem) clamp(70px, 9vh, 100px);
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(176,141,87,0.22), transparent 55%),
    linear-gradient(160deg, #1a3328 0%, #21402f 45%, #2d4f3f 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,0.05) 0, transparent 25%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-opacity='0.03'/%3E%3C/svg%3E");
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,42,32,0.65), transparent 40%);
}
.hero-content { position: relative; max-width: 820px; color: var(--cream); }
.hero-content .eyebrow { color: var(--gold-light); }
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.5px;
}
.hero-sub {
  margin: 1.6rem 0 2.6rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(246,241,231,0.85);
  font-weight: 300;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2.2rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(201,168,117,0.5);
  border-radius: 100px;
  background: rgba(176,141,87,0.12);
  color: var(--gold-light);
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.hero-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-light); box-shadow: 0 0 0 4px rgba(201,168,117,0.25);
}
.hero-price {
  margin-bottom: 1.6rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--cream);
  font-weight: 300;
}
.hero-price strong {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--gold-light);
  font-size: 1.35em;
}
.hero-price span { color: rgba(246,241,231,0.7); font-size: 0.9rem; letter-spacing: 0.04em; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1px solid rgba(246,241,231,0.5);
  border-radius: 100px; display: grid; place-items: start center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--gold-light); border-radius: 4px; animation: cue 1.6s infinite; }
@keyframes cue { 0%{opacity:0;transform:translateY(0)} 30%{opacity:1} 100%{opacity:0;transform:translateY(14px)} }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 2rem; border-radius: 100px;
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--green-deep); box-shadow: 0 14px 30px -14px rgba(176,141,87,0.8); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -14px rgba(176,141,87,0.9); }
.btn-ghost { border-color: rgba(246,241,231,0.5); color: var(--cream); }
.btn-ghost:hover { background: rgba(246,241,231,0.12); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--green);
  color: var(--cream);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 5vw, 4rem);
}
.stat { text-align: center; border-right: 1px solid rgba(246,241,231,0.12); }
.stat:last-child { border-right: 0; }
.stat .num { display: block; font-family: "Cormorant Garamond", serif; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold-light); font-weight: 600; }
.stat .label { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; color: rgba(246,241,231,0.8); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 6vw, 6rem); }
.section-alt { background: var(--cream-2); }
.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.section-note { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }
.section-note code { background: rgba(31,58,46,0.08); padding: 2px 8px; border-radius: 6px; color: var(--green); }

/* ---------- Description ---------- */
.desc {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start; max-width: 1200px; margin: 0 auto;
}
.desc-text p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.02rem; }
.desc-text p:last-child { margin-bottom: 0; }
.desc-facts {
  background: var(--white);
  border: 1px solid rgba(31,58,46,0.08);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  position: sticky; top: 100px;
}
.desc-facts h3 {
  font-size: 1.7rem; margin-bottom: 1.2rem;
  padding-bottom: 0.8rem; border-bottom: 1px solid rgba(31,58,46,0.1);
}
.desc-facts .ticks { margin-bottom: 1.6rem; gap: 0.6rem; }
.desc-facts .ticks li { font-size: 0.95rem; }
.desc-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(31,58,46,0.1);
  border: 1px solid rgba(31,58,46,0.1); border-radius: 12px; overflow: hidden;
  margin-bottom: 1.6rem;
}
.desc-meta > div { background: var(--white); padding: 0.9rem 1rem; display: grid; gap: 0.15rem; }
.desc-meta span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-weight: 500; }
.desc-meta strong { font-family: "Cormorant Garamond", serif; font-size: 1.2rem; color: var(--green); font-weight: 600; }

/* ---------- Atouts ---------- */
.grid-atouts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem; max-width: 1200px; margin: 0 auto;
}
.atout {
  background: var(--white);
  padding: 2.4rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(31,58,46,0.07);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.atout:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.atout-ico {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem; color: var(--gold);
  background: linear-gradient(135deg, rgba(176,141,87,0.16), rgba(176,141,87,0.04));
  margin-bottom: 1.3rem;
}
.atout h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.atout p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Split ---------- */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; max-width: 1200px; margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.split:last-child { margin-bottom: 0; }
.split.reverse .split-media { order: 2; }
.split-media {
  height: clamp(280px, 38vw, 460px); border-radius: var(--radius);
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  display: flex; align-items: flex-end; padding: 1.6rem;
}
.split-media span {
  position: relative; z-index: 2; color: var(--cream);
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem; letter-spacing: 0.04em;
}
.split-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,42,32,0.7), transparent 60%);
}
.split-text h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.split-text p { color: var(--muted); margin-bottom: 1.4rem; }

/* Placeholders visuels (gradients) */
[data-img] { background-size: cover; background-position: center; }
[data-img="terrasse"] { background: linear-gradient(135deg,#3a5a45,#6b8a5e); }
[data-img="suite"] { background: linear-gradient(135deg,#4a4036,#7d6a54); }
[data-img="annexes"] { background: linear-gradient(135deg,#3b4a52,#6d7d84); }
[data-img="g1"] { background: linear-gradient(135deg,#2d4f3f,#557a64); }
[data-img="g2"] { background: linear-gradient(135deg,#7d6a54,#b08d57); }
[data-img="g3"] { background: linear-gradient(135deg,#4a4f5a,#7e8694); }
[data-img="g4"] { background: linear-gradient(135deg,#3a5a45,#86a06f); }
[data-img="g5"] { background: linear-gradient(135deg,#46603a,#8aa05c); }
[data-img="g6"] { background: linear-gradient(135deg,#534a3e,#8c7a60); }

.ticks { list-style: none; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.8rem; color: var(--green-soft); font-weight: 400; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}

/* ---------- Galerie ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px;
  gap: 1rem; max-width: 1200px; margin: 0 auto;
}
.g-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.2rem; cursor: pointer;
}
.g-item::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(20,42,32,0.6), transparent 55%); transition: opacity 0.4s; }
.g-item figcaption {
  position: relative; z-index: 2; color: var(--cream);
  font-family: "Cormorant Garamond", serif; font-size: 1.3rem; transform: translateY(6px); opacity: 0.92;
  transition: transform 0.4s var(--ease);
}
.g-item:hover figcaption { transform: translateY(0); }
.g-item:hover { transform: scale(1.01); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- Situation ---------- */
.situation {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch; max-width: 1200px; margin: 0 auto;
}
.situation-text p { color: var(--muted); margin-bottom: 1.6rem; }
.situation-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; }
.situation-map iframe { width: 100%; height: 100%; border: 0; min-height: 360px; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); }
.contact-card {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  background: rgba(246,241,231,0.04);
  border: 1px solid rgba(246,241,231,0.12);
  border-radius: 24px; padding: clamp(2rem, 5vw, 4rem);
}
.contact-intro .eyebrow { color: var(--gold-light); }
.contact-intro h2 { color: var(--cream); font-size: clamp(2rem,4vw,3rem); }
.contact-intro > p { color: rgba(246,241,231,0.8); margin: 1rem 0 2rem; }
.contact-info { list-style: none; display: grid; gap: 1.2rem; }
.contact-info li { display: grid; gap: 0.2rem; }
.contact-info strong { color: var(--gold-light); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.18em; font-weight: 500; }
.contact-info a, .contact-info span { color: var(--cream); font-size: 1.05rem; }

.contact-form { display: grid; gap: 1.3rem; align-content: start; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: rgba(246,241,231,0.06); border: 1px solid rgba(246,241,231,0.18);
  border-radius: 12px; padding: 1.1rem 1rem 0.5rem; color: var(--cream);
  font-family: inherit; font-size: 1rem; transition: border 0.3s, background 0.3s;
}
.field textarea { padding-top: 1.4rem; resize: vertical; }
.field label {
  position: absolute; left: 1rem; top: 0.95rem; color: rgba(246,241,231,0.55);
  pointer-events: none; transition: 0.25s var(--ease); font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(246,241,231,0.1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0.35rem; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--gold-light); text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-deep); color: rgba(246,241,231,0.7);
  text-align: center; padding: 2.6rem 1.5rem;
  display: grid; gap: 0.8rem; place-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--cream); }
.footer p { font-size: 0.82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--green); flex-direction: column; justify-content: center;
    gap: 1.8rem; transform: translateX(100%); transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.5);
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: var(--cream); font-size: 1.1rem; }
  .header.scrolled .nav a { color: var(--cream); }
  .burger { display: flex; z-index: 60; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .stat:nth-child(2) { border-right: 0; }
  .desc { grid-template-columns: 1fr; }
  .desc-facts { position: static; }
  .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .situation { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .brand-text { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .g-wide, .g-tall { grid-column: auto; grid-row: auto; }
}
