/* ══════════════════════════════════════════════════════════
   Les Perles de Founex — Site web
   Système éditorial : Cormorant italique + Outfit + JetBrains Mono
   Palette : noir bistre #0C0A08 · ivoire #F2EFE8 · chene-bronze #A6845C
   ══════════════════════════════════════════════════════════ */

:root {
  --ink: #0C0A08;
  --paper: #F2EFE8;
  --paper-warm: #EDE8DD;
  --paper-deep: #E4DDCB;
  --stone: #8A8A85;
  --gold: #A6845C;
  --gold-soft: #C2A87E;
  --ink-soft: rgba(12, 10, 8, 0.55);
  --ink-hair: rgba(12, 10, 8, 0.15);
  --ink-faint: rgba(12, 10, 8, 0.08);
  --paper-hair: rgba(242, 239, 232, 0.12);
  --paper-soft: rgba(242, 239, 232, 0.65);

  --display: "Bricolage Grotesque", "Helvetica Neue", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --max-w: 1440px;
  --pad-x: clamp(24px, 5vw, 80px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; display: block; }

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

button { font: inherit; cursor: pointer; }

/* Force le respect de l'attribut hidden (override par display: flex/grid) */
[hidden] { display: none !important; }

/* Accessibilité : masquer visuellement mais garder pour lecteurs d'écran */
.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;
}

/* Focus visible personnalisé */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Utilitaires */
.gold { color: var(--gold); }
.gold-soft { color: var(--gold-soft); }
.muted { opacity: 0.7; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }

.project-mark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.005em;
  line-height: 1;
  color: inherit;
}
.project-mark .dot { color: var(--gold); font-style: normal; }
.project-mark-sm { font-size: 13px; opacity: 0.78; }
.project-mark-lg { font-size: 30px; }

.pearl {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}
.pearl-xs { width: 4px; height: 4px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .line {
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow-xl {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Logo RISSIM — SVG vectoriel, couleur héritée via currentColor */
.rissim-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: inherit;
  vertical-align: middle;
  line-height: 0;
}
.rissim-logo svg { display: block; fill: currentColor; flex: none; }
.rissim-logo .rl-symbol   { height: 1em;    width: calc(1em * 162 / 128); }
.rissim-logo .rl-wordmark { height: 0.75em; width: calc(0.75em * 445 / 64); }

/* Tailles calibrées selon les points d'usage du design */
.rissim-sm  { font-size: 14px; }   /* hero top-right, énigme footer */
.rissim-md  { font-size: 17px; }   /* contact aside */
.rissim-lg  { font-size: 20px; }   /* footer principal */
.rissim-wordmark-only .rl-symbol { display: none; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
}

.btn-solid {
  background: var(--paper);
  color: var(--ink);
  border: none;
}
.btn-solid:hover { background: #fff; }
.landing .section-caract .btn-solid,
.landing .section-plans .btn-solid,
.landing .section-contact .btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid .arrow.gold { color: var(--gold); }
.btn-solid .arrow { color: inherit; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(242, 239, 232, 0.5);
}
.btn-gold {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-lg { padding: 18px 32px; font-size: 11px; letter-spacing: 0.32em; }

/* ══════════════════════════════════════════════════════════
   MODE ÉNIGME
   ══════════════════════════════════════════════════════════ */
.enigme {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0C0A08;
  color: #FAFAF7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.enigme-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.10;
  filter: grayscale(0.7) contrast(1.05) brightness(0.4) blur(2px);
  z-index: 0;
  pointer-events: none;
}

.enigme-vignette {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(100% 70% at 50% 45%, rgba(12,10,8,0.7) 0%, rgba(12,10,8,0.95) 60%, rgba(12,10,8,0.99) 100%),
    linear-gradient(180deg, rgba(12,10,8,0.6) 0%, rgba(12,10,8,0.05) 30%, rgba(12,10,8,0.05) 70%, rgba(12,10,8,0.6) 100%);
  pointer-events: none;
}

.enigme-hairline {
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(250, 250, 247, 0.08);
  z-index: 3;
}

.enigme-header {
  position: relative;
  z-index: 5;
  padding: 48px 24px 0;
  display: flex;
  justify-content: center;
  color: #FAFAF7;
}
.enigme-header .project-mark {
  font-size: 22px;
  color: #FAFAF7;
}

.enigme-main {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px var(--pad-x);
  text-align: center;
}

.enigme-main .eyebrow {
  color: var(--gold);
  margin-bottom: 40px;
}

.hero-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0;
  color: #F2EFE8;
}

.pearl-mark {
  margin: clamp(28px, 5vw, 56px) 0 clamp(32px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.pearl-mark .line {
  width: clamp(32px, 6vw, 56px);
  height: 1px;
  background: rgba(250, 250, 247, 0.2);
}
.pearl-mark .pearl { background: var(--gold); }

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #E8E3D9;
}
.countdown-jx {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(72px, 13vw, 144px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  color: #F2EFE8;
}
.countdown-jx em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-soft, #C8B78A);
}
.countdown-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 8px 0 0;
  text-align: center;
}
.countdown-jx.countdown-granular {
  font-size: clamp(40px, 7vw, 72px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Animation à chaque changement de palier (J-7 → J-6 par exemple) */
@keyframes cdFadeIn {
  0%   { opacity: 0; transform: translateY(8px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);   filter: blur(0); }
}
.countdown-jx.cd-pulse { animation: cdFadeIn 0.7s ease-out; }
.countdown-sub.cd-pulse { animation: cdFadeIn 0.9s 0.1s ease-out both; }

/* Honeypot anti-bot : invisible aux humains, présent dans le DOM pour les bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Mention RGPD discrète sous le formulaire énigme */
.enigme-rgpd {
  margin: 14px 0 0;
  padding: 0 12px;
  max-width: 540px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  line-height: 1.55;
  text-align: center;
  color: rgba(250, 250, 247, 0.42);
}

.enigme-bottom {
  position: relative;
  z-index: 4;
  padding: 0 var(--pad-x) 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.enigme-tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(242, 239, 232, 0.78);
  text-align: center;
  max-width: 560px;
  margin: 0;
  line-height: 1.5;
}

.enigme-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 540px;
  height: 56px;
  border-top: 1px solid rgba(250, 250, 247, 0.2);
  border-bottom: 1px solid rgba(250, 250, 247, 0.2);
}
.enigme-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FAFAF7;
  padding: 0 8px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.01em;
  min-width: 0;
}
.enigme-form input::placeholder { color: rgba(250, 250, 247, 0.5); }
.enigme-form button {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(250, 250, 247, 0.2);
  color: var(--gold);
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.enigme-form button .arrow {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
}

/* Confirmation après envoi du formulaire énigme */
.enigme-confirm {
  width: 100%;
  max-width: 540px;
  text-align: center;
  color: #FAFAF7;
}
.enigme-confirm-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--gold);
  margin: 0 0 14px;
}
.enigme-confirm-body {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(250, 250, 247, 0.85);
  line-height: 1.55;
  margin: 0 0 18px;
}
.enigme-confirm-fallback {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(250, 250, 247, 0.6);
  line-height: 1.55;
  margin: 0;
}
.enigme-confirm-fallback a {
  color: var(--gold);
  border-bottom: 1px solid rgba(184, 152, 106, 0.5);
}
.enigme-confirm-fallback em {
  font-style: italic;
  color: rgba(250, 250, 247, 0.85);
}

/* Confirmation contact landing */
.contact-confirm {
  grid-column: span 2;
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--paper-deep);
  border-left: 3px solid var(--gold);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
}
.contact-confirm a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.enigme-coords {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: 0 24px 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.35);
}

