/* =============================================================================
   TAMANA BAY — DESIGN SYSTEM
   Palette & type from the Direction Artistique. Calm, sensorial, generous
   whitespace (Six Senses / Aesop register). No frameworks.
   ============================================================================= */

:root {
  /* Palette — Direction Artistique */
  --bark:   #2C2418;
  --dusk:   #6B5A44;
  --sand:   #B89A6E;
  --sable:  #D4BB94;
  --linen:  #F7F2E8;
  --sage:   #7A8C76;
  --ocean:  #3A6B78;
  --cream:  #FDFAF4;
  --ink:    #1B1710;

  /* Roles */
  --bg:        var(--cream);
  --bg-alt:    var(--linen);
  --text:      #2A2418;
  --text-soft: #6B5A44;
  --accent:    var(--ocean);
  --line:      rgba(44, 36, 24, 0.14);
  --line-soft: rgba(44, 36, 24, 0.08);

  /* Type */
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body:    'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale (fluid) */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-4:  clamp(2.8rem, 1.9rem + 4.4vw, 5.6rem);
  --step-hero: clamp(3rem, 1.6rem + 7vw, 8rem);

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 2px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ------------------------------- Type -------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: 0.005em; }
.eyebrow {
  font-family: var(--body); font-weight: 400; font-size: var(--step--1);
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--sand);
}
.section-title { font-size: var(--step-3); color: var(--bark); margin-top: 0.5rem; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--text-soft); font-weight: 300; }

/* --------------------------- Layout helpers -------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--bark); color: var(--linen); }
.section--ink .section-title { color: var(--linen); }
.section--ink .lede { color: rgba(247, 242, 232, 0.72); }
/* Sections en marron foncé (palette DA) pour contraster avec les sections crème */
.section--dark { background: var(--bark); color: var(--linen); }
.section--dark .section-title { color: var(--linen); }
.section--dark .eyebrow { color: var(--sand); }
.section--dark .lede { color: rgba(247, 242, 232, 0.72); }
.section--dark .masterplan-note { color: rgba(247, 242, 232, 0.55); }
.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ----------------------------- Buttons ------------------------------------- */
/* Style de référence : remplissage qui glisse latéralement au survol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--body); font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.26em; text-transform: uppercase;
  padding: 1.15em 2.2em; border-radius: 0;
  background-size: 205% 100%; background-position: 100% 0; background-repeat: no-repeat;
  transition: background-position 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  min-height: 44px;
}
.btn--solid {
  color: var(--ink);
  background-image: linear-gradient(100deg, var(--sable) 0 50%, var(--sand) 50% 100%);
}
.btn--solid:hover { background-position: 0 0; color: var(--bark); }
.btn--outline {
  border: 1px solid var(--line); color: var(--bark);
  background-image: linear-gradient(100deg, rgba(184,154,110,0.14) 0 50%, transparent 50% 100%);
}
.btn--outline:hover { border-color: var(--sand); background-position: 0 0; }
/* Ghost clair pour les sections sombres */
.btn--ghost-dark {
  border: 1px solid rgba(237,224,200,0.35); color: var(--linen);
  background-image: linear-gradient(100deg, rgba(237,224,200,0.1) 0 50%, transparent 50% 100%);
}
.btn--ghost-dark:hover { border-color: var(--sand); color: var(--sable); background-position: 0 0; }
.btn--ghost { color: var(--bark); padding-inline: 0; }
.btn--ghost .arrow { transition: transform 0.4s var(--ease); }
.btn--ghost:hover .arrow { transform: translateX(6px); }
.section--ink .btn--outline { border-color: rgba(247,242,232,0.3); color: var(--linen); }
.section--ink .btn--outline:hover { background: var(--linen); color: var(--bark); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--ocean); outline-offset: 3px; border-radius: var(--radius);
}

/* ============================== HEADER ===================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header::before {
  content: ''; position: absolute; inset: 0; background: var(--cream);
  opacity: 0; transition: opacity 0.5s var(--ease); z-index: -1;
}
.site-header.scrolled::before { opacity: 0.97; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line-soft); }
.header-inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  position: relative; }
/* Menu centré horizontalement, en cohérence avec le logo du hero en dessous */
@media (min-width: 1024px) {
  .nav-desktop { position: absolute; left: 50%; transform: translateX(-50%); }
}
/* Brochure + langues poussés à droite */
.header-actions { margin-left: auto; }

.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
/* On a transparent hero the mark reads on dark; invert to cream */
.site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: clamp(0.5rem, 1vw, 1.15rem); list-style: none; }
.nav-desktop a {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  color: var(--linen); opacity: 0.85; padding: 0.4em 0; position: relative;
  transition: opacity 0.3s var(--ease);
}
.site-header.scrolled .nav-desktop a { color: var(--bark); opacity: 0.7; }
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width 0.35s var(--ease);
}
.nav-desktop a:hover, .nav-desktop a.active { opacity: 1; }
.nav-desktop a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Language selector */
.lang-select { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; padding: 0 0.5em;
  font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--linen);
}
.site-header.scrolled .lang-current { color: var(--bark); }
.lang-current .chev { width: 8px; height: 8px; border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-bottom: 3px; transition: transform 0.3s; }
.lang-select.open .chev { transform: rotate(-135deg); margin-bottom: -2px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius); min-width: 150px;
  padding: 0.35rem; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.3s var(--ease); box-shadow: 0 12px 40px rgba(44,36,24,0.12); list-style: none;
}
.lang-select.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  width: 100%; text-align: left; padding: 0.6em 0.8em; font-size: var(--step--1);
  letter-spacing: 0.08em; color: var(--text-soft); border-radius: var(--radius); display: flex; justify-content: space-between;
}
.lang-menu button:hover, .lang-menu button.active { background: var(--linen); color: var(--bark); }
.lang-menu button .short { color: var(--sand); }

/* Toujours clairement visible, sans survol nécessaire (réf. : nav-cta sable) */
.btn-brochure-header { display: none; background: var(--sand); color: var(--ink); border-color: transparent; }
.btn-brochure-header:hover { background: var(--sable); color: var(--ink); border-color: transparent; }
.nav-mobile .btn--outline { color: var(--linen); border-color: rgba(247,242,232,0.35); }

/* Burger */
.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; }
.burger span { width: 22px; height: 1.5px; background: var(--linen); transition: all 0.35s var(--ease); }
.site-header.scrolled .burger span { background: var(--bark); }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav panel */
.nav-mobile {
  position: fixed; inset: 0; z-index: 99; background: var(--bark); color: var(--linen);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.5s var(--ease); visibility: hidden;
}
body.menu-open .nav-mobile { transform: translateX(0); visibility: visible; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }
.nav-mobile a { font-family: var(--display); font-size: clamp(1.5rem, 6vw, 2rem); color: var(--linen);
  display: block; padding: 0.18em 0; opacity: 0.85; }
