/* ============================================================
   VILLA EGEU — STYLESHEET
   Design : LucasMachut.Visuals
   Principe : on emprunte le craft de lucasmachut.com (sobre,
   éditorial, l'image prime, blancs généreux, un seul accent)
   mais Villa Egeu a sa propre identité : palette terre /
   végétal / eau, rythme jour-nuit, accent terracotta unique.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* --- Variables ------------------------------------------- */
:root {
  /* ----------------------------------------------------------
     Palette « née du lieu » — 11 teintes, 5 familles.
     Rôles VERROUILLÉS pour rester luxe :
       Teca = agir · Buganvília = signer · le reste = respirer.
     ---------------------------------------------------------- */

  /* Neutres — la base (~65 %) */
  --areia:    #EDE3D1;   /* fond principal, grandes surfaces de reboco */
  --linho:    #DCCDB0;   /* cartes, sections alternées */
  --argila:   #B59A78;   /* bordures & légendes décoratives (PAS texte courant) */
  --cacau:    #2A1E15;   /* texte principal, titres, bois très sombre */

  /* Bois & Eau — structure (~28 %) */
  --teca:     #BE6E30;   /* ACCENT UNIQUE : réservation, boutons, emphase */
  --cumaru:   #7C4524;   /* texte secondaire, bois profond, section avis */
  --turquesa: #3E8B95;   /* détails interactifs (liens, soulignés) — zoné */
  --esmeralda:#20585A;   /* sections sombres, réserver, footer */

  /* Végétation & Accent — rare (<7 %) */
  --palmeira: #5C7340;   /* détails naturels, puces, badges « disponible » */
  --limao:    #A7B741;   /* micro-détails seulement (réserve, peu utilisé) */
  --signature:#C42C69;   /* Buganvília — signature éditoriale RARE */

  /* Tint dérivé : Turquesa éclairci, lisible sur fonds sombres */
  --foam:      #8FCFCB;

  /* Alias sémantiques (le reste de la feuille s'appuie dessus)
     Accent MER/JARDIN — le Teca (orange) est volontairement écarté
     des éléments visibles ; il reste défini plus haut mais inutilisé. */
  --green:     var(--esmeralda);
  --water:     var(--esmeralda);   /* section avis : mer, plus de brun */
  --ivory:     var(--areia);
  --stone:     var(--linho);
  --accent:    var(--esmeralda);   /* boutons, mots-clés, CTA = mer */
  --ink:       var(--cacau);
  --ink-soft:  #4A3F33;            /* encre cacao neutre (PAS le brun rouille) */

  --bg:        var(--ivory);
  --text:      var(--ink);
  --text-muted:var(--ink-soft);
  --line:      rgba(181, 154, 120, 0.50);   /* filet Argila — LA ligne structurelle */
  --line-light:rgba(237, 227, 209, 0.16);   /* filet clair sur fonds sombres */
  --card-bg:   rgba(237, 227, 209, 0.72);   /* Areia translucide — encadrés flottants */
  --card-shadow: 0 18px 44px -28px rgba(42, 30, 21, 0.45);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, -apple-system, sans-serif;

  --s1:  0.5rem;
  --s2:  1rem;
  --s3:  1.5rem;
  --s4:  2rem;
  --s5:  2.5rem;
  --s6:  3rem;
  --s8:  4rem;
  --s10: 5rem;
  --s12: 6rem;
  --s16: 8rem;
  --s20: 10rem;
  --s24: 12rem;

  --max:      1320px;
  --text-max: 720px;
  --nav-h:    5rem;
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Fond dégradé qui glisse au scroll -------------------- */
/* Calque fixe derrière tout le contenu. Sa couleur est
   interpolée en continu par main.js selon la progression du
   scroll (ivoire → pierre → sable → léger terracotta). Les
   sections claires sont transparentes pour le laisser voir ;
   les sections sombres (héro, avis, réserver, footer) restent
   opaques et servent de respirations. */
#bg-scroll {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--ivory);
  pointer-events: none;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: inherit; }

