/* ==========================================================================
   The Circle Samui — Direction D3 « Collections du Cercle »
   Galerie chaleureuse · Cormorant Garamond + Inter · Palette « Bois & Océan »
   ========================================================================== */

:root {
  --sand: #F6F3EE;
  --sand-2: #EFE9DF;
  --sand-3: #E7DECF;
  --ink: #232323;
  --ink-60: #6B6358;
  --ink-30: #B5AC9E;
  --ocean: #3E6F7E;
  --ocean-deep: #2C4A55;
  --palm: #5C6B53;
  --gold: #B08A4F;
  --gold-30: rgba(176, 138, 79, 0.35);
  --gold-15: rgba(176, 138, 79, 0.16);
  --line: #DFD7C8;
  --line-dark: rgba(246, 243, 238, 0.18);
  --error: #9C4A2F;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --pad: clamp(20px, 4vw, 52px);
  --section: clamp(76px, 10vw, 148px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 400; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
}

p { margin: 0 0 1em; }

a {
  color: var(--ocean);
  text-decoration: none;
}

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

.wrap {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--sand);
  padding: 10px 18px;
  font-size: 13px;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

/* ---------- Motif circulaire (signature, discret) ---------- */

.ring-mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 1px;
  flex: none;
}

.ring-deco {
  position: absolute;
  border: 1px solid var(--gold-30);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Labels & CTA ---------- */

.label {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 0 0 18px;
}

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--sand);
}

.btn--ocean {
  border-color: var(--ocean);
  background: var(--ocean);
  color: var(--sand);
}

.btn--ocean:hover {
  background: var(--ocean-deep);
  border-color: var(--ocean-deep);
}

.btn--ghost-light {
  border-color: var(--gold);
  color: var(--sand);
}

.btn--ghost-light:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Variante fond sombre hors Cercle (l'or reste réservé à la signature) */
.btn--ghost-sand {
  border-color: rgba(246, 243, 238, 0.6);
  color: var(--sand);
}

.btn--ghost-sand:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean);
}

.cta .arrow {
  transition: transform 0.25s ease;
  font-family: var(--font-body);
}

.cta:hover .arrow { transform: translateX(6px); }

.cta--quiet { color: var(--ink-60); }
.cta--quiet:hover { color: var(--ocean); }

.cta--light { color: var(--sand); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand-ring {
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  flex: none;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ocean);
  border-bottom-color: var(--ocean);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-phone {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-phone:hover { color: var(--ocean); }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.switch .on { color: var(--ink); }
.switch .off { color: var(--ink-30); }
.switch .sep { color: var(--line); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 920px) {
  /* Le panneau coulissant n'existe que si app.js a posé html.js :
     sans JS, la nav reste statique et accessible sous la marque. */
  html.js .burger { display: flex; }

  .header-tools .switch,
  .header-phone { display: none; }

  html.js .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    padding: 18px var(--pad) 34px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 49;
  }

  html:not(.js) .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding-block: 16px;
  }

  html:not(.js) .site-nav {
    width: 100%;
    order: 3;
  }

  body.nav-open .site-nav { transform: translateY(0); }

  body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-nav li { width: 100%; }

  .site-nav a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .site-nav .nav-switch {
    display: flex;
    padding-top: 18px;
  }
}

@media (min-width: 921px) {
  .site-nav .nav-switch { display: none; }
}

/* ---------- Hero (asymétrique : bloc typo + photo décalée) ---------- */

.hero {
  position: relative;
  overflow: visible;
  padding-top: clamp(36px, 6vw, 84px);
}

.hero .ring-deco {
  width: clamp(220px, 30vw, 430px);
  height: clamp(220px, 30vw, 430px);
  top: -60px;
  left: 34%;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(36px, 5vw, 76px);
}

.hero-copy { max-width: 560px; }

.hero-copy h1 { margin-bottom: 28px; }

.hero-sub {
  font-size: 16px;
  color: var(--ink-60);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-foot {
  margin-top: 42px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-30);
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-media figcaption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.hero-inset {
  display: none;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 44fr 56fr;
    align-items: start;
  }

  .hero-copy {
    margin-top: clamp(24px, 7vw, 110px);
  }

  .hero-media > .hero-inset {
    display: block;
    position: absolute;
    left: -9%;
    bottom: -64px;
    width: 34%;
    border: 8px solid var(--sand);
  }

  .hero-inset img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .hero { padding-bottom: 72px; }
}

