/* Résidence Majorelle — présentation des appartements disponibles
   Design repris de la brochure commerciale : crème, ocre et or, serif
   d'affichage, capitales espacées, script, arches et motif moucharabieh.

   Organisation
   1. Jetons (couleurs, polices, tailles fluides)
   2. Base
   3. Chrome : en-tête, rails, pied de page (navigation)
   4. Diaporama : piste horizontale, slides, ajustement à la hauteur
   5. Composants : titres, badges, boutons, cadres photo, motif, tableaux
   6. Slides de l'accueil
   7. Slides appartement
   8. Contact, visionneuse, animations, mouvement réduit

   Mises en page : mobile d'abord. « split » (deux colonnes) dès que l'écran
   est plus large que haut et fait 700 px ou plus ; rails latéraux à 1100 px. */

/* 1. Jetons ─────────────────────────────────────────────── */

:root {
  --cream: #F8F1E7;
  --cream-rose: #F5E8DC;
  --cream-deep: #EFE3D2;
  --paper: #FFFDF9;
  --ochre: #A8691F;            /* titres, filets */
  --ochre-deep: #8E5716;       /* petits textes ocre : contraste AA sur crème */
  --ochre-btn: #9A5F1B;        /* fond des boutons : contraste AA avec le blanc cassé */
  --gold: #DDA853;
  --sand: #D9B08C;
  --sand-soft: #E9D3BC;
  --brown: #4A2F1A;
  --brown-deep: #33200F;
  --ink-soft: color-mix(in oklab, var(--brown) 78%, var(--cream));
  --line: color-mix(in oklab, var(--ochre) 60%, transparent);
  --hair: color-mix(in oklab, var(--brown) 13%, transparent);

  --f-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --f-numeral: 'Gloock', 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'Jost', 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --f-script: 'Italianno', 'Pinyon Script', cursive;

  --header-h: clamp(56px, 8.4vh, 84px);
  --footer-h: clamp(58px, 8.6vh, 82px);
  --side: clamp(16px, 5vw, 72px);
  --avail: calc(100dvh - var(--header-h) - var(--footer-h));

  --fs-kicker: clamp(0.64rem, 0.56rem + 0.3vw, 0.78rem);
  --fs-small: clamp(0.72rem, 0.68rem + 0.18vw, 0.84rem);
  --fs-body: clamp(0.88rem, 0.8rem + min(0.28vw, 0.5vh), 1.02rem);
  --fs-lead: clamp(1rem, 0.86rem + min(0.6vw, 0.9vh), 1.32rem);
  --fs-h2: clamp(1.45rem, 1rem + min(2vw, 3.2vh), 2.7rem);
  --fs-h1: clamp(2rem, 1.1rem + min(3.8vw, 5.8vh), 4.4rem);
  --fs-script: clamp(2.8rem, 1.4rem + min(5vw, 7.6vh), 6.4rem);
  --fs-numeral: clamp(4.6rem, 1.8rem + min(11vw, 17vh), 13.5rem);

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

@supports not (height: 100dvh) {
  :root { --avail: calc(100vh - var(--header-h) - var(--footer-h)); }
}

@media (max-height: 540px) {
  :root {
    --header-h: 46px;
    --footer-h: 48px;
    --fs-h1: clamp(1.6rem, 1rem + 3.2vh, 2.6rem);
    --fs-numeral: clamp(3.4rem, 2rem + 9vh, 6rem);
    --fs-script: clamp(2.2rem, 1.4rem + 5vh, 3.6rem);
  }
}

@media (min-width: 1100px) {
  :root { --side: clamp(96px, 7.4vw, 140px); }
}

/* Grands écrans : tout le texte grandit d'un cran, comme une slide projetée. */
@media (min-width: 1600px) and (min-height: 880px) { html { font-size: 17px; } }
@media (min-width: 1900px) and (min-height: 1000px) { html { font-size: 18.5px; } }

/* 2. Base ───────────────────────────────────────────────── */

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

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;            /* pas de défilement vertical de page */
  background: var(--cream);
}

body {
  color: var(--brown);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
table { border-collapse: collapse; }

::selection { background: color-mix(in oklab, var(--gold) 38%, transparent); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.5em;
  height: 1.5em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* Marque (tracés de brochure.js) */
.mj-w, .mj-r { fill: var(--logo-word, var(--ochre)); }
.mj-p { fill: var(--logo-petal, var(--gold)); }
.mj-d { fill: var(--logo-dot, var(--ochre)); }
.mj-r { display: none; }      /* le ® de la brochure est un glyphe, absent des tracés */

noscript p, .fallback {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-family: var(--f-display);
  font-size: 1.4rem;
}

/* 3. Chrome ─────────────────────────────────────────────── */

.chrome-top,
.chrome-bottom {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--side);
  color: var(--brown);
  transition: color 0.5s var(--ease);
  pointer-events: none;
}
.chrome-top > *, .chrome-bottom > * { pointer-events: auto; }

.chrome-top {
  top: 0;
  height: var(--header-h);
  justify-content: space-between;
}

.chrome-bottom {
  bottom: 0;
  height: var(--footer-h);
  justify-content: space-between;
}

/* Sur les slides sombres, le chrome passe en crème. */
body[data-theme="dark"] .chrome-top,
body[data-theme="dark"] .chrome-bottom {
  color: var(--cream);
  --logo-word: var(--cream);
  --logo-dot: var(--gold);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  height: 100%;
  padding: 10px 0;
}
.brand-link__rosace { height: clamp(26px, 4.2vh, 36px); width: auto; }
.brand-link__word { height: clamp(18px, 2.9vh, 25px); width: auto; }

.chrome-top__nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-kicker);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 0;
}
.back-link .icon { width: 1.4em; height: 1.4em; transition: transform 0.4s var(--ease); }
.back-link:hover .icon { transform: translateX(-4px); }
.back-link__text { display: none; }
@media (min-width: 640px) { .back-link__text { display: inline; } }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-kicker);
  font-weight: 500;
  letter-spacing: 0.2em;
}
.lang button {
  border: 0;
  background: none;
  padding: 10px 6px 10px 8px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
  position: relative;
}
.lang button[aria-pressed="true"] { opacity: 1; }
.lang button[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  left: 8px; right: 6px; bottom: 5px;
  height: 1.5px;
  background: currentColor;
}
.lang button:hover { opacity: 1; }
.lang__sep { opacity: 0.4; }