.nav-mobile a.active { color: var(--sand); }
.nav-mobile .mobile-brochure { margin-top: 1.5rem; align-self: flex-start; }

@media (min-width: 1160px) {
  .nav-desktop { display: block; }
  .btn-brochure-header { display: inline-flex; }
  .burger { display: none; }
}

/* ============================== HERO ======================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--linen); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--bark); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.42) 0%, rgba(20,18,16,0.12) 35%, rgba(20,18,16,0.72) 100%);
}
.hero-media .placeholder-note {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,242,232,0.5);
}
/* Logo centré ; bloc animé + description alignés à gauche sur un même axe */
.hero-inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  position: relative; z-index: 1; min-height: 100svh;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  justify-content: flex-end; padding-bottom: clamp(6.5rem, 13vh, 9rem); }
.hero-inner .hero-logo { align-self: center; margin-block: auto; }

/* Logo signature « Tamana Bay », centré au milieu du hero */
.hero-logo { width: min(82vw, 600px); height: auto;
  filter: brightness(0) invert(1); opacity: 0.96; }

/* Taille du couple « Property + mot tournant » — volontairement réduite */
:root { --step-statement: clamp(1.5rem, 1rem + 2.6vw, 3rem); }

/* The animated two-part statement: fixed "Property" + rotating word, inline */
.hero-statement { display: flex; align-items: baseline; justify-content: flex-start;
  flex-wrap: nowrap; gap: 0.35em; line-height: 1; margin: 0 0 1.2rem; }
.hero-fixed {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: var(--step-statement); color: var(--sable); letter-spacing: 0.01em;
}
.hero-rotator {
  position: relative; display: inline-block; overflow: hidden; text-align: left;
  font-size: var(--step-statement); line-height: 1.16; height: 1.16em; min-width: 3ch;
}
.hero-rotate-word {
  font-family: var(--body); font-weight: 400; text-transform: uppercase;
  font-size: var(--step-statement); letter-spacing: 0.02em; color: var(--linen); line-height: 1.16;
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; transform: translateY(100%); transition: transform 0.8s var(--ease), opacity 0.6s var(--ease);
}
.hero-rotate-word.is-in  { opacity: 1; transform: translateY(0); }
.hero-rotate-word.is-out { opacity: 0; transform: translateY(-100%); }
/* Sizer keeps the rotator width correct with no layout shift for "Property" */
.hero-rotate-sizer { visibility: hidden; font-family: var(--body); font-weight: 400;
  text-transform: uppercase; font-size: var(--step-statement); letter-spacing: 0.02em; white-space: nowrap; line-height: 1.16; }

.hero-desc { max-width: 44ch; font-size: var(--step-0); color: var(--sand); font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 1rem; margin-top: 2rem; }

/* Entrée animée du hero (réf. Edenia : fadeUp échelonné) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-logo      { opacity: 0; animation: fadeUp 1.1s var(--ease) 0.2s forwards; }
.hero-statement { opacity: 0; animation: fadeUp 1s var(--ease) 0.45s forwards; }
.hero-desc      { opacity: 0; animation: fadeUp 1s var(--ease) 0.65s forwards; }
.hero-actions   { opacity: 0; animation: fadeUp 1s var(--ease) 0.85s forwards; }
.hero-scroll    { opacity: 0; animation: fadeUp 1s var(--ease) 1.3s forwards; }
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-statement, .hero-desc, .hero-actions, .hero-scroll { animation: none; opacity: 1; }
}
.hero-actions .btn--outline { border-color: rgba(247,242,232,0.4); color: var(--linen); }
.hero-actions .btn--outline:hover { background: var(--linen); color: var(--bark); }

.hero-scroll { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(247,242,232,0.78); }
.hero-scroll:hover { color: var(--sable); }
/* chevrons fins empilés, vague verticale subtile */
.chevs { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.chevs i { width: 9px; height: 9px; border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor; transform: rotate(45deg);
  opacity: 0.25; animation: chevWave 1.9s ease-in-out infinite; }
.chevs i:nth-child(2) { animation-delay: 0.22s; }
.chevs i:nth-child(3) { animation-delay: 0.44s; }
@keyframes chevWave { 0%, 100% { opacity: 0.25; transform: rotate(45deg) translate(0, 0); }
  45% { opacity: 0.9; transform: rotate(45deg) translate(2px, 2px); } }
@media (prefers-reduced-motion: reduce) { .chevs i { animation: none; opacity: 0.6; } }

/* ============================== NOSY BE MAP ================================ */
/* Ambiance de référence : encre bleu-noir profond, carte verte sur mer sombre */
.section--island { background: #141210; color: var(--linen); overflow: hidden; }
.section--island .section-title { color: var(--linen); }
.section--island .eyebrow { color: var(--sand); }
/* Titre et « Depuis Paris » en haut de colonne, carte élargie à droite */
.island-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 980px) { .island-grid { grid-template-columns: 0.72fr 1.28fr; } }
.map-origin { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); margin-top: 0.8rem; }
.map-origin strong { font-family: var(--display); font-style: italic; text-transform: none;
  font-size: var(--step-1); letter-spacing: 0.02em; color: var(--linen); font-weight: 500; }
/* Colonne gauche étirée : cadran réservé en haut, statistiques en bas */
.island-grid > div:first-child { display: flex; flex-direction: column; align-self: stretch; }
/* Statistiques en grille carrée 2×2, calées en bas de colonne */
.island-stats { display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1.2rem, 2vw, 1.8rem);
  margin-top: clamp(1.6rem, 3vh, 2.6rem); }
/* Cadran réservé au futur texte client (clé nosybe.intro dans content.js) :
   espace visuel identifiable, sans contenu rédigé */
.island-intro { flex: 1; min-height: 140px; margin-top: 1.6rem;
  border: 1px dashed rgba(184,154,110,0.35); border-radius: var(--radius);
  background: rgba(184,154,110,0.04); padding: 1.2rem 1.4rem;
  color: rgba(237,224,200,0.72); }
.island-stat .v { font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 300;
  color: var(--sable); line-height: 1; }
