/* =====================================================================
   LOVE & LAGON — Feuille de style
   Esthétique : minimalisme haut de gamme inspiré d'Aman Resorts.
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
  /* Palette */
  --ivory:      #F7F4EF;
  --sand:       #ECE4D8;
  --stone:      #C9BFB0;
  --stone-deep: #9C9183;
  --ink:        #14110E;
  --ink-soft:   #3A352F;
  --gold:       #B8975A;
  --gold-soft:  #C9AE7C;
  --green:      #4A5A45;

  /* Typo */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", -apple-system, "Segoe UI", sans-serif;

  /* Rythme */
  --container: 1240px;
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --section-y: clamp(5rem, 12vw, 11rem);

  /* Animation */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 1.1s;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

::selection { background: var(--gold); color: var(--ivory); }

/* ----------------------------- Typographie ----------------------------- */
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
.section-title.light { color: var(--ivory); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.eyebrow-light { color: var(--gold-soft); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}

.section-intro {
  max-width: 46ch;
  margin: 1.6rem auto 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.section-intro.light { color: rgba(247, 244, 239, 0.78); }

/* ----------------------------- Layout helpers ----------------------------- */
.section { padding: var(--section-y) var(--gutter); }

.section-head { max-width: var(--container); margin: 0 auto; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { display: block; }

/* ----------------------------- Boutons ----------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.15rem 2.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.5s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 244, 239, 0.55);
}
.btn-ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.btn-lg { padding: 1.35rem 3.4rem; font-size: 0.82rem; }

/* ====================================================================
   NAVIGATION
   ==================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--slow) var(--ease), padding 0.6s var(--ease), box-shadow 0.6s var(--ease);
  padding: 1.6rem 0;
}
.site-header.scrolled {
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 rgba(20, 17, 14, 0.06);
}

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

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: color var(--slow) var(--ease);
}
.brand-amp { color: var(--gold-soft); font-style: italic; }
.scrolled .brand { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  transition: color 0.4s var(--ease);
}
.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }
.scrolled .nav-links a:hover { color: var(--gold); }

.nav-cta {
  border: 1px solid rgba(247, 244, 239, 0.5);
  padding: 0.7rem 1.5rem;
  transition: all 0.4s var(--ease);
}
.scrolled .nav-cta { border-color: var(--ink); color: var(--ink); }
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink) !important; }

/* Burger mobile */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 1.5px; background: var(--ivory); transition: all 0.4s var(--ease); }
.scrolled .nav-toggle span { background: var(--ink); }

/* ====================================================================
   1. HERO
   ==================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-photo, .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
}
.hero-photo {
  background: url("../photos/BV4A6500.jpg") center/cover no-repeat;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20,17,14,0.45) 0%, rgba(20,17,14,0.15) 35%, rgba(20,17,14,0.55) 100%);
}

.hero-content { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 900px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ivory);
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}
.hero-title span { font-style: italic; color: var(--gold-soft); }
.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 0.6rem;
}
.hero-text {
  color: rgba(247, 244, 239, 0.85);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2.8rem;
}
.hero-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 56px;
  background: rgba(247, 244, 239, 0.4);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--gold-soft);
  animation: scrollDown 2.4s var(--ease) infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ====================================================================
   2. L'EXPÉRIENCE
   ==================================================================== */
.experience { background: var(--ivory); }
.experience-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.experience-text .signature-line {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
/* Étoiles scintillantes — discrètes, dorées */
.sig-star {
  font-size: 0.72em;
  color: var(--gold-soft);
  display: inline-block;
  animation: twinkle 2.8s var(--ease) infinite;
}
.sig-star--2 { animation-delay: 1.4s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}
.experience-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.experience-image img { transition: transform 1.6s var(--ease); }
.experience-image:hover img { transform: scale(1.05); }

/* ====================================================================
   3. GALERIE ÉDITORIALE
   ==================================================================== */
.gallery { background: var(--sand); }
.gallery .section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }

.gallery-editorial {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(260px, 33vw, 460px);
  gap: 1.5rem;
}
.gallery-editorial figure { position: relative; overflow: hidden; }
.gallery-editorial img { transition: transform 1.8s var(--ease); }
.gallery-editorial figure:hover img { transform: scale(1.06); }

.gallery-editorial figcaption {
  position: absolute;
  left: 1.6rem; bottom: 1.4rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s var(--ease);
}
.gallery-editorial figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* Grille éditoriale asymétrique 2 × 2 — hauteurs de ligne fixes, robuste.
   Ligne 1 : 7 + 5  |  Ligne 2 : 5 + 7  → remplissage parfait sur 12 colonnes. */
.g-tall              { grid-column: span 7; }
.g-wide              { grid-column: span 5; }
.g-square            { grid-column: span 5; }
.g-square:last-of-type { grid-column: span 7; }

/* ====================================================================
   4. LES MOMENTS À DEUX
   ==================================================================== */
.moments { background: var(--ivory); }
.moments .section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.cards {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone);
  border: 1px solid var(--stone);
}
.card {
  background: var(--ivory);
  padding: clamp(2.2rem, 4vw, 3.4rem);
  transition: background 0.6s var(--ease);
}
.card:hover { background: #fff; }
.card-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1.4rem;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ====================================================================
   5. DÉCOUVRIR LA RÉUNION
   ==================================================================== */
.reunion {
  background: var(--ink);
  color: var(--ivory);
}
.reunion .section-title { color: var(--ivory); }
.reunion .section-intro { color: rgba(247,244,239,0.7); }
.reunion .section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }

.reunion-magazine {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.mag-item {
  padding: 2.8rem 2.4rem;
  border-top: 1px solid rgba(247,244,239,0.14);
  border-left: 1px solid rgba(247,244,239,0.14);
  transition: background 0.6s var(--ease);
}
.mag-item:hover { background: rgba(247,244,239,0.03); }
.reunion-magazine .mag-item:nth-child(3n) { border-right: 1px solid rgba(247,244,239,0.14); }
.reunion-magazine .mag-item:nth-last-child(-n+3) { border-bottom: 1px solid rgba(247,244,239,0.14); }
.mag-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
  color: var(--gold-soft);
}
.mag-item p { color: rgba(247,244,239,0.72); font-size: 0.96rem; }

/* ====================================================================
   6. AVIS VOYAGEURS
   ==================================================================== */
.reviews { background: var(--sand); }
.reviews .section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.reviews-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.review {
  background: var(--ivory);
  padding: clamp(2.4rem, 4vw, 3.2rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}
.review::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.35;
}
.review p {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}
.review footer { display: flex; flex-direction: column; gap: 0.3rem; }
.review-name { font-size: 0.84rem; letter-spacing: 0.18em; text-transform: uppercase; }
.review-meta { font-size: 0.78rem; color: var(--stone-deep); letter-spacing: 0.1em; }

/* ====================================================================
   7. RÉSERVATION
   ==================================================================== */
.booking {
  position: relative;
  background: url("../photos/BV4A6503.jpg") center/cover fixed no-repeat;
  color: var(--ivory);
  text-align: center;
}
.booking::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,17,14,0.72);
}
.booking-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.booking-actions { margin: 3rem 0 3.5rem; }