.chrome-bottom__brand {
  display: none;
  align-items: center;
  gap: 14px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chrome-bottom__brand::before {
  content: '';
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.85;
}
@media (min-width: 900px) { .chrome-bottom__brand { display: inline-flex; } }

.chrome-bottom__label {
  display: none;
  font-size: var(--fs-kicker);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
  white-space: nowrap;
}
@media (min-width: 1280px) { .chrome-bottom__label { display: block; min-width: 14em; text-align: center; } }

.dots {
  display: flex;
  align-items: center;
  gap: 2px;
}
.dots button {
  width: 22px;
  height: 30px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dots button::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.55;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease), opacity 0.4s;
}
.dots button:hover::before { opacity: 1; }
.dots button[aria-current="step"]::before {
  background: currentColor;
  opacity: 1;
  transform: scale(1.25);
}

.pager {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 12px);
}
.pager__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, currentColor 45%, transparent);
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s, opacity 0.35s;
}
.pager__btn .icon { width: 20px; height: 20px; }
.pager__btn:hover:not(:disabled) {
  background: var(--ochre-btn);
  border-color: var(--ochre-btn);
  color: var(--paper);
}
.pager__btn:disabled { opacity: 0.28; cursor: default; }

.counter {
  font-family: var(--f-display);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  letter-spacing: 0.06em;
  min-width: 4.6em;
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
}
.counter b { font-weight: 600; color: var(--ochre); }
body[data-theme="dark"] .counter b { color: var(--gold); }
.counter span { opacity: 0.6; }

.progress {
  position: absolute;
  left: var(--side);
  right: var(--side);
  top: 0;
  height: 1px;
  background: color-mix(in oklab, currentColor 18%, transparent);
  overflow: hidden;
}
.progress span {
  position: absolute;
  inset: 0;
  background: var(--ochre);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.7s var(--ease);
}
body[data-theme="dark"] .progress span { background: var(--gold); }

/* Petits écrans : les pastilles laissent la place au compteur. */
@media (max-width: 420px) {
  .dots button { width: 16px; }
  .dots button::before { width: 6px; height: 6px; }
}
@media (max-width: 360px) { .dots { display: none; } }

/* Rails latéraux, comme les marges de la brochure */
.rail {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 25;
  width: calc(var(--side) * 0.62);
  pointer-events: none;
  color: var(--ochre);
  transition: color 0.5s var(--ease);
}
body[data-theme="dark"] .rail { color: var(--gold); --logo-word: var(--gold); --logo-petal: var(--gold); }
/* La photo de « L'appartement » occupe le bord gauche : le rail s'efface. */
body[data-slide="intro"] .rail--left { opacity: 0; }
.rail--left { transition: color 0.5s var(--ease), opacity 0.5s var(--ease); }
@media (min-width: 1100px) and (min-height: 600px) { .rail { display: flex; } }

.rail--left {
  left: 0;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--header-h) + 3vh);
  gap: 14px;
}
.rail__word {
  width: 20px;
  height: 92px;
  position: relative;
}
.rail__word svg {
  position: absolute;
  max-width: none;
  width: 92px;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
}
.rail__word .mj-w { fill: currentColor; }
.rail__rosace { width: 18px; }
.rail__rosace .mj-p, .rail__rosace .mj-d { fill: currentColor; }
.rail__line {
  width: 1px;
  flex: 1;
  max-height: 34vh;
  background: currentColor;
  opacity: 0.7;
}

.rail--right {
  right: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: calc(var(--footer-h) + 3vh);
  gap: 16px;
}
.rail__num {
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-variant-numeric: lining-nums;
}

/* 4. Diaporama ──────────────────────────────────────────── */

.deck {
  position: fixed;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
}
.deck::-webkit-scrollbar { display: none; }
.deck:focus { outline: none; }

.slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--cream);
  isolation: isolate;
}
.slide--rose { background: var(--cream-rose); }
.slide--dark { background: var(--brown-deep); color: var(--cream); }

.slide__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.slide__inner {
  position: absolute;
  top: var(--header-h);
  bottom: var(--footer-h);
  left: var(--side);
  right: var(--side);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenu ajusté à la hauteur par ui.js (zoom) quand il déborde ;
   défilement interne en tout dernier recours. */
.slide__fit {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}
.slide__inner.is-scroll {
  overflow-y: auto;
  align-items: flex-start;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.split { display: grid; gap: clamp(20px, 4vw, 40px); }

@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 5.4vw, 110px);
  }
}

