/* ========================================================
 * Crystal Corner · Landing page styles
 * Brand: ivory-and-ink, single Crystal Blue accent, generous space
 * ======================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand colours from Crystal_Corner_Brands_final.pdf — V1 "Clarté" (refined light,
     warmed with the brand's marble + navy + silver register). */
  --c-paper: #fcfbf9;        /* warm ivory, not clinical white */
  --c-paper-pure: #ffffff;
  --c-marble: #f2efe9;       /* warm greige / marble band */
  --c-marble-deep: #ebe6dd;
  --c-ink: #141414;
  --c-navy: #0e1e30;         /* brand midnight (dark chapters) */
  --c-navy-soft: #15293f;
  --c-ink-soft: #2a2a2a;
  --c-ink-mute: #6b6b6b;
  --c-ink-faint: #a4a4a4;
  --c-silver: #d7d3cc;       /* warm silver hairline */
  --c-silver-soft: #f4f1ec;
  --c-silver-tint: #f8f6f2;
  --c-blue: #5cb3ff;
  --c-blue-deep: #2b8fde;

  /* Typography */
  --f-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  /* Rhythm */
  --w-max: 1320px;
  --w-prose: 640px;
  --pad-x: clamp(24px, 5vw, 80px);
  --pad-y: clamp(80px, 12vw, 180px);

  /* Motion */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-out-soft: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; margin: 0; padding: 0; }
input, textarea, button { font-family: inherit; }
::selection { background: var(--c-blue); color: var(--c-ink); }

/* ---------- Preview banner (visible only when ?preview=1) ---------- */
.preview-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--c-ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
/* Draft (unpublished) preview: amber warning so it's clearly not live yet. */
.preview-banner--draft {
  background: #b8860b;
  color: #fff;
}
.preview-banner--draft .preview-banner__dot { background: #fff; }
/* Ensure [hidden] beats display:flex */
.preview-banner[hidden],
.form-success[hidden],
.form-error[hidden] { display: none !important; }
.preview-banner__dot {
  width: 8px; height: 8px;
  background: var(--c-blue);
  border-radius: 50%;
  animation: previewPulse 1.6s ease-in-out infinite;
}
.preview-banner__exit {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: none;
}
.preview-banner__exit:hover { color: var(--c-blue); }
body.has-preview-banner .nav { top: 36px; }
@keyframes previewPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.85); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.scroll-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--c-blue);
  transform-origin: left center;
  transition: width 60ms linear;
}

/* ---------- Top nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: background-color .4s var(--ease-out), backdrop-filter .4s, padding .4s var(--ease-out);
  --nav-fg: #fff;
  color: var(--nav-fg);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: 14px var(--pad-x);
  --nav-fg: var(--c-ink);
  border-bottom: 1px solid rgba(20,20,20,.06);
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .4s var(--ease-out), height .4s var(--ease-out);
}
.nav.is-scrolled .nav__logo { filter: none; height: 36px; }
@media (max-width: 640px) {
  .nav__logo { height: 36px; }
  .nav.is-scrolled .nav__logo { height: 28px; }
}
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-size: 13.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nav-fg);
  position: relative;
  padding: 8px 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s var(--ease-out-soft);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav__cta {
  font-weight: 400;
}
.nav__cta:hover { color: var(--c-blue); }

/* ---------- Mobile hamburger + slide-in menu ---------- */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: -6px -8px -6px 0;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 60;
}
.nav__toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background: var(--nav-fg);
  transition: transform .35s var(--ease-out), opacity .25s var(--ease-out), background-color .4s var(--ease-out);
}
body.menu-open .nav__toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
body.menu-open .nav { --nav-fg: var(--c-ink); }

.mobile-menu {
  display: none;                 /* shown only inside the mobile media query below */
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--c-paper, #fcfbf9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-menu__link {
  font-size: 20px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-ink);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
body.menu-open .mobile-menu__link { opacity: 1; transform: none; }
body.menu-open .mobile-menu__link:nth-child(1) { transition-delay: .06s; }
body.menu-open .mobile-menu__link:nth-child(2) { transition-delay: .10s; }
body.menu-open .mobile-menu__link:nth-child(3) { transition-delay: .14s; }
body.menu-open .mobile-menu__link:nth-child(4) { transition-delay: .18s; }
body.menu-open .mobile-menu__link:nth-child(5) { transition-delay: .22s; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .mobile-menu { display: flex; }   /* overrides the [hidden] attribute (author rule beats UA) */
}

/* ============================================ */
/* HERO  (tall section — sticky inner — scroll scrubs the video) */
/* ============================================ */
.hero {
  position: relative;
  /* Tall enough for the user to scroll through the video. ~2.2 viewports
     means ~1.2 viewports of "scrub area" after the first painted frame. */
  height: 220vh;
  width: 100%;
  color: var(--c-paper);
  background: var(--c-ink);
}
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: var(--pad-x);
  box-sizing: border-box;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transform-origin: center;
  display: none; /* shown only when a hero image is set (JS adds .hero--has-image) */
}
.hero--has-image .hero__video { display: none; }
.hero--has-image .hero__image { display: block; }
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,.15) 40%, rgba(20,20,20,.6) 100%);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 60%, transparent 40%, rgba(20,20,20,.55) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp .9s var(--ease-out-soft) .2s forwards;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,.55);
}

.hero__title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 36px;
  line-height: 1;
}
.hero__logo {
  width: clamp(280px, 56vw, 820px);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1.4s var(--ease-out-soft) .35s forwards;
  /* The white-variant SVG already has correct colours (white wordmark + blue accent) */
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__tagline {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: .04em;
  color: rgba(255,255,255,.9);
  margin: 0 0 48px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s var(--ease-out-soft) .9s forwards;
}

.hero__cta {
  display: inline-block;
  padding: 18px 36px;
  border: 1px solid rgba(255,255,255,.7);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: color .5s var(--ease-out-soft);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s var(--ease-out-soft) 1.1s forwards;
}
.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-blue);
  transform: translateY(100%);
  transition: transform .5s var(--ease-out-soft);
  z-index: -1;
}
.hero__cta:hover {
  color: var(--c-ink);
  border-color: var(--c-blue);
}
.hero__cta:hover::before { transform: translateY(0); }

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  color: rgba(255,255,255,.78);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-soft) 1.4s forwards;
}
.hero__scroll-text {
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
}
.hero__scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.25);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -56px; left: 0;
  width: 100%;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--c-blue));
  animation: scrollLine 2.2s var(--ease-out-soft) infinite;
}

@keyframes scrollLine {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(56px); }
  100% { transform: translateY(112px); }
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* Section heads                                 */
/* ============================================ */
.section-head {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-head--center { align-items: center; text-align: center; }
.section-head__label {
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-head__label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--c-blue);
}
.section-head__heading {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: .01em;
  color: var(--c-ink);
  margin: 0;
  max-width: 22ch;
  line-height: 1.12;
}