/* --- Typography ------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;          /* Cormorant : 500 porte mieux à l'écran que 400 */
  line-height: 1.14;
  letter-spacing: 0;         /* Cormorant aime un tracking ouvert, pas serré */
}

/* Emphase éditoriale : terracotta + italique sur un mot-clé.
   Jamais sur un titre entier, jamais sur du corps de texte. */
em {
  color: var(--accent);
  font-style: italic;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}
.label--light { color: rgba(243, 239, 230, 0.5); }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.92rem 2.2rem;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  background: transparent;
  line-height: 1;
}
.btn--solid {
  background: var(--accent);
  color: var(--ivory);
  border-color: var(--accent);
}
.btn--solid:hover { background: var(--turquesa); border-color: var(--turquesa); }

.btn--dark {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn--dark:hover { background: var(--accent); border-color: var(--accent); }

.btn--outline { color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--ivory); }

.btn--outline-light {
  color: var(--ivory);
  border-color: rgba(243, 239, 230, 0.5);
}
.btn--outline-light:hover { background: var(--ivory); color: var(--ink); }

/* --- Layout ---------------------------------------------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s8);
}

.section { padding: var(--s16) 0; }
/* .section--alt : transparente pour laisser passer le dégradé
   défilant (#bg-scroll). Léger voile pour garder un soupçon de
   contraste avec les sections « pleines ». */
.section--alt   { background: transparent; } /* transparent : le dégradé défile en continu */
.section--green { background: var(--green); color: var(--ivory); }
.section--water { background: var(--water); color: var(--ivory); }

.section-head { margin-bottom: var(--s10); max-width: var(--text-max); }
.section-head .label { margin-bottom: var(--s3); }
.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: var(--s4);
}
.section-head p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 540px;
}
.section--green .section-head p,
.section--water .section-head p { color: rgba(243, 239, 230, 0.7); }