/* ---------- Sections génériques ---------- */

.section { padding-block: var(--section); }

.section--flush-top { padding-top: 0; }

.section-head { margin-bottom: clamp(40px, 5vw, 72px); }

.section-head h2 { max-width: 18ch; }

.section-head .lede {
  color: var(--ink-60);
  max-width: 56ch;
  margin-top: 14px;
}

/* ---------- Entrée catalogue : trois portes ---------- */

.entry { padding-top: clamp(96px, 12vw, 180px); }

.entry-grid {
  display: grid;
  gap: clamp(40px, 5vw, 48px);
}

.tile {
  display: block;
  color: var(--ink);
}

.tile-media {
  overflow: hidden;
  margin-bottom: 22px;
}

.tile-media img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile:hover .tile-media img { transform: scale(1.035); }

.tile:nth-child(1) .tile-media img { aspect-ratio: 3 / 4; }
.tile:nth-child(2) .tile-media img { aspect-ratio: 4 / 5; }
.tile:nth-child(3) .tile-media img { aspect-ratio: 3 / 4; }

.tile-num {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-30);
  margin-bottom: 8px;
}

.tile h3 { margin-bottom: 10px; }

.tile p {
  font-size: 14px;
  color: var(--ink-60);
  max-width: 38ch;
  margin-bottom: 16px;
}

.tile .cta { pointer-events: none; }

.tile:hover .cta .arrow { transform: translateX(6px); }

@media (min-width: 880px) {
  .entry-grid { grid-template-columns: 5fr 4fr 3fr; }
  .entry-grid .tile:nth-child(2) { margin-top: 76px; }
  .entry-grid .tile:nth-child(3) { margin-top: 148px; }
}

/* ---------- Collections : index façon cimaise ---------- */

.collection-index {
  list-style: none;
  margin: 0 0 clamp(56px, 7vw, 96px);
  padding: 0;
}

.collection-index li {
  border-top: 1px solid var(--line);
}

.collection-index li:last-child { border-bottom: 1px solid var(--line); }

.ci-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "num name" "num desc" "num count";
  column-gap: 22px;
  row-gap: 2px;
  align-items: baseline;
  padding-block: 24px;
}

a.ci-row { color: var(--ink); }

a.ci-row .ci-name { transition: color 0.2s ease; }

a.ci-row:hover .ci-name { color: var(--ocean); }

.ci-count .arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.25s ease;
}

a.ci-row:hover .ci-count .arrow { transform: translateX(6px); }

.ci-num {
  grid-area: num;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-30);
  align-self: start;
  padding-top: 10px;
}

.ci-name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 300;
  line-height: 1.15;
}

.ci-desc {
  grid-area: desc;
  font-size: 13px;
  color: var(--ink-60);
}

.ci-count {
  grid-area: count;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding-top: 8px;
}

.ci-count .cta { font-size: 11px; }

@media (min-width: 880px) {
  .ci-row {
    grid-template-columns: 60px minmax(280px, 1fr) 1fr auto;
    grid-template-areas: "num name desc count";
    align-items: baseline;
  }

  .ci-num, .ci-count { padding-top: 0; }
  .ci-desc { font-size: 14px; }
}

/* ---------- Cards villas — grille galerie asymétrique ---------- */

.featured-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.featured-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 420px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
}

.featured-grid::-webkit-scrollbar { display: none; }

.featured-grid > * { scroll-snap-align: start; }

.villa-card { display: flex; flex-direction: column; }

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

a.card-media:hover img { transform: scale(1.035); }

.card-sundara .card-media img { aspect-ratio: 4 / 3; }
.card-leelu .card-media img { aspect-ratio: 3 / 4; }
.card-palm .card-media img { aspect-ratio: 16 / 11; }

.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
}

.badge svg { flex: none; }

.badge--tenure {
  background: var(--sand);
  color: var(--ink);
  border: 1px solid var(--line);
}

.badge--fav {
  background: var(--gold);
  color: #FFFDF8;
}

.badge--fast {
  background: var(--ink);
  color: var(--sand);
}

.card-body { padding-top: 20px; }

.card-collection {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 8px;
}

.card-title {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
}

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--ocean); }

.card-specs {
  font-size: 13px;
  color: var(--ink-60);
  margin-bottom: 12px;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-60);
  margin-bottom: 10px;
}

