/* =========================================================
   Maisons de Famille - feuille de style
   Style : classique, élégant, épuré
   ========================================================= */

:root {
  --bg: #faf7f2;
  --bg-alt: #f1ece2;
  --white: #ffffff;
  --text: #2b2924;
  --text-muted: #6f6a5e;
  --accent: #55624a;
  --accent-dark: #3c4634;
  --accent-light: #a9b39a;
  --line: #e2dbca;
  --shadow: 0 10px 30px rgba(43, 41, 36, 0.08);
  --radius: 2px;
  --max-width: 1180px;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--accent-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.02em; }

p { margin: 0 0 1em; color: var(--text); text-align: justify; text-align-last: left; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head p {
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  color: var(--accent-dark);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
  background: var(--accent-dark);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.btn--light {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn--light:hover {
  background: var(--white);
  color: var(--accent-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--accent-dark);
}

.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent-dark);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--accent-dark);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero .img-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero .img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 32, 24, 0.35) 0%, rgba(30, 32, 24, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.hero-content .eyebrow { color: var(--accent-light); }

.hero h1 { color: var(--white); }

.hero-content p.lead {
  max-width: 540px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
}

.hero--page {
  min-height: 60vh;
  padding: 150px 0 72px;
}

/* ---------- Image placeholders ---------- */

.img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #dfd8c4 0%, #c9c0a4 100%);
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-wrap img.pos-top {
  object-position: center 35%;
}

.img-wrap.missing img {
  display: none;
}

.img-wrap.missing::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: linear-gradient(135deg, #e7e0cd 0%, #cfc6a9 100%);
}

.img-wrap.missing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.25) 75%, transparent 75%, transparent);
  background-size: 24px 24px;
  opacity: 0.4;
}

/* ---------- House cards (home page) ---------- */

.houses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.houses-grid > *,
.feature > *,
.gallery > *,
.contact-grid > * {
  min-width: 0;
}

.house-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.house-card .img-wrap {
  aspect-ratio: 4 / 3;
}

.house-card-body {
  padding: 34px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.house-card-body .eyebrow { margin-bottom: 8px; }

.house-card-body p { color: var(--text-muted); flex: 1; }

/* ---------- Two-column feature ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature .img-wrap {
  aspect-ratio: 4 / 3;
}

.feature--reverse .img-wrap { order: 2; }

.feature-text .eyebrow { }

.feature-text p { color: var(--text-muted); }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery .img-wrap {
  aspect-ratio: 1 / 1;
}

.gallery .img-wrap.tall {
  aspect-ratio: 1 / 1.35;
}

/* ---------- Amenities ---------- */

.amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.amenities > * {
  min-width: 0;
}

.amenity {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.amenity svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}

.amenity h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: var(--text);
}

.amenity p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Info strip ---------- */

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-strip .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 6px;
}

.info-strip .label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Links / CTA panel ---------- */

.links-panel {
  background: var(--accent-dark);
  color: var(--white);
  padding: 72px 0;
}

.links-panel .section-head p { color: rgba(255,255,255,0.75); }
.links-panel .section-head h2 { color: var(--white); }

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.links-grid:has(> .link-card:only-child) {
  max-width: 440px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.25s ease;
}

.link-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

.link-card svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.link-card .link-title {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.link-card .link-sub {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

/* ---------- Contact / footer ---------- */

.contact {
  padding: 96px 0 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-item .lbl {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item .val {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--accent-dark);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-nav a:hover { color: var(--accent-dark); }

/* ---------- Mentions légales ---------- */

.section.legal {
  padding: 140px 0 40px;
}

.legal .container {
  max-width: 800px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 36px;
}

.legal p,
.legal li {
  text-align: left;
}

.legal p a {
  color: var(--accent);
  text-decoration: underline;
}

.legal .footer-nav {
  flex-wrap: wrap;
}

/* ---------- Reviews (défilement) ---------- */

.reviews {
  overflow: hidden;
  margin: 0 0 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.reviews-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: reviews-scroll 70s linear infinite;
}

.reviews:hover .reviews-track {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 12px)); }
}

.review {
  width: 360px;
  flex-shrink: 0;
  margin: 0;
  padding: 28px 30px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #e6c87a;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.review blockquote {
  margin: 0 0 16px;
  flex: 1;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}

.review figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

@media (prefers-reduced-motion: reduce) {
  .reviews { overflow-x: auto; }
  .reviews-track { animation: none; }
}

/* ---------- Access ---------- */

.access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.access > * { min-width: 0; }

.access-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.access-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 4px;
}

.access-item h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: var(--text);
}

.access-item p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.access-item a { color: var(--accent-dark); text-decoration: underline; }

.access-map {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 32px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

  .houses-grid,
  .feature,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .amenities {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature--reverse .img-wrap { order: 0; }

  .gallery { grid-template-columns: repeat(2, 1fr); }

  .info-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .access {
    grid-template-columns: 1fr;
  }

  .review { width: 290px; padding: 22px; }

  .section { padding: 64px 0; }

  .container { padding: 0 22px; }
}