/* 5. Composants ─────────────────────────────────────────── */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.95em;
  font-size: var(--fs-kicker);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}
.kicker::before {
  content: '';
  width: 2.2em;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  flex: none;
}
.slide--dark .kicker { color: var(--gold); }

.title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ochre);
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
.title em { font-style: italic; font-weight: 400; }
.slide--dark .title { color: var(--cream); }

.title-2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.08;
  color: var(--ochre);
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

.script {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: var(--fs-script);
  line-height: 0.92;
  color: var(--ochre);
  letter-spacing: 0;
}

.caps {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: clamp(0.82rem, 0.72rem + 0.45vw, 1.12rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.5;
}

.lead {
  font-family: var(--f-display);
  font-size: var(--fs-lead);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
  font-variant-numeric: lining-nums;
}

.text {
  color: var(--ink-soft);
  font-weight: 400;
  text-wrap: pretty;
  max-width: 62ch;
}

.small {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: color-mix(in oklab, var(--brown) 72%, var(--cream));
  text-wrap: pretty;
}

.legal {
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.5;
  color: var(--ochre-deep);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

/* Séparateur à rosace */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ochre);
}
.ornament::before, .ornament::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.ornament svg { width: 22px; flex: none; }

/* Badges de disponibilité */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.66em 1.15em 0.62em;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--ochre);
  color: var(--ochre-deep);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 28%, transparent);
}
.badge--last {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brown-deep);
}
.badge--last::before {
  background: var(--brown);
  box-shadow: none;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brown) 45%, transparent); }
  60% { box-shadow: 0 0 0 6px transparent; }
}

/* Boutons */
.btn {
  --btn-bg: var(--ochre-btn);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  min-height: 50px;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s, color 0.35s, border-color 0.35s;
}
.btn .icon { width: 1.6em; height: 1.6em; }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px color-mix(in oklab, var(--brown) 70%, transparent);
}
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ochre-deep);
  border-color: var(--ochre);
}
.btn--ghost:hover { background: var(--ochre-btn); color: var(--paper); border-color: var(--ochre-btn); }
.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--brown-deep);
}
.btn--gold:hover { background: #E6B868; border-color: #E6B868; }
.btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: color-mix(in oklab, var(--cream) 55%, transparent);
}
.btn--light:hover { background: var(--cream); color: var(--brown-deep); border-color: var(--cream); }
.btn--lg { min-height: 58px; font-size: 0.8rem; padding: 1.1em 2.1em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: var(--fs-kicker);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  text-decoration: none;
}
.link-arrow .icon { width: 1.6em; height: 1.6em; transition: transform 0.45s var(--ease); }

/* Cadres photo */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--sand-soft);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame--arch { border-radius: 1000px 1000px 0 0; }
.frame--arch-sm { border-radius: 600px 600px 6px 6px; }
.frame--ellipse-r { border-radius: 0 50% 50% 0 / 0 50% 50% 0; }
.frame--circle { border-radius: 50%; aspect-ratio: 1; }
.frame--soft { border-radius: 4px; }

/* Lent zoom des photos à l'arrivée sur la slide */
.kenburns img {
  transform: scale(1.07);
  transition: transform 2.6s var(--ease-out);
}
.slide.is-inview .kenburns img { transform: scale(1); }

/* Motif moucharabieh (fond généré depuis pattern.js) */
.pattern {
  background-image: var(--pattern);
  background-size: calc(52.11px * var(--ps, 0.78)) calc(53.05px * var(--ps, 0.78));
  background-repeat: repeat;
}

/* Arches concentriques */
.arches { color: var(--ochre); }
.arches path { fill: none; stroke: currentColor; stroke-width: 1.1; vector-effect: non-scaling-stroke; }

/* Lignes ondulées de la couverture de la brochure */
.waves {
  position: absolute;
  inset: 0;
  background-image: var(--waves);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

/* Grand chiffre de typologie (« F2 ») */
.numeral {
  font-family: var(--f-numeral);
  font-weight: 400;
  font-size: var(--fs-numeral);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--ochre);
  display: inline-flex;
  align-items: flex-start;
}
.numeral sup {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.34em;
  line-height: 1;
  margin: 0.1em 0 0 0.08em;
  color: var(--ochre);
}