.card-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.status-available .dot { background: var(--palm); }
.status-pending .dot { background: var(--gold); }

.card-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.price-old {
  display: block;
  font-size: 1rem;
  color: var(--ink-30);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.card-actions .cta { padding-top: 14px; }

@media (min-width: 960px) {
  .featured-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(24px, 3vw, 44px);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .card-sundara { grid-column: 1 / 8; grid-row: 1; }
  .card-leelu { grid-column: 9 / 13; grid-row: 1 / 3; margin-top: 104px; }
  .card-palm { grid-column: 5 / 11; grid-row: 2; margin-top: 72px; }
}

/* ---------- Entrer dans le Cercle (moment signature) ---------- */

.cercle {
  position: relative;
  background: var(--ocean-deep);
  color: var(--sand);
  overflow: hidden;
}

.cercle .ring-deco {
  width: clamp(340px, 44vw, 640px);
  height: clamp(340px, 44vw, 640px);
  top: -180px;
  right: -140px;
  border-color: var(--gold-30);
}

.cercle .label { color: var(--gold); }

.cercle-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}

.cercle h2 {
  color: var(--sand);
  max-width: 14ch;
}

.cercle .lede {
  color: rgba(246, 243, 238, 0.78);
  max-width: 52ch;
}

.cercle-now {
  display: flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(246, 243, 238, 0.85);
  margin: 26px 0 34px;
}

.cercle-form {
  display: flex;
  align-items: stretch;
  gap: 18px;
  max-width: 560px;
  flex-wrap: wrap;
}

.cercle-form .field-mail {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
}

.cercle-form input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(246, 243, 238, 0.45);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 2px;
  transition: border-color 0.25s ease;
}

.cercle-form input::placeholder { color: rgba(246, 243, 238, 0.4); }

.cercle-form input:focus {
  border-bottom-color: var(--gold);
  outline: none;
}

.cercle-form .field-mail.touched input:invalid {
  border-bottom-color: #D08868;
}

.cercle-form .field-error {
  display: none;
  font-size: 12px;
  color: #D08868;
  margin: 8px 0 0;
}

.cercle-form .field-mail.touched input:invalid ~ .field-error { display: block; }

.cercle-note {
  font-size: 12px;
  color: rgba(246, 243, 238, 0.55);
  margin-top: 20px;
}

.cercle .form-ok {
  color: var(--sand);
  border-left: 1px solid var(--gold);
  padding-left: 18px;
  max-width: 46ch;
}

.cercle-figure {
  position: relative;
  margin: 0;
  justify-self: center;
}

.cercle-figure img {
  width: min(380px, 76vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.cercle-figure::after {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: translate(14px, -10px);
  pointer-events: none;
}

.cercle-figure figcaption {
  margin-top: 40px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, 0.55);
}

@media (min-width: 960px) {
  .cercle-grid { grid-template-columns: 7fr 5fr; }
}

/* ---------- Conciergerie ---------- */

.concierge { background: var(--sand-2); }

.concierge-grid {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.concierge-figure { margin: 0; position: relative; }

.concierge-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.concierge-figure figcaption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.concierge-list {
  list-style: none;
  margin: 30px 0 38px;
  padding: 0;
}

.concierge-list li {
  display: flex;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-60);
}

.concierge-list li:last-child { border-bottom: 1px solid var(--line); }

.concierge-list strong {
  color: var(--ink);
  font-weight: 500;
  margin-right: 8px;
}

.concierge-note {
  font-size: 12px;
  color: var(--ink-60);
  margin-top: 16px;
}

@media (min-width: 960px) {
  .concierge-grid { grid-template-columns: 5fr 7fr; }
  .concierge-figure { margin-top: 56px; }
}

/* ---------- Preuve sociale : KPI + témoignages ---------- */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 28px;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5.4vw, 4.4rem);
  font-weight: 300;
  line-height: 1;
  margin: 0 0 10px;
}

.kpi-suffix { font-size: 0.55em; }

.kpi-label {
  font-size: 13px;
  color: var(--ink-60);
  margin: 0;
  max-width: 20ch;
}

.kpi-source {
  font-size: 11px;
  color: var(--ink-30);
  letter-spacing: 0.06em;
  margin-top: 18px;
}