/* ============================================ */
/* BLOK B · INTRO                                */
/* ============================================ */
.intro {
  padding: var(--pad-y) 0;
  background: var(--c-paper);
}
.intro__grid {
  max-width: var(--w-max);
  margin: 64px auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.intro__heading {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(34px, 4.4vw, 60px);
  letter-spacing: .005em;
  line-height: 1.1;
  margin: 0 0 32px;
  color: var(--c-ink);
  max-width: 16ch;
}
.intro__body {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  color: var(--c-ink-soft);
  max-width: 56ch;
  margin: 0;
}
.intro__body strong {
  font-weight: 500;
  color: var(--c-ink);
  position: relative;
  white-space: nowrap;
}
.intro__body strong::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--c-blue);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  transform: translateY(-2px);
  opacity: 0;
}
.intro__body strong:first-of-type::after { opacity: 0; } /* keep accent only as text emphasis */

.intro__visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--c-silver-soft);
}
.intro__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.intro__caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

@media (max-width: 880px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__visual { aspect-ratio: 4 / 3; }
}

/* ============================================ */
/* PILLARS                                       */
/* ============================================ */
.pillars {
  padding: var(--pad-y) 0;
  background: var(--c-silver-tint);
  position: relative;
}
.pillars::before,
.pillars::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  background: var(--c-silver);
}
.pillars::before { top: 0; }
.pillars::after { bottom: 0; }

.pillars__grid {
  max-width: var(--w-max);
  margin: 80px auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
}
.pillar {
  position: relative;
  padding: 56px 36px 64px;
  background: var(--c-paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .55s var(--ease-out-soft), box-shadow .55s var(--ease-out-soft);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20,20,20,.18);
}
.pillar__num {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--c-blue);
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pillar__num::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--c-blue);
}
.pillar__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--c-ink);
  margin: 0 0 24px;
  line-height: 1.4;
}
.pillar__body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--c-ink-mute);
  margin: 0;
  max-width: 26ch;
}
.pillar__rule {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--c-blue);
  transform: translateX(-50%);
  transition: width .8s var(--ease-out-soft);
}
.pillar.is-visible .pillar__rule { width: 64px; }

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

/* ============================================ */
/* GALLERY                                       */
/* ============================================ */
.gallery {
  padding: var(--pad-y) 0;
  background: var(--c-paper);
}
.gallery__grid {
  max-width: var(--w-max);
  margin: 80px auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 18px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--c-silver-soft);
  margin: 0;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out-soft), filter .6s var(--ease-out-soft);
  filter: saturate(.9);
  will-change: transform;
}
.gallery__item:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,20,20,.25));
  opacity: 0;
  transition: opacity .5s var(--ease-out-soft);
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__caption {
  max-width: var(--w-max);
  margin: 40px auto 0;
  padding: 0 var(--pad-x);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-ink-mute);
  text-align: center;
}

@media (max-width: 880px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }
}

/* ============================================ */
/* INTERLUDE (parallax bg)                       */
/* ============================================ */
.interlude {
  position: relative;
  height: 70vh;
  min-height: 460px;
  overflow: hidden;
  color: #fff;
  display: grid;
  place-items: center;
}
.interlude__bg {
  position: absolute;
  inset: -15% 0 -15% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.interlude__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,.45), rgba(20,20,20,.55));
}
.interlude__quote {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad-x);
}
.interlude__quote p {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: .02em;
  line-height: 1.35;
  margin: 24px 0 0;
}
.interlude__rule {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--c-blue);
}

/* ============================================ */
/* FORM                                          */
/* ============================================ */
.form-section {
  padding: var(--pad-y) 0;
  background: var(--c-silver-tint);
}
.form-card {
  max-width: 880px;
  margin: 64px auto 0;
  padding: clamp(40px, 5vw, 72px);
  background: var(--c-paper);
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 64px;
  height: 2px;
  background: var(--c-blue);
}
.form-card__heading {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 16px;
}
.form-card__sub {
  font-size: 15px;
  color: var(--c-ink-mute);
  margin: 0 0 20px;
  max-width: none;
  line-height: 1.6;
}
.form-card__dev {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink-mute);
  margin: 0 0 14px;
  max-width: none;
}
.form-card__dev-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 44px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.form-card__dev-link svg { width: 18px; height: 18px; }

.form { display: flex; flex-direction: column; gap: 28px; }
.form__row { display: grid; gap: 28px; }
.form__row--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form__row--two { grid-template-columns: 1fr; } }

.form__field { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
.form__field--choices { gap: 16px; }

.form__label {
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  font-weight: 500;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  border: 0;
  border-bottom: 1px solid var(--c-silver);
  background: transparent;
  padding: 10px 0 12px;
  font-size: 15px;
  color: var(--c-ink);
  transition: border-color .3s var(--ease-out-soft);
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  border-bottom-color: var(--c-blue);
}
.form textarea { min-height: 130px; line-height: 1.6; }

.form__choices { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--c-silver);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  cursor: pointer;
  transition: all .3s var(--ease-out-soft);
  user-select: none;
}
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip:hover { border-color: var(--c-ink); color: var(--c-ink); }
.chip:has(input:checked) {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--c-ink-mute);
  cursor: pointer;
  line-height: 1.5;
}
/* Make the "Politique de Confidentialité" link inside the consent clearly clickable */
.form__consent a {
  color: var(--c-blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__consent a:hover { text-decoration-thickness: 2px; }
.form__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--c-silver);
  border-radius: 0;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: all .25s;
}
.form__consent input[type="checkbox"]:checked {
  background: var(--c-blue);
  border-color: var(--c-blue);
}
.form__consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--c-ink);
  clip-path: polygon(20% 50%, 40% 70%, 80% 25%, 70% 15%, 40% 50%, 30% 40%);
}

.form__submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  background: var(--c-ink);
  color: #fff;
  border: 0;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color .4s var(--ease-out-soft);
  margin-top: 8px;
}
.form__submit svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out-soft); }
.form__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-blue);
  transform: translateX(-100%);
  transition: transform .5s var(--ease-out-soft);
}
.form__submit span, .form__submit svg { position: relative; z-index: 1; }
.form__submit:hover { color: var(--c-ink); }
.form__submit:hover::before { transform: translateX(0); }
.form__submit:hover svg { transform: translateX(4px); }

