/* Trafaria Residences — feuille de style
   Palette demandée : #7CB9E8 (aero), #F0F8FF (alice), #318CE7 (bleu de France)
   + encre des azulejos pour le texte (contraste AA). */

:root {
  --alice: #F0F8FF;
  --aero: #7CB9E8;
  --france: #318CE7;
  --blue: #1D68B9;          /* bleu de France assombri : texte et boutons, 5,2:1 sur alice, 4,8:1 sur mist (AA) */
  --azulejo: #16335E;       /* bleu des carreaux */
  --ink: #0E2A47;           /* texte principal, 13:1 sur alice */
  --ink-2: #33506F;
  --ink-3: #4F6880;
  --deep: #0A1F37;
  --mist: #E3EFFA;
  --white: #FFFFFF;
  --line: rgba(14, 42, 71, .14);
  --line-light: rgba(240, 248, 255, .18);
  --terracotta: #C2654A;
  --stone: #D9D2C3;
  --glow: #FFE2A8;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1320px;
  --space: clamp(80px, 11vw, 168px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--alice);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (min-width: 900px) { body { font-size: 17px; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
img[style*="background-image"] { background-size: cover; background-position: center; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--france); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--alice); padding: 10px 16px; transition: top .2s; }
.skip:focus { top: 12px; }
svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- typographie ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  margin: 0 0 1.4rem;
  font: 600 .74rem/1.2 var(--font-text);
  letter-spacing: .22em; text-transform: uppercase; color: var(--blue);
}
/* repère des titres de section : la plante du logo */
.eyebrow::before {
  content: ""; flex: none; width: 1.9em; height: 1.5em; background: var(--france);
  -webkit-mask: url("../logo/palmes-blanc-480.png") center / contain no-repeat;
          mask: url("../logo/palmes-blanc-480.png") center / contain no-repeat;
}
.eyebrow--light { color: var(--aero); }
.eyebrow--light::before { background: var(--aero); }
.title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.35rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.012em;
  text-wrap: balance;
}
.title em { font-style: italic; color: var(--blue); }
.title--xl { font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .96; }
.lead {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.32rem, 1.9vw, 1.7rem); line-height: 1.32; color: var(--ink);
}
.note { font-size: .82rem; color: var(--ink-3); margin: 1.2em 0 0; }
.note--light { color: rgba(240, 248, 255, .7); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 48px; padding: 0 1.5em;
  border: 1px solid transparent; border-radius: 0;
  font: 600 .8rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: var(--blue); color: var(--white);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { background: var(--azulejo); }
.btn--light { background: var(--alice); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--azulejo); }
.btn--line { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--line:hover { background: var(--ink); color: var(--alice); border-color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--alice); }
.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: .72rem; }
.btn--icon { width: 52px; padding: 0; background: var(--alice); color: var(--ink); border-color: var(--line); }
.round {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-light); background: transparent; color: var(--alice);
  transition: background .3s, color .3s, border-color .3s;
}
.round:hover { background: var(--alice); color: var(--ink); border-color: var(--alice); }
.round--light { background: rgba(10, 31, 55, .55); backdrop-filter: blur(6px); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; font-size: .88rem; }

/* ---------- en-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0; color: var(--white);
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.header.is-solid { background: rgba(240, 248, 255, .9); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.header.is-static { position: sticky; top: 0; }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: block; justify-self: center; transition: opacity .45s var(--ease); }
.brand img { height: 46px; width: auto; }
.brand__dark { display: none; }
.is-solid .brand__light { display: none; }
.is-solid .brand__dark { display: block; }
.header:not(.is-solid) .brand { opacity: 0; pointer-events: none; }
.lang { list-style: none; margin: 0; padding: 0; display: flex; }
.header__tools { justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang { gap: 2px; }
/* bouton Menu, à gauche comme sur le site Sobreiro */
.menu-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; margin-left: -6px; padding: 0 10px 0 6px;
  background: none; border: 0; color: inherit;
  font: 600 .74rem/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase;
}
.menu-btn svg { width: 26px; height: 26px; transition: transform .45s var(--ease); }
.menu-btn:hover svg { transform: scaleX(1.18); }
.menu-btn:hover span { text-decoration: underline; text-underline-offset: .4em; }
.lang a { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; opacity: .62; transition: opacity .3s; }
.lang abbr { text-decoration: none; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang a[aria-current] abbr { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.header__cta { display: none; }
.header:not(.is-solid) .header__cta { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.header:not(.is-solid) .header__cta:hover { background: var(--white); color: var(--ink); }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }
/* bouton Appartements : plein, à gauche de Contact */
.header__apts { background: var(--ink); border-color: var(--ink); color: var(--alice); }
.header__apts:hover, .header__apts[aria-current] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.header:not(.is-solid) .header__apts { background: var(--white); border-color: var(--white); color: var(--ink); }
.header:not(.is-solid) .header__apts:hover { background: var(--alice); border-color: var(--alice); }
.header__tools { gap: 10px; }

/* langues : menu déroulant à droite du bouton Contact */
.langdd { position: relative; }
.langdd summary {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 13px;
  border: 1px solid rgba(14, 42, 71, .26); list-style: none; cursor: pointer; user-select: none;
  font: 600 .72rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.langdd summary::-webkit-details-marker { display: none; }
.langdd summary svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.langdd[open] summary svg { transform: rotate(180deg); }
.langdd summary:hover, .langdd[open] summary { background: var(--ink); border-color: var(--ink); color: var(--alice); }
.header:not(.is-solid) .langdd summary { border-color: rgba(255, 255, 255, .7); }
.header:not(.is-solid) .langdd summary:hover, .header:not(.is-solid) .langdd[open] summary { background: var(--white); border-color: var(--white); color: var(--ink); }
.langdd__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 210px;
  list-style: none; margin: 0; padding: 6px; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 26px 50px -26px rgba(14, 42, 71, .5);
}
.langdd__list a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; text-decoration: none; font-size: .92rem; transition: background .2s; }
.langdd__list a:hover, .langdd__list a:focus-visible { background: var(--mist); }
.langdd__code { min-width: 2.2em; font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); }
.langdd__list a[aria-current] { color: var(--blue); font-weight: 600; }
.langdd__list a[aria-current]::after {
  content: ""; margin-left: auto; width: 1.3em; height: 1em; background: var(--france);
  -webkit-mask: url("../logo/palmes-blanc-480.png") center / contain no-repeat;
          mask: url("../logo/palmes-blanc-480.png") center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) { .langdd[open] .langdd__list { animation: drop .28s var(--ease-out); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* menu : liste qui se déroule depuis le haut, liens alignés à gauche */
.menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: var(--ink); color: var(--alice); }
.menu[hidden] { display: none; }
.menu::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, rgba(240, 248, 255, .035) 1px, transparent 1px), linear-gradient(rgba(240, 248, 255, .035) 1px, transparent 1px); background-size: 56px 56px; }
.menu__bar { position: relative; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gutter) 0; }
.menu__brand { height: 46px; width: auto; justify-self: center; }
.menu .lang--menu { justify-self: end; gap: 4px; }
.lang--menu a { min-width: 40px; min-height: 40px; border: 1px solid var(--line-light); }
.menu__body { position: relative; flex: 1; width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(24px, 6vh, 64px) var(--gutter) 48px; display: grid; gap: 48px; align-content: center; }
@media (min-width: 900px) { .menu__body { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); align-items: end; } }
.menu__links { list-style: none; margin: 0; padding: 0; }
.menu__links a {
  display: inline-flex; align-items: center; gap: .35em; padding: .1em 0;
  font-family: var(--font-display); font-weight: 500; font-size: min(clamp(2.3rem, 6.2vw, 4.8rem), 7.2vh); line-height: 1.08; /* huit liens : tout tient en hauteur */
  text-decoration: none; color: var(--alice);
  transition: color .3s var(--ease), transform .45s var(--ease);
}
/* repère de la section : la plante du logo, qui pousse devant le lien */
.menu__links a::before {
  content: ""; flex: none; width: 0; height: .5em; margin-right: -.35em;
  background: var(--aero);
  -webkit-mask: url("../logo/palmes-blanc-480.png") center / contain no-repeat;
          mask: url("../logo/palmes-blanc-480.png") center / contain no-repeat;
  opacity: 0; transform: rotate(-14deg) scale(.6); transform-origin: 70% 90%;
  transition: width .4s var(--ease), margin .4s var(--ease), opacity .3s var(--ease), transform .5s var(--ease);
}
.menu__links a:hover, .menu__links a:focus-visible { color: var(--aero); font-style: italic; }
.menu__links a:hover::before, .menu__links a:focus-visible::before { width: .63em; margin-right: 0; opacity: 1; transform: none; }
.menu__aside { display: grid; gap: 32px; align-content: end; font-size: .95rem; }
.menu__label { margin: 0 0 10px; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--aero); }
.menu__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.menu__list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; color: var(--alice); transition: color .25s, padding .35s var(--ease); }
.menu__list a:hover { color: var(--aero); padding-left: 6px; }
.menu__list svg { color: var(--aero); }
/* précision à côté d'un numéro (« Clients internationaux ») : menu et pied de page */
.tel-note { margin-left: 12px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(240, 248, 255, .6); white-space: nowrap; }
.footer .tel-note { display: block; margin: 2px 0 0; }
.menu .tiles { position: relative; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .menu.is-open { animation: unroll .75s var(--ease-out) both; }
  .menu.is-open .menu__links li { animation: slide-in .8s var(--ease-out) both; animation-delay: calc(var(--i) * 55ms + 180ms); }
  .menu.is-open .menu__aside { animation: fade .9s .4s both; }
}