@media (min-width: 800px) {
  .kpi-row { grid-template-columns: repeat(4, 1fr); }

  .kpi {
    border-left: 1px solid var(--line);
    padding-left: 30px;
  }

  .kpi:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

.testimonials {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  margin-top: clamp(56px, 7vw, 96px);
}

.testimonial {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.testimonial blockquote {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.4;
}

.testimonial--lead blockquote {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.testimonial figcaption {
  font-size: 13px;
}

.testimonial .t-name { font-weight: 600; }

.testimonial .t-meta {
  display: block;
  color: var(--ink-60);
  margin-top: 3px;
}

.testimonial .t-source {
  display: flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-top: 12px;
}

@media (min-width: 960px) {
  .testimonials { grid-template-columns: 6fr 5fr; }
  .testimonial--lead { grid-row: 1 / 3; }
  .testimonials .testimonial:nth-child(3) { margin-top: 8px; }
}

/* ---------- Journal ---------- */

.journal-grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

.journal-card { max-width: 640px; }

.journal-card .tile-media { margin-bottom: 20px; }

.journal-card:nth-child(1) img { aspect-ratio: 16 / 10; }
.journal-card:nth-child(2) img { aspect-ratio: 4 / 3; }

.journal-cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 10px;
}

.journal-card h3 {
  max-width: 26ch;
  margin-bottom: 12px;
}

.journal-card .excerpt {
  font-size: 14px;
  color: var(--ink-60);
  max-width: 52ch;
  margin-bottom: 10px;
}

.journal-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-30);
}

.journal-note {
  margin-top: clamp(36px, 4vw, 56px);
  font-size: 12px;
  color: var(--ink-60);
  display: flex;
  align-items: center;
}

@media (min-width: 880px) {
  .journal-grid { grid-template-columns: 7fr 5fr; }
  .journal-card:nth-child(2) { margin-top: 88px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding-top: var(--section);
}

.footer-grid {
  display: grid;
  gap: 44px;
  padding-bottom: clamp(48px, 6vw, 80px);
}

.site-footer .brand { color: var(--sand); }

.footer-baseline {
  font-size: 14px;
  color: rgba(246, 243, 238, 0.65);
  max-width: 30ch;
  margin-top: 16px;
}

.site-footer .switch { margin-top: 26px; }
.site-footer .switch .on { color: var(--sand); }
.site-footer .switch .off { color: rgba(246, 243, 238, 0.4); }
.site-footer .switch .sep { color: var(--line-dark); }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, 0.55);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 11px; }

.footer-col a {
  color: var(--sand);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-col a:hover { border-bottom-color: var(--sand); }

.footer-col address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
}

.footer-col .muted {
  color: rgba(246, 243, 238, 0.55);
  font-size: 13px;
}

.footer-hours {
  font-size: 14px;
  line-height: 2;
  color: var(--sand);
}

.footer-hours .muted { display: block; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(246, 243, 238, 0.55);
}

@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 4fr 2.5fr 3fr 2.5fr; }
}

/* ---------- Widget WhatsApp (unique élément flottant) ---------- */

.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ocean-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(35, 35, 35, 0.25);
  transition: background 0.25s ease, transform 0.25s ease;
}

.wa-fab:hover {
  background: var(--ocean);
  transform: translateY(-2px);
}

.wa-fab svg {
  width: 26px;
  height: 26px;
  fill: var(--sand);
}

/* ==========================================================================
   Fiche villa
   ========================================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 22px 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a { color: var(--ink-60); }
.breadcrumb a:hover { color: var(--ocean); }
.breadcrumb .sep { color: var(--ink-30); }
.breadcrumb .current { color: var(--ink); }

.villa-head {
  display: grid;
  gap: 28px;
  padding-block: clamp(28px, 4vw, 52px);
}

.villa-head h1 { margin-bottom: 14px; }

.villa-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.villa-essentials {
  font-size: 14px;
  color: var(--ink-60);
  margin: 0;
}

.price-block { align-self: end; }

.price-big {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.8rem);
  white-space: nowrap;
  margin: 0 0 10px;
}

.currency-switch {
  display: inline-flex;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.currency-switch .on {
  color: var(--ink);
  border-bottom: 1px solid var(--ocean);
  padding-bottom: 2px;
}

.currency-switch .off { color: var(--ink-30); }

.yield-line {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--ink-60);
  margin: 0;
}

@media (min-width: 880px) {
  .villa-head {
    grid-template-columns: 7fr 5fr;
    align-items: end;
  }

  .price-block { text-align: right; }
  .price-block .yield-line { justify-content: flex-end; }
}

/* ---------- Galerie 5 photos ---------- */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84vw;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
}