.form-success,
.form-error {
  padding: 32px 0 16px;
  border-top: 1px solid var(--c-blue);
  animation: fadeUp .8s var(--ease-out-soft);
}
.form-error { border-top-color: #d04545; }
.form-success__title,
.form-error__title {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: 32px;
  margin: 0 0 8px;
}
.form-success__body,
.form-error__body { color: var(--c-ink-mute); margin: 0 0 16px; }
.form-error__retry {
  background: transparent;
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
  padding: 12px 24px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: all .3s var(--ease-out-soft);
}
.form-error__retry:hover { background: var(--c-ink); color: #fff; }
.form__submit:disabled { opacity: .55; cursor: not-allowed; }
.form__submit.is-sending { pointer-events: none; }
.form__submit .form__submit-spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
}
.form__submit.is-sending .form__submit-spinner { display: inline-block; }
.form__submit.is-sending svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================ */
/* FOOTER                                        */
/* ============================================ */
.footer {
  background: var(--c-paper);
  padding: 96px var(--pad-x) 40px;
  position: relative;
}
.footer__rule {
  max-width: var(--w-max);
  margin: 0 auto 80px;
  height: 1px;
  background: var(--c-silver);
}

/* Big brand mark at the top */
.footer__brand {
  max-width: var(--w-max);
  margin: 0 auto 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.footer__logo {
  height: clamp(80px, 11vw, 140px);
  width: auto;
}
.footer__developer { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--c-ink-mute); margin: 0; }
.footer__developer-prefix { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; opacity: .7; }
.footer__developer-name {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: .26em;
  color: var(--c-ink);
  font-size: 15px;
  text-transform: uppercase;
}

/* Three-column meta row */
.footer__grid {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 56px;
  border-top: 1px solid var(--c-silver-soft);
}
.footer__col p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--c-ink-mute); }
.footer__col a:hover { color: var(--c-blue); }
.footer__col-label {
  font-size: 10.5px !important;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--c-ink-faint) !important;
  margin: 0 0 14px !important;
  line-height: 1 !important;
}

.footer__col--social { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.footer__socials { display: inline-flex; gap: 12px; align-items: center; }
.footer__socials a {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--c-silver);
  border-radius: 50%;
  color: var(--c-ink-mute);
  transition: all .25s;
}
.footer__socials svg { width: 15px; height: 15px; }
.footer__socials a:hover {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-ink);
}

.footer__bottom {
  max-width: var(--w-max);
  margin: 64px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--c-silver-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--c-ink-faint);
}
.footer__copy { margin: 0; }
.footer__legal { color: var(--c-ink-faint); }

.footer__admin-link {
  position: fixed;
  bottom: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  font-size: 10px;
  color: var(--c-ink-faint);
  opacity: .3;
  display: grid;
  place-items: center;
  z-index: 10;
}
.footer__admin-link:hover { opacity: 1; color: var(--c-blue); }

@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .footer__col--social { align-items: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ============================================ */
/* Reveals                                       */
/* ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out-soft), transform .9s var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="word"] {
  display: inline-block;
}
[data-reveal="card"] {
  transform: translateY(40px);
}
.is-visible[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

/* Lines reveal (heading split) */
[data-reveal="lines"] {
  opacity: 1;
  transform: none;
}
[data-reveal="lines"] .reveal-line {
  display: block;
  overflow: hidden;
}
[data-reveal="lines"] .reveal-line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
.is-visible[data-reveal="lines"] .reveal-line__inner {
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero { height: 100vh; }
  .hero__video { display: none; }
  .hero__sticky { background: #141414 url(hero.jpeg) center/cover; }
}

/* ---- Preview mode (admin "Aperçu") -------------------------------------- */
/* Hide the page until the CMS content has been applied (no flash of default
   text), then reveal everything at once with no scroll-reveal animations so the
   admin sees their changes immediately. Does not affect the live site. */
.cms-preview:not(.cms-preview-ready) { visibility: hidden; }
.cms-preview [data-reveal] { opacity: 1 !important; transform: none !important; }
.cms-preview [data-reveal="lines"] .reveal-line__inner { transform: none !important; }

/* ========================================================================
 * STAGING · multi-page additions
 * (page hero, nav active, stats bar, localisation+map, projet split,
 *  typology table, invest teaser, why points, floating CTA, thank-you)
 * ===================================================================== */

/* ---- Nav: brand wordmark + active link ---------------------------------- */
.nav__brandmark {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: .3em;
  color: var(--nav-fg);
  white-space: nowrap;
}
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left center; }
.nav__cta {
  padding: 10px 22px;
  border: 1px solid currentColor;
  letter-spacing: .22em;
}
.nav.is-scrolled .nav__cta { border-color: var(--c-ink); }
.nav__cta:hover { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-ink); }
@media (max-width: 900px) {
  .nav__links { gap: 16px; }
  .nav__link:not(.nav__cta) { display: none; }
}

/* ---- Page hero (image) -------------------------------------------------- */
.phero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  background: var(--c-ink);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}
.phero__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.phero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,30,48,.58) 0%, rgba(14,30,48,.20) 42%, rgba(14,30,48,.74) 100%);
}
/* faint architectural hairline frame inside the hero — quiet structure */
.phero__frame {
  position: absolute; inset: clamp(16px,3vw,34px); z-index: 2;
  border: 1px solid rgba(255,255,255,.16);
  pointer-events: none;
}
.phero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 55%, transparent 42%, rgba(20,20,20,.5) 100%);
  pointer-events: none;
}
.phero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x);
  max-width: 1000px;
  will-change: transform, opacity;
}
.phero__eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin: 0 0 28px;
  opacity: 0; transform: translateY(8px);
  animation: fadeUp .9s var(--ease-out-soft) .2s forwards;
}
.phero__eyebrow::before, .phero__eyebrow::after {
  content: ''; width: 28px; height: 1px; background: rgba(255,255,255,.55);
}
.phero--home .phero__eyebrow::before, .phero--home .phero__eyebrow::after { width: 34px; }
.phero__logo {
  width: clamp(260px, 46vw, 620px);
  margin: 0 auto 30px;
  opacity: 0; transform: translateY(20px);
  animation: heroIn 1.3s var(--ease-out-soft) .3s forwards;
}
.phero__title {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: .06em;
  line-height: 1.02;
  margin: 0 0 26px;
  opacity: 0; transform: translateY(18px);
  animation: heroIn 1.2s var(--ease-out-soft) .35s forwards;
}
.phero__tagline {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(17px, 2vw, 26px);
  letter-spacing: .02em;
  color: rgba(255,255,255,.92);
  margin: 0 auto 40px;
  max-width: 24ch;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 1s var(--ease-out-soft) .8s forwards;
}
.phero__cta {
  display: inline-block;
  padding: 17px 40px;
  border: 1px solid rgba(255,255,255,.75);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #fff;
  position: relative; overflow: hidden;
  transition: color .5s var(--ease-out-soft), border-color .5s var(--ease-out-soft);
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 1s var(--ease-out-soft) 1s forwards;
}
.phero__cta::before {
  content: ''; position: absolute; inset: 0; background: var(--c-blue);
  transform: translateY(100%); transition: transform .5s var(--ease-out-soft); z-index: -1;
}
.phero__cta:hover { color: var(--c-ink); border-color: var(--c-blue); }
.phero__cta:hover::before { transform: translateY(0); }
.phero__scroll {
  position: absolute; bottom: 30px; left: 0; right: 0; margin: 0 auto;
  width: max-content; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,.8);
  opacity: 0; animation: fadeUp 1.2s var(--ease-out-soft) 1.3s forwards;
}
.phero__scroll-text { font-size: 10px; letter-spacing: .42em; text-transform: uppercase; }
.phero__scroll-line { position: relative; display: block; width: 1px; height: 52px; background: rgba(255,255,255,.25); overflow: hidden; }
.phero__scroll-line::after {
  content: ''; position: absolute; top: -52px; left: 0; width: 100%; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--c-blue));
  animation: scrollLine 2.2s var(--ease-out-soft) infinite;
}