/* Tableaux à filets (comme la brochure) */
.table {
  width: 100%;
  font-size: var(--fs-small);
  font-variant-numeric: lining-nums tabular-nums;
}
.table th, .table td {
  text-align: left;
  padding: 0.62em 0.6em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table thead th {
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  background: var(--sand-soft);
  border-bottom: 1px solid var(--ochre);
}
.table .num { text-align: right; }
.table tbody tr { transition: background-color 0.25s; }
.table tbody tr:hover { background: color-mix(in oklab, var(--sand-soft) 55%, transparent); }

/* 6. Accueil ────────────────────────────────────────────── */

/* Couverture */
.s-cover .slide__bg { background: var(--cream-rose); }
.cover {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(10px, 2.2vh, 22px);
}
.cover__logo { width: min(64vw, 30vh, 420px); }
.cover__tagline {
  font-size: clamp(0.58rem, 0.5rem + 0.35vw, 0.78rem);
  letter-spacing: 0.62em;
  margin-right: -0.62em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  font-weight: 400;
}
.cover__media {
  position: relative;
  width: min(68vw, 30vh * 0.78, 320px);
  aspect-ratio: 0.78;
}
.cover__media .frame { position: absolute; inset: 0; box-shadow: 0 0 0 8px var(--cream-rose); }
.cover__media .pattern {
  position: absolute;
  inset: 10% -26% 26% 44%;
  border-radius: 0 0 4px 4px;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 30%);
  mask-image: linear-gradient(to left, transparent, #000 30%);
}
.cover__media .arches {
  position: absolute;
  width: 32%;
  left: -19%;
  bottom: 0;
}
.cover__script { margin-top: 2px; }
.cover__ornament { width: min(240px, 56vw); }
.cover h1 { margin: 0; line-height: 0; }
.cover__sub { max-width: 34ch; letter-spacing: 0.22em; }
.cover__place {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--ochre-deep);
}
.cover__place .icon { width: 1.3em; height: 1.3em; }
.cover__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }
.cover__text { display: grid; gap: clamp(8px, 1.6vh, 16px); justify-items: center; }

@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .cover {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 120px);
  }
  .cover__brand { display: grid; justify-items: center; gap: clamp(16px, 3vh, 28px); grid-row: 1; grid-column: 1; }
  .cover__text { grid-column: 1; grid-row: 2; }
  .cover__media {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: min(40vw, calc(var(--avail) * 0.74), 560px);
    justify-self: center;
  }
  .cover__logo { width: min(34vw, 30vh, 460px); }
}
@media (max-width: 699px), (max-aspect-ratio: 6/5) {
  .cover__brand { display: grid; justify-items: center; gap: 8px; }
}

/* La résidence */
.res__media {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
}
.res__arch { width: 74%; margin-left: auto; aspect-ratio: 0.72; }
.res__circle {
  position: absolute;
  width: 46%;
  left: 0;
  bottom: -4%;
  box-shadow: 0 0 0 clamp(6px, 0.8vw, 12px) var(--cream);
}
.res__text { display: grid; gap: clamp(12px, 2.2vh, 24px); align-content: center; }
.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vh, 22px) clamp(16px, 3vw, 40px);
  margin-top: clamp(4px, 1vh, 12px);
}
.figure { border-top: 1px solid var(--line); padding-top: clamp(8px, 1.4vh, 14px); }
.figure__value {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.05rem + min(1.5vw, 2.6vh), 2.5rem);
  line-height: 1;
  color: var(--ochre);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.figure__label {
  margin-top: 6px;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
@media (max-width: 699px), (max-aspect-ratio: 6/5) {
  .s-res .split { grid-template-columns: 1fr; }
  .res__media { display: none; }
}
@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .res__media { width: min(100%, calc(var(--avail) * 0.78)); }
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-res .split { grid-template-columns: 1.1fr 1fr; }
}
@media (min-width: 700px) and (min-aspect-ratio: 6/5) and (max-width: 1439px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Équipements (accueil) */
.amen { display: grid; gap: clamp(14px, 3vh, 34px); }
.amen__head { display: grid; gap: clamp(8px, 1.4vh, 14px); max-width: 760px; }
.amen__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 26px);
}
.amen__card { display: grid; gap: 10px; align-content: start; }
.amen__card .frame { aspect-ratio: 1.15; }
.amen__num {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--ochre);
  font-variant-numeric: lining-nums;
}
.amen__label {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.5rem);
  line-height: 1.15;
  color: var(--brown);
  font-weight: 500;
  font-variant-numeric: lining-nums;
}
.amen__label span { color: var(--ochre); margin-right: 0.45em; }
.amen__text { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.55em 1.1em 0.55em 0.8em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  background: color-mix(in oklab, var(--paper) 70%, transparent);
}
.chip .icon { color: var(--ochre); width: 1.45em; height: 1.45em; }
@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .amen__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .amen__card .frame { aspect-ratio: 0.82; max-height: calc(var(--avail) * 0.44); }
  .amen__text { display: block; }
}