/* ---------- héros ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; justify-items: center; overflow: hidden; color: var(--white); background: var(--deep); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 31, 55, .55) 0%, rgba(10, 31, 55, 0) 22%),
    linear-gradient(0deg, rgba(10, 31, 55, .82) 0%, rgba(10, 31, 55, .42) 34%, rgba(10, 31, 55, 0) 62%),
    radial-gradient(56% 50% at 50% 56%, rgba(10, 31, 55, .42), transparent 78%);
}
.hero__content { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 0 var(--gutter) clamp(112px, 15vh, 168px); max-width: 980px; }
.hero__logo { width: clamp(200px, 23vw, 360px); filter: drop-shadow(0 4px 30px rgba(10, 31, 55, .35)); margin: 4px 0 6px; }
.hero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; margin-bottom: 10px; }
.hero__title em { font-style: italic; color: #CFE6F8; }
.hero__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.hero__scroll { grid-column: 2; }
.hero__toggle { grid-column: 3; }
.hero__scroll { justify-self: center; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.hero__scroll svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) { .hero__scroll svg { animation: bob 2.4s var(--ease) infinite; } }
.hero__toggle { justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(10, 31, 55, .25); color: var(--white); }
.hero__toggle svg { width: 16px; height: 16px; }
.hero__toggle-play { display: none; }
.hero__toggle.is-paused .hero__toggle-play { display: block; }
.hero__toggle.is-paused .hero__toggle-pause { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__logo, .js .hero__title, .js .hero__cta { animation: rise 1.2s var(--ease-out) both; }
  .js .hero__logo { animation-delay: .15s; }
  .js .hero__title { animation-delay: .35s; }
  .js .hero__cta { animation-delay: .55s; }
  .js .hero__foot { animation: fade 1.4s .9s both; }
}

/* ---------- sections ---------- */
.section { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding: var(--space) var(--gutter); }
.section-pad { padding: var(--space) 0; }

/* intro : 4 chiffres posés sur la grille de 12 colonnes (même gouttière),
   « 10 » s'aligne sur le titre et « 2 min » sur le paragraphe d'introduction */
.intro { display: grid; gap: 28px; }
.intro__text { max-width: 560px; }
.intro__text p:last-child { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin: 32px 0 0; border-top: 1px solid var(--line); }
.stat { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.stat:nth-child(even)::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.stat__value { margin: 0; font-family: var(--font-display); font-size: clamp(3.2rem, 6vw, 5.2rem); line-height: .9; color: var(--azulejo); font-variant-numeric: lining-nums tabular-nums; }
.stat__unit { font-size: .38em; margin-left: .2em; color: var(--blue); font-style: italic; }
.stat__pre { font-size: .38em; margin-right: .3em; color: var(--blue); font-style: italic; }
.stat__label { margin-top: 14px; font-size: .92rem; line-height: 1.45; color: var(--ink-2); max-width: 28ch; text-wrap: balance; }
@media (min-width: 900px) {
  .intro { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; }
  .intro__head { grid-column: 1 / span 6; }
  .intro__text { grid-column: 7 / span 6; align-self: end; padding-bottom: .6rem; }
  .stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 112px); }
  .stat { padding: 32px 0 0; border-bottom: 0; }
  .stat:not(:first-child)::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 1px; background: var(--line); }
}

