/* ============================================================
   THE CIRCLE SAMUI — D4 "Apple tropical" (Opus)
   Système : Hanken Grotesk seul, graisses contrastées (300 / 600)
   Fond blanc pur, encre #111418, accent lagon #0E5E55 unique.
   La photo est la seule source de couleur.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #111418;
  --ink-soft: #3a4046;
  --ink-mute: #6b7178;
  --line: #e7e9eb;
  --line-soft: #f1f2f3;
  --paper: #ffffff;
  --paper-2: #f7f8f8;
  --paper-3: #fafbfb;
  --lagon: #0e5e55;
  --lagon-deep: #0a4842;
  --lagon-soft: #e6efed;
  --danger: #9a3a2e;

  --maxw: 1320px;
  --gut: clamp(20px, 5vw, 88px);

  --fs-display: clamp(2.6rem, 8.2vw, 7.4rem);
  --fs-h2: clamp(1.9rem, 4.4vw, 3.6rem);
  --fs-h3: clamp(1.35rem, 2.4vw, 1.9rem);
  --fs-lead: clamp(1.05rem, 1.7vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--lagon);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 11vw, 150px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow--mute { color: var(--ink-mute); }

h1, h2, h3 { line-height: 1.04; letter-spacing: -0.02em; font-weight: 300; }
.display { font-size: var(--fs-display); font-weight: 300; line-height: 0.96; letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-h2); font-weight: 300; }
.h3 { font-size: var(--fs-h3); font-weight: 400; letter-spacing: -0.015em; }
.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; color: var(--ink-soft); }

/* CTA texte + flèche — pas de bouton pill */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  color: var(--lagon);
  position: relative;
  padding-block: 4px;
}
.cta .arrow { transition: transform 0.4s var(--ease-out); }
.cta:hover .arrow, .cta:focus-visible .arrow { transform: translateX(6px); }
.cta::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.cta:hover::after, .cta:focus-visible::after { transform: scaleX(1); }
.cta--ink { color: var(--ink); }

/* Rectangle fin uppercase espacé (CTA primaire) */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  border: 1px solid currentColor;
  color: var(--ink);
  padding: 16px 30px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn-line:hover, .btn-line:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-line--lagon { color: var(--lagon); }
.btn-line--lagon:hover, .btn-line--lagon:focus-visible { background: var(--lagon); color: #fff; border-color: var(--lagon); }
.btn-line--invert { color: #fff; }
.btn-line--invert:hover, .btn-line--invert:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }

/* Solid fill (form submit) */
.btn-fill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  background: var(--lagon); color: #fff;
  padding: 16px 28px;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.4s var(--ease);
}
.btn-fill:hover, .btn-fill:focus-visible { background: var(--lagon-deep); }
.btn-fill--block { width: 100%; }