/* Sélection des appartements */
.select { display: grid; gap: clamp(14px, 3.2vh, 40px); }
.select__head { display: grid; justify-items: center; text-align: center; gap: 4px; }
.select__title { display: grid; justify-items: center; font-weight: 400; }
.select__head .caps { color: var(--ochre-deep); margin-top: 0.35em; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 28px);
}
.card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid color-mix(in oklab, var(--ochre) 22%, transparent);
  border-radius: 6px 6px 4px 4px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--ochre) 55%, transparent);
  box-shadow: 0 30px 50px -30px color-mix(in oklab, var(--brown) 55%, transparent);
}
.card__media { position: relative; aspect-ratio: 1.45; margin: 8px 8px 0; }
.card__media .frame { position: absolute; inset: 0; border-radius: 1000px 1000px 0 0; }
.card__media img { transition: transform 1.2s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge { position: absolute; left: 8px; bottom: 8px; z-index: 1; }
.card__badge .badge { font-size: 0.58rem; padding: 0.6em 0.95em 0.56em; }
.card__body {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: clamp(10px, 1.6vh, 18px) clamp(10px, 1.4vw, 20px) clamp(12px, 2vh, 22px);
}
.card__name {
  font-family: var(--f-numeral);
  font-size: clamp(1.7rem, 1.2rem + min(1.8vw, 2.8vh), 2.9rem);
  line-height: 1;
  color: var(--ochre);
}
.card__name sup { font-family: var(--f-display); font-style: italic; font-size: 0.55em; margin-left: 0.08em; }
.card__rooms { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ochre-deep); }
.card__surface {
  font-family: var(--f-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
  color: var(--brown);
  font-variant-numeric: lining-nums;
}
.card__price { margin-top: 4px; border-top: 1px solid var(--hair); padding-top: 8px; }
.card__from { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.card__xof {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 0.92rem + 0.7vw, 1.55rem);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.15;
  font-variant-numeric: lining-nums;
}
.card__eur { font-size: var(--fs-small); color: var(--ink-soft); }
.card__go { margin-top: 8px; }
.card:hover .link-arrow .icon { transform: translateX(6px); }
.select__note { text-align: center; }
@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card__media { aspect-ratio: 0.92; max-height: calc(var(--avail) * 0.36); }
}
@media (max-width: 699px), (max-aspect-ratio: 6/5) {
  .card__go { display: none; }
  .card__rooms { letter-spacing: 0.12em; }
  .card__media { max-height: calc(var(--avail) * 0.2); }
  .amen__card .frame { max-height: calc(var(--avail) * 0.22); }
}

/* 7. Slides appartement ─────────────────────────────────── */

/* Hero */
.hero__media {
  position: relative;
  justify-self: center;
  width: min(100%, 360px, calc(var(--avail) * 0.34 * 1.6));
  height: calc(var(--avail) * 0.34);
}
.hero__media .frame { position: absolute; inset: 0; box-shadow: 0 0 0 8px var(--cream); }
.hero__media .pattern { display: none; }
.hero__media .arches { display: none; }
.hero__text { display: grid; gap: clamp(8px, 1.6vh, 18px); justify-items: center; text-align: center; }
.hero__type { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 24px); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.hero__rooms { font-size: var(--fs-kicker); letter-spacing: 0.26em; text-transform: uppercase; color: var(--ochre-deep); }
.hero__facts {
  display: grid;
  grid-template-columns: auto 1px auto;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  padding: clamp(10px, 1.8vh, 18px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero__facts > i { align-self: stretch; background: var(--line); }
.fact__label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.fact__value {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 1.1rem + min(2.2vw, 3.4vh), 3rem);
  line-height: 1.05;
  color: var(--ochre);
  font-variant-numeric: lining-nums;
}
.fact__price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1rem + min(1.4vw, 2.2vh), 2.1rem);
  line-height: 1.1;
  color: var(--brown);
  font-variant-numeric: lining-nums;
}
.fact__eur { font-size: var(--fs-small); color: var(--ink-soft); }
.hero__tagline { max-width: 34ch; }

@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .s-hero .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__text { justify-items: start; text-align: left; order: -1; }
  .hero__meta { justify-content: flex-start; }
  .hero__media {
    width: min(100%, calc(var(--avail) * 0.72));
    height: calc(var(--avail) * 0.92);
    max-height: 860px;
  }
  .hero__media .pattern {
    display: block;
    position: absolute;
    top: 9%;
    right: -14%;
    width: 46%;
    height: 54%;
    border-radius: 2px;
    -webkit-mask-image: linear-gradient(to left, transparent, #000 40%);
    mask-image: linear-gradient(to left, transparent, #000 40%);
  }
  .hero__media .frame { z-index: 1; }
  .hero__media .arches {
    display: block;
    position: absolute;
    width: 52%;
    left: -29%;
    bottom: 0;
    z-index: 0;
  }
}

/* L'appartement (présentation) : bandeau photo au bord gauche, bord droit
   en demi-ellipse sur le motif, comme les pages plan de la brochure. */
.intro__band { display: none; }
.intro__text { display: grid; gap: clamp(10px, 2vh, 22px); align-content: center; }
.pillars { display: grid; gap: clamp(10px, 2vh, 22px); margin-top: clamp(2px, 0.8vh, 10px); }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px clamp(14px, 1.8vw, 24px);
  align-items: start;
  padding-top: clamp(10px, 1.8vh, 18px);
  border-top: 1px solid var(--line);
}
.pillar__num {
  grid-row: span 2;
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem);
  line-height: 0.9;
  color: var(--gold);
  font-weight: 500;
  font-variant-numeric: lining-nums;
}
.pillar__title {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 0.95rem + 0.75vw, 1.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brown);
}
.pillar__title .icon { color: var(--ochre); width: 1.25em; height: 1.25em; }
.pillar__text { color: var(--ink-soft); font-size: var(--fs-body); }

@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .intro__band {
    display: block;
    position: absolute;
    left: 0;
    top: calc(var(--header-h) + 5vh);
    bottom: calc(var(--footer-h) + 5vh);
    width: 44%;
  }
  .intro__band .pattern {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 30%;
  }
  .intro__band .frame {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 90%;
    border-radius: 0 30% 30% 0 / 0 50% 50% 0;
    box-shadow: 0 0 0 clamp(8px, 0.8vw, 14px) var(--cream);
  }
  .s-intro .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
  .s-intro .split > .intro__spacer { display: block; }
}
.intro__spacer { display: none; }