.island-stat .k { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(237,224,200,0.5); margin-top: 0.55rem; display: block; max-width: 150px; line-height: 1.5; }
/* Couleurs de référence : mer #132429 · terres #1e291c · frontières #516052 */
.map-shell { position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(81,96,82,0.55); background: #132429; }
/* Mer : #132429 avec halo radial bleu-sarcelle autour de l'île et coins
   presque noirs, comme sur le brouillon de référence. */
#nosybe-map { width: 100%; height: clamp(460px, 52vw, 740px);
  background: radial-gradient(120% 105% at 42% 44%, #17313a 0%, #132429 48%, #0b1410 100%); }
.leaflet-container { font-family: var(--body);
  background: radial-gradient(120% 105% at 42% 44%, #17313a 0%, #132429 48%, #0b1410 100%); }
/* Carte 100 % vectorielle : aucune tuile, aucun filtre, aucune fusion —
   les couleurs sont posées telles quelles (mer via fond, terres/frontières
   via polygones Leaflet). */
.map-compass { position: absolute; top: 14px; right: 14px; z-index: 500;
  pointer-events: none; opacity: 0.92; }
.leaflet-bar a { background: rgba(20,18,16,0.85); color: var(--sable); border-color: rgba(184,154,110,0.3); }
.leaflet-bar a:hover { background: var(--bark); }
.leaflet-control-attribution { background: rgba(12,21,16,0.7); color: rgba(237,224,200,0.45); font-size: 10px; }
.leaflet-control-attribution a { color: rgba(237,224,200,0.6); }
.leaflet-marker-tb { display: grid; place-items: center; }
.tb-pin { position: relative; display: grid; place-items: center; }
.tb-pin svg { filter: drop-shadow(0 4px 8px rgba(20,18,16,0.35)); }
.tb-pin.resort svg { transform: scale(1.25); }
.tb-tip { min-width: 120px; }
/* Noms des lieux visibles en permanence au-dessus des repères (carte sombre).
   pointer-events actifs + padding : le nom fait partie de la zone de survol. */
.tb-label { background: none; border: none; box-shadow: none; padding: 5px 8px 6px;
  pointer-events: auto;
  font: 500 10px/1.3 'Jost', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(237,224,200,0.85);
  text-shadow: 0 0 3px rgba(12,21,16,0.95), 0 0 7px rgba(12,21,16,0.9), 0 1px 10px rgba(12,21,16,0.8); }
.tb-label::before { display: none; }
.tb-label--tamana { z-index: 700; }
.tb-label--tamana img { height: 62px; width: auto; max-width: none; display: block;
  filter: brightness(0) invert(0.92) sepia(0.3) drop-shadow(0 0 6px rgba(12,21,16,0.9)); }
/* Petits points pour les lieux (Tamana Bay garde son épingle distincte).
   Enveloppe 26px = zone de survol confortable, point visuel 9px inchangé. */
.tb-dot-hit { width: 26px; height: 26px; display: grid; place-items: center; }
.tb-dot { width: 9px; height: 9px; border-radius: 50%; display: block;
  border: 1px solid rgba(12,21,16,0.7); box-shadow: 0 0 6px rgba(0,0,0,0.4);
  transition: transform 0.25s var(--ease); }
.leaflet-marker-tb:hover .tb-dot { transform: scale(1.45); }
/* Halo pulsé sous le repère Tamana Bay (réf. Edenia) */
.tb-pin { position: relative; }
.tb-pin .pin-pulse { position: absolute; left: 15px; top: 37px; width: 12px; height: 12px;
  transform: translate(-50%,-50%); border-radius: 50%; background: var(--sand);
  animation: pinPulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes pinPulse {
  0% { opacity: 0.55; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(4); }
}
@media (prefers-reduced-motion: reduce) { .tb-pin .pin-pulse { animation: none; opacity: 0; } }
/* L'étiquette flotte au-dessus du repère, reliée par le trait vertical */
.leaflet-popup { margin-bottom: 42px; }
.leaflet-popup-content-wrapper { background: var(--bark); color: var(--linen); border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(20,18,16,0.35);
  animation: tbTipIn 0.22s var(--ease); }
/* Trait vertical qui « sort du sol » sous l'étiquette */
.leaflet-popup-tip-container { width: 2px; height: 42px; left: 50%; margin-left: -1px;
  overflow: visible; background: var(--bark);
  transform-origin: bottom center; animation: tbStemUp 0.18s var(--ease); }
.leaflet-popup-tip { display: none; }
@keyframes tbStemUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tbTipIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .leaflet-popup-content-wrapper, .leaflet-popup-tip-container { animation: none; }
}
.leaflet-popup-content { margin: 0.9em 1.1em; font-family: var(--body); font-weight: 300; }
.leaflet-popup-content .tip-name { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sable); }
.leaflet-popup-content .tip-desc { font-family: var(--display); font-style: italic; font-size: 1.05rem;
  line-height: 1.3; color: var(--linen); margin-top: 0.3em; }
.leaflet-popup-close-button { color: var(--linen) !important; }

/* ============================== GALLERY ==================================== */
/* Carrousel pleine largeur, bord à bord */
.gallery-shell { position: relative; width: 100%; }
/* Images bord à bord, sans espace entre elles */
.gallery-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
/* Format compact et horizontal : au moins trois images toujours visibles */
.gallery-item { flex: 0 0 calc(100% / 3); scroll-snap-align: start; position: relative;
  overflow: hidden; background: var(--linen); cursor: zoom-in; }
.gallery-item img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%;
  transition: transform 0.8s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem 1rem;
  font-size: var(--step--1); letter-spacing: 0.06em; color: var(--linen);
  background: linear-gradient(180deg, transparent, rgba(20,18,16,0.72)); }
/* Flèches longues, sans fond, superposées sur les images */
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: none; color: var(--linen); padding: 0.6rem 0.3rem; min-height: 44px;
  display: grid; place-items: center;
  filter: drop-shadow(0 1px 4px rgba(20,18,16,0.85)) drop-shadow(0 0 12px rgba(20,18,16,0.5));
  transition: transform 0.3s var(--ease); }
.gal-arrow svg { width: clamp(44px, 5vw, 64px); height: 14px; display: block; }
.gal-arrow.prev { left: clamp(0.6rem, 2.5vw, 2rem); }
.gal-arrow.next { right: clamp(0.6rem, 2.5vw, 2rem); }
.gal-arrow.prev:hover { transform: translateY(-50%) translateX(-4px); }
.gal-arrow.next:hover { transform: translateY(-50%) translateX(4px); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,16,0.94);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease); padding: var(--gutter); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close, .lightbox-nav { position: absolute; color: var(--linen); width: 56px; height: 56px;
  display: grid; place-items: center; font-size: 1.6rem; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav.prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ============================== MASTERPLAN ================================= */
/* Fond blanc pendant le récit, puis nuit étoilée en toute fin — opacité pilotée
   par la progression du scroll (les deux sens, sans saut). */
#masterplan { position: relative; }
/* :not(...) : sans lui, la règle ID écrasait le position:absolute du calque
   nuit, qui devenait un bloc vide invisible (bug de spécificité) */
#masterplan > *:not(.masterplan-night) { position: relative; z-index: 1; }
/* Textes de la section : suivent la teinte pilotée par le scroll (JS) */
#masterplan .section-title { color: var(--mp-text, var(--bark)); }
#masterplan .lede, #masterplan .masterplan-note { color: var(--mp-soft, var(--text-soft)); }
#masterplan .masterplan-actions .btn--outline { color: var(--mp-text, var(--bark));
  border-color: var(--mp-soft, var(--line)); }