.enigme-footer {
  position: relative;
  z-index: 4;
  padding: 0 24px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: rgba(250, 250, 247, 0.55);
  flex-wrap: wrap;
}
.enigme-footer .caption {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.42);
}
.enigme-footer .sep {
  width: 20px; height: 1px;
  background: rgba(250, 250, 247, 0.18);
}
.enigme-footer .rissim-wordmark { color: rgba(250, 250, 247, 0.68); }
.enigme-footer .mono {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(250, 250, 247, 0.5);
  text-transform: none;
}

/* Énigme mobile : empiler le formulaire */
@media (max-width: 640px) {
  .enigme-form {
    flex-direction: column;
    height: auto;
    border-top: none;
    border-bottom: none;
    gap: 14px;
    align-items: stretch;
  }
  .enigme-form input {
    border-bottom: 1px solid rgba(250, 250, 247, 0.28);
    padding: 12px 4px;
    text-align: center;
  }
  .enigme-form button {
    border: 1px solid rgba(184, 152, 106, 0.55);
    border-left: 1px solid rgba(184, 152, 106, 0.55);
    height: 48px;
    justify-content: center;
  }
  .enigme-form button .arrow { display: none; }
  .countdown-label { width: 100%; margin: 0 0 14px; }
  .enigme-header { padding-top: 36px; }
}

/* ══════════════════════════════════════════════════════════
   LANDING — header global
   ══════════════════════════════════════════════════════════ */
.landing { background: var(--paper); }

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 30px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--paper);
}

.site-header .project-mark { color: inherit; }
.site-header-rissim { color: rgba(242, 239, 232, 0.95); font-size: 18px; }

.header-right { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 26px); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.lang-switch .lang-active { color: var(--gold-soft); }
.lang-switch .lang-sep { color: rgba(242, 239, 232, 0.35); }
.lang-switch a { color: rgba(242, 239, 232, 0.72); text-decoration: none; transition: color 0.2s ease; }
.lang-switch a:hover { color: var(--paper); }
@media (max-width: 900px) { .site-header-rissim { font-size: 14px; } }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.92);
  font-weight: 400;
}
.site-nav a { transition: color 0.2s ease; white-space: nowrap; }
.site-nav a:hover { color: var(--paper); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  background: transparent;
  border: 1px solid rgba(242, 239, 232, 0.35);
  color: inherit;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 160ms ease, color 160ms ease;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.section:not(.ink) .nav-toggle { border-color: rgba(12, 10, 8, 0.25); }

/* Header adaptatif pour sections paper */
.section:not(.ink) ~ .section .site-header,
.section:not(.ink) .site-header { color: var(--ink); }

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 16px 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav a {
    padding: 14px var(--pad-x);
    color: var(--paper);
    border-bottom: 1px solid rgba(242, 239, 232, 0.08);
  }
  .nav-toggle { display: inline-flex; }
  .site-header-rissim { display: none; }
}