/* Accroche tarifaire marketing */
.booking-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  color: var(--ivory);
  margin-top: 2.6rem;
  line-height: 1.4;
}
.booking-price span {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.7);
  margin-top: 0.7rem;
}
.booking-price strong { color: var(--gold-soft); font-weight: 400; }

/* Écrin du moteur de réservation Smoobu */
.booking-widget {
  background: var(--ivory);
  margin: 2.2rem auto 3.5rem;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  max-width: 760px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  text-align: left;
}
.booking-widget #apartmentIframeAll { width: 100%; }
.booking-widget iframe { width: 100% !important; border: 0; display: block; }

.booking-contacts {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.contact-pill {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.3rem 2rem;
  border: 1px solid rgba(247,244,239,0.28);
  min-width: 220px;
  transition: all 0.5s var(--ease);
}
.contact-pill:hover { border-color: var(--gold); background: rgba(184,151,90,0.1); transform: translateY(-3px); }
.contact-label { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); }
.contact-value { font-family: var(--serif); font-size: 1.15rem; }

/* ====================================================================
   8. FOOTER
   ==================================================================== */
.site-footer { background: var(--ink); color: var(--ivory); padding: clamp(4rem,8vw,6rem) var(--gutter) 2rem; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(247,244,239,0.12);
}
.footer-brand .brand { color: var(--ivory); }
.footer-tagline { margin-top: 1rem; font-family: var(--serif); font-style: italic; color: rgba(247,244,239,0.6); }
.footer-nav { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-nav a, .footer-contact a {
  font-size: 0.82rem; letter-spacing: 0.12em; color: rgba(247,244,239,0.72);
  transition: color 0.4s var(--ease);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-social { display: flex; gap: 1.4rem; margin-top: 0.6rem; }
.footer-social a { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }

.footer-bottom {
  max-width: var(--container);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p, .footer-legal { font-size: 0.74rem; letter-spacing: 0.08em; color: rgba(247,244,239,0.5); }
.footer-legal:hover { color: var(--gold); }

/* ====================================================================
   ANIMATIONS AU SCROLL
   ==================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
/* Léger décalage successif pour les groupes */
.cards [data-reveal].is-visible,
.reunion-magazine [data-reveal].is-visible,
.reviews-grid [data-reveal].is-visible { transition-delay: 0.05s; }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 940px) {
  .experience-grid { grid-template-columns: 1fr; }
  .experience-image { aspect-ratio: 16 / 11; order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reunion-magazine { grid-template-columns: repeat(2, 1fr); }
  .reunion-magazine .mag-item:nth-child(3n) { border-right: none; }
  .reunion-magazine .mag-item:nth-child(2n) { border-right: 1px solid rgba(247,244,239,0.14); }
  .reunion-magazine .mag-item:nth-last-child(-n+3) { border-bottom: none; }
  .reunion-magazine .mag-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(247,244,239,0.14); }
  .reviews-grid { grid-template-columns: 1fr; max-width: 560px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* Galerie tablette : grille 2 × 2 nette */
  .gallery-editorial { grid-template-columns: repeat(2, 1fr); }
  .g-tall,
  .g-wide,
  .g-square,
  .g-square:last-of-type { grid-column: span 1; grid-row: auto; }
}

@media (max-width: 720px) {
  /* Nav mobile */
  .nav-toggle { display: flex; z-index: 110; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.4rem;
    background: rgba(20,17,14,0.97);
    backdrop-filter: blur(8px);
    transform: translateX(100%);
    transition: transform 0.6s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--ivory) !important; font-size: 1rem; }
  .nav-toggle.open span { background: var(--ivory); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .cards { grid-template-columns: 1fr; }
  .reunion-magazine { grid-template-columns: 1fr; }
  .reunion-magazine .mag-item { border-right: 1px solid rgba(247,244,239,0.14) !important; }
  .reunion-magazine .mag-item:nth-last-child(1) { border-bottom: 1px solid rgba(247,244,239,0.14) !important; }
  .gallery-editorial { grid-template-columns: 1fr; }
  .g-tall, .g-wide, .g-square,
  .g-square:last-of-type { grid-column: span 1; grid-row: auto; aspect-ratio: 4 / 5; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: flex-start; }
  .contact-pill { width: 100%; }
  .booking { background-attachment: scroll; }

  /* La galerie révèle les légendes au repos sur mobile (pas de hover) */
  .gallery-editorial figcaption { opacity: 1; transform: none; }
}

/* ====================================================================
   ACCESSIBILITÉ — respect des préférences de mouvement
   ==================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-photo { height: 100%; }
}