/* ---------- Reveal (scroll storytelling — enhancement only) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* Hero overlay header (transparent over dark hero) */
.site-header.is-over {
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header.is-over .brand, .site-header.is-over .nav a,
.site-header.is-over .h-tools button, .site-header.is-over .menu-toggle,
.site-header.is-over .h-phone { color: #fff; }
.site-header.is-over .pipe { background: rgba(255,255,255,0.4); }
.site-header.is-over .cur-select { color: #fff; border-color: rgba(255,255,255,0.4); }
.site-header.is-over .cur-wrap::after { color: rgba(255,255,255,0.8); }
.site-header.is-over .switch .sep { color: rgba(255,255,255,0.4); }

.header-row {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand > span { white-space: nowrap; }
@media (max-width: 400px) {
  .brand { font-size: 0.92rem; gap: 8px; }
  .brand .mark { width: 22px; height: 22px; }
}
.brand .mark {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative; flex: none;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 5px;
  border-radius: 50%; border: 1px solid currentColor; opacity: 0.55;
}
.brand b { font-weight: 600; }
.brand span { font-weight: 300; }

.nav { display: none; }
@media (min-width: 940px) {
  .nav { display: flex; align-items: center; gap: 34px; }
  .nav a {
    font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
    position: relative; padding-block: 6px;
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease-out);
  }
  .nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
  .nav a[aria-current] { color: var(--ink); }
}

.h-tools { display: flex; align-items: center; gap: 14px; }
.h-tools .pipe { width: 1px; height: 18px; background: var(--line); }
.h-phone { display: none; }
@media (min-width: 940px) {
  .h-phone {
    display: inline-flex; align-items: center;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
    color: var(--ink); transition: color 0.3s;
  }
  .h-phone:hover { color: var(--lagon); }
}
.switch { display: inline-flex; align-items: center; gap: 6px; }
.switch button {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-mute); padding: 4px 2px; transition: color 0.3s;
}
.switch button[aria-pressed="true"] { color: var(--ink); }
.switch .sep { color: var(--line); font-size: 0.7rem; }
.cur-select {
  position: relative;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 6px 26px 6px 10px;
  background: transparent;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
}
.cur-wrap { position: relative; display: inline-flex; }
.cur-wrap::after {
  content: "▾"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-size: 0.6rem; color: var(--ink-mute); pointer-events: none;
}

.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 30px; padding: 6px 0;
}
.menu-toggle span { height: 1.5px; width: 100%; background: currentColor; transition: transform 0.4s var(--ease), opacity 0.3s; }
@media (min-width: 940px) { .menu-toggle { display: none; } }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--paper);
  padding: 36px var(--gut) 48px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a {
  font-size: 1.7rem; font-weight: 300; letter-spacing: -0.02em;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .m-foot { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--ink-mute); font-size: 0.9rem; }
@media (min-width: 940px) { .mobile-nav { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header-h));
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  /* cinématique : désaturé, contraste léger */
  filter: saturate(0.92) contrast(1.04) brightness(0.92);
  transform: scale(1);
}
/* Ken Burns : départ recadré 106 %, retour lent vers 100 % une fois la page chargée */
.js .hero__media img { transform: scale(1.06); transition: transform 7s var(--ease-out); }
.js .hero.is-loaded .hero__media img { transform: scale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,14,0.42) 0%, rgba(8,12,14,0.05) 32%, rgba(8,12,14,0.10) 60%, rgba(8,12,14,0.74) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 8vw, 96px);
  padding-top: calc(var(--header-h) + 24px);
}
.hero .eyebrow { color: rgba(255,255,255,0.82); }
.hero__title {
  max-width: 16ch;
  margin-top: 18px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}
.hero__sub {
  margin-top: 22px; max-width: 46ch;
  font-size: var(--fs-lead); font-weight: 300; line-height: 1.5;
  color: rgba(255,255,255,0.9);
}
.hero__cta { margin-top: 34px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: var(--gut); bottom: clamp(48px, 8vw, 96px);
  z-index: 2;
  display: none;
  writing-mode: vertical-rl;
  font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
@media (min-width: 940px) { .hero__scroll { display: inline-flex; align-items: center; gap: 14px; } }
.hero__scroll .ln { width: 1px; height: 54px; background: rgba(255,255,255,0.45); display: block; }
.js .hero__scroll .ln { animation: dropline 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes dropline { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   CATALOGUE ENTRIES (Acheter / Conciergerie / Louer)
   ============================================================ */
.entries { border-top: 1px solid var(--line); }
.entries__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .entries__grid { grid-template-columns: repeat(3, 1fr); } }
.entry {
  display: block; padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: background 0.5s var(--ease);
}
@media (min-width: 760px) { .entry { border-bottom: none; border-right: 1px solid var(--line); } .entry:last-child { border-right: none; } }
.entry:hover { background: var(--paper-2); }
.entry__num { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; color: var(--ink-mute); }
.entry__title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 300; letter-spacing: -0.02em; margin-top: 18px; }
.entry__desc { margin-top: 12px; color: var(--ink-mute); font-size: 0.96rem; max-width: 32ch; }
.entry__go { margin-top: 26px; }
.entry .arrow { transition: transform 0.4s var(--ease-out); display: inline-block; }
.entry:hover .arrow { transform: translateX(6px); }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head__l { max-width: 56ch; }
.sec-head h2 { margin-top: 14px; }
.sec-head .lead { margin-top: 18px; }

/* ============================================================
   FEATURED VILLAS
   ============================================================ */
.villas-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 720px) { .villas-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1080px) { .villas-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.vcard { display: flex; flex-direction: column; background: var(--paper); }
.vcard--feature { grid-column: 1 / -1; }
@media (min-width: 1080px) {
  .vcard--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border: 1px solid var(--line); }
}

.vcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.vcard--feature .vcard__media { aspect-ratio: 16 / 11; }
@media (min-width: 1080px) { .vcard--feature .vcard__media { aspect-ratio: auto; height: 100%; min-height: 440px; } }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.vcard:hover .vcard__media img, a.vcard:hover .vcard__media img { transform: scale(1.045); }

.badges { position: absolute; top: 16px; left: 16px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 2; }
.badge {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 11px; background: rgba(255,255,255,0.95); color: var(--ink);
}
.badge--heart { background: var(--ink); color: #fff; }
.badge--fast { background: var(--danger); color: #fff; }
.badge--status { background: rgba(17,20,24,0.82); color: #fff; }

/* tenure chip bottom-left over photo */
.tenure {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 7px 12px;
  background: rgba(255,255,255,0.95); color: var(--ink);
}
.tenure .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); }
.tenure--lease .dot { background: var(--ink-mute); }

.vcard__body { padding: 22px 4px 8px; display: flex; flex-direction: column; }
.vcard--feature .vcard__body { padding: clamp(28px, 3vw, 44px); justify-content: center; }
.vcard__loc { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.vcard__name { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 300; letter-spacing: -0.02em; margin-top: 8px; }
.vcard--feature .vcard__name { font-size: clamp(1.9rem, 3vw, 2.9rem); }
.vcard__specs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); font-size: 0.92rem; }
.vcard__specs li { display: inline-flex; align-items: center; gap: 7px; }
.vcard__specs .ic { color: var(--ink-mute); font-weight: 600; }
.vcard--feature .feat-lead { margin-top: 18px; color: var(--ink-soft); font-weight: 300; max-width: 48ch; }

.vcard__foot { margin-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.vcard__price .amount { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
.vcard__price .was { display: block; font-size: 0.82rem; color: var(--ink-mute); text-decoration: line-through; margin-bottom: 2px; }
.vcard__price .yield { display: block; font-size: 0.8rem; color: var(--ink-mute); font-weight: 600; margin-top: 3px; }
.vcard__foot .cta { white-space: nowrap; }

/* ============================================================
   CERCLE — off-market gated (signature)
   ============================================================ */
.cercle {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
}
.cercle__bg { position: absolute; inset: 0; z-index: 0; }
.cercle__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; filter: saturate(0.9) brightness(0.8); }
.cercle__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 30%, rgba(14,94,85,0.32), transparent 60%); }
.cercle__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 940px) { .cercle__inner { grid-template-columns: 1.05fr 0.95fr; } }

/* concentric circles motif (discret) */
.cercle__rings { position: relative; aspect-ratio: 1; max-width: 360px; margin-inline: auto; display: none; }
@media (min-width: 940px) { .cercle__rings { display: block; } }
.cercle__rings span { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.16); border-radius: 50%; }
.cercle__rings span:nth-child(2) { inset: 14%; border-color: rgba(255,255,255,0.2); }
.cercle__rings span:nth-child(3) { inset: 30%; border-color: rgba(255,255,255,0.26); }
.cercle__rings span:nth-child(4) { inset: 46%; border-color: rgba(14,94,85,0.7); }
.cercle__rings .core {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.85);
  border: none;
}
.js .cercle__rings span:nth-child(-n+4) { animation: ringpulse 6s var(--ease) infinite; }
.js .cercle__rings span:nth-child(2) { animation-delay: 0.4s; }
.js .cercle__rings span:nth-child(3) { animation-delay: 0.8s; }
.js .cercle__rings span:nth-child(4) { animation-delay: 1.2s; }
@keyframes ringpulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.025); opacity: 0.8; } }