/* ══════════════════════════════════════════════════════════
   HERO (Landing)
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  background: #0C0A08;
  color: var(--paper);
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero { min-height: 100vh; min-height: 100dvh; }
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    /* Bandeau haut : lisibilite de la navigation + selecteur de langue */
    linear-gradient(to bottom,
      rgba(12,10,8,0.64) 0%,
      rgba(12,10,8,0.38) 8%,
      rgba(12,10,8,0.14) 15%,
      rgba(12,10,8,0) 24%),
    /* Coin bas-gauche : titre + boutons */
    radial-gradient(135% 95% at 0% 100%,
      rgba(12,10,8,0.60) 0%,
      rgba(12,10,8,0.28) 34%,
      rgba(12,10,8,0) 60%),
    /* Fin liseré bas : date de livraison */
    linear-gradient(to top,
      rgba(12,10,8,0.42) 0%,
      rgba(12,10,8,0.10) 5%,
      rgba(12,10,8,0) 11%);
  pointer-events: none;
}
.hero-veil-radial {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(72% 60% at 30% 80%, rgba(12,10,8,0.42) 0%, rgba(12,10,8,0.12) 55%, rgba(12,10,8,0) 100%);
  pointer-events: none;
}
/* Voile cible : uniquement sous les zones de texte. La piscine/maison restent lumineuses. */
.hero-veil-radial { display: none; }
.hero-main, .hero-meta { text-shadow: 0 2px 22px rgba(12, 10, 8, 0.5), 0 1px 2px rgba(12, 10, 8, 0.4); }
@media (max-width: 900px) {
  .hero-veil {
    background:
      linear-gradient(to bottom, rgba(12,10,8,0.60) 0%, rgba(12,10,8,0.30) 12%, rgba(12,10,8,0) 26%),
      linear-gradient(to top, rgba(12,10,8,0.72) 0%, rgba(12,10,8,0.30) 22%, rgba(12,10,8,0) 46%);
  }
  .hero-veil-radial {
    background: radial-gradient(100% 62% at 50% 82%, rgba(12,10,8,0.52) 0%, rgba(12,10,8,0.18) 55%, rgba(12,10,8,0) 100%);
  }
}

@media (max-width: 640px) {
  /* Titre remonte dans le ciel (bien voile), sous-titre + prix + boutons pousses
     en bas sur les zones sombres ; le milieu (villa + piscine) reste degage. */
  .hero-main {
    top: clamp(96px, 15vh, 140px);
    bottom: clamp(84px, 11vh, 124px);
    gap: 12px;
  }
  /* Titre + sous-titre groupes en haut (ciel voile) ; prix + disponibilite + boutons pousses en bas */
  .hero-main .hero-facts { margin-top: auto; }
  .hero-veil {
    background:
      linear-gradient(to bottom,
        rgba(12,10,8,0.66) 0%, rgba(12,10,8,0.46) 18%, rgba(12,10,8,0.24) 32%, rgba(12,10,8,0) 45%),
      linear-gradient(to top,
        rgba(12,10,8,0.78) 0%, rgba(12,10,8,0.50) 18%, rgba(12,10,8,0.18) 33%, rgba(12,10,8,0) 46%);
  }
}

.hero-slug {
  position: absolute;
  top: 180px;
  left: 24px;
  z-index: 4;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.45);
}

.hero-main {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: clamp(100px, 15vh, 160px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
  max-width: 1200px;
}

.hero-main .eyebrow { display: none; }

.hero-big {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: #F2EFE8;
}
.hero-big .pearl-mark-inline {
  color: var(--gold);
  display: inline-block;
  transform: translateY(-0.2em);
  margin-left: 8px;
  font-size: 0.22em;
  font-style: normal;
}

.hero-sub {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.96);
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(12, 10, 8, 0.85), 0 1px 3px rgba(12, 10, 8, 0.9);
}
.hero-sub .bullet {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(242, 239, 232, 0.7);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-ctas .btn { justify-content: center; height: 48px; padding: 0 20px; }
  .hero-slug { display: none; }
}