.gallery::-webkit-scrollbar { display: none; }

.gallery figure {
  margin: 0;
  position: relative;
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gallery-more {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--ink);
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.gallery-more:hover {
  background: var(--ink);
  color: var(--sand);
}

.gallery-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-60);
}

@media (min-width: 900px) {
  .gallery {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 250px 250px 250px;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .gallery img { aspect-ratio: auto; }

  .gallery .g1 { grid-column: 1 / 8; grid-row: 1 / 3; }
  .gallery .g2 { grid-column: 8 / 13; grid-row: 1; }
  .gallery .g3 { grid-column: 8 / 13; grid-row: 2; }
  .gallery .g4 { grid-column: 1 / 6; grid-row: 3; }
  .gallery .g5 { grid-column: 6 / 13; grid-row: 3; }
}

/* ---------- Story ---------- */

.story-grid {
  display: grid;
  gap: clamp(28px, 4vw, 72px);
}

.story-side .label { margin-bottom: 10px; }

.story-side h2 { max-width: 12ch; }

.story-body {
  max-width: 62ch;
  font-size: 16.5px;
  color: var(--ink);
}

.story-body p { margin-bottom: 1.3em; }

.story-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding: 4px 12px 0 0;
}

@media (min-width: 880px) {
  .story-grid { grid-template-columns: 4fr 8fr; }
}

/* ---------- Specs ---------- */

.tenure-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 400;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.tenure-banner .muted {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-60);
  margin-left: 18px;
  padding-top: 4px;
}

@media (max-width: 600px) {
  .tenure-banner .muted {
    flex-basis: 100%;
    margin-left: 0;
  }
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  margin: 0;
}

.specs-grid > div { border-top: 1px solid var(--line); padding-top: 16px; }

.specs-grid dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 8px;
}

.specs-grid dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

@media (min-width: 880px) {
  .specs-grid { grid-template-columns: repeat(3, 1fr); gap: 44px 36px; }
}

/* ---------- Vidéo & visite 360° ---------- */

.tour-grid {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.tour-copy p {
  color: var(--ink-60);
  max-width: 40ch;
  margin-bottom: 24px;
}

.tour-poster {
  position: relative;
  display: block;
  overflow: hidden;
}

.tour-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tour-poster:hover img { transform: scale(1.035); }

.tour-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(35, 35, 35, 0.25);
  transition: background 0.25s ease;
}

.tour-poster:hover .tour-play { background: rgba(35, 35, 35, 0.5); }

.tour-play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--sand);
  margin-left: 4px;
}

.tour-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  background: rgba(35, 35, 35, 0.45);
  padding: 8px 12px;
}

@media (min-width: 880px) {
  .tour-grid { grid-template-columns: 4fr 8fr; }
}

/* ---------- Rendement (panneau océan) ---------- */

.yield-panel {
  background: var(--ocean-deep);
  color: var(--sand);
  position: relative;
  overflow: hidden;
}

.yield-panel .ring-deco {
  width: clamp(300px, 36vw, 520px);
  height: clamp(300px, 36vw, 520px);
  bottom: -160px;
  left: -120px;
}

.yield-panel .label { color: rgba(246, 243, 238, 0.65); }
.yield-panel h2 { color: var(--sand); }

.yield-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.yield-intro {
  color: rgba(246, 243, 238, 0.78);
  max-width: 44ch;
}

.yield-rows {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.yield-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-block: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  color: rgba(246, 243, 238, 0.75);
}

.yield-rows li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.yield-rows .val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sand);
  white-space: nowrap;
}

.yield-rows .highlight { color: var(--sand); }

.yield-rows .highlight .val { font-size: 1.9rem; }

.yield-note {
  font-size: 12px;
  color: rgba(246, 243, 238, 0.5);
  margin-top: 22px;
  max-width: 52ch;
}

@media (min-width: 880px) {
  .yield-grid { grid-template-columns: 5fr 7fr; }
}

/* ---------- RDV / calendrier ---------- */