/* ---- Stats bar ---------------------------------------------------------- */
.stats {
  border-top: 1px solid var(--c-silver);
  border-bottom: 1px solid var(--c-silver);
  background: var(--c-marble);
}
.stats__grid {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 54px; background: var(--c-silver);
}
.stat__num {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  color: var(--c-ink);
  letter-spacing: .01em;
}
.stat__label {
  display: block;
  margin-top: 14px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--c-ink-mute);
}
@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .stat + .stat::before { display: none; }
}

/* ---- Generic section wrapper + two-column split ------------------------- */
.block { padding: var(--pad-y) 0; position: relative; }
.block--tint { background: var(--c-marble); }
.block--ink {
  background: var(--c-navy);
  color: #fff;
  background-image: radial-gradient(120% 100% at 80% 0%, rgba(92,179,255,.10), transparent 55%);
}
/* Hairline that frames the top of alternating chapters — editorial spine */
.block--tint::before, .block--ink::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--w-max), calc(100% - 2 * var(--pad-x)));
  height: 1px; background: var(--c-silver);
}
.block--ink::before { background: rgba(255,255,255,.14); }
.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x); }

.split {
  max-width: var(--w-max);
  margin: 56px auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__title {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: .005em;
  margin: 0 0 28px;
  color: var(--c-ink);
  max-width: 18ch;
}
.block--ink .split__title { color: #fff; }
.split__body { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.8; color: var(--c-ink-soft); max-width: 56ch; }
.block--ink .split__body { color: rgba(255,255,255,.82); }
.split__body + .split__body { margin-top: 20px; }
.split__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-silver-soft);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
/* Placeholder images: keep centered & static (no zoom/parallax crop). Reverts
   automatically once the client uploads a real image (src no longer contains "placeholder-"). */
.split__media img[src*="placeholder-"] { transform: none !important; object-fit: contain; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
}

/* Inline text link with animated underline (used for section CTAs) */
.link-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 34px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-ink);
  position: relative; padding-bottom: 6px;
}
.block--ink .link-cta { color: #fff; }
.link-cta::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--c-blue); transform: scaleX(.4); transform-origin: left center;
  transition: transform .45s var(--ease-out-soft);
}
.link-cta:hover::after { transform: scaleX(1); }
.link-cta svg { width: 20px; height: 20px; transition: transform .4s var(--ease-out-soft); }
.link-cta:hover svg { transform: translateX(5px); }

/* ---- Localisation intro text block (full-width, no right column) -------- */
.loc__text {
  max-width: var(--w-max);
  margin: 44px auto 0;
  padding: 0 var(--pad-x);
}
.loc__text .split__body { max-width: 62ch; }
.loc__text .split__body + .split__body { margin-top: 20px; }

/* Form heading spacing now that subtitles are removed */
.form-card__heading { margin-bottom: 40px; }

/* ---- Localisation block (list + map) ------------------------------------ */
.loc__grid {
  max-width: var(--w-max);
  margin: clamp(56px, 7vw, 96px) auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.loc__list-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 22px;
  color: var(--c-ink);
  margin: 0 0 24px;
}
.loc__list { display: flex; flex-direction: column; }
.loc__list li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-silver-soft);
  font-size: 15px;
  color: var(--c-ink-soft);
}
.loc__list li::before {
  content: ''; flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-blue);
}
.loc__map {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--c-silver-soft);
  aspect-ratio: 5 / 4;
  box-shadow: 0 30px 60px -40px rgba(20,20,20,.35);
}
.loc__map img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .loc__grid { grid-template-columns: 1fr; }
  .loc__map { aspect-ratio: 4 / 3; }
}

/* ---- Appartements intro line ------------------------------------------- */
.appart__intro {
  max-width: var(--w-max);
  margin: 28px auto 0;
  padding: 0 var(--pad-x);
}
.appart__intro p {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.8;
  color: var(--c-ink-soft);
  max-width: 62ch;
  margin: 0;
}

/* ---- Typology price table ---------------------------------------------- */
.typo {
  max-width: var(--w-max);
  margin: 56px auto 0;
  padding: 0 var(--pad-x);
}
.typo__table { width: 100%; border-collapse: collapse; }
.typo__table th {
  text-align: left;
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--c-ink-faint);
  font-weight: 500;
  padding: 0 16px 18px;
  border-bottom: 1px solid var(--c-silver);
}
.typo__table th:last-child, .typo__table td:last-child { text-align: right; }
.typo__table td {
  padding: 24px 16px;
  border-bottom: 1px solid var(--c-silver-soft);
  font-size: 15px;
  color: var(--c-ink-soft);
  vertical-align: middle;
}
.typo__type { font-family: var(--f-display); font-weight: 400; color: var(--c-ink); font-size: 17px; }
.typo__row { transition: background-color .3s var(--ease-out-soft); }
.typo__row:hover { background: var(--c-silver-tint); }
.typo__plan {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-ink-mute);
  position: relative; padding-bottom: 4px;
  transition: color .3s var(--ease-out-soft);
}
.typo__plan::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--c-blue); transform: scaleX(0); transform-origin: right center;
  transition: transform .4s var(--ease-out-soft);
}
.typo__plan:hover { color: var(--c-ink); }
.typo__plan:hover::after { transform: scaleX(1); transform-origin: left center; }
@media (max-width: 720px) {
  .typo__table thead { display: none; }
  .typo__table, .typo__table tbody, .typo__table tr, .typo__table td { display: block; width: 100%; }
  .typo__row { padding: 20px 0; border-bottom: 1px solid var(--c-silver); }
  .typo__table td { padding: 4px 0; border: 0; text-align: left !important; }
  .typo__table td[data-th]::before {
    content: attr(data-th); display: block;
    font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--c-ink-faint);
    margin-bottom: 2px;
  }
}