.hero-meta {
  position: absolute;
  bottom: 32px;
  right: var(--pad-x);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(242, 239, 232, 0.55);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.hero-meta .sep { width: 24px; height: 1px; background: rgba(242, 239, 232, 0.25); }

@media (max-width: 640px) { .hero-meta { display: none; } }

/* ══════════════════════════════════════════════════════════
   Sections — structure commune
   ══════════════════════════════════════════════════════════ */
.section {
  position: relative;
  padding: clamp(72px, 10vh, 120px) 0 clamp(72px, 8vh, 100px);
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.section.ink {
  background: var(--ink);
  color: var(--paper);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}

.section-head { margin-bottom: clamp(32px, 5vh, 44px); }

.section-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 500;
  color: inherit;
}
.section-mark .roman {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0;
}
.section-mark .rule {
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: inherit;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
}
.kicker.gold { color: var(--gold); }
.kicker .line { width: 30px; height: 1px; background: currentColor; opacity: 0.6; }
.kicker .gold-line { background: var(--gold); opacity: 1; }

.editorial-slug {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: clamp(40px, 6vh, 60px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ink-hair);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  gap: 16px;
  flex-wrap: wrap;
}
.section.ink .editorial-slug {
  border-top-color: rgba(242, 239, 232, 0.12);
  color: rgba(242, 239, 232, 0.5);
}

/* ══════════════════════════════════════════════════════════
   II · Lieu
   ══════════════════════════════════════════════════════════ */
.lieu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.lieu-text {
  font-family: var(--display);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: #2a2722;
}
.lieu-text .dropcap { margin-top: 0; }
.lieu-text .drop {
  float: left;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 3.8em;
  line-height: 0.82;
  padding-right: 8px;
  padding-top: 4px;
  color: var(--gold);
}
.lieu-text p { margin: 0 0 14px; }
.lieu-text p:last-child { margin-bottom: 0; }

.lieu-photo {
  margin: 0;
  position: relative;
}
.lieu-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.02);
}
.lieu-photo figcaption {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(12,10,8,0.3);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  color: rgba(242, 239, 232, 0.85);
  font-size: 9px;
  letter-spacing: 0.24em;
}

/* Vue aerienne pleine largeur (parite avec la carte Google) + texte en amont */
.lieu-lead { max-width: 780px; margin: 0 0 clamp(30px, 4vw, 48px); }
.lieu-aerial { margin: 0; position: relative; }
.lieu-aerial img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: contrast(1.02);
}
.lieu-aerial figcaption {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(12,10,8,0.3);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  color: rgba(242, 239, 232, 0.85);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.map-card {
  margin-top: clamp(32px, 5vh, 48px);
  background: var(--paper-deep);
  border: 1px solid var(--ink-hair);
  padding: 18px;
  max-width: 320px;
}
.map-card .gold-label {
  color: var(--gold);
  margin: 0 0 8px;
  font-size: 9px;
  letter-spacing: 0.3em;
}
.map-card svg { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .lieu-grid { grid-template-columns: 1fr; }
  .lieu-photo { order: -1; }
  .lieu-photo img { aspect-ratio: 4 / 3; }
}

/* Embed Google Maps sous la section Lieu */
.lieu-map-embed {
  margin-top: clamp(40px, 5vh, 60px);
  padding-top: clamp(32px, 4vh, 48px);
  border-top: 1px solid var(--ink-hair);
}
.lieu-map-title {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}
.lieu-map-iframe-wrapper {
  position: relative;
  border: 1px solid var(--ink-hair);
  background: var(--paper-deep);
  overflow: hidden;
  filter: grayscale(0.45) contrast(0.92);
  transition: filter 0.4s ease;
}
.lieu-map-iframe-wrapper:hover { filter: grayscale(0) contrast(1); }
.lieu-map-caption {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}
@media (max-width: 700px) {
  .lieu-map-iframe-wrapper iframe { height: 280px; }
}

/* ══════════════════════════════════════════════════════════
   V — Bandeau éco-performance (sous la grille Caractéristiques)
   ══════════════════════════════════════════════════════════ */
.eco-banner {
  margin: clamp(32px, 4vh, 48px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper-deep);
  border: 1px solid var(--ink-hair);
  border-left: 3px solid var(--gold);
}
.eco-pillar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eco-icon {
  color: var(--gold);
  margin-bottom: 4px;
  height: 32px;
}
.eco-title {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
}
.eco-desc {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ══════════════════════════════════════════════════════════
   VI — Section Écosystème (partenaires)
   ══════════════════════════════════════════════════════════ */
.section-ecosysteme { background: var(--paper-warm); }

.section-ecosysteme .section-lead {
  margin: 24px 0 0;
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: #2a2722;
}
.section-ecosysteme .section-lead em { color: var(--gold); font-style: italic; }

.ecosysteme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2vw, 32px);
  margin: clamp(36px, 5vh, 56px) 0;
}

.partner-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: clamp(24px, 2vw, 32px);
  border: 1px solid var(--ink-hair);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 10, 8, 0.08);
}

.partner-role {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}

.partner-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  padding: 8px 0;
}
.partner-logo img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-logo.partner-logo-dark {
  background: var(--ink);
  margin: -16px -16px 20px -16px;
  padding: 20px 24px;
  height: 100px;
}
.partner-logo.partner-logo-dark img { max-height: 56px; }

.partner-name {
  margin: 0 0 14px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}
.partner-name em {
  font-size: 0.6em;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}