.masterplan-night { position: absolute; inset: 0; z-index: 0; opacity: 0;
  pointer-events: none; background-color: #e19d6c;
  background-image:
    radial-gradient(1.8px 1.8px at 22px 34px, rgba(253,250,244,0.95), transparent 100%),
    radial-gradient(1.3px 1.3px at 78px 118px, rgba(253,250,244,0.7), transparent 100%),
    radial-gradient(1.6px 1.6px at 158px 62px, rgba(253,250,244,0.85), transparent 100%),
    radial-gradient(1.1px 1.1px at 212px 152px, rgba(253,250,244,0.6), transparent 100%),
    radial-gradient(1.4px 1.4px at 118px 186px, rgba(253,250,244,0.75), transparent 100%);
  background-size: 256px 208px; }
/* Pleine largeur, format horizontal épinglé : le scroll de la page pilote
   la rotation jour → couchant du modèle avant de libérer la section suivante. */
.masterplan-track { height: 220vh; position: relative; margin-top: 2rem; }
/* Format panoramique : bande horizontale de 58vh épinglée au centre de l'écran */
.masterplan-sticky { position: sticky; top: 21vh; height: 58vh; width: 100%;
  overflow: hidden; background: var(--linen); }
/* pointer-events actifs : le survol des bâtiments affiche leurs fiches (maquette
   de base) ; la molette est renvoyée vers la page depuis l'iframe (cf. main.js). */
.masterplan-sticky iframe { width: 100%; height: 100%; border: 0; display: block;
  pointer-events: auto; }
/* Bouton brochure : après le coucher de soleil, centré au milieu de l'image */
/* même style que le rappel des commandes de la maquette libre :
   Jost 300 11px/1.9, espacé .18em, capitales, teinte dusk */
.masterplan-hint { position: absolute; right: 1.1rem; bottom: 0.85rem; z-index: 2;
  margin: 0; font: 300 11px/1.9 'Jost', sans-serif; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dusk); pointer-events: none; }
.masterplan-cta { position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease); }
.masterplan-cta.show { opacity: 1; visibility: visible; }
.masterplan-cta .btn { pointer-events: auto; box-shadow: 0 10px 34px rgba(20,18,16,0.35); }
.masterplan-fallback { display: none; position: relative; }
.masterplan-fallback img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.masterplan-fallback .fallback-copy { padding: 1.5rem; text-align: center; }
.masterplan-note { margin-top: 1.2rem; font-size: var(--step--1); color: var(--text-soft); }
.masterplan-actions { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
/* Mobile : la maquette 3D reste active (récit piloté par le scroll de la page) ;
   l'iframe est rendue inerte au toucher pour que le balayage défile la page,
   et l'indication souris n'a pas de sens sans pointeur */
@media (hover: none) {
  .masterplan-sticky iframe { pointer-events: none; }
  .masterplan-hint { display: none; }
}
body.reduce-motion .masterplan-track { display: none; }
body.reduce-motion .masterplan-fallback { display: block; }

/* ============================== PHILOSOPHY ================================= */
.philosophy-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
.lockleaseblock { border-left: 2px solid var(--sand); padding-left: 1.5rem; margin-top: 2rem; }
.lockleaseblock h3 { font-size: var(--step-2); color: var(--bark); margin-bottom: 0.6rem; }
.disclaimer { font-size: var(--step--1); color: var(--text-soft); font-style: italic; margin-top: 1.5rem; }
@media (min-width: 900px) { .philosophy-grid { grid-template-columns: 1.1fr 0.9fr; } }
.phil-body2 { color: var(--text-soft); margin-top: 1.2rem; max-width: 56ch; }
/* Les trois temps de l'investissement, cartes avec icônes (réf. Edenia) */
.invest-steps { display: grid; grid-template-columns: 1fr; gap: 2px;
  margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 760px) { .invest-steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--cream); padding: clamp(1.8rem, 3vw, 2.6rem) 2rem; border: 1px solid rgba(20,18,16,0.06); }
.step-ic { margin-bottom: 1.4rem; color: var(--sand); width: 64px; height: 64px;
  border: 1px solid rgba(184,154,110,0.45); border-radius: 50%;
  display: grid; place-items: center; }
.step h4 { font-family: var(--display); font-size: var(--step-2); font-weight: 400; color: var(--bark); margin-bottom: 0.7rem; }
.step p { font-size: var(--step--1); line-height: 1.7; color: var(--text-soft); }
.invest-quote { font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.45; color: var(--bark);
  max-width: 760px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; text-align: center; }

/* ============================== RESIDENCES ================================= */
.res-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .res-grid { grid-template-columns: 1fr 1fr; } }
.res-card { background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; }
.res-card .res-img { aspect-ratio: 3/2; overflow: hidden; }
.res-card .res-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.res-card:hover .res-img img { transform: scale(1.04); }
.res-card .res-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.res-card h4 { font-size: var(--step-2); color: var(--bark); }
.res-card .res-sub { color: var(--text-soft); margin: 0.4rem 0 1.2rem; }
.res-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem 1rem; margin-bottom: 1.2rem;
  padding-block: 1.2rem; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.res-spec .k { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); }
.res-spec .v { font-family: var(--display); font-size: var(--step-1); color: var(--bark); }
.res-features { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; }
.res-features span { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft);
  border: 1px solid var(--line); border-radius: 100px; padding: 0.35em 0.9em; }
.res-plans-note { font-size: var(--step--1); color: var(--text-soft); font-style: italic; margin-bottom: 1.2rem; }
.res-card .btn { margin-top: auto; align-self: flex-start; }

/* Phase 2 — dark overlay + "to be continued" */
.phase2 { margin-top: clamp(2rem, 5vw, 3.5rem); position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 240px; display: grid; place-items: center; text-align: center; padding: 3rem 1.5rem;
  background: var(--bark); color: var(--linen); }
.phase2::before { content:''; position:absolute; inset:0; background: url('../renders/exterior-03.jpg') center/cover;
  opacity: 0.16; }
.phase2 .p2-inner { position: relative; z-index: 1; }
.phase2 .p2-tag { display: inline-block; font-size: var(--step--1); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--sand); border: 1px solid rgba(184,154,110,0.5); padding: 0.5em 1.2em; border-radius: 100px; margin-bottom: 1.2rem; }
.phase2 h3 { font-size: var(--step-3); }
.phase2 p { color: rgba(247,242,232,0.7); margin-top: 0.6rem; }

/* ============================== AMENITIES ================================= */
/* Galerie « photos déposées » : pile d'images au centre-gauche, légendes à
   droite, le tout épinglé et piloté par le scroll (GSAP). */