/* la vue : le Tage depuis le séjour */
.view { display: grid; gap: 40px; align-items: center; padding-top: 0; }
/* grande image : bord à bord sur mobile, jusqu'au bord gauche de l'écran sur ordinateur */
.view__figure { margin: 0 calc(-1 * var(--gutter)); position: relative; }
.view__figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 55%; }
.view__figure::after { content: ""; position: absolute; right: -14px; top: 40px; bottom: 80px; width: 14px; background: url("../img/azulejos.svg") repeat-y 0 0 / 24px auto; opacity: .9; }
.view__figure figcaption { margin: 12px var(--gutter) 0; font-size: .8rem; color: var(--ink-3); }
.view__text p:not(.eyebrow):not(.lead) { color: var(--ink-2); max-width: 54ch; }
.view__text .lead { margin-top: 1.6rem; max-width: 30em; }
@media (max-width: 899px) { .view__figure::after { display: none; } }
@media (min-width: 900px) {
  .view { grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 380px); column-gap: clamp(48px, 6vw, 112px); }
  .view__text { grid-column: 2; }
  .view__figure { --bleed: max(var(--gutter), (100vw - var(--maxw)) / 2); margin: 0 0 0 calc(-1 * var(--bleed)); }
  .view__figure figcaption { margin: 12px 0 0 var(--bleed); }
}

/* les extérieurs */
.exteriors { background: var(--white); }
.exteriors__figure { margin: 0; position: relative; }
.exteriors__figure img { width: 100%; height: clamp(360px, 78vh, 860px); object-fit: cover; }
.exteriors__figure::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: url("../img/azulejos.svg") repeat-x 0 0 / auto 24px; }
.exteriors__body { display: grid; gap: 40px; }
.exteriors__head .lead { margin-top: 1.4rem; max-width: 32em; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pillar { padding: 28px 0; border-top: 1px solid var(--line); }
.pillar__n { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--blue); margin-bottom: 10px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.85rem; line-height: 1.1; margin-bottom: 10px; }
.pillar p { color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
  .exteriors__body { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .exteriors__head { grid-column: 1 / span 5; }
  .pillars { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .pillar { padding-top: 32px; }
}

/* bande d'azulejos */
.tiles { height: 24px; background: url("../img/azulejos.svg") repeat-x 0 0 / auto 24px; }

/* ---------- appartements ---------- */
.apartments { background: var(--mist); }
.apartments__head { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 22px; }
.apartments__lead { max-width: 60ch; color: var(--ink-2); margin-top: 1.6rem; }
.apartments__head .apartments__lead { margin: 0; }
.apartments__stats { margin-top: 12px; }
.apartments__stats .stat__value { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
@media (min-width: 900px) {
  .apartments__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; }
  .apartments__title { grid-column: 1 / span 7; }
  .apartments__head .apartments__lead { grid-column: 8 / span 5; align-self: end; padding-bottom: .5rem; }
  .apartments__stats { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 64px); }
}
/* en-tête sur l'image du jardin (les deux bâtiments) : texte clair à gauche, chiffres en bas, frise d'azulejos */
.apartments--page { padding-top: 0; }
.apartments__hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); }
.apartments__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.apartments__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; background-size: cover; background-position: 50% 58%; }
.apartments__hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(9, 27, 48, .82) 0%, rgba(9, 27, 48, .35) 38%, rgba(9, 27, 48, .1) 60%),
              linear-gradient(90deg, rgba(9, 27, 48, .78) 0%, rgba(9, 27, 48, .5) 38%, rgba(9, 27, 48, .08) 72%, rgba(9, 27, 48, 0) 100%); }
.apartments__hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: url("../img/azulejos.svg") repeat-x 0 0 / auto 16px; }
.apartments__hero .apartments__head { padding-top: clamp(72px, 10vw, 150px); padding-bottom: clamp(44px, 5vw, 72px); }
.apartments__hero .title { color: var(--white); text-shadow: 0 2px 24px rgba(9, 27, 48, .35); }
.apartments__hero .title em { color: var(--aero); }
.apartments__hero .apartments__lead { color: rgba(255, 255, 255, .9); max-width: 46ch; }
.apartments__hero .stats { border-top-color: rgba(255, 255, 255, .3); }
.apartments__hero .stat { border-bottom-color: rgba(255, 255, 255, .22); }
.apartments__hero .stat::before { background: rgba(255, 255, 255, .26) !important; }
.apartments__hero .stat__value { color: var(--white); }
.apartments__hero .stat__unit { color: var(--aero); }
.apartments__hero .stat__label { color: rgba(255, 255, 255, .84); }
@media (min-width: 900px) {
  /* texte groupé à gauche, sur la partie assombrie ; l'image reste lumineuse à droite */
  .apartments__hero .apartments__title { grid-column: 1 / span 7; }
  .apartments__hero .apartments__head .apartments__lead { grid-column: 1 / span 6; align-self: start; padding: 0; margin-top: 1.4rem; }
}
@media (max-width: 899px) {
  .apartments__hero::before { background: linear-gradient(0deg, rgba(9, 27, 48, .85) 0%, rgba(9, 27, 48, .6) 50%, rgba(9, 27, 48, .45) 100%); }
}

/* schéma de façade : seulement si la maquette 3D ne peut pas s'afficher */
.apartments__facade { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 48px auto 0; padding: 0 var(--gutter); }
.has-maquette .apartments__facade { display: none; }
.apartments__list { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--gutter); }
/* barre de filtres : reste visible sous l'en-tête pendant qu'on parcourt les appartements */
.apartments__toolbar { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  margin-bottom: 28px; padding: 14px 18px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: 0 18px 36px -30px rgba(14, 42, 71, .55); }
@supports (backdrop-filter: blur(8px)) { .apartments__toolbar { background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px) saturate(1.2); } }
@media (min-width: 900px) { .apartments__toolbar { position: sticky; top: calc(var(--header-h) + 12px); } }
.apartments__toolbar .filters { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.apartments__toolbar .filters fieldset { display: block; }
.apartments__toolbar .filters legend { float: left; margin: 0 12px 0 0; line-height: 36px; }
.apartments__toolbar .chip span { min-height: 36px; padding: 0 14px; font-size: .82rem; }
.apartments__count { display: flex; align-items: baseline; gap: 16px; }
.apartments__count .lots__count { margin: 0; font-size: 1.3rem; white-space: nowrap; }

/* accueil : aperçu des appartements (texte + façade) */
.teaser { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .teaser { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } }
/* les deux vues aériennes : côté rue en grand, côté jardin en vignette qui déborde en bas à gauche */
.teaser__views { position: relative; padding-bottom: 32%; }
.teaser__view { margin: 0; position: relative; }
.teaser__view img { display: block; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }
.teaser__view--street { aspect-ratio: 3 / 2; }
.teaser__view--street::after { content: ""; position: absolute; right: -14px; top: 36px; bottom: 36px; width: 14px; background: url("../img/azulejos.svg") repeat-y 0 0 / 24px auto; opacity: .9; }
.teaser__view--garden { position: absolute; left: -6%; bottom: 0; width: 36%; aspect-ratio: 4 / 5; outline: 6px solid var(--mist); box-shadow: 0 30px 60px -20px rgba(10, 31, 55, .5); }
.teaser__view figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px 5px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2; }
.teaser__view--street figcaption { left: auto; right: 12px; }
@media (max-width: 999px) {
  .teaser__views { padding-bottom: 38%; }
  .teaser__view--garden { left: 0; width: 40%; outline-width: 4px; }
  .teaser__view--street::after { display: none; }
}
.teaser__summary { margin: 22px 0 30px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--ink); }