/* Plan & surfaces */
.plan__sheet {
  position: relative;
  background: var(--paper);
  border: 1px solid color-mix(in oklab, var(--ochre) 30%, transparent);
  padding: clamp(10px, 1.6vw, 22px);
  box-shadow: 0 30px 60px -40px color-mix(in oklab, var(--brown) 60%, transparent);
}
.plan__sheet::before, .plan__sheet::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ochre);
}
.plan__sheet::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.plan__sheet::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.plan__zoom {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}
.plan__img {
  width: 100%;
  height: auto;
  max-height: calc(var(--avail) * 0.3);
  object-fit: contain;
}
.plan__photo { aspect-ratio: 16 / 9; max-height: calc(var(--avail) * 0.3); margin-top: 6px; }
.plan__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 16px;
  margin-top: 10px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.plan__caption strong { color: var(--ochre-deep); font-weight: 500; white-space: nowrap; }
.plan__info { display: grid; gap: clamp(8px, 1.5vh, 16px); align-content: center; }
.plan__type { font-size: clamp(0.8rem, 0.7rem + 0.4vw, 1.05rem); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 300; color: var(--ochre-deep); }
.plan__surface {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 1.4rem + min(3.6vw, 5.4vh), 4.6rem);
  line-height: 0.95;
  color: var(--ochre);
  font-weight: 500;
  font-variant-numeric: lining-nums;
}
.rooms {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(18px, 2.6vw, 40px);
  font-size: var(--fs-small);
  font-variant-numeric: lining-nums tabular-nums;
}
.rooms--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.room {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0.42em 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.3;
}
.room__n {
  font-family: var(--f-display);
  font-size: 0.95em;
  color: var(--ochre);
  min-width: 1.4em;
}
.room__name { flex: 1; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92em; }
.room__m2 { white-space: nowrap; }
.rooms__totals { display: grid; gap: 2px; margin-top: 4px; }
.rooms__total {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 0.8em;
  background: var(--sand-soft);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-variant-numeric: lining-nums tabular-nums;
}
.rooms__total--real { background: var(--sand); color: var(--brown-deep); font-weight: 500; }

.plan__request {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(10px, 2vh, 18px);
  padding: clamp(24px, 6vh, 64px) clamp(16px, 3vw, 40px);
  background:
    linear-gradient(color-mix(in oklab, var(--ochre) 9%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, color-mix(in oklab, var(--ochre) 9%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
}
.plan__request svg.rosace { width: 46px; }

@media (max-width: 699px), (max-aspect-ratio: 6/5) {
  .plan__img { max-height: calc(var(--avail) * 0.32); }
  .plan__request { padding: 20px 16px; }
}
@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .s-plan .split { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .plan__img { max-height: calc(var(--avail) * 0.78); }
}

/* En images */
.photos { display: grid; gap: clamp(10px, 2vh, 24px); }
.photos__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 24px; }
.photos__head > div { display: grid; gap: 6px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: calc(var(--avail) * 0.17);
  gap: clamp(6px, 1vw, 14px);
}
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--sand-soft);
}
.shot:first-child { grid-column: span 2; grid-row: span 2; border-radius: 1000px 1000px 3px 3px; }
.shot button {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(to top, color-mix(in oklab, var(--brown-deep) 78%, transparent), transparent);
  color: var(--cream);
  pointer-events: none;
}
.shot__label {
  font-family: var(--f-display);
  font-size: clamp(0.98rem, 0.85rem + 0.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.1;
}
.shot__cap { display: none; font-size: 0.74rem; line-height: 1.4; opacity: 0.88; margin-top: 3px; max-width: 46ch; }
.shot:first-child .shot__cap { display: block; }
@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .gallery {
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: repeat(2, calc((var(--avail) - 130px) / 2));
    grid-auto-rows: unset;
  }
  .shot:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .shot figcaption { padding: 40px 18px 14px; }
  .shot__cap { display: block; }
}
@media (max-height: 540px) {
  .shot__cap { display: none !important; }
}

/* Rendements */
.yields__intro { display: grid; gap: clamp(10px, 1.8vh, 18px); align-content: center; }
.ycards { display: grid; gap: clamp(12px, 2vh, 22px); }
.ycard {
  background: var(--paper);
  border: 1px solid color-mix(in oklab, var(--ochre) 28%, transparent);
  padding: clamp(14px, 2.4vh, 28px) clamp(14px, 2vw, 30px);
  display: grid;
  gap: clamp(10px, 1.8vh, 18px);
}
.ycard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ycard__title {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.7rem);
  font-weight: 600;
  color: var(--brown);
}
.ycard__tag {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4em 0.9em;
}
.scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 14px);
}
.scenario {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: clamp(10px, 1.6vh, 18px) clamp(8px, 1vw, 16px);
  border: 1px solid var(--hair);
  border-radius: 3px;
  text-align: center;
}
.scenario--hl { background: var(--sand-soft); border-color: transparent; }
.scenario__name { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ochre-deep); font-weight: 500; }
.scenario__value {
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 1rem + min(1.9vw, 3vh), 2.9rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ochre);
  margin: 4px 0 2px;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.scenario__label { font-size: 0.62rem; line-height: 1.3; color: var(--ink-soft); }