/* ---- "Why invest" numbered points -------------------------------------- */
.why__grid {
  max-width: var(--w-max);
  margin: 64px auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.why__item {
  border-top: 1px solid var(--c-silver);
  padding-top: 28px;
}
.why__num {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1;
  color: var(--c-blue);
  margin-bottom: 22px;
}
.why__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-ink);
  margin: 0 0 18px;
  line-height: 1.4;
}
.why__body { font-size: 14.5px; line-height: 1.75; color: var(--c-ink-mute); margin: 0; }
@media (max-width: 880px) { .why__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---- Floating CTA ------------------------------------------------------- */
.floating-cta {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  background: var(--c-ink);
  color: #fff;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  box-shadow: 0 20px 40px -18px rgba(20,20,20,.5);
  opacity: 0; transform: translateY(20px) scale(.96);
  pointer-events: none;
  transition: opacity .5s var(--ease-out-soft), transform .5s var(--ease-out-soft), background-color .3s;
}
.floating-cta.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.floating-cta:hover { background: var(--c-blue); color: var(--c-ink); }
.floating-cta svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .floating-cta { padding: 13px 18px; font-size: 10px; letter-spacing: .16em; }
}

/* ---- Second consent checkbox spacing ------------------------------------ */
.form__consent + .form__consent { margin-top: -12px; }

/* ---- Thank-you page ----------------------------------------------------- */
.thanks {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px var(--pad-x) 80px;
  background: var(--c-silver-tint);
  position: relative;
}
.thanks__inner { max-width: 620px; }
.thanks__mark { width: clamp(140px, 22vw, 220px); margin: 0 auto 40px; }
.thanks__check {
  width: 64px; height: 64px; margin: 0 auto 32px;
  border-radius: 50%;
  border: 1px solid var(--c-blue);
  display: grid; place-items: center;
  animation: fadeUp .8s var(--ease-out-soft) both;
}
.thanks__check svg { width: 28px; height: 28px; color: var(--c-blue); }
.thanks__eyebrow {
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--c-ink-mute); margin: 0 0 20px;
  animation: fadeUp .8s var(--ease-out-soft) .1s both;
}
.thanks__title {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  color: var(--c-ink);
  margin: 0 0 24px;
  animation: fadeUp .9s var(--ease-out-soft) .2s both;
}
.thanks__body {
  font-size: 16px; line-height: 1.75; color: var(--c-ink-soft);
  margin: 0 auto 44px; max-width: 48ch;
  animation: fadeUp .9s var(--ease-out-soft) .3s both;
}
.thanks__cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 34px;
  background: var(--c-ink); color: #fff;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  position: relative; overflow: hidden;
  transition: color .4s var(--ease-out-soft);
  animation: fadeUp .9s var(--ease-out-soft) .4s both;
}
.thanks__cta::before {
  content: ''; position: absolute; inset: 0; background: var(--c-blue);
  transform: translateX(-100%); transition: transform .5s var(--ease-out-soft);
}
.thanks__cta span, .thanks__cta svg { position: relative; z-index: 1; }
.thanks__cta svg { width: 18px; height: 18px; }
.thanks__cta:hover { color: var(--c-ink); }
.thanks__cta:hover::before { transform: translateX(0); }

/* ---- Reduced motion: keep image heroes static --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .phero__img { transform: none !important; }
  .phero__content { opacity: 1 !important; transform: none !important; }
}

/* ======================================================================
 * V1 "Clarté" polish — editorial spine, warmth, refined detail
 * ==================================================================== */

/* Crystal-blue chapter tick above each section heading (brand spark) */
.section-head__heading { position: relative; }
.section-head__heading::before {
  content: '';
  display: block;
  width: 42px; height: 2px;
  background: var(--c-blue);
  margin: 0 0 30px;
}
.section-head--center .section-head__heading::before { margin-left: auto; margin-right: auto; }

/* Split titles get the same quiet tick, in the current ink/ivory context */
.split__title { position: relative; }
.split__title::before {
  content: '';
  display: block;
  width: 42px; height: 2px;
  background: var(--c-blue);
  margin: 0 0 26px;
  opacity: .9;
}

/* Warmer hero eyebrow + a touch more presence */
.phero__eyebrow { color: rgba(255,255,255,.82); }
.phero__tagline { color: rgba(255,255,255,.94); }

/* Stat numerals: a hair more refinement */
.stat__num { letter-spacing: .005em; }
.stat + .stat::before { background: var(--c-silver); }

/* Marble intro text block reads warmer */
.appart__intro p, .loc__text .split__body { color: var(--c-ink-soft); }

/* Map + media get a warm hairline frame (materiality) */
.loc__map { box-shadow: 0 30px 70px -46px rgba(14,30,48,.4); border: 1px solid var(--c-silver); }
.split__media { border: 1px solid rgba(215,211,204,.6); }

/* Typology table: warmer rows, ink-navy hover */
.typo__row:hover { background: var(--c-marble); }
.typo__table td { border-bottom-color: var(--c-silver-soft); }
.typo__table th { border-bottom-color: var(--c-silver); }

/* Form card sits on marble with a refined edge */
.form-section { background: var(--c-marble); }
.form-card { background: var(--c-paper-pure); border: 1px solid var(--c-silver); box-shadow: 0 40px 90px -60px rgba(14,30,48,.35); }

/* Footer warms up */
.footer { background: var(--c-paper); }
.footer__rule { background: var(--c-silver); }

/* Nav glass warms slightly when scrolled */
.nav.is-scrolled { background: rgba(252,251,249,.92); border-bottom-color: rgba(20,20,20,.07); }