/* façade côté rue : élévation des deux bâtiments (Blender, en aplats), appartements cliquables par-dessus */
.facade { display: grid; grid-template-columns: 74px minmax(0, 1fr); column-gap: 14px; }
.facade__axis { position: relative; list-style: none; margin: 0; padding: 0; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.facade__axis li { position: absolute; right: 0; transform: translateY(-50%); max-width: 9ch; line-height: 1.2; text-align: right; }
.facade__stage { position: relative; width: 100%; container-type: inline-size; }
.facade__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.facade__names { grid-column: 2; position: relative; height: 1.4em; margin: 12px 0 0; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.facade__names span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 520px) { .facade { grid-template-columns: minmax(0, 1fr); } .facade__axis { display: none; } .facade__names { grid-column: 1; } }
.unit { position: absolute; display: block; padding: 0; border: 0; background: transparent; cursor: pointer; text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent; transition: background-color .35s var(--ease); }
/* repère : carré blanc arrondi, liseré à la couleur du statut, type en pastille sous la lettre */
.unit__id {
  --ring: var(--france);
  position: absolute; left: var(--bx); top: var(--by); transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: clamp(22px, 6.4cqw, 42px); aspect-ratio: 1; border-radius: clamp(4px, 1.2cqw, 9px);
  background: linear-gradient(180deg, #FFFFFF, #EEF4FB); color: var(--ink);
  font-family: var(--font-display); font-size: clamp(.8rem, 3.4cqw, 1.5rem); font-weight: 600; line-height: 1;
  box-shadow: inset 0 0 0 2px var(--ring), 0 10px 20px -10px rgba(8, 26, 48, .75), 0 2px 4px rgba(8, 26, 48, .18);
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.unit__type {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, -48%);
  padding: .3em .6em .26em; border-radius: 999px; background: var(--ink); color: var(--white);
  font-family: var(--font-text); font-size: clamp(.4rem, 1.45cqw, .56rem); font-weight: 700; letter-spacing: .1em; line-height: 1; white-space: nowrap;
  box-shadow: 0 4px 10px -4px rgba(8, 26, 48, .55);
  transition: background .3s var(--ease);
}
@container (max-width: 420px) { .unit__type { display: none; } }
.unit[data-status="reserved"] .unit__id { --ring: #D99A2B; }
.unit[data-status="sold"] .unit__id { --ring: #8C99A6; background: #E4E9EE; color: #6B7A89; text-decoration: line-through; }
.unit[data-status="sold"] .unit__type { background: #6B7A89; }
.unit:hover, .unit:focus-visible, .unit.is-hot { background-color: rgba(255, 226, 168, .3); }
.unit:hover .unit__id, .unit:focus-visible .unit__id, .unit.is-hot .unit__id {
  background: var(--ink); color: var(--white); transform: translate(-50%, -50%) scale(1.1);
  box-shadow: inset 0 0 0 2px var(--ring), 0 0 0 5px rgba(255, 226, 168, .6), 0 14px 26px -10px rgba(8, 26, 48, .8);
}
.unit:hover .unit__type, .unit:focus-visible .unit__type, .unit.is-hot .unit__type { background: var(--france); }
.unit:focus-visible { outline: 2px solid var(--france); outline-offset: -2px; }
.unit.is-dim { background-color: rgba(14, 42, 71, .4); }
.unit.is-dim .unit__id { opacity: .35; }
/* fiche au survol, comme sur la maquette 3D */
.facade__tip { position: absolute; left: 0; top: 0; z-index: 5; min-width: 170px; padding: 11px 14px 12px; display: grid; gap: 3px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(14, 42, 71, .5); font-size: .8rem; color: var(--ink-2); pointer-events: none; opacity: 0; transition: opacity .15s; }
.facade__tip.is-on { opacity: 1; }
.facade__tip strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.1; color: var(--ink); }
.facade__tip em { margin-top: 4px; font-style: normal; font-weight: 600; font-size: .74rem; letter-spacing: .04em; color: var(--blue); }
.facade__tip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 10px; height: 10px; background: var(--white);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.facade__tip.is-below::after { bottom: auto; top: -6px; transform: translateX(-50%) rotate(225deg); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; font-size: .78rem; color: var(--ink-2); }
.legend__item { display: inline-flex; align-items: center; gap: 8px; }
.legend__item::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--white); box-shadow: inset 0 0 0 2px var(--france); }
.legend__item--reserved::before { box-shadow: inset 0 0 0 2px #D99A2B; }
.legend__item--sold::before { background: #E4E9EE; box-shadow: inset 0 0 0 2px #8C99A6; }
.facade__note { font-size: .78rem; color: var(--ink-3); margin: 10px 0 0; }

/* maquette 3D (page Appartements) : modèle Blender posé sur son socle, trois vues fixes */
.maquette { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: clamp(28px, 4vw, 48px) auto 0; padding: 0 var(--gutter); }
.maquette__stage { position: relative; aspect-ratio: 16 / 9; min-height: 360px; max-height: 80vh; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 95% at 50% 36%, #FFFFFF 0%, var(--alice) 48%, var(--mist) 100%); }
.maquette__poster, .maquette__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.maquette__poster { object-fit: cover; transition: opacity .8s var(--ease); }
.maquette__canvas { opacity: 0; transition: opacity .8s var(--ease); touch-action: pan-y; }
.maquette.is-ready .maquette__canvas { opacity: 1; }
.maquette.is-ready .maquette__poster { opacity: 0; pointer-events: none; }
.maquette__loading { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; gap: 10px; justify-items: center; color: var(--ink-2); font-size: .8rem; letter-spacing: .06em; transition: opacity .4s; }
.maquette__loading p { margin: 0; }
.js .maquette__loading { display: grid; }
.maquette.is-ready .maquette__loading, .maquette.is-failed .maquette__loading { opacity: 0; visibility: hidden; }
.maquette__progress { width: 160px; height: 2px; background: var(--line); overflow: hidden; }
.maquette__progress span { display: block; height: 100%; background: var(--france); transform: scaleX(.04); transform-origin: left; transition: transform .3s; }
.maquette__labels { position: absolute; inset: 0; pointer-events: none; }
.maquette__badge { position: absolute; left: 0; top: 0; pointer-events: auto; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid var(--france); background: rgba(255, 255, 255, .94);
  color: var(--ink); font: 600 .78rem/1 var(--font-text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(14, 42, 71, .45); transition: background .2s, color .2s, box-shadow .2s; }
.maquette__badge--reserved { border-color: #D99A2B; }
.maquette__badge--sold { border-color: #8C99A6; color: var(--ink-3); }
.maquette__badge:hover, .maquette__badge.is-on, .maquette__badge:focus-visible { background: var(--france); color: var(--white); outline: none; box-shadow: 0 0 0 4px rgba(49, 140, 231, .25), 0 8px 18px -6px rgba(14, 42, 71, .5); }
.maquette__badge[hidden] { display: none; }
.maquette__tip { position: absolute; left: 0; top: 0; z-index: 2; min-width: 190px; padding: 12px 14px; display: grid; gap: 4px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(14, 42, 71, .45); font-size: .84rem; color: var(--ink-2); pointer-events: none; opacity: 0; transition: opacity .15s; }
.maquette__tip.is-on { opacity: 1; }
.maquette__tip strong { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.1; color: var(--ink); }
.maquette__tip em { margin-top: 4px; font-style: normal; font-weight: 600; font-size: .78rem; letter-spacing: .04em; color: var(--blue); }
.maquette__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 16px; }
html:not(.js) .maquette__bar, .maquette.is-failed .maquette__bar, .maquette.is-failed .maquette__note { display: none; }
.maquette__views { display: inline-flex; border: 1px solid rgba(14, 42, 71, .24); background: var(--white); }
.maquette__views button { border: 0; background: none; padding: 12px 18px; font: 600 .72rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s; }
.maquette__views button + button { border-left: 1px solid rgba(14, 42, 71, .24); }
.maquette__views button[aria-pressed="true"] { background: var(--ink); color: var(--alice); }
.maquette__views button:hover:not([aria-pressed="true"]) { color: var(--blue); }
.maquette__views button:focus-visible { outline: 2px solid var(--france); outline-offset: 2px; }
.maquette__legend { margin: 0; }
.maquette__legend .legend__item::before { width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--france); box-shadow: none; }
.maquette__legend .legend__item--reserved::before { border-color: #D99A2B; }
.maquette__legend .legend__item--sold::before { border-color: #8C99A6; background: #E4E9EE; }
.maquette__hint { margin: 0; font-size: .86rem; color: var(--ink-3); }
.maquette__hint-touch { display: none; }
@media (hover: none) { .maquette__hint-fine { display: none; } .maquette__hint-touch { display: inline; } }
.maquette__note { margin: 10px 0 0; font-size: .76rem; color: var(--ink-3); }
@media (max-width: 760px) {
  .maquette { padding: 0; }
  .maquette__stage { aspect-ratio: 1 / 1; min-height: 0; max-height: none; border-inline: 0; }
  .maquette__badge { width: 26px; height: 26px; font-size: .72rem; }
  .maquette__bar, .maquette__note { padding: 0 var(--gutter); }
  .maquette__views { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .maquette__views button { padding: 13px 6px; letter-spacing: .08em; }
  .maquette__views button + button { border-left: 0; }
  .maquette__views button:nth-child(even) { border-left: 1px solid rgba(14, 42, 71, .24); }
  .maquette__views button:nth-child(n + 3) { border-top: 1px solid rgba(14, 42, 71, .24); }
}
/* maquette en pleine largeur : la 3D occupe toute la page, commandes posées dessus (au-delà de 760 px) */
.maquette__frame { position: relative; }
/* frise d'azulejos sous la 3D, comme sous la grande image du jardin sur l'accueil */
@media (min-width: 761px) { .maquette__frame::after { content: ""; display: block; height: 16px; background: url("../img/azulejos.svg") repeat-x 0 0 / auto 16px; } }
@media (min-width: 761px) {
  .maquette { max-width: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; }
  .maquette__stage { height: clamp(520px, 78vh, 900px); aspect-ratio: auto; min-height: 0; max-height: none; border: 0; border-block: 1px solid var(--line);
    background: linear-gradient(180deg, #F8FBFF 0%, var(--alice) 46%, var(--mist) 100%); }
  .maquette__loading { bottom: auto; top: 50%; transform: translate(-50%, -50%); }
  .maquette__bar { position: absolute; inset: 0; z-index: 3; display: block; margin: 0; pointer-events: none; }
  .maquette__bar > * { position: absolute; pointer-events: auto; }
  .maquette__views { left: 50%; top: clamp(16px, 2vw, 24px); transform: translateX(-50%); background: rgba(255, 255, 255, .92); border-color: rgba(14, 42, 71, .16);
    box-shadow: 0 20px 44px -24px rgba(14, 42, 71, .65); }
  .maquette__legend, .maquette__hint { bottom: clamp(16px, 2vw, 24px); padding: 10px 14px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(14, 42, 71, .1);
    box-shadow: 0 14px 30px -22px rgba(14, 42, 71, .55); }
  .maquette__legend { left: max(var(--gutter), calc((100% - var(--maxw)) / 2)); }
  .maquette__hint { right: max(var(--gutter), calc((100% - var(--maxw)) / 2)); max-width: 30ch; font-size: .8rem; line-height: 1.45; color: var(--ink-2); }
  @supports (backdrop-filter: blur(8px)) {
    .maquette__views { background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px) saturate(1.3); }
    .maquette__legend, .maquette__hint { background: rgba(255, 255, 255, .7); backdrop-filter: blur(10px) saturate(1.3); }
  }
  .maquette__note { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 12px auto 0; padding: 0 var(--gutter); }
}
@media (min-width: 761px) and (max-width: 1100px) { .maquette__hint { display: none; } }
/* titre de la liste, au-dessus des filtres */
.apartments__listhead { display: grid; gap: 14px; margin-bottom: 28px; }
.apartments__listhead .eyebrow { margin: 0; }

/* avec la maquette, la façade schématique ne sert plus que de repli */
.has-maquette .apartments--page .filters { margin-top: 0; padding-top: 0; border-top: 0; }

/* filtres */
.filters { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.filters legend { padding: 0; margin-bottom: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(14, 42, 71, .24); background: var(--white); font-size: .86rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--alice); }
.chip input:hover + span { border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--france); outline-offset: 2px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; cursor: pointer; width: fit-content; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch__track { position: relative; width: 44px; height: 26px; border-radius: 13px; background: rgba(14, 42, 71, .22); transition: background .25s; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.switch input:checked + .switch__track { background: var(--blue); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--france); outline-offset: 2px; }
.lots__count { margin: 22px 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; }
[data-reset] { margin-top: 4px; }

/* cartes */
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; align-content: start; }
.tag { display: inline-grid; place-items: center; padding: 3px 8px; background: var(--ink); color: var(--alice); letter-spacing: .08em; }
.lot {
  position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s var(--ease), opacity .35s;
}
.lot:hover, .lot.is-hot { transform: translateY(-6px); border-color: rgba(49, 140, 231, .55); box-shadow: 0 34px 60px -36px rgba(14, 42, 71, .55); }
.lot[hidden] { display: none; }
.lot__plan { position: relative; margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 44px 26px 22px; background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FC 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.lot__plan img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.lot:hover .lot__plan img { transform: scale(1.05); }
.lot__status { position: absolute; left: 14px; top: 14px; padding: 6px 11px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .68rem; box-shadow: 0 6px 14px -10px rgba(14, 42, 71, .5); }
.lot__body { display: grid; gap: 10px; padding: 20px 22px 18px; align-content: start; }
.lot__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lot__title { font-family: var(--font-display); font-size: 1.95rem; line-height: 1; }
.lot__head .tag { padding: 5px 10px; font-size: .74rem; font-weight: 700; }
.lot__meta { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lot__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lot__facts div { display: grid; gap: 4px; align-content: start; padding: 12px 0 12px 14px; border-left: 1px solid var(--line); }
.lot__facts div:first-child { padding-left: 0; border-left: 0; }
.lot__facts dt { font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.lot__facts dd { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.05; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.lot__facts dd .energy { font-family: var(--font-text); }
.lot__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 0; }
/* prix : chiffres alignés (Cormorant affiche sinon des chiffres elzéviriens) ; « prix sur demande » reste discret */
.lot__price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; white-space: nowrap; }
.lot__price--request, .sheet__price--request { font-family: var(--font-text); font-size: .84rem; font-weight: 400; line-height: 1.4; color: var(--ink-2); }
.sheet__price { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; white-space: nowrap; }
.lot__open { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--ink); background: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--alice); transition: background .3s var(--ease), border-color .3s var(--ease); }
.lot__open::after { content: ""; position: absolute; inset: 0; }
.lot__open svg { transition: transform .35s var(--ease); }
.lot:hover .lot__open, .lot.is-hot .lot__open { background: var(--blue); border-color: var(--blue); }
.lot:hover .lot__open svg { transform: translateX(4px); }
.lot[data-status="sold"] .lot__plan img { opacity: .55; filter: grayscale(1); }
.lots__empty { grid-column: 1 / -1; padding: 40px 0; font-family: var(--font-display); font-size: 1.5rem; font-style: italic; }

.status { display: inline-flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.status::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; }
.status--available { color: #1E7A55; }
.status--reserved { color: #8A5A12; }
.status--sold { color: #5B6977; }
.energy { display: inline-flex; align-items: center; height: 22px; padding: 0 14px 0 7px; font-size: .8rem; font-weight: 700; color: var(--ink); clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%); }
.energy--a-plus { background: #1E9F4F; color: var(--white); }
.energy--a { background: #4CB04A; }
.energy--b { background: #8DC63F; }
.energy--b-minus { background: #C9D92B; }
.energy--c { background: #F2E41C; }

/* ---------- intérieurs ---------- */
.interiors { background: var(--ink); color: var(--alice); overflow: hidden; }
.interiors .title em { color: var(--aero); }
.interiors__head { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 24px; }
.interiors__lead { color: rgba(240, 248, 255, .78); max-width: 46ch; margin: 0; }
@media (min-width: 900px) { .interiors__head { grid-template-columns: 7fr 5fr; align-items: end; } }
.interiors__bar { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 48px auto 28px; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-light); background: transparent; color: rgba(240, 248, 255, .82); font-size: .84rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.cat:hover { border-color: var(--alice); color: var(--alice); }
.cat[aria-pressed="true"] { background: var(--alice); color: var(--ink); border-color: var(--alice); }
.reel__ctrl { display: flex; gap: 10px; }
.reel { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-inline: var(--gutter); }
.reel::-webkit-scrollbar { display: none; }
.reel__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: clamp(12px, 1.6vw, 22px); width: max-content; }
.reel__item { scroll-snap-align: start; flex: none; }
.reel__item[hidden] { display: none; }
.reel__btn { display: block; padding: 0; border: 0; background: rgba(240, 248, 255, .06); overflow: hidden; }
.reel__btn img { height: clamp(260px, 62vh, 640px); width: auto; max-width: 86vw; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.reel__btn:hover img { transform: scale(1.03); }
.reel__cap { margin: 12px 0 0; max-width: 40ch; font-size: .82rem; color: rgba(240, 248, 255, .7); }
.reel__progress { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 28px auto 0; padding: 0 var(--gutter); }
.reel__progress::before { content: ""; display: block; height: 1px; background: var(--line-light); }
.reel__progress span { display: block; height: 2px; margin-top: -1.5px; width: 20%; background: var(--aero); transform-origin: left; transition: transform .2s linear; }
.interiors .note { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 18px auto 0; padding: 0 var(--gutter); }

/* ---------- finitions ---------- */
.finishes { display: grid; gap: 48px; }
.finishes__head .lead { margin-top: 1.6rem; }
.finishes__more { margin: 1.2rem 0 0; color: var(--ink-2); }
.finishes__doc { margin-top: 1.4rem; }
.finishes__list { list-style: none; margin: 0; padding: 0; display: grid; }
.finish { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.finish h3 { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; margin: 0 0 8px; display: flex; align-items: baseline; gap: 12px; }
.finish__n { font-family: var(--font-text); font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--blue); }
.finish p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.swatch { width: 64px; height: 64px; box-shadow: inset 0 0 0 1px rgba(14, 42, 71, .12); }
.swatch--facade { background-color: #1B3F72; background-image: linear-gradient(90deg, rgba(240, 248, 255, .35) 1.5px, transparent 1.5px), linear-gradient(rgba(240, 248, 255, .35) 1.5px, transparent 1.5px), linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 60%); background-size: 16px 16px, 16px 16px, 100% 100%; }
.swatch--floor { background: repeating-linear-gradient(90deg, #C79A64 0 15px, #B98A56 15px 16px, #D3A872 16px 31px, #B98A56 31px 32px); }
.swatch--kitchen { background: linear-gradient(90deg, #F7F5F0 0 50%, #CFAE84 50% 100%); box-shadow: inset 0 0 0 1px rgba(14, 42, 71, .12), inset 0 10px 0 #ECEAE6; }
.swatch--bath { background: radial-gradient(circle at 30% 30%, #EDEAE5, #D6D0C8 70%); }
.swatch--comfort { background: linear-gradient(160deg, var(--alice), var(--aero)); }
.swatch--detail { background: linear-gradient(135deg, #E8ECEF 0%, #B9C1C8 40%, #F3F5F6 55%, #A4ADB5 100%); border-radius: 50%; }
@media (min-width: 900px) {
  .finishes { grid-template-columns: 4fr 8fr; gap: 72px; }
  .finishes__head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .finishes__list { grid-template-columns: 1fr 1fr; column-gap: 44px; }
}

/* ---------- Trafaria ---------- */
.location { background: var(--white); padding-top: var(--space); }
.location__grid { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; background: var(--alice); }
@media (min-width: 1000px) {
  .location__grid { grid-template-columns: 5fr 6fr; margin-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2)); box-shadow: 0 40px 80px -60px rgba(14, 42, 71, .5); }
}
.location__text { padding: clamp(40px, 5vw, 64px) var(--gutter); }
@media (min-width: 1000px) { .location__text { padding: 56px; } }
.location__text > p:not(.eyebrow) { color: var(--ink-2); margin-top: 1.4rem; }
.tide { margin: 32px 0 28px; }
.tide__title { display: flex; align-items: center; gap: 10px; margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tide__title svg { width: 18px; height: 18px; color: var(--blue); }
.tide dl { margin: 0; }
.tide__row { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tide__row dt { flex: none; }
.tide__row::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(14, 42, 71, .35); transform: translateY(-4px); min-width: 20px; }
.tide__row dd { order: 2; margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.location__address { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: .92rem; }
.location__address svg { margin-top: 3px; color: var(--blue); }
.location__map { position: relative; z-index: 0; isolation: isolate; min-height: 420px; background: var(--mist); } /* contient les z-index de Leaflet sous l'en-tête et le menu */
@media (min-width: 1000px) { .location__map { min-height: 100%; } }
.location__map-fallback { position: absolute; inset: auto 24px 24px; margin: 0; font-size: .85rem; color: var(--ink-2); }
.location__map.is-ready .location__map-fallback { display: none; }
.location__map.leaflet-container { background: #DCE9F5; font-family: var(--font-text); }
.location__map .leaflet-tile-pane { filter: grayscale(1) sepia(.28) hue-rotate(172deg) saturate(1.9) brightness(1.04) contrast(.88); }
.location__map .leaflet-control-attribution { font-size: 10px; background: rgba(240, 248, 255, .85); }
.pin { position: relative; }
/* repère de la carte : la plante dans un disque bleu encre */
.pin__tile { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); border: 2px solid var(--white); box-shadow: 0 6px 18px rgba(14, 42, 71, .45); }
.pin__tile::after { content: ""; position: absolute; inset: 8px 7px 9px; background: var(--white); -webkit-mask: url("../logo/palmes-blanc-480.png") center / contain no-repeat; mask: url("../logo/palmes-blanc-480.png") center / contain no-repeat; }
.pin__ring { position: absolute; left: -31px; top: -31px; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--france); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .pin__ring { animation: ping 2.6s var(--ease) infinite; } }
.pin__label { position: absolute; left: 28px; top: -13px; white-space: nowrap; padding: 4px 10px; background: var(--ink); color: var(--alice); font: 600 .72rem/1.4 var(--font-text); letter-spacing: .08em; }

/* ---------- contact ---------- */
.contact { background: var(--azulejo); color: var(--alice); background-image: radial-gradient(90% 60% at 100% 0%, rgba(124, 185, 232, .18), transparent 60%); }
.contact .title em { color: var(--aero); }
.contact .lead { color: var(--alice); margin-top: 1.6rem; }
.contact__grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 5fr 6fr; gap: 80px; } }
.contact__sub { margin: 40px 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--aero); }
.direct { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.direct a { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; font-size: 1.05rem; transition: color .25s, padding .35s var(--ease); }
.direct a:hover { color: var(--aero); padding-left: 6px; }
.direct svg { width: 22px; height: 22px; color: var(--aero); }
.direct small, .contact__address small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(240, 248, 255, .66); }
.contact__address { margin: 24px 0 6px; }
.contact__sales { font-size: .85rem; color: rgba(240, 248, 255, .7); }
.form { display: grid; grid-template-columns: 1fr; gap: 18px 20px; align-content: start; color-scheme: dark; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--aero); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 0;
  background: rgba(240, 248, 255, .07); border: 1px solid rgba(240, 248, 255, .26); color: var(--alice);
  transition: border-color .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select option { background: var(--ink); color: var(--alice); }
.field input::placeholder, .field textarea::placeholder { color: rgba(240, 248, 255, .5); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(240, 248, 255, .5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aero); background: rgba(240, 248, 255, .11); box-shadow: 0 0 0 1px var(--aero); }
.field__error { margin: 0; min-height: 0; font-size: .8rem; color: #FFC2B5; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF9E8A; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-template-columns: auto 1fr; align-items: start; gap: 6px 12px; }
.consent input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--aero); }
.consent label { text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 400; color: rgba(240, 248, 255, .86); }
.consent label a { color: var(--alice); }
.consent .field__error { grid-column: 2; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form__status { margin: 0; font-size: .92rem; }
.form__status.is-ok { color: #B7F0D2; }
.form__status.is-error { color: #FFC2B5; }
.form__status a { color: inherit; }
.form button[disabled] { opacity: .65; cursor: progress; }

/* ---------- pied de page ---------- */
.footer { background: var(--deep); color: rgba(240, 248, 255, .78); font-size: .88rem; }
.footer__inner { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter) calc(40px + env(safe-area-inset-bottom)); display: grid; gap: 40px; }
.footer__brand img { width: 150px; }
.footer__brand p { margin: 16px 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--alice); }
.footer__cols { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__cols p { margin: 0 0 8px; }
.footer__address { font-style: normal; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--alice); text-decoration: underline; }
.lang--footer { gap: 6px; margin-top: 10px; }
.lang--footer a { border: 1px solid var(--line-light); }
.footer__legal { margin: 0; font-size: .76rem; color: rgba(240, 248, 255, .58); max-width: 90ch; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1fr 2fr; } .footer__legal { grid-column: 1 / -1; } }

/* ---------- barre mobile ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(240, 248, 255, .94); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .45s var(--ease); }
.mobile-bar .btn--dark, .mobile-bar__apts { flex: 1; min-width: 0; }
.mobile-bar .btn { padding: 0 .9em; font-size: .72rem; letter-spacing: .1em; }
.mobile-bar__apts { background: var(--white); }
.mobile-bar.is-visible { transform: none; }
@media (min-width: 1080px) { .mobile-bar { display: none; } }

/* ---------- fiche appartement ---------- */
dialog { padding: 0; border: 0; }
.sheet { width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: min(92vh, 1000px); background: var(--alice); color: var(--ink); box-shadow: 0 50px 120px -40px rgba(10, 31, 55, .7); overflow: hidden; }
.sheet[open] { display: flex; }
.sheet::backdrop { background: rgba(8, 24, 44, .64); backdrop-filter: blur(5px); }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in .55s var(--ease-out); }
  .sheet[open]::backdrop { animation: fade .4s ease; }
}
.sheet__inner { display: flex; flex-direction: column; width: 100%; overflow-y: auto; overscroll-behavior: contain; }
.sheet__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 14px 28px; background: rgba(240, 248, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.sheet__meta { margin: 0 0 4px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.sheet__title { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; }
.sheet__tools { display: flex; gap: 6px; }
.sheet__tools .round { color: var(--ink); border-color: var(--line); width: 44px; height: 44px; }
.sheet__tools .round:hover { background: var(--ink); color: var(--alice); border-color: var(--ink); }
.sheet__grid { display: grid; }
@media (min-width: 900px) { .sheet__grid { grid-template-columns: 1.25fr 1fr; } }
.sheet__plan { position: relative; margin: 0; padding: clamp(20px, 3vw, 40px); background: var(--white); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .sheet__plan { border-bottom: 0; border-right: 1px solid var(--line); } }
.sheet__plan img { width: 100%; height: auto; max-height: 68vh; object-fit: contain; }
.sheet__zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--alice); border: 1px solid var(--line); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.sheet__zoom:hover { background: var(--ink); color: var(--alice); }
.sheet__info { padding: 24px clamp(20px, 3vw, 36px) 32px; display: grid; gap: 22px; align-content: start; }
.sheet__key { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.sheet__key div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet__key div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); }
.sheet__key div:nth-child(even) { padding-left: 16px; }
.sheet__key div.is-wide { grid-column: 1 / -1; padding-left: 0; border-right: 0; }
.sheet__key dt { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sheet__key dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.05; font-variant-numeric: lining-nums; }
.sheet__key dd small { font-family: var(--font-text); font-size: .8rem; color: var(--ink-2); }
.sheet h3 { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.rooms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font-size: .94rem; }
.rooms li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rooms__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1C5C9C; color: var(--white); font-size: .66rem; font-weight: 700; }
.rooms__n--none { background: transparent; border: 1px dashed rgba(14, 42, 71, .35); }
.rooms__area { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rooms li.is-outdoor .rooms__name { color: var(--blue); }
.sheet__energy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); }
.sheet__energy .energy { height: 30px; font-size: 1rem; padding: 0 20px 0 10px; }
.sheet__status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sheet__actions .btn { flex: 1 1 220px; }
.sheet__disclaimer { font-size: .76rem; color: var(--ink-3); margin: 0; }
.sheet__gallery { padding: 28px; border-top: 1px solid var(--line); background: var(--white); }
.sheet__gallery ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.sheet__gallery li { flex: 0 0 auto; scroll-snap-align: start; }
.sheet__gallery img { height: 200px; width: auto; }
@media (max-width: 899px) {
  .sheet { width: 100vw; height: 100%; max-height: none; margin: 0; }
  .sheet__head { padding: 12px 12px 12px 18px; }
  .sheet__title { font-size: 1.65rem; white-space: nowrap; }
  .sheet__tools { gap: 4px; }
  .sheet__tools .round { width: 40px; height: 40px; }
}

/* ---------- visionneuse ---------- */
.lightbox { width: 100vw; height: 100%; max-width: none; max-height: none; margin: 0; background: rgba(6, 18, 33, .96); color: var(--alice); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(6, 18, 33, .9); }
.lightbox__figure { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 64px 72px; }
.lightbox__figure img { max-width: min(92vw, 1700px); max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { display: flex; gap: 18px; font-size: .88rem; color: rgba(240, 248, 255, .8); }
.lightbox__count { letter-spacing: .1em; color: rgba(240, 248, 255, .55); }
.lightbox__prev, .lightbox__next, .lightbox__close { position: fixed; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 18px; top: 18px; }
@media (max-width: 700px) {
  .lightbox__figure { padding: 70px 12px 90px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; transform: none; }
}

/* ---------- page légale ---------- */
.legal { max-width: 820px; padding-top: calc(var(--space) * .7); }
.legal section { margin-top: 40px; }
.legal h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 10px; }
.legal p { color: var(--ink-2); }
.page-privacy .header { color: var(--ink); }

/* ---------- apparitions ----------
   Le contenu reste lisible au repos (aperçus, robots, scripts bloqués) :
   seul le mouvement est animé, jamais l'opacité. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transform: translateY(26px); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
  .js [data-reveal].is-in { transform: none; }
  .js [data-reveal="clip"] { transform: none; overflow: hidden; }
  .js [data-reveal="clip"] img { transform: scale(1.08); transition: transform 2.2s var(--ease-out); }
  .js [data-reveal="clip"].is-in img { transform: none; }
}

@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }
@keyframes unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- aperçu privé (lien claude.ai) : pas de carte en ligne ; PDF via la fonction de téléchargement ---------- */
.is-preview .sheet__zoom { display: none; }
.is-preview a[download][aria-busy="true"] { cursor: progress; opacity: .6; }
.location__map--static { display: grid; align-items: end; justify-items: start; overflow: hidden; }
.location__map--static img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.location__map--static .btn { position: relative; margin: 24px; }

@media print {
  .header, .mobile-bar, .hero__media, .hero__foot, .location__map, .form { display: none !important; }
  .hero { min-height: auto; color: var(--ink); background: none; }
}