.scenario__rows { margin-top: clamp(6px, 1.2vh, 12px); display: grid; }
.scenario__row {
  display: grid;
  gap: 0;
  padding: 0.45em 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  line-height: 1.25;
  font-variant-numeric: lining-nums;
}
.scenario__row span { font-size: 0.62rem; color: var(--ink-soft); }
.scenario__row b { font-weight: 500; color: var(--brown); }
.ycard__kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ycard__note { margin-top: 2px; }
.yields__legal {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 14px;
}
@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .s-yields .split { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
  .scenario__row { grid-template-columns: 1fr auto; text-align: left; align-items: baseline; gap: 8px; }
}

/* Étages & prix */
.floors__intro { display: grid; gap: clamp(10px, 1.8vh, 18px); align-content: center; }
.floors__count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.6rem);
  color: var(--brown);
  font-variant-numeric: lining-nums;
}
.floors__alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: color-mix(in oklab, var(--gold) 20%, var(--paper));
  border: 1px solid color-mix(in oklab, var(--gold) 60%, transparent);
  border-radius: 3px;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.floors__alert .icon { color: var(--ochre); width: 1.6em; height: 1.6em; margin-top: 1px; }
.floors__table { background: var(--paper); border: 1px solid color-mix(in oklab, var(--ochre) 24%, transparent); }
.floors__table td:first-child { font-weight: 500; }
.floors__table .xof { font-family: var(--f-display); font-size: 1.12em; font-weight: 600; color: var(--brown); }
.floors__table .eur { color: var(--ink-soft); }
@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .s-floors .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .floors__table th, .floors__table td { padding: 0.78em 1em; }
}
/* Beaucoup de lots (F3) : lignes resserrées pour tenir sans réduction. */
.floors__table--dense th, .floors__table--dense td { padding-top: 0.5em !important; padding-bottom: 0.5em !important; }
/* Lots en cartes (écrans étroits ou en hauteur) */
.floor-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 44%), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.floor-cards--single { grid-template-columns: 1fr; max-width: 360px; }
.floor-card {
  display: grid;
  gap: 1px;
  padding: 8px 10px 9px;
  background: var(--paper);
  border: 1px solid color-mix(in oklab, var(--ochre) 24%, transparent);
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.35;
}
.floor-card__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 8px;
}
.floor-card__level {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}
.floor-card__lot { font-size: 0.7rem; color: var(--ink-soft); white-space: nowrap; }
.floor-card__xof {
  margin-top: 2px;
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--brown);
  white-space: nowrap;
}
.floor-card__eur { font-size: 0.72rem; color: var(--ink-soft); }
@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .floor-cards { display: none; }
}
@media (max-width: 699px), (max-aspect-ratio: 6/5) {
  .floors__table { display: none; }
}

/* Services & art de vivre */
.services__media { display: none; }
.services__text { display: grid; gap: clamp(12px, 2vh, 24px); align-content: center; }
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
}
.tile {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: clamp(10px, 1.6vh, 18px) clamp(10px, 1.2vw, 18px);
  background: var(--paper);
  border: 1px solid color-mix(in oklab, var(--ochre) 18%, transparent);
  border-radius: 3px;
  overflow: hidden;
}
.tile__top { display: flex; align-items: center; justify-content: space-between; }
.tile__num {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--sand);
  font-variant-numeric: lining-nums;
}
.tile .icon { color: var(--ochre); width: 1.8em; height: 1.8em; }
.tile__label {
  font-family: var(--f-display);
  font-size: clamp(1.02rem, 0.9rem + 0.55vw, 1.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brown);
}
.tile__text { display: none; font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.45; }
@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .s-services .split { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); }
  .services__media {
    display: block;
    position: relative;
    height: calc(var(--avail) * 0.92);
  }
  .services__media .frame { position: absolute; inset: 0; }
  .services__overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18% 8% 10%;
    background: linear-gradient(to top, color-mix(in oklab, var(--brown-deep) 72%, transparent), transparent);
    color: var(--cream);
    display: grid;
    gap: 2px;
  }
  .services__overlay .caps { font-size: clamp(0.7rem, 0.6rem + 0.3vw, 0.9rem); }
  .services__overlay .script { color: var(--gold); font-size: clamp(2.6rem, 1.6rem + 2.6vw, 4.6rem); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile__text { display: block; }
  .tile { padding: clamp(14px, 2.2vh, 24px) clamp(14px, 1.4vw, 22px); }
}