/* --- Image slots (placeholder jusqu'au dépôt de la photo) -- */
/* Le slot affiche un dégradé terre + le nom du fichier attendu.
   Dès que la photo existe dans « medias selected/ », l'<img>
   la recouvre. Si elle manque, main.js masque l'<img> cassée
   et le dégradé labellisé reste visible. */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #d8c8aa 0%, #b59a78 55%, #8a6f4f 100%); /* Linho → Argila → bois */
}
.ph--green { background: linear-gradient(145deg, #6e8552 0%, #5c7340 55%, #44562f 100%); } /* Palmeira */
.ph--water { background: linear-gradient(145deg, #3e8b95 0%, #20585a 55%, #184a4c 100%); } /* Turquesa → Esmeralda */
.ph::after {
  content: attr(data-replace);
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  right: 0.9rem;
  font-size: 0.58rem;
  font-family: var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}
.ph img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Fade-in --------------------------------------------- */
.fi {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fi.on { opacity: 1; transform: none; }
.fi-d1 { transition-delay: 0.1s; }
.fi-d2 { transition-delay: 0.22s; }
.fi-d3 { transition-delay: 0.36s; }
.fi-d4 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .fi { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.6rem var(--s8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  transition: background 0.45s ease, padding 0.4s ease, border-color 0.45s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(243, 239, 230, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.05rem var(--s8);
  border-color: var(--line);
}

/* Sur le film (non scrollée) : tout en ivoire */
.header:not(.scrolled) .logo,
.header:not(.scrolled) .nav__link { color: var(--ivory); }
.header:not(.scrolled) .nav__link::after { background: var(--ivory); }
.header:not(.scrolled) .nav__toggle span { background: var(--ivory); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 0;
}
.logo__mark { display: block; height: 34px; width: auto; transition: filter 0.45s ease; }
.logo__word { display: block; height: 19px; width: auto; transition: filter 0.45s ease; }
/* Sur fond clair (header scrollé) : le logo blanc passe en sombre */
.header.scrolled .logo__mark,
.header.scrolled .logo__word { filter: brightness(0); }

.nav { display: flex; align-items: center; gap: var(--s5); }
.nav__links { display: flex; align-items: center; gap: var(--s5); }

.nav__link {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color 0.3s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--turquesa);
  transition: width 0.3s ease;
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__link--cta {
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  color: var(--accent);
  transition: background 0.3s ease, color 0.3s ease;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--accent); color: var(--ivory); }
.header:not(.scrolled) .nav__link--cta {
  border-color: rgba(243, 239, 230, 0.6);
  color: var(--ivory);
}
.header:not(.scrolled) .nav__link--cta:hover {
  background: rgba(62, 139, 149, 0.85);
  border-color: rgba(62, 139, 149, 0.85);
  color: var(--ivory);
}

/* Language switcher */
.nav__lang {
  display: flex;
  border: 1px solid var(--accent);
  border-radius: 2px;
  overflow: hidden;
}
.nav__lang-link {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__lang-link:hover { background: rgba(62, 139, 149, 0.15); }
.nav__lang-link--active { background: var(--accent); color: var(--ivory); font-weight: 600; }
.nav__lang-link + .nav__lang-link { border-left: 1px solid var(--accent); }
.header:not(.scrolled) .nav__lang { border-color: rgba(243, 239, 230, 0.6); }
.header:not(.scrolled) .nav__lang-link { color: var(--ivory); }
.header:not(.scrolled) .nav__lang-link--active {
  background: rgba(62, 139, 149, 0.85); color: var(--ivory);
}
.header:not(.scrolled) .nav__lang-link + .nav__lang-link { border-color: rgba(243, 239, 230, 0.4); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.3rem;
  flex-direction: column; gap: 6px;
}
.nav__toggle span {
  display: block; width: 26px; height: 1px;
  background: var(--text);
  transition: all 0.3s ease;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__toggle.open span { background: var(--text); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 199;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--s4);
  padding: var(--s8);
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s ease;
}
.nav__mobile-link:hover { color: var(--accent); }
.nav__mobile-lang {
  display: flex; margin-top: var(--s4);
  border: 1px solid var(--accent); border-radius: 2px; overflow: hidden;
}
.nav__mobile-lang .nav__lang-link { font-size: 13px; padding: 6px 14px; }
.nav__mobile-lang .nav__lang-link + .nav__lang-link { border-left: 1px solid var(--accent); }

/* ============================================================
   1 — HERO (film, nuit)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--green);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 21, 0.30) 0%, rgba(20, 26, 21, 0.22) 45%, rgba(20, 26, 21, 0.72) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s8) var(--s12);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ivory);
}
.hero__label { color: rgba(243, 239, 230, 0.7); margin-bottom: var(--s4); }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.6rem, 9.4vw, 8.4rem); /* Cormorant tourne plus étroit → un cran plus grand */
  letter-spacing: -0.005em;
  line-height: 1.0;
  margin-bottom: var(--s3);
}
.hero__logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.45));
}
.hero__logo-mark { display: block; height: clamp(74px, 11.5vh, 104px); width: auto; }
.hero__logo-word { display: block; height: clamp(56px, 9vh, 84px); width: auto; }
.hero__baseline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 300;
  color: rgba(243, 239, 230, 0.9);
  max-width: 560px;
  line-height: 1.4;
  margin-bottom: var(--s6);
}
.hero__baseline em { color: var(--foam); }
.hero__actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.hero__loc {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.55);
}
.hero__scroll {
  position: absolute;
  bottom: var(--s5); left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, rgba(243, 239, 230, 0.7));
}

/* ============================================================
   2 — MANIFESTE (jour, clair)
   ============================================================ */
