/* ============================================================
   Le Pavillon de Trelemont (Domaine d'Yssingeaux) — feuille de style (vitrine statique)
   Palette : pierre / crème / or, typo serif élégante.
   ============================================================ */
:root {
  --stone: #2e2a26;      /* texte foncé */
  --stone-soft: #6b6157;
  --cream: #f7f3ec;      /* fond clair */
  --cream-alt: #efe8dc;  /* fond alterné */
  --gold: #a9873f;       /* accent */
  --gold-dark: #8a6d2f;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--stone);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

.eyebrow, .hero__eyebrow {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: .85rem 2rem; border-radius: 2px;
  font-family: var(--sans); font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--stone); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-dark); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav--scrolled {
  background: rgba(247, 243, 236, .96);
  box-shadow: 0 1px 14px rgba(0, 0, 0, .07);
  padding-top: .7rem; padding-bottom: .7rem;
}
.nav__brand {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  letter-spacing: .04em; text-decoration: none; color: var(--white);
}
.nav--scrolled .nav__brand { color: var(--stone); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  text-decoration: none; color: var(--white); font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; transition: color .2s;
}
.nav--scrolled .nav__links a { color: var(--stone); }
.nav__links a:hover { color: var(--gold); }
.nav__cta {
  border: 1px solid currentColor; padding: .5rem 1.1rem; border-radius: 2px;
}
.nav--scrolled .nav__cta { color: var(--gold) !important; }
.nav__burger {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer;
}
.nav--scrolled .nav__burger { color: var(--stone); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #3a352f url("img/hero.jpg") center/cover no-repeat;
  color: var(--white);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,14,.45), rgba(20,17,14,.25) 40%, rgba(20,17,14,.6));
}
.hero__inner { position: relative; z-index: 2; padding: 0 1.5rem; max-width: 760px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); margin: 1rem 0; }
.hero__sub { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 300; margin-bottom: 2rem; opacity: .95; }
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--white); text-decoration: none; font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) clamp(1.2rem, 5vw, 3rem); max-width: var(--maxw); margin: 0 auto; }
.section--alt { max-width: none; background: var(--cream-alt); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.8rem; }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .6rem 0 1rem; }
.lead { color: var(--stone-soft); font-size: 1.08rem; }

/* ---------- Vidéo (ratio 16:9) ---------- */
.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 auto 3rem;
  border-radius: 4px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.18);
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Galeries ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.gallery figure {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px;
  cursor: pointer; background: var(--cream-alt);
}
.gallery img { transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- Composition du logement ---------- */
.rooms {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 920px; margin: 0 auto 2.6rem;
}
.room {
  display: flex; align-items: center; gap: .85rem;
  background: var(--white); padding: 1.1rem 1.3rem; border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05); font-size: .98rem;
}
.room__k { font-size: 1.5rem; line-height: 1; }

/* ---------- Facts ---------- */
/* Grille 3 colonnes EGALES, et non plus un flex-wrap : en flex, chaque pavé
   prenait la largeur de son texte — trois pavés de tailles différentes, dont un
   très large depuis l'ajout de Lyon. En `repeat(3, 1fr)` ils font tous la même
   largeur, et `align-items: stretch` (défaut de la grille) leur donne tous la
   hauteur du plus haut : le texte peut passer sur deux lignes sans casser
   l'alignement.
   Pas de max-width, contrairement à `.rooms` (920px) : les colonnes prennent
   toute la largeur de section, comme `.gallery`. C'est délibéré — un des trois
   pavés porte une phrase entière (les distances), et à 920px elle tombait sur
   trois lignes au lieu de deux. */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  margin-top: 1rem;
}
.fact {
  display: flex; align-items: center; gap: .7rem;
  background: var(--white); padding: 1rem 1.5rem; border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05); font-size: .98rem;
}
/* flex-shrink: 0 — sans ça l'émoji se fait comprimer par le texte sur deux
   lignes dans les pavés étroits. */
.fact__k { font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; padding: clamp(3.5rem, 9vw, 6rem) 1.5rem;
  background: #26221d url("img/hero.jpg") center/cover no-repeat fixed;
  color: var(--white); position: relative;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(20,17,14,.7); }
.cta > * { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.cta p { margin-bottom: 1.8rem; opacity: .92; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 2.5rem 1.5rem; background: var(--stone); color: #cfc7ba; }
.footer p { font-family: var(--serif); font-size: 1.15rem; }
.footer__small { font-family: var(--sans); font-size: .8rem; opacity: .7; margin-top: .4rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; background: rgba(15,12,10,.94);
}
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 86vh; width: auto; height: auto; border-radius: 3px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: none; color: #fff; cursor: pointer;
  font-size: 2.4rem; line-height: 1; padding: .5rem; opacity: .85; transition: opacity .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 1rem; right: 1.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.5rem; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .nav__burger { display: block; }
  .nav__brand { font-size: 1.2rem; }
  .nav__links {
    position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; gap: 0;
    background: rgba(247,243,236,.98); box-shadow: 0 8px 20px rgba(0,0,0,.1);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links.open { max-height: 380px; }
  .nav__links a { color: var(--stone); width: 100%; padding: 1rem 1.5rem; border-top: 1px solid rgba(0,0,0,.06); }
  .nav__cta { border: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .nav__brand { font-size: 1.02rem; letter-spacing: .02em; }
  .gallery { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: 1fr; }
  .cta { background-attachment: scroll; }
}