.amen-flow { position: relative; }
.amen-stage { height: 100vh; display: flex; align-items: center; overflow: hidden; }
/* Titre à demeure au-dessus de la pile : visible pendant toute la galerie */
.amen-stage-inner { display: flex; flex-direction: column; justify-content: flex-start;
  height: 100%; padding-top: calc(var(--header-h) + clamp(0.4rem, 1.6vh, 1rem));
  padding-bottom: clamp(1rem, 3vh, 2rem); gap: clamp(0.8rem, 2.5vh, 1.8rem); }
.amen-stage-inner .amen-grid { flex: 1; min-height: 0; }
.section-head--amen { margin-bottom: 0; max-width: none; }
.section-head--amen .section-title, .section-title--amen {
  white-space: nowrap; font-size: clamp(1.35rem, 3.2vw, 2.7rem); }
.amen-grid { display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%; }
.amen-pile { position: relative; height: min(56vh, 520px); }
/* Titre hors flux : liste mobile / sans GSAP uniquement */
.amen-head-outside { display: none; }
@media (max-width: 899px) { .amen-head-outside { display: block; } }
html.no-amen-flow .amen-head-outside { display: block; }
.amen-photo { position: absolute; inset: 0; margin: auto; max-width: 540px;
  overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.45); will-change: transform; }
.amen-photo img { width: 100%; height: 100%; object-fit: cover; }
/* découpes légèrement irrégulières, différentes pour chaque photo */
.amen-photo--v0 { border-radius: 26px 40px 30px 44px / 36px 28px 42px 30px; }
.amen-photo--v1 { border-radius: 42px 28px 38px 26px / 30px 40px 28px 38px; }
.amen-photo--v2 { border-radius: 30px 34px 46px 28px / 40px 30px 34px 44px; }
.amen-photo--v3 { border-radius: 38px 26px 30px 42px / 28px 42px 38px 26px; }
.amen-photo--v4 { border-radius: 28px 44px 26px 36px / 42px 28px 44px 30px; }
.amen-photo--v5 { border-radius: 40px 30px 42px 28px / 30px 44px 26px 40px; }
/* Restaurant : image à fournir — panneau provisoire discret */
.amen-photo--placeholder { background: #2A2115; border: 1px dashed rgba(184,154,110,0.4);
  display: grid; place-items: center; }
.amen-ph-note { font-family: var(--display); font-style: italic;
  color: var(--sable); font-size: var(--step-1); }
.amen-side { position: relative; min-height: 250px; }
.amen-cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.amen-cap .a-num, .amen-item .a-num { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--sand); }
.amen-cap h3, .amen-item h3 { font-family: var(--display); font-size: var(--step-2);
  font-weight: 400; color: var(--linen); margin: 0.7rem 0 0.5rem; }
.amen-cap p, .amen-item p { color: rgba(237,224,200,0.7); max-width: 40ch; }
.amen-cap .btn, .amen-item .btn { margin-top: 1.4rem; align-self: flex-start; }
/* Liste simple : mobile, sans GSAP, ou mouvement réduit */
.amen-list { display: none; }
.amen-item { margin-top: 2.4rem; display: flex; flex-direction: column; }
.amen-item .amen-photo { position: static; height: clamp(220px, 52vw, 380px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.4); }
.amen-item > div { margin-top: 1.1rem; }
@media (max-width: 899px) { .amen-flow { display: none; } .amen-list { display: block; } }
html.no-amen-flow .amen-flow { display: none; }
html.no-amen-flow .amen-list { display: block; }

/* ============================== TIMELINE ================================= */
/* Construction de référence : ligne continue traversante + remplissage animé,
   cercles centrés sur la ligne, informations centrées sous chaque étape. */
.tl-track { position: relative; margin-top: 3.5rem; padding-top: 8px; }
.tl-track .tl-line { position: absolute; top: 15px; left: 0; right: 0; height: 1px;
  background: rgba(184,154,110,0.3); }
.tl-fill { position: absolute; top: 15px; left: 0; height: 1px; background: var(--sand);
  width: 0; transition: width 1.6s var(--ease); }
.tl-points { display: flex; justify-content: space-between; position: relative; }
.tl-pt { flex: 1; text-align: center; padding: 0 6px; }
.tl-dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--sand);
  background: var(--cream); margin: 0 auto 18px; position: relative; z-index: 2; }
.tl-pt.on .tl-dot { background: var(--sage); border-color: var(--sage); }
.tl-pt.now .tl-dot { background: var(--ocean); border-color: var(--ocean); box-shadow: 0 0 0 5px rgba(58,107,120,0.16); }
.tl-date { font-family: var(--display); font-size: var(--step-1); font-weight: 600; color: var(--bark); line-height: 1; }
.tl-name { font-size: var(--step--1); color: var(--text-soft); margin: 0.5rem auto 0; line-height: 1.5; max-width: 30ch; }
.tl-state { display: inline-block; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.55rem; }
.tl-pt.on .tl-state { color: var(--sage); }
.tl-pt.now .tl-state { color: var(--ocean); }
.tl-pt.fc .tl-state { color: var(--sand); }
@media (max-width: 680px) {
  .tl-track .tl-line, .tl-fill { display: none; }
  .tl-points { flex-direction: column; gap: 1.8rem; }
  .tl-pt { text-align: left; display: flex; gap: 1.1rem; align-items: flex-start; padding: 0; position: relative; }
  .tl-dot { margin: 3px 0 0; flex: 0 0 auto; }
  .tl-name { margin: 0.4rem 0 0; }
  /* trait vertical continu reliant les étapes, dans l'axe des cercles */
  .tl-pt:not(:last-child)::before { content: ''; position: absolute; left: 7px;
    top: 20px; bottom: -1.85rem; width: 1px; background: rgba(184,154,110,0.35); }
}

/* ============================== SHARED INVEST ============================= */
/* Récit + avantages + schéma « 3 investisseurs → une villa » (réf. Edenia) */
.shared-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .shared-grid { grid-template-columns: 1fr 1.05fr; } }
.frac-narr { font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.5; color: rgba(237,224,200,0.86);
  margin-bottom: 2rem; max-width: 48ch; }
.frac-adv { list-style: none; }
.frac-adv li { font-size: var(--step--1); letter-spacing: 0.03em; color: rgba(237,224,200,0.8);
  padding: 0.85rem 0; border-bottom: 1px solid rgba(184,154,110,0.15);
  display: flex; align-items: center; gap: 0.9rem; }
.frac-adv li::before { content: ''; width: 6px; height: 6px; background: var(--sand);
  flex-shrink: 0; transform: rotate(45deg); }
.schema { background: var(--ink); border: 1px solid rgba(184,154,110,0.15);
  padding: clamp(1.8rem, 3vw, 2.75rem); }
.schema-row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.schema-investors { display: flex; flex-direction: column; gap: 0.9rem; }
.inv-chip { display: flex; align-items: center; gap: 0.8rem; font-size: 0.72rem;
  letter-spacing: 0.08em; color: rgba(237,224,200,0.72); }