.manifesto { padding: var(--s24) 0; }
.manifesto__inner { max-width: 920px; }
.manifesto .label { margin-bottom: var(--s5); }
.manifesto p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--text);
}
.manifesto p em { font-size: inherit; color: var(--turquesa); } /* Turquesa — emphase sur fond clair */

/* ============================================================
   3 — A EXPERIÊNCIA (une journée : matin → nuit)
   ============================================================ */
.experience { padding: var(--s16) 0; }
.moments { display: flex; flex-direction: column; gap: var(--s16); margin-top: var(--s12); }
.moment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s10);
  align-items: center;
}
.moment--reverse .moment__media { order: 2; }
.moment--reverse .moment__body  { order: 1; }
.moment__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.moment__media .ph { width: 100%; height: 100%; }
.moment__index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: var(--s2);
}
.moment__body h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  margin-bottom: var(--s3);
}
.moment__body p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 440px;
}

/* ============================================================
   4 — A VILLA / ESPAÇOS (specs qui rassurent)
   ============================================================ */
.spaces { padding: var(--s16) 0; }
/* « A Villa » : bloc texte + specs (sans photos) — respiration
   volontaire entre L'Expérience et la Galerie. */
.spaces__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  max-width: 820px;
}
.spaces__body h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: var(--s4);
  max-width: 480px;
}
.spaces__body > p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: var(--s8);
}
.spaces__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: var(--s2);
}
.spaces__media .ph { aspect-ratio: 3 / 4; }
.spaces__media .ph--wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

/* Repères clés */
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-top: var(--s4);
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
}
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec:nth-last-child(1), .spec:nth-last-child(2) { border-bottom: none; }
.spec__num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}
.spec__num span { font-size: 0.9rem; color: var(--accent); }
.spec__label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s6);
}
.amenity {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.42rem 0.95rem;
  background: rgba(237, 227, 209, 0.5);
}
.amenity::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--palmeira); /* point « nature » Palmeira */
  margin-right: 0.55rem;
}

/* ============================================================
   5 — GALERIA (masonry)
   ============================================================ */
.gallery { padding: var(--s16) 0; }
.gallery__grid { column-count: 3; column-gap: var(--s2); margin-top: var(--s10); }
.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--s2);
  overflow: hidden;
  background: var(--stone);
}
.gallery__item .ph { width: 100%; }
.gallery__item .ph img { transition: transform 0.7s ease; }
.gallery__item:hover .ph img { transform: scale(1.03); }

/* ============================================================
   6 — LOCALIZAÇÃO (carte, discrétion)
   ============================================================ */
.location { padding: var(--s16) 0; }
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s10);
  align-items: center;
}
.location__body h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: var(--s4);
  max-width: 420px;
}
.location__body p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 440px;
  margin-bottom: var(--s6);
}
.location__points {
  max-width: 440px;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  padding: var(--s2) var(--s4);
}
.location__point {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.location__point:last-child { border-bottom: none; }
.location__point span:first-child { color: var(--text); }
.location__point span:last-child { color: var(--text-muted); font-family: var(--font-serif); font-style: italic; }
.location__map {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--stone);
}
/* iframe étirée sous le bord clippé du cadre → la barre d'attribution
   OSM (cross-origin, non stylable) sort du champ visible. */
.location__map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 26px);
  border: none;
  filter: grayscale(0.35) sepia(0.12);
}
.location__credit {
  position: absolute;
  bottom: 6px;
  right: 8px;
  z-index: 2;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  color: rgba(42, 30, 21, 0.55);
  background: rgba(237, 227, 209, 0.7);
  padding: 1px 6px;
  border-radius: 3px;
}
.location__credit a { color: inherit; text-decoration: underline; }

/* Garde-fou : tant qu'on n'a pas cliqué, l'overlay intercepte la
   molette → on ne dézoome plus la carte par accident en scrollant
   la page. Un clic l'efface et rend la carte interactive. */