/* ---- Flat brand line icons for the "À deux pas" list (pure CSS, keeps CMS text) ---- */
.loc__list li { align-items: center; }
.loc__list li::before {
  content: ''; flex: 0 0 auto;
  width: 23px; height: 23px;
  border-radius: 0 !important; background-color: transparent !important;
  background-repeat: no-repeat; background-position: center; background-size: 21px 21px;
  transform: none !important; opacity: .95;
}
.loc__list li:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%235cb3ff'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'6.5'%20y%3D'3.5'%20width%3D'11'%20height%3D'13'%20rx%3D'3'%2F%3E%3Cline%20x1%3D'6.5'%20y1%3D'10.5'%20x2%3D'17.5'%20y2%3D'10.5'%2F%3E%3Ccircle%20cx%3D'9.6'%20cy%3D'13.6'%20r%3D'.9'%2F%3E%3Ccircle%20cx%3D'14.4'%20cy%3D'13.6'%20r%3D'.9'%2F%3E%3Cpath%20d%3D'M9%2016.5%207%2020M15%2016.5%2017%2020'%2F%3E%3C%2Fsvg%3E"); }
.loc__list li:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%235cb3ff'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'4.5'%20y%3D'4.5'%20width%3D'15'%20height%3D'10'%20rx%3D'2.5'%2F%3E%3Cline%20x1%3D'4.5'%20y1%3D'10.5'%20x2%3D'19.5'%20y2%3D'10.5'%2F%3E%3Ccircle%20cx%3D'8'%20cy%3D'17'%20r%3D'1.4'%2F%3E%3Ccircle%20cx%3D'16'%20cy%3D'17'%20r%3D'1.4'%2F%3E%3C%2Fsvg%3E"); }
.loc__list li:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%235cb3ff'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%2020.5V14'%2F%3E%3Cpath%20d%3D'M12%2014a5%205%200%200%200%205-5c0-3.6-2.7-6-5-6S7%205.4%207%209a5%205%200%200%200%205%205Z'%2F%3E%3C%2Fsvg%3E"); }
.loc__list li:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%235cb3ff'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'6.5'%20cy%3D'15.5'%20r%3D'3.2'%2F%3E%3Ccircle%20cx%3D'17.5'%20cy%3D'15.5'%20r%3D'3.2'%2F%3E%3Cpath%20d%3D'M6.5%2015.5%2010.5%209H15M9.5%209h4.5l3%206.5'%2F%3E%3C%2Fsvg%3E"); }
.loc__list li:nth-child(5)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%235cb3ff'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M6.5%208h11l-.9%2011.5a1%201%200%200%201-1%20.9H8.4a1%201%200%200%201-1-.9L6.5%208Z'%2F%3E%3Cpath%20d%3D'M9.2%208V6.2a2.8%202.8%200%200%201%205.6%200V8'%2F%3E%3C%2Fsvg%3E"); }
.loc__list li:nth-child(6)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%235cb3ff'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%2020.5s6-5%206-9.7A6%206%200%200%200%206%2010.8c0%204.7%206%209.7%206%209.7Z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'10.8'%20r%3D'2.2'%2F%3E%3C%2Fsvg%3E"); }

/* Descender fix — reveal line-masks were clipping g/j/p/ç tails at the bottom. */
[data-reveal="lines"] .reveal-line { padding-bottom: .2em; margin-bottom: -.2em; }

/* =======================================================================
   HYBRID "CLARTÉ+" — Cristal-inspired grafts onto Clarté.
   Scoped to .phero--home, #localisation .loc__grid/.loc__map, #projet only,
   so the other pages and the invest-teaser stay exactly as they were.
   ======================================================================= */

/* --- 1 · HOME HERO à la Cristal : texte à gauche, ancré en bas, CTA plein --- */
.phero--home {
  place-items: end start;   /* was: center — now anchor content bottom-left */
  text-align: left;
}
.phero--home .phero__content {
  padding-bottom: clamp(56px, 9vh, 120px);
  max-width: min(880px, 100%);
}
/* left-align the pieces that were centered via auto margins */
.phero--home .phero__logo { margin-left: 0; margin-right: 0; }
.phero--home .phero__tagline { margin-left: 0; margin-right: 0; text-align: left; }
.phero--home .phero__eyebrow { justify-content: flex-start; }

/* CTA : bouton plein bleu arrondi lumineux (repris du .btn-light Cristal) + flèche */
.phero--home .phero__cta {
  display: inline-flex; align-items: center; gap: 12px;
  border: 0;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--c-blue);
  color: var(--c-navy);
  font-size: 12px; letter-spacing: .2em;
  box-shadow: 0 0 0 rgba(92,179,255,0);
  transition: transform .4s var(--ease-out-soft), box-shadow .4s var(--ease-out-soft), background .3s;
}
.phero--home .phero__cta::before { display: none; }  /* drop the ghost hover-fill */
.phero--home .phero__cta::after {
  content: '';
  width: 17px; height: 17px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--ease-out-soft);
}
.phero--home .phero__cta:hover {
  color: var(--c-navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(92,179,255,.6);
}
.phero--home .phero__cta:hover::after { transform: translateX(4px); }

@media (max-width: 640px) {
  .phero--home { place-items: end center; text-align: center; }
  .phero--home .phero__logo,
  .phero--home .phero__tagline { margin-left: auto; margin-right: auto; }
  .phero--home .phero__tagline { text-align: center; }
  .phero--home .phero__eyebrow { justify-content: center; }
}

/* --- 2 · CARTE DE LOCALISATION : proportion EXACTE de Cristal v3 --- */
/* v3 uses grid .8fr 1.2fr, align-items:start, and NO forced aspect-ratio —
   the map shows at the image's natural, uncropped proportion. */
#localisation .loc__grid {
  grid-template-columns: 0.8fr 1.2fr;    /* identical ratio to v3 .loc-grid */
  align-items: start;
}
#localisation .loc__map {
  aspect-ratio: auto;                    /* drop the 5/4 crop — natural ratio like v3 */
}
#localisation .loc__map img {
  height: auto;                          /* full, uncropped image (matches v3 render) */
}
@media (max-width: 900px) {
  #localisation .loc__grid { grid-template-columns: 1fr; }
}
/* Balance the heading lines so no single word ("ville") is left orphaned */
#localisation .section-head__heading { text-wrap: balance; }

/* --- 3 · SECTION « LE PROJET » : images plus grandes sur le fond navy --- */
/* (#projet already switched to .block--ink → navy #0e1e30 + white text in HTML) */
#projet .section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.block--ink .section-head__label { color: rgba(255,255,255,.72); }
.block--ink .section-head__label::before { background: var(--c-blue); }

/* enlarge the projet renders: wider media column + taller frame */
.split--projet { grid-template-columns: 0.82fr 1.18fr; }
.split--projet.split--reverse { grid-template-columns: 1.18fr 0.82fr; }
.split--projet .split__media { aspect-ratio: 3 / 2; }
@media (max-width: 880px) {
  .split--projet,
  .split--projet.split--reverse { grid-template-columns: 1fr; }
  .split--projet .split__media { aspect-ratio: 4 / 3; }
}

/* =======================================================================
   CLIENT FEEDBACK ROUND · 2026-08
   Nav Projet/Appart · brochure pop-up · no floating CTA · bigger frameless
   images · clickable map + gallery lightbox · more air before the table ·
   rounded buttons · Ardent-led footer · privacy/cookies pages.
   Appended at the end so these overrides win by cascade order.
   ===================================================================== */

/* ---- Wider content column + tighter side margins so visuals are larger
   (client: images encore trop petites — round 2) */
:root {
  --w-max: 1600px;
  --pad-x: clamp(20px, 4.2vw, 56px);
}

/* ---- Hero image: fade in once, only after the CMS-resolved image is loaded,
   so the default → uploaded swap never flashes as two images on load. */