.partner-perk {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.partner-perk .line {
  flex: none;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.partner-pitch {
  flex: 1;
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.6;
  color: #2a2722;
}

.partner-link {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
  align-self: flex-start;
}
.partner-link:hover { border-bottom-color: var(--gold); }
.partner-link-static { color: var(--ink-soft); cursor: default; }

.ecosysteme-cta {
  text-align: center;
  margin: clamp(36px, 5vh, 56px) 0 0;
  padding: 24px;
  background: var(--paper-deep);
  border-left: 3px solid var(--gold);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  color: #2a2722;
}
.ecosysteme-cta strong { color: var(--ink); font-weight: 500; }
.ecosysteme-cta a {
  color: var(--gold);
  font-style: italic;
  border-bottom: 1px solid var(--gold);
  margin-left: 6px;
}

@media (max-width: 700px) {
  .partner-logo { height: 60px; }
  .partner-logo img { max-height: 48px; }
}

/* ══════════════════════════════════════════════════════════
   III · Projet
   ══════════════════════════════════════════════════════════ */
.projet-feature {
  margin: 0 0 clamp(28px, 4vw, 48px);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.projet-feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.projet-feature figcaption {
  position: absolute; bottom: 0; left: 0;
  padding: 8px 14px;
  background: rgba(12, 10, 8, 0.6);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: rgba(242, 239, 232, 0.85);
}

.projet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.projet-text { max-width: 880px; }

.projet-text {
  font-family: var(--display);
  font-size: clamp(14.5px, 1vw, 16px);
  line-height: 1.7;
  color: rgba(242, 239, 232, 0.82);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.projet-text p { margin: 0 0 12px; }

.projet-text .credits {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.45);
}
.projet-text .credits .sep { opacity: 0.5; }

.projet-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.projet-main {
  grid-column: 1 / -1;
  margin: 0;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.projet-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.projet-main figcaption {
  position: absolute; bottom: 0; left: 0;
  padding: 6px 10px;
  background: rgba(12, 10, 8, 0.6);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: rgba(242, 239, 232, 0.85);
}
.projet-small {
  margin: 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}
.projet-small img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 900px) {
  .projet-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   IV · Villas
   ══════════════════════════════════════════════════════════ */
.villas-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
}
.villas-intro {
  max-width: 460px;
  font-family: var(--display);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.65;
  color: #2a2722;
  margin: 0 0 8px;
}

.villas-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 44px;
}
.villas-gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}
.villas-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 55%;
}

/* Carrousel d'ambiances par pièce */
.villa-slide { margin: 0; position: relative; overflow: hidden; }
.villa-slide .slides { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.villa-slide .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
  opacity: 0; transition: opacity 0.9s ease;
}
.villa-slide .slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .villa-slide .slide { transition: none; }
}
.villas-finitions {
  margin: 4px 0 40px;
  max-width: none;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(12, 10, 8, 0.6);
}
.villas-gallery figcaption {
  position: absolute; bottom: 0; left: 0;
  padding: 6px 10px;
  background: rgba(12, 10, 8, 0.55);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: rgba(242, 239, 232, 0.88);
}

.villas-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.villas-table tr {
  border-top: 1px solid var(--ink-hair);
}
.villas-table tr:first-child { border-top: 1px solid var(--gold); }
.villas-table tr:last-child { border-bottom: 1px solid var(--gold); }

.villas-table td {
  padding: 16px 8px;
  font-family: var(--sans);
  font-size: 12px;
  vertical-align: middle;
}
.villas-table .v-letter {
  width: 60px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}
.villas-table .v-name {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.villas-table .v-meta {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.villas-table .v-spec {
  text-align: right;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.villas-table .v-spec em {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
}
.villas-table .v-name em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
  font-size: 14px;
  margin-left: 4px;
}
.villas-table .v-price {
  text-align: right;
  white-space: nowrap;
}
.villas-table .v-price em {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink);
}

@media (max-width: 900px) {
  .villas-head { grid-template-columns: 1fr; }
  .villas-gallery { grid-template-columns: 1fr 1fr; }
  .villas-table tr {
    display: grid;
    grid-template-columns: 60px 1fr;
    row-gap: 4px;
    padding: 12px 0;
  }
  .villas-table td { padding: 4px 8px; }
  .villas-table .v-letter { grid-row: 1 / span 5; align-self: center; }
  .villas-table .v-spec { text-align: left; grid-column: 2; }
  .villas-table .v-spec:empty { display: none; }
  .villas-table .v-price { text-align: left; grid-column: 2; }
}

@media (max-width: 640px) {
  .villas-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 36px;
  }
  .villas-gallery figcaption {
    font-size: 9.5px;
    padding: 8px 12px;
  }
}

/* ══════════════════════════════════════════════════════════
   V · Caractéristiques
   ══════════════════════════════════════════════════════════ */
.section-caract { background: var(--paper-warm); }