.inv-avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--sand);
  display: grid; place-items: center; font-family: var(--display); font-size: 0.95rem; color: var(--sable); }
.schema-arrow { color: var(--sand); font-size: 1.4rem; flex-shrink: 0; }
.villa-ic { width: 60px; height: 60px; border: 1px solid var(--sand); margin: 0 auto 0.6rem;
  display: grid; place-items: center; color: var(--sable); }
.schema-villa .vn { font-family: var(--display); font-size: 1.15rem; color: var(--linen); text-align: center; }
.schema-villa .vs { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sand); text-align: center; }
.schema-ex { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(184,154,110,0.15); text-align: center; }
.schema-ex .big { font-family: var(--display); font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--sable); }
.schema-ex .small { font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(237,224,200,0.55); margin-top: 0.4rem; }
/* Tableau provisoire (vérification des chiffres — facilement supprimable) */
.tmp-table-block { margin-top: 1.5rem; }
.tmp-note { font-size: 0.68rem; font-style: italic; letter-spacing: 0.06em; color: var(--sand); margin-bottom: 0.5rem; }
.tmp-table-wrap { overflow-x: auto; border: 1px dashed rgba(184,154,110,0.4); }
.tmp-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; min-width: 420px; }
.tmp-table th { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sand); font-weight: 500; text-align: right; padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(184,154,110,0.2); }
.tmp-table th:first-child, .tmp-table td:first-child { text-align: left; }
.tmp-table td { padding: 0.7rem 0.9rem; text-align: right; color: rgba(237,224,200,0.75);
  border-bottom: 1px solid rgba(184,154,110,0.08); }

/* ============================== SIMULATOR ================================= */
.sim-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; margin-top: 0.75rem; align-items: start; }
@media (min-width: 980px) { .sim-grid { grid-template-columns: 0.78fr 1.22fr; } }
.sim-panel { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.sim-field { margin-bottom: 1.5rem; }
.sim-field label { display: flex; justify-content: space-between; font-size: var(--step--1);
  letter-spacing: 0.06em; color: var(--text-soft); margin-bottom: 0.6rem; }
.sim-field label .val { font-family: var(--display); font-size: var(--step-1); color: var(--bark); }
input[type="range"] { width: 100%; accent-color: var(--ocean); height: 30px; }
.sim-assumptions { margin-top: 1rem; border-top: 1px solid var(--line-soft); padding-top: 1.2rem; }
.sim-assumptions h4 { font-family: var(--body); font-weight: 500; font-size: var(--step--1);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); margin-bottom: 0.8rem; }
.sim-assume-slot { font-size: var(--step--1); color: var(--text-soft); font-style: italic; padding: 0.9rem 1rem;
  border: 1px dashed var(--line); border-radius: var(--radius); margin-bottom: 0.6rem; }
.sim-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.sim-result { background: var(--cream); padding: 1.2rem 1.3rem; }
.sim-result .k { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); }
.sim-result .v { font-family: var(--display); font-size: var(--step-2); color: var(--bark); margin-top: 0.3rem; }
.sim-result .v.pending { color: var(--text-soft); font-style: italic; font-size: var(--step-1); }
/* 6 résultats : grille 2 colonnes × 3 rangées, équilibrée */
.sim-result .v.blue { color: #6FA3B0; }
.sim-result .v .pi { font-family: var(--body); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(237,224,200,0.45); margin-top: 0.15rem; }
/* Bouton « ? » + infobulle explicative de chaque KPI (survol et focus clavier) */
.sim-tip { position: relative; display: inline-block; margin-left: 0.35rem; vertical-align: middle; }
.sim-tip button { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(184,154,110,0.55);
  background: none; color: var(--sand); font: 500 10px/1 var(--body); cursor: help; padding: 0;
  letter-spacing: 0; text-transform: none; }
.sim-tipbox { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  width: 240px; max-width: 74vw; padding: 0.75rem 0.9rem; z-index: 30;
  background: #1c1812; border: 1px solid rgba(184,154,110,0.4); border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0,0,0,0.45);
  font-family: var(--body); font-size: 0.74rem; font-weight: 300; line-height: 1.55;
  letter-spacing: 0.01em; text-transform: none; color: rgba(247,242,232,0.9);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease); }
.sim-tip:hover .sim-tipbox, .sim-tip button:focus-visible + .sim-tipbox { opacity: 1; visibility: visible; }
/* la première rangée de KPI ouvre sa bulle vers le bas pour rester visible */
.sim-result:nth-child(-n+2) .sim-tipbox { bottom: auto; top: calc(100% + 9px); }
.sim-assume-slot b { display: block; font-weight: 400; font-style: normal; color: var(--sable);
  margin-top: 0.2rem; }
.sim-pending-banner { background: rgba(58,107,120,0.08); border: 1px solid rgba(58,107,120,0.25);
  border-radius: var(--radius); padding: 1rem 1.2rem; font-size: var(--step--1); color: var(--ocean); margin-bottom: 1.4rem; }
.sim-chart-wrap { margin-top: 1.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.sim-chart-wrap h4 { font-family: var(--body); font-weight: 500; font-size: var(--step--1);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); margin-bottom: 1rem; }
.sim-chart { width: 100%; height: auto; aspect-ratio: 600 / 260; display: block; }
.sim-disclaimer { font-size: var(--step--1); color: var(--text-soft); font-style: italic; margin-top: 1.2rem; }

/* ============================== CONCIERGE ================================= */

/* ============================== EXPERIENCES =============================== */
.exp-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
@media (min-width: 760px) { .exp-grid { grid-template-columns: repeat(3, 1fr); } }
.exp-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  min-height: 130px; display: flex; align-items: flex-end; transition: all 0.4s var(--ease); background: var(--cream); }
.exp-card:hover { background: var(--bark); color: var(--linen); border-color: var(--bark); }
.exp-card h3 { font-size: var(--step-1); color: inherit; }
.exp-card:hover h3 { color: var(--linen); }
/* Cartes avec image fournie par le client */
.exp-card.has-img { padding: 0; min-height: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border: none; border-radius: 18px; }
/* Voile clair désaturé — la couleur se révèle au premier survol (trou circulaire
   à bord doux depuis le point d'entrée, piloté par --r), puis reste. */
.exp-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(247,242,232,0.22);
  -webkit-backdrop-filter: saturate(0.22) brightness(1.12);
  backdrop-filter: saturate(0.22) brightness(1.12);
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    transparent var(--r, 0px), #000 calc(var(--r, 0px) + 140px));
  mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    transparent var(--r, 0px), #000 calc(var(--r, 0px) + 140px));
  transition: opacity 0.8s var(--ease); }
.exp-veil.revealed { opacity: 0; }
.exp-card.has-img h3 { z-index: 2; }
.exp-card.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease); }
.exp-card.has-img:hover img { transform: scale(1.05); }
.exp-card.has-img h3 { position: relative; z-index: 1; width: 100%; margin: 0;
  padding: 2rem 1.3rem 1.1rem; color: var(--linen);
  background: linear-gradient(180deg, transparent, rgba(20,18,16,0.72)); }