[data-hero] .phero__img { opacity: 0; transition: opacity .7s var(--ease-out-soft); }
[data-hero] .phero__img.is-ready { opacity: 1; }

/* ---- Rounded choice chips too (ESPACE ENVISAGÉ / MON PROFIL) */
.chip { border-radius: 999px; }

/* ---- Remove decorative frames/borders around images (client: éviter les cadres) */
.split__media,
.intro__visual,
.loc__map { border: 0 !important; }
.phero__frame { display: none !important; }         /* hairline frame inside heroes */

/* ---- Bigger media -------------------------------------------------------- */
/* Tall side-by-side images (client choice): the render fills ~82vh next to the
   vertically-centred text, so the photo reads much larger. Scoped to media that
   sits INSIDE a .split grid, so full-width banners + the map keep their look. */
.split { align-items: center; }
.split > .split__media {
  aspect-ratio: auto;
  height: clamp(460px, 82vh, 920px);
}
.split > .split__media img { height: 100%; }
@media (max-width: 880px) {
  .split > .split__media { height: clamp(300px, 54vh, 520px); }
}
.gallery__grid { grid-auto-rows: clamp(300px, 30vw, 460px); gap: 22px; }
@media (max-width: 880px) { .gallery__grid { grid-auto-rows: 240px; } }

/* "Le quartier qui anticipe l'avenir" (Localisation intro) — shift the crop
   left so the gare des Guillemins on the left of the render stays in frame. */
.split__media--left img { object-position: 15% center; }

/* ---- Bigger, clickable map (#4) ----------------------------------------- */
#localisation .loc__grid { grid-template-columns: 0.7fr 1.3fr; }
.loc__map { cursor: zoom-in; box-shadow: 0 34px 80px -50px rgba(14,30,48,.4); }
/* magnifier badge to signal it opens larger */
.loc__map::after {
  content: '';
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(14,30,48,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 22px no-repeat;
  opacity: 0; transform: scale(.9);
  transition: opacity .4s var(--ease-out-soft), transform .4s var(--ease-out-soft);
  pointer-events: none;
}
.loc__map:hover::after { opacity: 1; transform: scale(1); }
/* Mobile: stack the localisation grid into ONE column — map on top, the
   "À deux pas de chez vous" list below (client: not side-by-side on mobile).
   Placed AFTER the 0.7fr/1.3fr rule above so it wins in source order. */
@media (max-width: 900px) {
  #localisation .loc__grid { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 40px); }
  #localisation .loc__map { order: -1; }
}

/* ---- Gallery tiles are zoomable ----------------------------------------- */
.gallery__item { cursor: zoom-in; }

/* ---- More air between the 3 pillars and the typology table (#6) --------- */
#appartements .typo { margin-top: clamp(84px, 10vw, 148px); }

/* ---- Rounded buttons (#7): nav Contact + both form submits -------------- */
.nav__cta { border-radius: 999px; }
.form__submit { border-radius: 999px; }

/* ---- Rounded hero CTA on subpages (#8): match the home pill on Localisation & Investir ---- */
.phero:not(.phero--home) .phero__cta {
  display: inline-flex; align-items: center; gap: 12px;
  border: 0;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--c-blue);
  color: var(--c-navy);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  overflow: visible;
  transition: transform .4s var(--ease-out-soft), box-shadow .4s var(--ease-out-soft), background .3s;
}
.phero:not(.phero--home) .phero__cta::before { display: none; }  /* drop the ghost hover-fill */
.phero:not(.phero--home) .phero__cta::after {
  content: '';
  width: 17px; height: 17px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--ease-out-soft);
}
.phero:not(.phero--home) .phero__cta:hover {
  color: var(--c-navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(92,179,255,.35);
}
.phero:not(.phero--home) .phero__cta:hover::after { transform: translateX(4px); }

/* =======================================================================
   LIGHTBOX (map + gallery — click to view large / défiler)
   ===================================================================== */
body.overlay-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(14px, 4vw, 56px);
  background: rgba(10,16,24,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out-soft), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.7);
  transform: scale(.97); transition: transform .35s var(--ease-out-soft);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__btn, .lightbox__close {
  position: absolute; z-index: 3;
  border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.lightbox__btn:hover, .lightbox__close:hover { background: var(--c-blue); color: var(--c-navy); border-color: var(--c-blue); }
.lightbox__btn { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__prev { left: clamp(6px, 2vw, 26px); }
.lightbox__next { right: clamp(6px, 2vw, 26px); }
.lightbox__close { top: clamp(6px, 2vw, 22px); right: clamp(6px, 2vw, 22px); width: 48px; height: 48px; }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__count {
  position: absolute; bottom: clamp(6px, 2vw, 20px); left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .22em;
}
.lightbox--single .lightbox__prev,
.lightbox--single .lightbox__next,
.lightbox--single .lightbox__count { display: none; }
@media (max-width: 640px) { .lightbox__btn { width: 44px; height: 44px; } }

/* =======================================================================
   BROCHURE POP-UP (email only → thank-you page → auto-download)
   ===================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 210;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 44px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out-soft), visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(10,16,24,.74);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.modal__card {
  position: relative; z-index: 1;
  width: min(470px, 100%);
  max-height: 88vh; overflow-y: auto;
  background: var(--c-paper-pure);
  padding: clamp(30px, 5vw, 52px);
  box-shadow: 0 50px 120px -40px rgba(14,30,48,.6);
  transform: translateY(16px) scale(.98);
  transition: transform .4s var(--ease-out-soft);
}
.modal.is-open .modal__card { transform: none; }
.modal__card::before { content: ''; position: absolute; top: 0; left: 0; width: 56px; height: 2px; background: var(--c-blue); }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--c-silver); background: transparent; color: var(--c-ink-mute);
  display: grid; place-items: center; transition: all .25s;
}
.modal__close:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.modal__close svg { width: 16px; height: 16px; }
.modal__logo { width: 150px; height: auto; margin: 0 0 22px; }
.modal__title {
  font-family: var(--f-display); font-weight: 200;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.14; letter-spacing: .005em;
  color: var(--c-ink); margin: 0 0 12px;
}
.modal__body { font-size: 14.5px; line-height: 1.6; color: var(--c-ink-mute); margin: 0 0 26px; }
.modal__field { display: flex; flex-direction: column; gap: 9px; margin: 0 0 20px; }
.modal__field input {
  border: 0; border-bottom: 1px solid var(--c-silver); background: transparent;
  padding: 10px 0 12px; font-size: 15px; color: var(--c-ink); outline: none;
  transition: border-color .3s var(--ease-out-soft);
}
.modal__field input:focus { border-bottom-color: var(--c-blue); }
.modal__consent {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 12.5px; line-height: 1.5; color: var(--c-ink-mute);
  cursor: pointer; margin: 0 0 22px;
}
.modal__consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; border: 1px solid var(--c-silver); border-radius: 0;
  margin-top: 2px; flex-shrink: 0; cursor: pointer; position: relative; transition: all .25s;
}
.modal__consent input[type="checkbox"]:checked { background: var(--c-blue); border-color: var(--c-blue); }
.modal__consent input[type="checkbox"]:checked::after {
  content: ''; position: absolute; inset: 2px; background: var(--c-ink);
  clip-path: polygon(20% 50%, 40% 70%, 80% 25%, 70% 15%, 40% 50%, 30% 40%);
}
.modal__submit { width: 100%; justify-content: center; margin-top: 0; }
.modal__error { color: #b00020; font-size: 13px; margin: 14px 0 0; }
.modal__error[hidden] { display: none; }
.modal__note { font-size: 11.5px; line-height: 1.5; color: var(--c-ink-faint); margin: 16px 0 0; text-align: center; }

/* =======================================================================
   PRIVACY / COOKIES (legal) pages
   ===================================================================== */
.legal {
  padding: clamp(140px, 16vw, 200px) var(--pad-x) var(--pad-y);
  background: var(--c-paper); min-height: 68vh;
}
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--c-ink-mute); margin: 0 0 20px;
}
.legal__eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--c-blue); }
.legal__title {
  font-family: var(--f-display); font-weight: 200;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: .005em;
  color: var(--c-ink); margin: 0 0 14px;
}
.legal__updated { font-size: 13px; color: var(--c-ink-faint); margin: 0 0 44px; }
/* pre-wrap so a plain-text paste (no HTML) keeps its paragraph breaks;
   inline/block HTML the client may paste still renders normally. */