.caract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: clamp(40px, 6vh, 56px);
}
.caract-col .kicker { color: var(--gold); margin-bottom: 12px; }
.caract-col dl { margin: 0; padding: 0; }
.caract-col .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-hair);
  gap: 16px;
}
.caract-col .row:last-child { border-bottom: none; }
.caract-col dt {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.caract-col dd {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  text-align: right;
}
.caract-col dd em { font-style: italic; }

.price-block {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.price-block .eyebrow-xl { margin: 0 0 10px; color: var(--gold); }
.price-block .price {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.price-block .price em { font-style: normal; }
.price-block .price-sub {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(242, 239, 232, 0.65);
}
.price-block .btn-ghost { color: var(--gold); border-color: var(--gold); }

@media (max-width: 700px) {
  .caract-grid { grid-template-columns: 1fr; }
  .price-block { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════
   VI · Plans
   ══════════════════════════════════════════════════════════ */
.plans-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
}

.paper-plan {
  background: #F6F1E4;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(12, 10, 8, 0.18), 0 8px 20px rgba(12, 10, 8, 0.08);
  position: relative;
  margin: 0;
}
.paper-plan.plan-1 { transform: none; }
.paper-plan.plan-2 { transform: none; }
.paper-plan::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 60% at 50% 40%, transparent 0%, rgba(120, 100, 60, 0.08) 100%);
}
.paper-plan header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(12, 10, 8, 0.2);
  padding-bottom: 8px; margin-bottom: 14px;
}
.paper-plan header .mono { color: #2a2722; font-size: 8.5px; letter-spacing: 0.28em; }
.paper-plan header .muted { color: #6a6459; }
.paper-plan svg { width: 100%; height: auto; display: block; }
.plan-shot { position: relative; }
.plan-shot img {
  width: 100%;
  height: auto;
  display: block;
}
.paper-plan footer {
  margin-top: 10px;
  display: flex; justify-content: space-between;
  font-size: 8px; letter-spacing: 0.2em;
  color: #6a6459;
}

.plans-cta {
  padding-top: 12px;
  font-family: var(--sans);
}
.plans-cta > p:first-child {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: #2a2722;
}
.plans-cta .kicker {
  margin-bottom: 26px;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.plans-cta .btn-solid { margin-bottom: 18px; }
.plans-cta .plans-note {
  margin: 0;
  font-size: 10px;
  color: var(--ink-soft);
  max-width: 280px;
  letter-spacing: 0.02em;
}

.plans-levels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: stretch;
  margin-top: clamp(24px, 3vw, 36px);
}
.plans-levels .paper-plan { display: flex; flex-direction: column; }
.plans-levels .paper-plan .plan-shot { margin-top: auto; margin-bottom: auto; }
.plans-config-note {
  margin: 0;
  max-width: 640px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(12, 10, 8, 0.6);
}

/* Plan d'ensemble (4 maisons) en pleine largeur, plus grand */
.plan-hero { margin: 0 0 clamp(24px, 3vw, 40px); }
.plan-hero .plan-shot img { width: 100%; height: auto; display: block; }

/* Cadres uniformes pour les 3 planches de niveaux */
.plans-levels .plan-shot {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.plans-levels .plan-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Pied de section : note d'amenagement + CTA dossier */
.plans-foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.plans-foot-cta .btn-solid { margin-bottom: 14px; }
.plans-foot-cta .plans-note {
  margin: 0;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  max-width: 280px;
}

@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plans-levels { grid-template-columns: 1fr; }
  .plans-levels .plan-shot { aspect-ratio: auto; }
  .plans-levels .plan-shot img { height: auto; }
  .plans-foot { grid-template-columns: 1fr; align-items: start; }
  .paper-plan { transform: none !important; }
}

/* ══════════════════════════════════════════════════════════
   VII · Contact
   ══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 26px;
}
.contact-form .field-wide { grid-column: span 2; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-hair);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--gold); }

.checkboxes {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
}
.check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check .box {
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(12, 10, 8, 0.35);
  background: transparent;
  flex: none;
  transition: all 0.15s ease;
}
.check input:checked ~ .box {
  background: var(--gold);
  border-color: var(--gold);
}
.check input:checked ~ .box::after {
  content: "✓";
  color: var(--paper);
  font-size: 11px;
  line-height: 1;
}
.check input:focus-visible ~ .box { outline: 2px solid var(--gold); outline-offset: 2px; }

.contact-submit {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-rgpd {
  margin: 0;
  font-size: 10px;
  color: var(--ink-soft);
  max-width: 260px;
  text-align: right;
}

.contact-aside {
  padding-left: clamp(0px, 3vw, 40px);
  border-left: 1px solid var(--ink-hair);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-name {
  margin: 14px 0 6px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}
.contact-role {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-portrait {
  margin: 14px 0 18px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--ink-hair);
  box-shadow: 0 4px 16px rgba(12, 10, 8, 0.08);
}
.contact-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.contact-interlocuteur {
  display: flex;
  flex-direction: column;
}

.contact-quote {
  margin: 0;
  padding: 18px 20px;
  background: var(--paper-deep);
  border: 1px solid var(--ink-hair);
}
.contact-quote p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
}
.contact-rissim { margin: 8px 0 4px; }
.contact-map { margin-top: auto; }
.contact-map svg { width: 100%; height: auto; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { border-left: none; border-top: 1px solid var(--ink-hair); padding: 32px 0 0; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .field-wide { grid-column: auto; }
  .checkboxes { grid-column: auto; }
  .contact-submit { grid-column: auto; flex-direction: column; align-items: stretch; }
  .contact-rgpd { text-align: left; max-width: none; }
}

/* ══════════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 72px var(--pad-x) 40px;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: flex-start;
}
.footer-col .kicker {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.32em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.75);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--paper); }

.footer-col-1 .project-mark-lg {
  margin: 0;
  color: var(--paper);
}
.footer-tagline {
  margin: 14px 0 0;
  max-width: 360px;
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: rgba(242, 239, 232, 0.7);
  line-height: 1.5;
}
.footer-livraison {
  margin: 20px 0 0;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: rgba(242, 239, 232, 0.4);
}

.footer-divider {
  display: block;
  width: 60px; height: 1px;
  background: var(--gold);
  opacity: 0.55;
  margin: 28px 0 14px;
}
.footer-legal { gap: 6px; }
.footer-legal a {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(242, 239, 232, 0.55);
}

.footer-disclaimer {
  max-width: var(--max-w);
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 239, 232, 0.1);
  font-family: var(--sans);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: rgba(242, 239, 232, 0.38);
  text-transform: none;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 22px auto 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.45);
}

.footer-credit { color: rgba(242, 239, 232, 0.4); }
.footer-credit a {
  color: rgba(242, 239, 232, 0.62);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.footer-credit a:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ══════════════════════════════════════════════════════════
   Pages légales (statiques)
   ══════════════════════════════════════════════════════════ */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(80px, 10vh, 140px) var(--pad-x) clamp(60px, 8vh, 100px);
}
.legal-page h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}
.legal-page h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  margin: 40px 0 12px;
  color: var(--ink);
}
.legal-page p, .legal-page li {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.7;
  color: #2a2722;
}
.legal-page a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: none;
}