.location__map-guard {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: transparent;
}
.location__map-guard span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(42, 30, 21, 0.72);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.location__map:hover .location__map-guard span { opacity: 1; }
.location__map-guard.is-off { display: none; }

/* ============================================================
   O FILME (cinéma — façade YouTube légère, lecture au clic)
   ============================================================ */
.filme { padding: var(--s16) 0; }
.filme .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.filme .section-head p { margin-left: auto; margin-right: auto; }
.filme h2 em { color: var(--foam); }   /* écume — lisible sur le vert */

.filme__player {
  position: relative;
  max-width: 980px;
  margin: var(--s4) auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  cursor: pointer;
  box-shadow: 0 32px 80px -42px rgba(0, 0, 0, 0.85);
}
.filme__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.filme__player:hover .filme__poster { transform: scale(1.04); }
.filme__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background: rgba(243, 239, 230, 0.92);   /* ivoire — neutre, palette-coherent */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}
.filme__player:hover .filme__play {
  background: var(--ivory);
  transform: translate(-50%, -50%) scale(1.08);
}
.filme__play svg { width: 30px; height: 30px; fill: var(--esmeralda); margin-left: 4px; }
.filme__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.filme__player.is-playing { cursor: default; }

/* ============================================================
   7 — AVIS (preuve sociale, eau sombre)
   ============================================================ */
.reviews { padding: var(--s16) 0; }
.reviews__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--s10);
  align-items: center;
}
.reviews__score {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.reviews__score-num {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--ivory);
}
.reviews__score-num span { color: var(--foam); font-size: 0.4em; } /* écume — lisible sur la mer */
.reviews__score-label {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.6);
}
.reviews__badges { display: flex; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
.reviews__badge {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.7);
  border: 1px solid var(--line-light);
  padding: 0.4rem 0.9rem;
}
.reviews__quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.45;
  color: var(--ivory);
}
.reviews__quote em { color: var(--foam); }
.reviews__author {
  margin-top: var(--s5);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.55);
}

/* ============================================================
   8 — RESERVAR (conversion, nuit)
   ============================================================ */
.reservar {
  padding: var(--s24) var(--s8) var(--s12);  /* bas réduit : collé au footer (même cacao) */
  text-align: center;
  background: var(--cacau);
  color: var(--ivory);
}
.reservar__inner { max-width: 680px; margin: 0 auto; }
.reservar .label { color: rgba(243, 239, 230, 0.55); margin-bottom: var(--s4); }
.reservar h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--s5);
  color: var(--ivory);
}
.reservar h2 em { color: var(--foam); } /* écume sur cacao */
.reservar p {
  font-size: 1.05rem;
  color: rgba(243, 239, 230, 0.75);
  line-height: 1.8;
  margin-bottom: var(--s8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.reservar__actions {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
}
.reservar__secondary {
  margin-top: var(--s6);
  font-size: 0.8rem;
  color: rgba(243, 239, 230, 0.5);
}
.reservar__secondary a { color: rgba(243, 239, 230, 0.8); border-bottom: 1px solid rgba(243, 239, 230, 0.3); }
.reservar__secondary a:hover { color: var(--ivory); }

/* ============================================================
   FOOTER (vert profond)
   ============================================================ */
.footer {
  background: var(--cacau);            /* même cacao que la section Reservar au-dessus */
  color: var(--ivory);
  padding: var(--s6) 0 var(--s6);      /* haut réduit : collé à la section Reservar */
  border-top: 1px solid var(--line-light);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s8) var(--s8);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s8);
  border-bottom: 1px solid var(--line-light);
}
.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: var(--s3);
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--s4);
}
.footer__logo-mark { display: block; height: 48px; width: auto; }
.footer__logo-word { display: block; height: 36px; width: auto; }
.footer__brand-desc {
  font-size: 0.85rem;
  color: rgba(243, 239, 230, 0.5);
  line-height: 1.7;
  max-width: 300px;
}
.footer__col-title {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.35);
  margin-bottom: var(--s3);
}
.footer__links { display: flex; flex-direction: column; gap: var(--s2); }
.footer__links a {
  font-size: 0.85rem;
  color: rgba(243, 239, 230, 0.65);
  transition: color 0.3s ease;
}
.footer__links a:hover { color: var(--ivory); }
.footer__bottom {
  max-width: var(--max);
  margin: var(--s4) auto 0;
  padding: 0 var(--s8);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: rgba(243, 239, 230, 0.3);
}
.footer__credit em { color: var(--foam); font-style: italic; } /* écume sur Esmeralda */