.legal__body { font-size: 15.5px; line-height: 1.8; color: var(--c-ink-soft); white-space: pre-wrap; }
.legal__body h2, .legal__body h3, .legal__body p, .legal__body ul, .legal__body ol { white-space: normal; }
.legal__body > *:first-child { margin-top: 0; }
.legal__body h2 {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px); color: var(--c-ink); margin: 44px 0 14px;
}
.legal__body h3 { font-size: 16px; font-weight: 600; color: var(--c-ink); margin: 28px 0 10px; }
.legal__body p { margin: 0 0 16px; }
.legal__body ul, .legal__body ol { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { color: var(--c-blue-deep); text-decoration: underline; }

/* =======================================================================
   FOOTER · Ardent-led (client: logo Ardent + adresse projet + adresse Ardent
   + www.ardent-re.be + liens privacy/cookies)
   ===================================================================== */
.footer__logo--ardent { height: clamp(42px, 6vw, 62px); width: auto; }
.footer__brand--ardent { gap: 16px; }
.footer__grid--entities { grid-template-columns: 1fr 1fr 1fr; }
.footer__grid--entities .footer__col--social { align-items: flex-end; text-align: right; }
.footer__legal { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer__legal a { color: var(--c-ink-faint); text-decoration: none; transition: color .25s; }
.footer__legal a:hover { color: var(--c-blue); }
.footer__legal .sep { color: var(--c-silver); }
@media (max-width: 880px) {
  .footer__grid--entities { grid-template-columns: 1fr; text-align: center; }
  .footer__grid--entities .footer__col--social { align-items: center; text-align: center; }
}

/* ---- Plan modal: inline PDF viewer step ---- */
.modal__pdfwrap { width: 100%; margin: 8px 0 16px; border-radius: 14px; overflow: hidden; background: #f2f1ee; }
.modal__pdf { display: block; width: 100%; height: min(64vh, 560px); border: 0; background: #f2f1ee; }
#plan-modal .modal__card { max-width: 760px; }
a.modal__submit { text-decoration: none; justify-content: center; }

/* Secondary "Prendre rendez-vous" action in the plan pop-up (#4) */
.modal__submit--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 16px 32px;
  margin-top: 12px;
  border: 1px solid var(--c-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--c-ink);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s var(--ease-out-soft), color .3s var(--ease-out-soft);
}
.modal__submit--ghost:hover { background: var(--c-ink); color: #fff; }

/* ---- Mobile: keep the Contact pill fixed in the nav, next to the hamburger (like Rive Urbaine) ---- */
@media (max-width: 760px) {
  .nav__links { display: flex; gap: 0; margin-left: auto; margin-right: 14px; }
  .nav__link:not(.nav__cta) { display: none; }
  .nav__cta { padding: 8px 16px; font-size: 12px; letter-spacing: .18em; }
  .nav__cta::after { display: none; }
  body.menu-open .nav__links { opacity: 0; pointer-events: none; }
}
@media (max-width: 360px) {
  .nav__cta { padding: 7px 12px; font-size: 11px; letter-spacing: .12em; }
}

/* ---- 2026-10 client feedback ---- */
/* Typology table: price note under the table */
.typo__note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--c-ink-mute); }
/* Footer: social links hidden (markup + CMS fields kept), Ardent logo is a link */
.footer__col--social[hidden] { display: none !important; }
@media (min-width: 881px) { .footer__grid--entities { grid-template-columns: 1fr 1fr; } }
.footer__logo-link { display: inline-block; line-height: 0; transition: opacity .3s var(--ease-out-soft); }
.footer__logo-link:hover { opacity: .75; }
/* Form: both intro paragraphs at the same size; air between a legend and its chips */
.form-card__dev { font-size: 15px; }
.form__field--choices > legend { margin-bottom: 16px; padding: 0; }
/* Investir: no hairline between the photo block and the grey "why" block, and a
   tighter gap between the three reasons and the form below */
.block--why::before { display: none; }
.block--why { padding-bottom: clamp(48px, 6vw, 88px); }
.block--why + .form-section { padding-top: 0; }
.block--why + .form-section .form-card { margin-top: 0; }
/* Nav: links are hidden from 900px down, so the hamburger must show from 900px too
   (it only appeared at 760px, leaving 761–900px with no menu). */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .mobile-menu { display: flex; }
  .nav__links { margin-left: auto; margin-right: 14px; }
}
/* Open mobile menu: keep the nav bar (logo + close ✕) above the full-screen menu,
   otherwise the menu (z 55) covers the nav (z 50) and the ✕ can't be tapped. */
body.menu-open .nav { z-index: 56; }
body.menu-open .nav__logo { filter: none; }
/* Hero titles that wrap on phones (e.g. "HISTOIRE DU LIEU"): give the lines air */
@media (max-width: 640px) { .phero__title { line-height: 1.18; text-wrap: balance; } }
/* Home « LE PROJET »: less empty navy above the label and between label and first image */
#projet { padding-top: clamp(56px, 7vw, 104px); }
#projet .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