.rdv-grid {
  display: grid;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.rdv-copy p {
  color: var(--ink-60);
  max-width: 42ch;
}

.calendar {
  max-width: 480px;
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.calendar-head .month {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.calendar-head .tz {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-30);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-grid .dow {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-30);
  padding-bottom: 10px;
}

.calendar-grid .day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 13px;
  position: relative;
}

.calendar-grid .day.past { color: var(--ink-30); }

.calendar-grid a.day { color: var(--ink); }

.calendar-grid .day.free::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.calendar-grid a.day.free:hover::after,
.calendar-grid a.day.free:focus-visible::after {
  background: var(--gold-15);
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-60);
}

.calendar-legend .ring-mark { margin-right: 0; }

.rdv-note {
  font-size: 12px;
  color: var(--ink-60);
  margin-top: 18px;
}

@media (min-width: 880px) {
  .rdv-grid { grid-template-columns: 5fr 7fr; }
  .calendar { justify-self: end; width: 100%; }
}

/* ---------- Demande / formulaire ---------- */

.inquiry { background: var(--sand-2); }

.inquiry-grid {
  display: grid;
  gap: clamp(44px, 6vw, 96px);
  align-items: start;
}

.inquiry-copy p {
  color: var(--ink-60);
  max-width: 44ch;
}

.inquiry-wa { margin-top: 28px; }

.inquiry-wa .muted {
  display: block;
  font-size: 12px;
  color: var(--ink-60);
  margin-top: 14px;
}

.inquiry-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-30);
}

.inquiry-or::before,
.inquiry-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.contact-form .field { margin-bottom: 26px; }

.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  padding: 11px 2px;
  transition: border-color 0.25s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--ocean);
}

.contact-form .field.touched input:invalid,
.contact-form .field.touched textarea:invalid {
  border-bottom-color: var(--error);
}

.contact-form .field-error {
  display: none;
  font-size: 12px;
  color: var(--error);
  margin: 8px 0 0;
}

.contact-form .field.touched input:invalid ~ .field-error,
.contact-form .field.touched textarea:invalid ~ .field-error { display: block; }

.form-ok {
  font-size: 15px;
  border-left: 1px solid var(--ocean);
  padding-left: 18px;
  max-width: 46ch;
}

@media (min-width: 880px) {
  .inquiry-grid { grid-template-columns: 5fr 7fr; }
}

/* ---------- Villas similaires ---------- */

.similar-grid {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
}

@media (min-width: 880px) {
  .similar-grid { grid-template-columns: 6fr 5fr; }
  .similar-grid .villa-card:nth-child(2) { margin-top: 64px; }
}

/* ---------- Bandeau rappel Cercle (fiche villa) ---------- */

.cercle-band {
  background: var(--ocean-deep);
  color: var(--sand);
  padding-block: clamp(56px, 8vw, 96px);
}

.cercle-band .label { color: var(--gold); }

.cercle-band h2 {
  color: var(--sand);
  margin-bottom: 14px;
}

.cercle-band-sub {
  color: rgba(246, 243, 238, 0.78);
  max-width: 52ch;
  margin: 0;
}

.cercle-band-inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 880px) {
  .cercle-band-inner { grid-template-columns: 1fr auto; }
}

/* ---------- Modale capture photos ---------- */

.photo-modal {
  border: 0;
  padding: 0;
  background: var(--sand);
  color: var(--ink);
  width: min(440px, calc(100% - 40px));
  margin: auto;
}

.photo-modal::backdrop { background: rgba(35, 35, 35, 0.6); }

.photo-modal[open] { display: block; }

.modal-inner {
  position: relative;
  padding: clamp(28px, 5vw, 42px);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  font-size: 18px;
  color: var(--ink-60);
  cursor: pointer;
}

.modal-close:hover { color: var(--ink); }

.photo-modal h3 { max-width: 16ch; }

.photo-modal .modal-lede {
  font-size: 14px;
  color: var(--ink-60);
}

.modal-form { margin-top: 24px; }

.modal-form .field { margin-bottom: 18px; }

.modal-form input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 2px;
}

.modal-form input:focus {
  outline: none;
  border-bottom-color: var(--ocean);
}

.modal-form .field.touched input:invalid { border-bottom-color: var(--error); }

.modal-form .field-error {
  display: none;
  font-size: 12px;
  color: var(--error);
  margin: 8px 0 0;
}

.modal-form .field.touched input:invalid ~ .field-error { display: block; }

.modal-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-30);
}

.modal-or::before,
.modal-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* Fallback sans <dialog> natif */
.photo-modal.fallback-open {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
  box-shadow: 0 10px 50px rgba(35, 35, 35, 0.4);
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