/* ============================================================
   WHATSAPP FLOTTANT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: var(--s4); right: var(--s4);
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(28, 26, 21, 0.28);
  transition: transform 0.3s ease, background 0.3s ease;
}
.wa-float:hover { transform: scale(1.06); background: var(--ink); }
.wa-float svg { width: 28px; height: 28px; fill: var(--ivory); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --s24: 7rem; --s16: 5.5rem; --s12: 4rem; --s8: 3.5rem; }
  /* Empilé : image collée à SON texte, gros écart entre les blocs (--s16),
     et l'intitulé devient une vraie étiquette d'ouverture (≠ du titre serif). */
  .moment { grid-template-columns: 1fr; gap: var(--s3); }
  .moment--reverse .moment__media,
  .moment--reverse .moment__body { order: 0; }
  .moment__media { aspect-ratio: 16 / 10; }
  /* Police d'origine conservée (serif italique) — seulement rendue plus visible :
     plus grande + filet de séparation pour ouvrir clairement le bloc. */
  .moment__index {
    font-size: 1.75rem;
    margin-bottom: var(--s3);
    padding-bottom: var(--s2);
    border-bottom: 1px solid var(--line);
  }
  .moment__body h3 { font-size: 2rem; margin-bottom: var(--s2); }
  .spaces__grid { grid-template-columns: 1fr; gap: var(--s8); }
  .gallery__grid { column-count: 2; }
  .location__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .reviews__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 var(--s6); }
  .hero__content { padding: 0 var(--s6) var(--s10); }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 680px)
   ============================================================ */
@media (max-width: 680px) {
  :root { --s24: 5rem; --s16: 4rem; --s12: 3rem; --s10: 3rem; --s8: 2.5rem; --s6: 2rem; }
  .header { padding: 1.2rem var(--s4); }
  .header.scrolled { padding: 0.9rem var(--s4); }
  .nav__links, .nav .nav__lang, .nav__link--cta { display: none; }
  .nav__toggle { display: flex; }
  .hero__content { padding: 0 var(--s4) var(--s8); }
  .hero__logo { gap: 14px; }
  .hero__logo-mark { height: clamp(54px, 13vw, 72px); }
  .hero__logo-word { height: clamp(40px, 9.5vw, 54px); }
  .hero__actions .btn { width: auto; }
  /* O filme : lecteur quasi pleine largeur, légère marge */
  .filme__player {
    margin-left: calc(8px - var(--s4));
    margin-right: calc(8px - var(--s4));
    border-radius: 4px;
  }
  .manifesto { padding: var(--s16) 0; }
  .spaces__media { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr; }
  .gallery__grid { column-count: 1; column-gap: 0; }
  .reservar { padding: var(--s16) var(--s4); }
  .reservar__actions .btn { width: 100%; justify-content: center; }
  /* Footer centré */
  .footer__inner { grid-template-columns: 1fr; gap: var(--s6); justify-items: center; text-align: center; }
  .footer__logo { justify-content: center; }
  .footer__brand-desc { margin-left: auto; margin-right: auto; }
  .footer__links { align-items: center; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__inner, .footer__bottom { padding-left: var(--s4); padding-right: var(--s4); }
  .wrap { padding: 0 var(--s4); }
}
