/* ═══════════════════════════════════════════════════════════════════════════
   NEXUS APPART — site public
   ═══════════════════════════════════════════════════════════════════════════ */

.site { background: var(--ivory); }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--ivory-2); }
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head h2, .residence-text h2 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 500; margin: 0.9rem 0 0.8rem; }
.section-head p { color: var(--text-soft); font-size: 1.02rem; }
.lead { color: var(--text-soft); font-size: 1.05rem; line-height: 1.75; }
.eyebrow-light { color: var(--gold-light); }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ─── En-tête ────────────────────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 1.1rem 0; transition: background var(--t), padding var(--t), box-shadow var(--t); }
.site-header.is-scrolled { background: rgba(14, 17, 23, 0.86); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); padding: 0.65rem 0; box-shadow: 0 1px 0 rgba(216, 191, 143, 0.12); }
.site-header-inner { display: flex; align-items: center; gap: 2rem; }
.site-brand { color: #f5efe3; }
.site-brand .brandmark svg { width: 38px; height: 38px; }
.site-nav { display: flex; gap: 2rem; margin-left: auto; }
.site-nav a { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: rgba(245, 239, 227, 0.78); position: relative; padding: 0.3rem 0; transition: color var(--t); }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav-tenant { display: none; }
.site-header-cta { display: flex; align-items: center; gap: 0.9rem; }
.site-tenant-link { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); border: 1px solid rgba(216, 191, 143, 0.35); transition: background var(--t), color var(--t); }
.site-tenant-link:hover { background: rgba(216, 191, 143, 0.14); color: #fff; }
.site-header-btn { color: #f5efe3; border-color: rgba(245, 239, 227, 0.4); }
.nav-toggle { display: none; width: 42px; height: 42px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #f5efe3; transition: transform var(--t), opacity var(--t); content: ''; }
.nav-toggle span { top: 50%; }
.nav-toggle span::before { left: 0; right: 0; top: -7px; }
.nav-toggle span::after { left: 0; right: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #f5efe3;
  background:
    radial-gradient(ellipse 45% 55% at 75% 95%, rgba(214, 160, 86, 0.26), transparent 70%),
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(64, 86, 122, 0.22), transparent 70%),
    linear-gradient(170deg, #121722 0%, #0a0d12 100%);
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 13, 18, 0.92) 0%, rgba(10, 13, 18, 0.65) 45%, rgba(10, 13, 18, 0.25) 100%), linear-gradient(0deg, rgba(10, 13, 18, 0.7), transparent 40%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 3rem; padding-top: 7rem; padding-bottom: 5rem; width: 100%; }
.has-photo .hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero h1 { color: #fbf6ec; font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 500; line-height: 1.02; margin: 1.2rem 0 1.3rem; max-width: 18ch; text-wrap: balance; }
.hero-lead { color: rgba(245, 239, 227, 0.72); font-size: 1.1rem; max-width: 46ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }
.hero-actions .btn-line { color: #f5efe3; border-color: rgba(245, 239, 227, 0.4); }
.hero-facts { display: flex; gap: clamp(1.6rem, 4vw, 3rem); padding-top: 1.8rem; border-top: 1px solid rgba(216, 191, 143, 0.2); max-width: 520px; }
.hero-facts dt { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; color: var(--gold-glow); line-height: 1; font-variant-numeric: lining-nums; }
.hero-facts dd { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 239, 227, 0.55); margin-top: 0.45rem; }
.hero-facade { height: min(72vh, 600px); aspect-ratio: 420 / 560; justify-self: center; }
.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero .reveal:nth-child(5) { transition-delay: 0.32s; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); width: 24px; height: 40px; border-radius: 12px; border: 1px solid rgba(245, 239, 227, 0.35); z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-light); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ─── Résidence ──────────────────────────────────────────────────────────── */
.residence-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.features { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2.2rem; }
.features li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: var(--gold-deep); background: var(--gold-pale); border: 1px solid rgba(176, 141, 87, 0.3); }
.features strong { font-size: 0.98rem; }
.features p { color: var(--text-soft); font-size: 0.9rem; margin-top: 0.15rem; }
.residence-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(170deg, #161b24, #0d1016); aspect-ratio: 4 / 5; display: flex; align-items: flex-end; justify-content: center; box-shadow: var(--shadow-lg); }
.residence-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(214, 160, 86, 0.3), transparent 70%); }
.residence-card-facade { position: relative; height: 78%; aspect-ratio: 420 / 560; margin-bottom: 8%; }
.residence-card-caption { position: absolute; left: 1.6rem; top: 1.6rem; display: flex; flex-direction: column; color: #f5efe3; line-height: 1.2; }
.residence-card-caption span { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; }
.residence-card-caption strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin-top: 0.4rem; }
.residence-card-caption em { font-style: normal; font-size: 0.85rem; color: rgba(245, 239, 227, 0.6); }
.mosaic { display: grid; gap: 0.7rem; grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
.mosaic figure { position: relative; overflow: hidden; border-radius: var(--r-md); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.8rem 1rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: linear-gradient(0deg, rgba(10, 13, 18, 0.7), transparent); }
.mosaic-1 { grid-template-columns: 1fr; grid-auto-rows: 420px; }
.mosaic-3 figure:first-child { grid-row: span 2; }

/* ─── Appartements ───────────────────────────────────────────────────────── */
.apt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; }
.apt { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.apt:hover, .apt:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); outline: none; }
.apt-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.apt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.apt:hover .apt-media img { transform: scale(1.05); }
.apt.is-rented .apt-media img { filter: grayscale(0.7) brightness(0.8); }
.apt-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(214, 160, 86, 0.35), transparent 70%), linear-gradient(160deg, #1a202b, #0d1016); }
.apt-placeholder span { font-family: var(--font-display); font-size: 4.6rem; font-weight: 500; line-height: 1; color: var(--gold-glow); font-variant-numeric: lining-nums; }
.apt-placeholder em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245, 239, 227, 0.6); }
.apt-status { position: absolute; top: 0.9rem; left: 0.9rem; padding: 0.35rem 0.75rem; border-radius: var(--r-full); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.apt-status.is-free { background: rgba(229, 241, 234, 0.92); color: var(--ok); }
.apt-status.is-taken { background: rgba(18, 21, 27, 0.7); color: rgba(245, 239, 227, 0.8); }
.apt-peb { position: absolute; right: 0.9rem; bottom: 0.9rem; }
.apt-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.apt-title { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.apt-title h3 { font-size: 1.7rem; font-weight: 500; }
.apt-title span { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.apt-specs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.apt-specs li { font-size: 0.76rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: var(--r-full); background: var(--ivory); color: var(--text-soft); font-variant-numeric: lining-nums; }
.apt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.apt-price strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums; }
.apt-price span { font-size: 0.78rem; color: var(--text-soft); }
.apt-more { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--gold-deep); transition: background var(--t), color var(--t), transform var(--t); }
.apt:hover .apt-more { background: var(--ink); color: var(--gold-glow); transform: translateX(3px); }

/* ─── Quartier ───────────────────────────────────────────────────────────── */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem; }
#map { height: 480px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--ivory-2); z-index: 0; }
.leaflet-popup-content-wrapper { border-radius: 12px; font-family: var(--font-ui); }
.poi-list { display: flex; flex-direction: column; gap: 0.55rem; max-height: 480px; overflow-y: auto; padding-right: 0.3rem; }
.poi-list li { display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 1.1rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.poi-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-pale); flex-shrink: 0; }
.poi-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.poi-list strong { font-size: 0.92rem; }
.poi-list span { font-size: 0.76rem; color: var(--muted); }
.poi-list .poi-dist { flex: 0 0 auto; text-align: right; }
.poi-list .poi-dist strong { color: var(--gold-deep); font-variant-numeric: lining-nums; }
.poi-empty { color: var(--muted); font-size: 0.9rem; }

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 3rem; align-items: end; padding: clamp(2.4rem, 6vw, 4.5rem); border-radius: var(--r-lg); color: #f5efe3; background: radial-gradient(ellipse 50% 70% at 90% 0%, rgba(214, 160, 86, 0.22), transparent 70%), linear-gradient(160deg, #161b24, #0d1016); box-shadow: var(--shadow-lg); }
.contact-text h2 { color: #fbf6ec; font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 500; margin: 0.9rem 0 0.7rem; }
.contact-text > p { color: rgba(245, 239, 227, 0.65); max-width: 40ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin-top: 2rem; }
.contact-links a { display: flex; flex-direction: column; font-size: 1.1rem; font-weight: 600; transition: color var(--t); }
.contact-links a:hover { color: var(--gold-glow); }
.contact-links span, .contact-address span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: 0.3rem; }
.contact-missing { color: rgba(245, 239, 227, 0.5); }
.contact-address { padding: 1.6rem; border-radius: var(--r-md); border: 1px solid rgba(216, 191, 143, 0.2); background: rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; }
.contact-address p { font-size: 1rem; margin-bottom: 1.2rem; color: rgba(245, 239, 227, 0.85); }
.contact-address .btn { align-self: flex-start; color: #f5efe3; border-color: rgba(245, 239, 227, 0.4); }

/* ─── Pied de page ───────────────────────────────────────────────────────── */
.site-footer { padding: 2.6rem 0 3rem; border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.site-footer .brandmark svg { width: 32px; height: 32px; }
.site-footer .brandmark-name { font-size: 1rem; }
.site-footer-nav { display: flex; gap: 1.6rem; margin-left: auto; flex-wrap: wrap; }
.site-footer-nav a { font-size: 0.84rem; color: var(--text-soft); }
.site-footer-nav a:hover { color: var(--gold-deep); }
.site-footer-copy { width: 100%; font-size: 0.76rem; color: var(--muted); }
.footer-admin { color: inherit; }

/* ─── Fenêtre appartement ────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(8, 10, 14, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-card { position: relative; width: 100%; max-width: 980px; max-height: 92vh; overflow-y: auto; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45); transform: translateY(20px) scale(0.985); transition: transform 0.45s var(--ease-out); }
.modal.is-open .modal-card { transform: none; }
.modal-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-sm); transition: transform var(--t); }
.modal-close:hover { transform: rotate(90deg); }
.modal-gallery { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.modal-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
.modal-slides img.is-active { opacity: 1; }
.modal-slides .apt-placeholder span { font-size: 6rem; }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.88); font-size: 1.5rem; line-height: 1; }
.modal-nav.prev { left: 1rem; }
.modal-nav.next { right: 1rem; }
.modal-dots { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; gap: 0.4rem; z-index: 2; }
.modal-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.modal-dots button.is-active { background: #fff; width: 22px; border-radius: 4px; }
.modal-body { padding: clamp(1.4rem, 4vw, 2.4rem); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.modal-head h3 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 500; margin-top: 0.4rem; }
.modal-head .apt-status { position: static; }
.modal-specs { margin-bottom: 1.2rem; }
.apt-specs li.has-icon { display: inline-flex; align-items: center; gap: .4rem; }
.apt-specs li.has-icon svg { width: 16px; height: 16px; color: var(--gold-deep); }
.modal-desc { color: var(--text-soft); line-height: 1.75; white-space: pre-line; margin-bottom: 1.2rem; }
.modal-energy { display: flex; align-items: center; gap: 0.8rem; font-size: 0.84rem; color: var(--text-soft); margin-bottom: 1.4rem; }
.modal-energy:empty { display: none; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.3rem; border-top: 1px solid var(--line); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 6.5rem; }
  .hero-facade { display: none; }
  .residence-grid, .map-layout, .contact-panel { grid-template-columns: 1fr; }
  #map { height: 360px; }
  .poi-list { max-height: none; }
}
@media (max-width: 820px) {
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px); flex-direction: column; justify-content: center; gap: 1.6rem; padding: 2.4rem; background: #0e1117; transform: translateX(100%); transition: transform 0.4s var(--ease); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4); }
  .nav-open .site-nav { transform: none; }
  .site-nav a { font-size: 1.05rem; }
  .site-nav-tenant { display: block; color: var(--gold-light) !important; }
  .nav-toggle { display: block; z-index: 2; }
  .site-header-btn { display: none; }
  .hero-facts { gap: 1.4rem; }
  .hero-facts dt { font-size: 1.8rem; }
}
@media (max-width: 520px) {
  .site-brand .brandmark-sub { display: none; }
  .mosaic { grid-auto-rows: 150px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { max-height: 94vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* Galerie : agrandissement plein écran */
.modal-slides img { cursor: zoom-in; }
.modal-zoom { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.88); color: var(--ink); transition: transform var(--t); }
.modal-zoom svg { width: 18px; height: 18px; }
.modal-zoom:hover { transform: scale(1.08); }

/* Carte : fond OpenStreetMap adouci (crème, désaturé) */
#map .leaflet-tile-pane { filter: grayscale(.75) sepia(.22) saturate(.9) brightness(1.03) contrast(.94); }