.exp-actions { margin-top: 2.5rem; }
.exp-pending { font-size: var(--step--1); color: var(--text-soft); font-style: italic; margin-top: 1rem; }

/* ============================== CONTACT ================================= */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; margin-top: 2rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; } }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: var(--step--1); letter-spacing: 0.06em; color: var(--text-soft); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8em 0.9em; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); font-family: var(--body); font-size: var(--step-0); color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.9rem; font-size: var(--step--1); color: var(--text-soft); }
.check input { margin-top: 0.25em; width: 18px; height: 18px; accent-color: var(--ocean); flex: 0 0 auto; }
.form-note { font-size: var(--step--1); color: var(--text-soft); font-style: italic; margin-top: 1rem; }
.form-success { display: none; background: rgba(122,140,118,0.14); border: 1px solid rgba(122,140,118,0.4);
  border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--sage); margin-top: 1rem; }
.form-success.show { display: block; }

/* ============================== FOOTER ================================= */
.site-footer { background: var(--ink); color: rgba(247,242,232,0.7); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 64px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; }
/* Lien Brochure : même typographie que les autres liens, contraste renforcé */
.footer-brochure { font-family: var(--body); font-weight: 300; font-size: calc(var(--step-0) * 1.05);
  color: rgba(247,242,232,0.92); letter-spacing: 0.01em; padding: 0; text-align: left; }
.footer-brochure:hover { color: var(--linen); }
.footer-col h4 { font-family: var(--body); font-weight: 500; font-size: var(--step--1); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sand); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a:hover { color: var(--linen); }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.footer-social a { width: 42px; height: 42px; border: 1px solid rgba(247,242,232,0.2); border-radius: 50%;
  display: grid; place-items: center; transition: all 0.3s var(--ease); }
.footer-social a:hover { background: var(--linen); color: var(--ink); border-color: var(--linen); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(247,242,232,0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.04em; }

/* ============================== MODALS ================================= */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease); }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,18,16,0.7); backdrop-filter: blur(2px); }
.modal-card { position: relative; background: var(--cream); border-radius: var(--radius); width: min(560px, 100%);
  max-height: 90vh; overflow-y: auto; padding: clamp(1.8rem, 4vw, 2.8rem); transform: translateY(12px);
  transition: transform 0.4s var(--ease); }
.modal.open .modal-card { transform: translateY(0); }
.modal-card h2 { font-size: var(--step-3); color: var(--bark); }
.modal-card .modal-intro { color: var(--text-soft); margin: 0.6rem 0 1.6rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 1.4rem; color: var(--text-soft); }
.modal-note { font-size: 0.72rem; color: var(--text-soft); font-style: italic; margin-top: 1rem;
  padding: 0.6rem 0.8rem; border-left: 2px solid var(--line); }

/* Video modal */
.video-card { width: min(920px, 100%); background: var(--bark); padding: 0; overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16/9; background: #000; display: grid; place-items: center; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { text-align: center; color: rgba(247,242,232,0.8); padding: 2rem; }
.video-placeholder .v-title { font-family: var(--display); font-style: italic; font-size: var(--step-3); color: var(--linen); }
.video-placeholder .v-sub { font-size: var(--step--1); letter-spacing: 0.3em; text-transform: uppercase; color: var(--sand); margin-top: 0.6rem; }
.video-controls { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; }
.video-controls .btn { font-size: 0.72rem; }

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

/* ================= FILIGRANE — logo arbre en arrière-plan ================== */
/* Très grand, ancré sur un côté (moitié hors cadre), alterné gauche/droite.
   --wm-y : dérive verticale douce pilotée par le scroll (GSAP). */
.has-wm { overflow: hidden; }
.has-wm > * { position: relative; z-index: 1; }
.has-wm::before { content: ''; position: absolute; z-index: 0; pointer-events: none;
  background: url('../logos/mangrove-mark.png') no-repeat center / contain;
  width: clamp(900px, 78vw, 1500px); height: clamp(680px, 59vw, 1140px);
  top: 50%; }
#gallery.has-wm::before     { right: 0; transform: translate(50%,  calc(-50% + var(--wm-y, 0px))); filter: invert(1); opacity: 0.05; }
#philosophy.has-wm::before  { left: 0;  transform: translate(-50%, calc(-50% + var(--wm-y, 0px))); opacity: 0.05; }
#amenities.has-wm::before   { display: none; }
.amen-stage::before { content: ''; position: absolute; z-index: 0; pointer-events: none;
  background: url('../logos/mangrove-mark.png') no-repeat center / contain;
  width: clamp(900px, 78vw, 1500px); height: clamp(680px, 59vw, 1140px);
  top: 50%; right: 0; transform: translate(50%, calc(-50% + var(--wm-y, 0px)));
  filter: invert(1); opacity: 0.05; }
.amen-stage { position: relative; }
.amen-stage-inner { position: relative; z-index: 1; }
/* Investissement partagé : position conservée, simplement un peu plus bas */
#investment.has-wm::before  { left: 0; top: 4%; transform: translate(-50%, var(--wm-y, 0px)); filter: invert(1); opacity: 0.06; }
#experiences.has-wm::before { right: 0; top: 16%; transform: translate(50%, var(--wm-y, 0px)); filter: invert(1); opacity: 0.05; }
@media (max-width: 768px) {
  .has-wm::before { width: 150vw; height: 114vw; }
}

/* Boutons et notes lisibles sur les sections sombres */
.section--dark .btn--outline { border-color: rgba(237,224,200,0.35); color: var(--linen); }
.section--dark .btn--outline:hover { border-color: var(--sand); color: var(--sable); }
.section--dark .exp-pending { color: rgba(237,224,200,0.5); }

/* Typologies désactivées (Phase 2) dans le simulateur — mention superposée */
.seg button:disabled { opacity: 0.35; cursor: not-allowed; color: rgba(237,224,200,0.5);
  border-style: dashed; }
.seg button:disabled:hover { border-color: rgba(184,154,110,0.25); color: rgba(237,224,200,0.5); }
.seg-off { position: relative; display: flex; gap: 2px; flex: 2; min-width: 160px; }
.seg-off button { flex: 1; }
/* Mention posée sur le bord supérieur des deux boutons : noms lisibles dessous */
.seg-off-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%,-55%);
  font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  color: var(--sable); background: rgba(20,18,16,0.72); border: 1px solid rgba(184,154,110,0.35);
  padding: 0.3em 0.8em; pointer-events: none; z-index: 1; }

/* GSAP actif : le moteur JS pilote les animations, on neutralise les versions CSS
   (les règles CSS restent le repli si le CDN GSAP ne charge pas). */