/* Votre projet (CTA) */
.s-cta .slide__bg img { width: 100%; height: 100%; object-fit: cover; }
.s-cta .slide__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, color-mix(in oklab, var(--brown-deep) 55%, transparent), color-mix(in oklab, var(--brown-deep) 88%, transparent) 75%);
}
.cta {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(12px, 2.4vh, 26px);
  max-width: 820px;
  margin: 0 auto;
}
.cta__rosace { width: clamp(38px, 5vh, 56px); --logo-dot: var(--gold); }
.cta .title { color: var(--cream); }
.cta__text { color: color-mix(in oklab, var(--cream) 86%, transparent); max-width: 52ch; }
.cta__summary {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  padding: 10px 20px;
  border: 1px solid color-mix(in oklab, var(--gold) 55%, transparent);
  border-radius: 999px;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  color: var(--cream);
  font-variant-numeric: lining-nums;
}
.cta__summary b { color: var(--gold); font-weight: 500; }
.cta__others { display: grid; gap: 10px; justify-items: center; margin-top: clamp(4px, 1vh, 12px); }
.cta__others .small { color: color-mix(in oklab, var(--cream) 70%, transparent); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.64rem; }
.cta__others .chips { justify-content: center; }
.cta__others a.chip {
  color: var(--cream);
  border-color: color-mix(in oklab, var(--cream) 30%, transparent);
  background: color-mix(in oklab, var(--cream) 6%, transparent);
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.cta__others a.chip:hover { background: var(--cream); color: var(--brown-deep); }
.cta__others a.chip b { font-family: var(--f-display); font-size: 1.15em; font-weight: 600; font-variant-numeric: lining-nums; }

/* 8. Contact ────────────────────────────────────────────── */

.contact__media { display: none; }
.contact__panel { display: grid; gap: clamp(12px, 2.2vh, 24px); justify-items: center; text-align: center; }
.contact__logo { width: min(52vw, 18vh, 260px); }
.contact__title { display: grid; }
.contact__title .title { font-weight: 400; }
.contact__list { display: grid; gap: clamp(8px, 1.5vh, 14px); width: min(100%, 420px); text-align: left; }
.contact__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: center;
  padding-bottom: clamp(8px, 1.4vh, 12px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.contact__item .icon { grid-row: span 2; color: var(--ochre); width: 1.7em; height: 1.7em; }
.contact__item span { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.contact__item b { font-weight: 400; color: var(--brown); font-size: var(--fs-body); overflow-wrap: anywhere; }
a.contact__item:hover b { color: var(--ochre-deep); }
.contact__visit {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: var(--fs-kicker);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}
.contact__visit .icon { width: 1.5em; height: 1.5em; }
.contact__legal { max-width: 60ch; font-size: 0.68rem; }
@media (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .s-contact .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact__media {
    display: block;
    position: relative;
    height: calc(var(--avail) * 0.94);
  }
  .contact__media .frame { position: absolute; inset: 0; border-radius: 1000px 1000px 3px 3px; }
  .contact__media .frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in oklab, var(--brown-deep) 80%, transparent), transparent 55%);
  }
  .contact__overlay {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 7%;
    color: var(--cream);
    display: grid;
    gap: 10px;
  }
  .contact__overlay .title { color: var(--cream); font-weight: 300; font-size: clamp(2.2rem, 1.2rem + 3vw, 4.6rem); }
  .contact__overlay .contact__visit { color: var(--gold); }
  .contact__panel .contact__title, .contact__panel > .contact__visit { display: none; }
}

/* Visionneuse photo */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: color-mix(in oklab, var(--brown-deep) 94%, black);
  color: var(--cream);
}
.lightbox::backdrop { background: rgba(20, 12, 5, 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top, .lightbox__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--side);
}
.lightbox__count { font-family: var(--f-display); letter-spacing: 0.08em; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--side); }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; }
.lightbox__stage img.is-plan { background: var(--paper); padding: 12px; }
.lightbox__caption { display: grid; gap: 4px; }
.lightbox__caption b { font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; color: var(--gold); }
.lightbox__caption span { font-size: var(--fs-small); opacity: 0.85; }
.lightbox .pager__btn { color: var(--cream); }
.lightbox .pager__btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--brown-deep); }

/* Écrans courts ─────────────────────────────────────────
   Petits téléphones en hauteur, puis téléphones à l'horizontale : les
   éléments se resserrent et les textes secondaires s'effacent, pour que
   l'ajustement automatique n'ait presque plus à réduire. */

@media (max-height: 720px) and (max-width: 699px), (max-height: 720px) and (max-aspect-ratio: 6/5) {
  .card__media { aspect-ratio: 1.9; }
  .select__head .kicker { display: none; }
  .amen__card .frame { aspect-ratio: 1.6; }
  .chip { padding: 0.4em 0.9em 0.4em 0.7em; }
  .plan__img { max-height: calc(var(--avail) * 0.25); }
  .room { padding: 0.3em 0; }
  .cover__media { width: min(60vw, 26vh * 0.78, 300px); }
}

@media (max-height: 540px) {
  .pillar__text, .amen__text, .tile__text, .shot__cap,
  .card__rooms, .card__eur, .card__go, .select__head .kicker,
  .cover__place, .cover__ornament, .plan__type, .res__text .text + .text { display: none !important; }
  .card__media { aspect-ratio: 2 !important; max-height: none !important; }
  .card__body { gap: 2px; padding: 8px 12px 10px; }
  .amen__card .frame { aspect-ratio: 1.7 !important; }
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .pillar { padding-top: 8px; }
  .pillars { gap: 8px; }
  .tile { padding: 10px 12px !important; }
  .room { padding: 0.24em 0; }
  .plan__img { max-height: calc(var(--avail) * 0.86) !important; }
  .floors__table { display: none !important; }
  .floor-cards { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
}
@media (max-height: 540px) and (min-width: 700px) and (min-aspect-ratio: 6/5) {
  .s-floors .split { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: 28px; }
}
[data-anim] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + 80ms);
}
[data-anim="fade"] { transform: none; }
[data-anim="left"] { transform: translate3d(-28px, 0, 0); }
[data-anim="right"] { transform: translate3d(28px, 0, 0); }
[data-anim="scale"] { transform: scale(0.96); }
.slide.is-inview [data-anim] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1; transform: none; }
  .kenburns img { transform: none; }
}