.cercle .eyebrow { color: var(--lagon-soft); }
.cercle h2 { margin-top: 16px; }
.cercle__lead { margin-top: 20px; color: rgba(255,255,255,0.82); font-weight: 300; font-size: var(--fs-lead); max-width: 44ch; }
.cercle__form { margin-top: 32px; }
.gate {
  display: flex; gap: 0; border-bottom: 1.5px solid rgba(255,255,255,0.4);
  max-width: 460px; transition: border-color 0.4s var(--ease);
}
.gate:focus-within { border-color: #fff; }
.gate input {
  flex: 1; background: transparent; border: none; color: #fff;
  font-size: 1.1rem; font-weight: 300; padding: 14px 2px;
}
.gate input::placeholder { color: rgba(255,255,255,0.5); }
.gate input:focus-visible { outline: none; }
.gate button {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0 4px; color: #fff; white-space: nowrap;
}
.gate button .arrow { transition: transform 0.4s var(--ease-out); }
.gate button:hover .arrow { transform: translateX(5px); }
.cercle__note { margin-top: 16px; font-size: 0.84rem; color: rgba(255,255,255,0.6); }
.cercle__perks { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.cercle__perks li { font-size: 0.86rem; color: rgba(255,255,255,0.78); display: inline-flex; align-items: center; gap: 9px; }
.cercle__perks .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lagon); }
.gate-ok { margin-top: 14px; font-size: 0.92rem; color: var(--lagon-soft); display: none; }
.gate-ok.show { display: block; }
.gate-err { margin-top: 12px; font-size: 0.88rem; color: #f0b8ab; display: none; }
.gate-err.show { display: block; }

/* ============================================================
   CONCIERGERIE
   ============================================================ */
.concierge { background: var(--paper-2); }
.concierge__grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 940px) { .concierge__grid { grid-template-columns: 0.95fr 1.05fr; } }
.concierge__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; order: -1; }
@media (min-width: 940px) { .concierge__media { order: 1; aspect-ratio: 4 / 5; } }
.concierge__media img { width: 100%; height: 100%; object-fit: cover; }
.concierge h2 { margin-top: 16px; }
.concierge__lead { margin-top: 20px; }
.concierge__list { margin-top: 26px; display: grid; gap: 2px; }
.concierge__list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.concierge__list .k { font-weight: 600; font-size: 1rem; min-width: 0; flex: 1; }
.concierge__list .v { color: var(--ink-mute); font-size: 0.92rem; text-align: right; flex: none; }
.concierge__cta { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ============================================================
   KPI — specs produit (compteurs)
   ============================================================ */
.kpi { background: var(--ink); color: #fff; }
.kpi__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
@media (min-width: 860px) { .kpi__grid { grid-template-columns: repeat(4, 1fr); } }
.kpi__item { padding: clamp(28px, 4vw, 48px) clamp(18px, 2.5vw, 36px); border-top: 1px solid rgba(255,255,255,0.12); border-left: 1px solid rgba(255,255,255,0.12); }
.kpi__item:nth-child(odd) { border-left: none; }
@media (min-width: 860px) { .kpi__item { border-top: none; } .kpi__item:nth-child(odd) { border-left: 1px solid rgba(255,255,255,0.12); } .kpi__item:first-child { border-left: none; } }
.kpi__num { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; display: flex; align-items: baseline; }
.kpi__num .suf { font-size: 0.45em; font-weight: 600; margin-left: 4px; color: var(--lagon-soft); letter-spacing: 0; }
.kpi__label { margin-top: 14px; font-size: 0.9rem; color: rgba(255,255,255,0.66); max-width: 22ch; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 820px) { .testi__grid { grid-template-columns: repeat(3, 1fr); } }
.testi__card { display: flex; flex-direction: column; padding-top: 28px; border-top: 1px solid var(--ink); }
.testi__stars { color: var(--ink); letter-spacing: 0.12em; font-size: 0.9rem; }
.testi__quote { margin-top: 18px; font-size: 1.08rem; font-weight: 300; line-height: 1.55; color: var(--ink); flex: 1; }
.testi__by { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.testi__who b { display: block; font-weight: 600; font-size: 0.96rem; }
.testi__who span { font-size: 0.84rem; color: var(--ink-mute); }
.testi__src { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }

/* ============================================================
   BLOG TEASER
   ============================================================ */
.blog__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
.post { display: flex; flex-direction: column; }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.post:hover .post__media img { transform: scale(1.04); }
.post__meta { margin-top: 20px; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.post__title { margin-top: 12px; font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 300; letter-spacing: -0.02em; max-width: 28ch; }
.post__go { margin-top: 18px; }
.post__soon { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) 40px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand .brand { font-size: 1.2rem; }
.footer__tag { margin-top: 18px; color: var(--ink-soft); font-weight: 300; max-width: 34ch; }
.footer__col h4 { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 12px; }
.footer__col a { transition: color 0.3s; }
.footer__col a:hover { color: var(--lagon); }
.footer__col .muted { color: var(--ink-mute); }
.footer__bar { margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__bar .legal { font-size: 0.82rem; color: var(--ink-mute); }
.footer__tools { display: flex; align-items: center; gap: 16px; }

/* ============================================================
   WHATSAPP FLOAT (unique)
   ============================================================ */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 70;
  display: inline-flex; align-items: center; gap: 0;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0;
  box-shadow: 0 8px 30px rgba(8,20,18,0.16);
  overflow: hidden;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.wa-float .ico { width: 54px; height: 54px; display: grid; place-items: center; flex: none; color: var(--lagon); }
.wa-float .ico svg { width: 26px; height: 26px; }
.wa-float .txt { font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em; padding-right: 0; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.45s var(--ease), opacity 0.35s var(--ease), padding 0.45s var(--ease); }
@media (min-width: 760px) {
  .wa-float:hover { background: var(--lagon); color: #fff; }
  .wa-float:hover .ico { color: #fff; }
  .wa-float:hover .txt { max-width: 180px; opacity: 1; padding-right: 22px; }
}

/* ============================================================
   ===============   VILLA PAGE (villa.html)   ================
   ============================================================ */
.villa-top { padding-top: clamp(28px, 4vw, 56px); }
.crumbs { font-size: 0.84rem; color: var(--ink-mute); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumbs a:hover { color: var(--lagon); }
.crumbs .sep { color: var(--line); }
.villa-head { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; }
.villa-head__l { max-width: 60ch; }
.villa-head__loc { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.villa-head h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 300; letter-spacing: -0.035em; margin-top: 14px; }
.villa-head__chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 13px; border: 1px solid var(--line);
}
.chip--tenure { background: var(--lagon); color: #fff; border-color: var(--lagon); }
.chip--heart { background: var(--ink); color: #fff; border-color: var(--ink); }
.villa-head__price { text-align: right; }
.villa-head__price .amount { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; display: block; }
.villa-head__price .cur-conv { margin-top: 8px; }

/* gallery */
.gallery { margin-top: clamp(28px, 4vw, 48px); }
.gallery__grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    aspect-ratio: 16 / 8;
  }
  .gallery__cell { overflow: hidden; }
  .gallery__cell:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .gallery__cell:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
  .gallery__cell:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
  .gallery__cell:nth-child(4) { grid-column: 3 / 4; grid-row: 2 / 3; }
  .gallery__cell:nth-child(5) { grid-column: 4 / 5; grid-row: 2 / 3; }
}
.gallery__cell { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--paper-2); }
@media (min-width: 760px) { .gallery__cell { aspect-ratio: auto; } }
.gallery__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.gallery__cell:hover img { transform: scale(1.045); }
.gallery__more {
  position: absolute; inset: auto 14px 14px auto; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(17,20,24,0.92); color: #fff;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 11px 16px;
}
.gallery__more:hover { background: var(--lagon); }
/* mobile swipe row */
.gallery__swipe { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery__swipe::-webkit-scrollbar { display: none; }
.gallery__swipe .gallery__cell { flex: 0 0 86%; scroll-snap-align: start; aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .gallery__swipe { display: none; } }
.gallery__grid.is-desktop { display: none; }
@media (min-width: 760px) { .gallery__grid.is-desktop { display: grid; } }
.gallery__more-mobile { margin-top: 14px; width: 100%; justify-content: center; }
@media (min-width: 760px) { .gallery__more-mobile { display: none; } }

/* villa main layout */
.villa-main { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 72px); margin-top: clamp(48px, 6vw, 88px); }
@media (min-width: 1000px) { .villa-main { grid-template-columns: 1fr 380px; gap: clamp(48px, 5vw, 80px); align-items: start; } }

/* story */
.story h2 { margin-top: 14px; }
.story__body { margin-top: 22px; }
.story__body p { margin-bottom: 18px; color: var(--ink-soft); font-weight: 300; font-size: 1.08rem; line-height: 1.62; max-width: 60ch; }
.story__body p.persona { color: var(--ink); font-style: italic; border-left: 2px solid var(--lagon); padding-left: 20px; }

/* specs grid */
.specs { margin-top: clamp(40px, 5vw, 64px); }
.specs__title { margin-top: 12px; }
.specs__grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 620px) { .specs__grid { grid-template-columns: repeat(3, 1fr); } }
.spec { background: var(--paper); padding: 22px 20px; }
.spec__k { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.spec__v { margin-top: 10px; font-size: 1.32rem; font-weight: 300; letter-spacing: -0.02em; }
.spec__v small { font-size: 0.8rem; color: var(--ink-mute); font-weight: 500; }

/* sidebar */
.villa-aside { position: relative; }
@media (min-width: 1000px) { .villa-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.ask {
  border: 1px solid var(--line); padding: clamp(24px, 3vw, 32px);
  background: var(--paper);
}
.ask h3 { font-size: 1.4rem; font-weight: 300; letter-spacing: -0.02em; }
.ask__price { margin-top: 8px; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.ask__yield { margin-top: 4px; font-size: 0.88rem; color: var(--ink-mute); font-weight: 600; }
.ask__wa { margin-top: 22px; }
.wa-context {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; background: var(--lagon); color: #fff;
  padding: 16px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  transition: background 0.4s var(--ease);
}
.wa-context:hover { background: var(--lagon-deep); }
.wa-context svg { width: 20px; height: 20px; }
.ask__or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-mute); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; }
.ask__or::before, .ask__or::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* form */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line);
  padding: 13px 14px; font-size: 1rem; transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lagon); }
.field textarea { resize: vertical; min-height: 92px; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field__err { display: none; margin-top: 7px; font-size: 0.8rem; color: var(--danger); }
.field.invalid .field__err { display: block; }
.form-ok { display: none; margin-top: 16px; padding: 14px; background: var(--lagon-soft); color: var(--lagon-deep); font-size: 0.92rem; font-weight: 500; }
.form-ok.show { display: block; }

/* booking + simulator */
.villa-extra { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 880px) { .villa-extra { grid-template-columns: 1fr 1fr; } }
.panel { border: 1px solid var(--line); padding: clamp(26px, 3vw, 40px); }
.panel h3 { font-size: var(--fs-h3); font-weight: 300; letter-spacing: -0.02em; }
.panel .eyebrow { margin-bottom: 14px; display: block; }

/* calendar */
.cal { margin-top: 24px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal__head .mo { font-weight: 600; font-size: 1.02rem; }
.cal__nav { display: flex; gap: 8px; }
.cal__arrow { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-mute); font-size: 0.8rem; transition: border-color 0.3s, color 0.3s; }
.cal__arrow:not(:disabled):hover { border-color: var(--lagon); color: var(--lagon); }
.cal__arrow:disabled { opacity: 0.4; cursor: not-allowed; }
.cal__dow, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow span { text-align: center; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); padding-bottom: 8px; }
.cal__days button, .cal__days span {
  aspect-ratio: 1; display: grid; place-items: center; font-size: 0.86rem;
  border: 1px solid transparent;
}
.cal__days .d { color: var(--ink); border-color: var(--line-soft); transition: border-color 0.3s, background 0.3s, color 0.3s; }
.cal__days .d:hover, .cal__days .d:focus-visible { border-color: var(--lagon); color: var(--lagon); }
.cal__days .d.sel { background: var(--lagon); color: #fff; border-color: var(--lagon); }
.cal__days .muted { color: var(--line); }
.cal__hint { margin-top: 16px; font-size: 0.84rem; color: var(--ink-mute); }
.cal__cta { margin-top: 20px; }

/* simulator teaser */
.sim__gauge { margin-top: 24px; }
.sim__big { display: flex; align-items: baseline; gap: 10px; }
.sim__big .pct { font-size: clamp(3rem, 8vw, 5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--lagon); }
.sim__big .pct__sign { font-size: 0.5em; }
.sim__big .lbl { font-size: 0.9rem; color: var(--ink-mute); }
.sim__note { margin-top: 18px; }
.sim__bar { margin-top: 22px; height: 6px; background: var(--line); position: relative; overflow: hidden; }
.sim__bar i { position: absolute; inset: 0 28% 0 0; background: var(--lagon); transform-origin: left; }
.js .sim__bar i { transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
.js .sim__bar.is-in i { transform: scaleX(1); }
.sim__rows { margin-top: 24px; display: grid; gap: 1px; }
.sim__rows li { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.sim__rows .k { color: var(--ink-mute); }
.sim__rows .v { font-weight: 600; }
.sim__cta { margin-top: 24px; }

/* similar villas */
.similar { margin-top: clamp(56px, 7vw, 96px); }
.similar__grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 720px) { .similar__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   MODAL (gallery gate)
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(10,14,16,0.72); }
.js .modal__scrim { opacity: 0; transition: opacity 0.4s var(--ease); }
.js .modal.is-open .modal__scrim { opacity: 1; }
.modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%);
  width: min(520px, calc(100vw - 32px));
  background: var(--paper); padding: clamp(28px, 4vw, 44px);
}
.js .modal__panel { opacity: 0; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease-out); }
.js .modal.is-open .modal__panel { opacity: 1; transform: translate(-50%, -50%); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink-mute); font-size: 1.1rem; }
.modal__close:hover { color: var(--ink); }
.modal h3 { margin-top: 12px; font-size: 1.7rem; font-weight: 300; letter-spacing: -0.02em; }
.modal p { margin-top: 14px; color: var(--ink-soft); font-weight: 300; }
.modal__form { margin-top: 24px; }
.modal__alt { margin-top: 18px; text-align: center; }
.modal__alt a { display: inline-flex; align-items: center; gap: 9px; color: var(--lagon); font-weight: 600; font-size: 0.9rem; }

/* utility */
.center { text-align: center; }
.mt-cta { margin-top: clamp(36px, 5vw, 56px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ≤480px : le header ne garde que marque + langue + burger (devise et séparateurs masqués) */
@media (max-width: 480px) {
  .header-row { gap: 12px; }
  .h-tools { gap: 10px; }
  .h-tools .pipe { display: none; }
  .cur-wrap { display: none; }
}