/* Transitions de bascule énigme → landing */
.enigme, .landing {
  animation: fadeIn 0.6s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Réduire les animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg, .enigme-bg { display: none; }
  .hero { background-image: url("assets/vue-drone.jpg"); background-size: cover; background-position: center; }
}

/* ─── V · PERFORMANCE ÉNERGÉTIQUE (B1 — éditorial paper) ─── */
.section-performance { background: var(--paper); }

.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.performance-text { max-width: 460px; }
.performance-text .section-mark { margin-bottom: 18px; }
.performance-text .section-title { margin: 0 0 28px; }
.performance-text .section-lead {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 22px;
}
.performance-text > p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft, #4a443c);
  margin: 0 0 18px;
}
.performance-note {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute, #8a8278);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-hair, rgba(12, 10, 8, 0.12));
}

.performance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.performance-item {
  position: relative;
  padding: clamp(28px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--ink-hair, rgba(12, 10, 8, 0.12));
}
.performance-item:first-child { padding-top: 8px; }
.performance-item:last-child { border-bottom: none; padding-bottom: 8px; }
.perf-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 14px;
  vertical-align: middle;
}
.perf-item-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.perf-item-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft, #4a443c);
  margin: 0;
  max-width: 60ch;
}

@media (max-width: 980px) {
  .performance-grid { grid-template-columns: 1fr; gap: 56px; }
  .performance-text { max-width: none; }
}

/* Performance right column wrapper (CECB badge + list) */
.performance-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.performance-right .performance-list { margin-top: 4px; }