.gsap-on .hero-logo, .gsap-on .hero-statement, .gsap-on .hero-desc,
.gsap-on .hero-actions, .gsap-on .hero-scroll { animation: none; }
.gsap-on .reveal { transition: none; }
.gsap-on .tl-fill { transition: none; }
.gsap-on .hero-rotate-word { transition: none; }
.gsap-on .hero-media img { will-change: transform; }
/* Masterplan : sous GSAP, l'épinglage est géré par ScrollTrigger (pin), pas par
   position:sticky — un seul système de scroll, sans concurrence ni saut. */
.gsap-on .masterplan-track { height: auto; }
.gsap-on .masterplan-sticky { position: relative; top: auto; height: 58vh; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-rotate-word { transition: opacity 0.35s linear; }
}

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 400; background: var(--bark); color: var(--cream);
  padding: 0.8em 1.2em; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ====================== SIMULATEUR — ambiance sombre (réf.) ================ */
.section--sim { background: #141210; color: var(--linen); }
.section--sim .section-title { color: var(--linen); }
.section--sim .eyebrow { color: var(--sand); }
.section--sim .sim-panel { background: var(--bark); border-color: rgba(184,154,110,0.15); }
.sim-label { display: block; font-size: var(--step--1); letter-spacing: 0.06em;
  color: rgba(237,224,200,0.6); margin-bottom: 0.7rem; }
.section--sim .sim-field label { color: rgba(237,224,200,0.6); }
.section--sim .sim-field label .val { color: var(--sable); }
.seg { display: flex; gap: 2px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 80px; background: transparent;
  border: 1px solid rgba(184,154,110,0.25); color: rgba(237,224,200,0.6);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.9em 0.5em; transition: all 0.3s var(--ease); min-height: 44px; }
.seg button.active { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.seg button:hover:not(.active) { border-color: var(--sand); color: var(--sable); }
.section--sim input[type="range"] { -webkit-appearance: none; appearance: none;
  height: 2px; background: rgba(184,154,110,0.3); accent-color: var(--sand); }
.section--sim input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%; background: var(--sand);
  border: 2px solid var(--bark); transition: transform 0.2s; }
.section--sim input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.section--sim input[type="range"]::-moz-range-thumb { width: 14px; height: 14px;
  border-radius: 50%; background: var(--sand); border: 2px solid var(--bark); }
.section--sim .sim-assumptions { border-color: rgba(184,154,110,0.2); }
.section--sim .sim-assumptions h4 { color: var(--sand); }
.section--sim .sim-assume-slot { border-color: rgba(184,154,110,0.3); color: rgba(237,224,200,0.5); }
.section--sim .sim-results { background: rgba(184,154,110,0.15); border-color: rgba(184,154,110,0.15); }
.section--sim .sim-result { background: var(--bark); }
.section--sim .sim-result .k { color: rgba(237,224,200,0.5); }
.section--sim .sim-result .v { color: var(--sable); }
.section--sim .sim-result .v.pending { color: rgba(237,224,200,0.45); }
.section--sim .sim-pending-banner { background: rgba(184,154,110,0.08);
  border-color: rgba(184,154,110,0.3); color: var(--sable); }
.section--sim .sim-chart-wrap { background: var(--bark); border-color: rgba(184,154,110,0.15); }
.section--sim .sim-chart-wrap h4 { color: var(--sand); }
.section--sim .sim-disclaimer { color: rgba(237,224,200,0.45); }
.sim-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ====================== CONCIERGERIE — photo + points icônes =============== */
.conc-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .conc-grid { grid-template-columns: 1fr 1.1fr; } }
.conc-visual { aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid rgba(184,154,110,0.3); }
.conc-visual img { width: 100%; height: 100%; object-fit: cover; }
/* Mobile : le visuel empilé au-dessus du texte est retiré */
@media (max-width: 768px) { .conc-visual { display: none; } }
.serv-list { list-style: none; margin-top: 1.8rem; }
.serv-list li { padding: 1rem 0; border-bottom: 1px solid rgba(20,18,16,0.1);
  display: flex; gap: 1.2rem; align-items: center; }
.serv-ic { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--sand); border: 1px solid rgba(184,154,110,0.3); }
.serv-name { font-family: var(--display); font-size: var(--step-1); color: var(--bark); }

/* ====================== CONTACT — encadré récapitulatif ==================== */
.contact-side { background: #141210; color: var(--linen); padding: clamp(2rem, 4vw, 3rem); }
.contact-side h4 { font-family: var(--display); font-size: var(--step-2); font-weight: 400;
  color: var(--linen); margin-bottom: 0.5rem; }
.contact-side > p { font-size: var(--step--1); color: rgba(237,224,200,0.6);
  line-height: 1.7; margin-bottom: 1.5rem; }
.contact-side-btn { width: 100%; margin-bottom: 1.8rem; }
.direct { list-style: none; margin-bottom: 1.5rem; }
.direct li { padding: 0.8rem 0; border-bottom: 1px solid rgba(184,154,110,0.15);
  font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(237,224,200,0.8);
  display: flex; justify-content: space-between; gap: 1rem; }
.direct li span:first-child { color: var(--sand); text-transform: uppercase;
  font-size: 0.6rem; letter-spacing: 0.2em; padding-top: 0.2em; }
.gps { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); }

/* ====================== APPEL À L'ACTION FINAL ============================= */
.final-cta { background: var(--bark); color: var(--linen); text-align: center; }
.final-quote { font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.5; color: rgba(237,224,200,0.85);
  max-width: 760px; margin: 0 auto; }
.final-sign { font-family: var(--display); font-weight: 300;
  font-size: clamp(3rem, 7.5vw, 5.6rem); color: var(--sable);
  margin: 1.8rem 0 2.4rem; line-height: 1; }
.final-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ====================== CURSEUR PERSONNALISÉ (réf.) ======================== */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, select, textarea, label { cursor: none; }
  .cursor { display: block; position: fixed; top: 0; left: 0; width: 8px; height: 8px;
    background: var(--sand); border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%); transition: transform 0.2s; }
  .cursor-ring { display: block; position: fixed; top: 0; left: 0; width: 34px; height: 34px;
    border: 1px solid rgba(184,154,110,0.3); border-radius: 50%; pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%); transition: transform 0.3s; }
  .cursor.grow { transform: translate(-50%,-50%) scale(0.4); }
  .cursor-ring.grow { transform: translate(-50%,-50%) scale(1.6); border-color: var(--sand); }
  /* La carte Leaflet impose ses propres curseurs (grab/pointer) : on les masque
     pour ne garder que le curseur personnalisé. */
  .leaflet-container, .leaflet-grab, .leaflet-interactive, .leaflet-bar a,
  .leaflet-dragging .leaflet-grab { cursor: none; }
}

/* Services : moitié moins de marron vide avant la galerie */
#amenities.section { padding-top: clamp(2rem, 4vw, 4rem); }