/* CECB badge — visual energy class indicator */
.cecb-badge {
  margin: 4px 0 28px;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--ink-hair, rgba(12, 10, 8, 0.14));
}
.cecb-badge-lg {
  padding: 28px 30px 22px;
  margin: 0 0 8px;
  border: 1px solid var(--ink-hair, rgba(12, 10, 8, 0.18));
  box-shadow: 0 1px 0 rgba(12, 10, 8, 0.04);
}
.cecb-badge-lg .cecb-badge-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
}
.cecb-badge-lg .cecb-mark { font-size: 13px; letter-spacing: 0.16em; }
.cecb-badge-lg .cecb-status { font-size: 16px; letter-spacing: 0.20em; }
.cecb-badge-lg .cecb-scales { gap: 16px; }
.cecb-badge-lg .cecb-scale { grid-template-columns: 150px 1fr; gap: 18px; }
.cecb-badge-lg .cecb-label { font-size: 12px; }
.cecb-badge-lg .cecb-grades li { height: 28px; font-size: 13px; }
.cecb-badge-lg .cecb-grades li.is-result {
  height: 38px;
  margin-top: -5px;
  margin-bottom: -5px;
  font-size: 16px;
}
.cecb-badge-lg .cecb-footnote { font-size: 11.5px; margin-top: 18px; }
.cecb-badge-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-hair, rgba(12, 10, 8, 0.08));
}
.cecb-mark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
}
.cecb-mark sup { font-size: 0.7em; vertical-align: super; }
.cecb-status {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.cecb-scales {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cecb-scale {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
}
.cecb-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft, #4a443c);
  text-transform: uppercase;
  line-height: 1.25;
}
.cecb-grades {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin: 0;
  padding: 0;
}
.cecb-grades li {
  position: relative;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.34;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cecb-grades li[data-grade="A"] { background: #008940; }
.cecb-grades li[data-grade="B"] { background: #4cb528; }
.cecb-grades li[data-grade="C"] { background: #cce500; color: #1a1a1a; }
.cecb-grades li[data-grade="D"] { background: #fff301; color: #1a1a1a; }
.cecb-grades li[data-grade="E"] { background: #ffb900; color: #1a1a1a; }
.cecb-grades li[data-grade="F"] { background: #ff6f00; }
.cecb-grades li[data-grade="G"] { background: #d90000; }
.cecb-grades li.is-result {
  opacity: 1;
  height: 30px;
  margin-top: -4px;
  margin-bottom: -4px;
  font-size: 14px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink);
  z-index: 2;
}
.cecb-footnote {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-mute, #8a8278);
  margin: 16px 0 0;
  text-align: right;
  font-style: italic;
}
@media (max-width: 600px) {
  .cecb-scale { grid-template-columns: 1fr; gap: 6px; }
  .cecb-label { font-size: 10px; }
}

/* Étiquette énergétique CECB — format officiel (échelle partagée + colonnes d'indicateurs) */
.geak { display: flex; gap: 12px; align-items: flex-start; }
.geak__scalecol { display: flex; flex-direction: column; }
.geak__spacer { height: 46px; flex: 0 0 auto; }
.geak__scale { display: flex; flex-direction: column; gap: 4px; width: 168px; }
.geak__band {
  height: 24px; display: flex; align-items: center; padding-left: 11px;
  color: #fff; font-family: var(--sans); font-weight: 700; font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
}
.geak__band--a { background: #008940; }
.geak__band--b { background: #4cb528; }
.geak__band--c { background: #cce500; color: #1a1a1a; }
.geak__band--d { background: #fff301; color: #1a1a1a; }
.geak__band--e { background: #ffb900; color: #1a1a1a; }
.geak__band--f { background: #ff6f00; }
.geak__band--g { background: #d90000; }
.geak__col { display: flex; flex-direction: column; width: 104px; }
.geak__head {
  height: 46px; display: flex; gap: 7px; align-items: flex-start;
  font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.02em; color: var(--ink); text-transform: uppercase;
}
.geak__ico { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; color: var(--ink); }
.geak__track { position: relative; --geak-row: 28px; height: calc(7 * 28px); }
.geak__pointer {
  position: absolute; left: 0; height: 24px; display: flex; align-items: center;
  padding: 0 11px 0 15px; background: var(--ink); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%);
}
@media (max-width: 640px) {
  .geak { gap: 6px; }
  .geak__scale { width: 118px; }
  .geak__band { height: 21px; font-size: 12px; }
  .geak__spacer { height: 52px; }
  .geak__col { width: 74px; }
  .geak__head { height: 52px; font-size: 9.5px; gap: 5px; }
  .geak__ico { width: 13px; height: 13px; }
  .geak__track { --geak-row: 25px; height: calc(7 * 25px); }
  .geak__pointer { height: 21px; font-size: 12px; padding: 0 8px 0 12px; }
}

/* Coordonnées Rémi dans Contact aside */
.contact-coords {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.contact-coords a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}
.contact-coords a:hover { border-bottom-color: var(--gold); color: var(--gold); }

/* Lien discret vers le site perso du courtier : subordonne aux coordonnees */
.contact-perso {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.contact-perso a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}
.contact-perso a:hover { border-bottom-color: var(--gold); color: var(--gold); }

/* Liens RISSIM (wordmark + rissim.ch) */
a.rissim-logo { display: inline-flex; text-decoration: none; transition: opacity 160ms ease; }
a.rissim-logo:hover { opacity: 0.7; }
.rissim-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.rissim-link:hover { border-bottom-color: currentColor; }

/* ══════════════════════════════════════════════════════════
   P0 — Prix hero (visible tous ecrans), rareté honnête, CTA collant mobile
   ══════════════════════════════════════════════════════════ */

/* Ligne prix + livraison dans le bloc hero principal (visible mobile ET desktop) */
.hero-facts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: clamp(13px, 1.5vw, 18px);
  letter-spacing: 0.05em;
  color: rgba(242, 239, 232, 0.97);
  text-shadow: 0 2px 20px rgba(12, 10, 8, 0.9), 0 1px 3px rgba(12, 10, 8, 0.95);
}
.hero-facts-price {
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 1.1em;
  letter-spacing: 0.03em;
}
.hero-facts-sep {
  width: 24px;
  height: 1px;
  background: rgba(242, 239, 232, 0.45);
}

/* Ligne de disponibilité honnête sous le tableau des villas */
.villas-avail {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 28px 0 0;
  max-width: 720px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(12, 10, 8, 0.72);
}
.villas-avail .gold-line {
  flex: 0 0 28px;
  height: 1px;
  transform: translateY(-4px);
}

/* CTA collant mobile */
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    padding: 15px 22px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(12, 10, 8, 0.30);
    transform: translateY(160%);
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-cta.is-visible { transform: translateY(0); }
  .mobile-cta .arrow { color: var(--gold-soft); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-cta { transition: none; }
}
