/* ============================================================
   SKY LEADER REAL ESTATE — Design System v2 (bespoke)
   Premium · éditorial · cinétique · Dubaï
   ============================================================ */

:root {
  --ivory: #f4f1ea;
  --ivory-2: #ece7dd;
  --white: #fcfaf5;
  --sand: #e6e0d3;
  --black: #0f1115;
  --charcoal: #181a1f;
  --ink: #1d1f24;
  --muted: #70737a;
  --muted-2: #a4a3a3;
  --line: #e4ded2;
  --line-dark: rgba(255, 255, 255, 0.09);
  /* Accent = bleu marine (fond clair) / bleu pâle (fond sombre) — ex-doré */
  --gold: #1d3556;
  --gold-2: #294a72;
  --gold-deep: #122740;
  --gold-light: #cdd8e8;
  --gold-pale: #e7ecf4;
  --navy: #1d3556;
  --navy-deep: #122740;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0.05, 0, 1);
  --shadow-soft: 0 34px 90px -34px rgba(28, 20, 8, 0.3);
  --shadow-card: 0 26px 64px -26px rgba(28, 20, 8, 0.34);

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection { background: var(--gold); color: #fff; }

/* ---------- Typo ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.8; }
.eyebrow.centered::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.8; }
/* accent lisible sur fonds sombres (photo) */
.page-hero .eyebrow, .reinvest .eyebrow { color: var(--gold-light); }
/* accent marine sur fonds clairs */
.contact .eyebrow, .services .eyebrow, .promoteurs .eyebrow { color: var(--gold); }

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(31px, 4.5vw, 62px);
  line-height: 1.1;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}
.h-display em { font-style: italic; color: var(--gold); }

.lead {
  font-size: clamp(15.5px, 1.25vw, 18.5px);
  color: var(--muted);
  font-weight: 300;
  max-width: 56ch;
  line-height: 1.75;
}

/* ---------- Layout ---------- */

.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
section { position: relative; }
.section-pad { padding: clamp(96px, 13vw, 190px) 0; }

/* Editorial section header with running number + vertical tag */
.section-head { margin-bottom: clamp(48px, 7vw, 92px); }
.section-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
/* numérotage des sections retiré (à la demande) */
.section-head .num, .num-tag, .hero-side { display: none !important; }
.section-head h2 { margin-top: 0; }
.section-head .lead { margin-top: 22px; }
.section-head.centered { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.centered .lead { margin-left: auto; margin-right: auto; }

/* ---------- Reveals ---------- */

.reveal { opacity: 0; transform: translateY(38px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* line-mask kinetic text */
.lines .line { overflow: hidden; display: block; }
.lines .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.15s var(--ease-2);
}
.lines.in .line > span { transform: none; }
.lines.in .line:nth-child(2) > span { transition-delay: 0.08s; }
.lines.in .line:nth-child(3) > span { transition-delay: 0.16s; }
.lines.in .line:nth-child(4) > span { transition-delay: 0.24s; }

/* image clip reveal */
.img-reveal { overflow: hidden; position: relative; }
.img-reveal img, .img-reveal .ph { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-2), transform 1.6s var(--ease); transform: scale(1.12); }
.img-reveal.in img, .img-reveal.in .ph { clip-path: inset(0 0 0 0); transform: scale(1); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 17px 34px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid transparent;
  transition: background 0.55s var(--ease), color 0.55s var(--ease), border-color 0.55s var(--ease), box-shadow 0.55s var(--ease), transform 0.35s var(--ease);
}
.btn .arr { transition: transform 0.5s var(--ease); }
.btn:hover .arr { transform: translateX(6px); }

.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 12px 30px -16px rgba(18, 39, 64, 0.85); }
.btn-gold:hover { background: var(--gold-deep); box-shadow: 0 16px 36px -16px rgba(18, 39, 64, 0.95); }

.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); }

.btn-outline { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
/* boutons outline sur fond clair (contact lighté) */
.contact .btn-outline { border-color: rgba(29, 53, 86, 0.35); color: var(--charcoal); }
.contact .btn-outline:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.btn-outline-dark { border-color: rgba(35, 30, 22, 0.35); color: var(--charcoal); }
.btn-outline-dark:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* animated text link */
.tlink { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 6px; }
.tlink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-2); }
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--black); color: var(--ivory);
  display: grid; place-items: center;
  transition: transform 1.1s var(--ease-2);
}
.preloader.done { transform: translateY(-100%); }
.pre-inner { text-align: center; }
.pre-logo { display: block; width: clamp(58px, 11vw, 82px); height: clamp(68px, 13vw, 96px); margin: 0 auto 22px; background-color: var(--ivory); -webkit-mask: url(../img/brand/logo-mark.png) center/contain no-repeat; mask: url(../img/brand/logo-mark.png) center/contain no-repeat; opacity: 0; transform: translateY(10px); animation: preUp 0.9s var(--ease-2) forwards 0.1s; }
.pre-mark { display: block; width: clamp(180px, 42vw, 240px); height: clamp(26px, 6vw, 35px); margin: 0 auto; background-color: var(--ivory); -webkit-mask: url(../img/brand/logo-wordmark.png) center/contain no-repeat; mask: url(../img/brand/logo-wordmark.png) center/contain no-repeat; opacity: 0; transform: translateY(14px); animation: preUp 0.9s var(--ease-2) forwards 0.28s; }
@keyframes preUp { to { transform: none; opacity: 1; } }
.pre-sub { font-size: 10px; letter-spacing: 0.46em; text-transform: uppercase; color: var(--gold-light); margin-top: 12px; opacity: 0; animation: preFade 0.8s ease forwards 0.55s; }
@keyframes preFade { to { opacity: 1; } }
.pre-bar { width: min(260px, 60vw); height: 1px; background: var(--line-dark); margin: 30px auto 0; overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 0; background: var(--gold-light); animation: preLoad 1.5s var(--ease) forwards 0.2s; }
@keyframes preLoad { to { width: 100%; } }
.pre-count { font-size: 11px; letter-spacing: 0.3em; color: var(--muted-2); margin-top: 12px; }

/* ============================================================
   FIXED CHROME : grain, progress, cursor, index
   ============================================================ */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035; mix-blend-mode: overlay;
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 800;
}

.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 950; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor {
  width: 34px; height: 34px; border: 1px solid rgba(191, 152, 84, 0.7);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), opacity 0.3s;
  display: grid; place-items: center;
}
.cursor-dot { width: 4px; height: 4px; background: var(--gold); transition: opacity 0.3s; }
.cursor .clabel { font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); opacity: 0; transition: opacity 0.3s; }
.cursor.hover { width: 50px; height: 50px; background: rgba(191, 152, 84, 0.09); border-color: rgba(191, 152, 84, 0.5); }
.cursor.drag { width: 72px; height: 72px; background: rgba(191, 152, 84, 0.14); border-color: rgba(226, 202, 152, 0.55); }
.cursor.drag .clabel { opacity: 1; }
.cursor.hover ~ .cursor-dot, body.cursoring .cursor-dot { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

.s-index { display: none !important; }
.s-index--off { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 80; flex-direction: column; gap: 16px; }
.s-index a { display: flex; align-items: center; gap: 10px; justify-content: flex-end; color: var(--muted); }
.s-index .lbl { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0; transform: translateX(8px); transition: all 0.4s var(--ease); white-space: nowrap; }
.s-index .dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: all 0.4s var(--ease); flex-shrink: 0; }
.s-index a:hover .lbl { opacity: 1; transform: none; }
.s-index a.active { color: var(--gold); }
.s-index a.active .dot { background: var(--gold); transform: scale(1.3); }
.s-index a.active .lbl { opacity: 1; transform: none; }
.s-index.on-dark a { color: rgba(255,255,255,0.5); }
.s-index.on-dark a.active { color: var(--gold-light); }
@media (max-width: 1180px) { .s-index { display: none; } }

/* ============================================================
   HEADER
   ============================================================ */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 26px 0; transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease), transform 0.5s var(--ease); }
.header.hide { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.logo { display: flex; flex-direction: row; align-items: center; gap: 13px; line-height: 1; color: #fff; transition: color 0.4s; }
.logo-mark { display: block; width: 36px; height: 42px; flex-shrink: 0; background-color: currentColor; -webkit-mask: url(../img/brand/logo-mark.png) center/contain no-repeat; mask: url(../img/brand/logo-mark.png) center/contain no-repeat; }
.logo-text { display: flex; flex-direction: column; gap: 6px; }
.logo .logo-word { display: block; width: 124px; height: 18px; background-color: currentColor; -webkit-mask: url(../img/brand/logo-wordmark.png) left center/contain no-repeat; mask: url(../img/brand/logo-wordmark.png) left center/contain no-repeat; }
.logo .logo-sub { font-size: 8px; letter-spacing: 0.46em; text-transform: uppercase; color: var(--gold-light); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); position: relative; padding: 6px 0; transition: color 0.35s; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.45s var(--ease); }
.nav a:not(.nav-cta):hover::after, .nav a.active::after { width: 100%; }
.nav .nav-cta { border: 1px solid var(--gold); padding: 11px 22px; color: #fff; background: rgba(176, 138, 79, 0.18); backdrop-filter: blur(6px); transition: background 0.4s; }
.nav .nav-cta:hover { background: var(--gold); }

.header.scrolled { background: rgba(247, 244, 238, 0.86); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); padding: 14px 0; }
.header.scrolled .logo { color: var(--charcoal); }
.header.scrolled .logo .logo-sub { color: var(--gold); }
.header.scrolled .nav a { color: var(--ink); }
.header.scrolled .nav .nav-cta { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.header.scrolled .nav .nav-cta:hover { background: var(--gold); border-color: var(--gold); }

.burger { display: none; width: 42px; height: 42px; position: relative; z-index: 110; }
.burger span { display: block; width: 26px; height: 1.5px; background: #fff; margin: 6px auto; transition: all 0.4s var(--ease); }
.header.scrolled .burger span { background: var(--charcoal); }
.burger.open span { background: var(--charcoal); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--black); }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-video.ready, body.ready .hero-video { opacity: 1; }
/* --- défilé hero : ken-burns CSS (GPU, fluide, sans saccade) --- */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.05); will-change: opacity, transform; backface-visibility: hidden; animation: heroKen 28s linear infinite; }
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 7s; }
.hero-slide:nth-child(3) { animation-delay: 14s; }
.hero-slide:nth-child(4) { animation-delay: 21s; }
@keyframes heroKen {
  0%   { opacity: 0; transform: scale(1.05); }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; transform: scale(1.135); }
  100% { opacity: 0; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; transform: none; }
  .hero-slide:nth-child(1) { opacity: 1; }
}
/* Mobile : images PORTRAIT nettes (les paysages s'agrandissaient ~2,5× = flou) + zoom plus doux */
@media (max-width: 768px) {
  .hero-slide { animation-name: heroKenM; }
  .hero-slide:nth-child(1) { background-image: url('../img/hero/hero-slide-1m.jpg?v=20260614-19') !important; }
  .hero-slide:nth-child(2) { background-image: url('../img/hero/hero-slide-2m.jpg?v=20260614-19') !important; }
  .hero-slide:nth-child(3) { background-image: url('../img/hero/hero-slide-3m.jpg?v=20260614-19') !important; }
  .hero-slide:nth-child(4) { background-image: url('../img/hero/hero-slide-4m.jpg?v=20260614-19') !important; }
}
@keyframes heroKenM {
  0%   { opacity: 0; transform: scale(1.015); }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.015); }
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,17,0.4) 0%, rgba(13,14,17,0.08) 42%, rgba(13,14,17,0.6) 100%); box-shadow: inset 0 0 200px rgba(7,8,11,0.32); }

.hero-content { position: relative; z-index: 3; width: min(var(--container), calc(100% - var(--gutter) * 2)); margin: 0 auto; padding-top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.hero-eyebrow { font-size: 11.5px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-light); display: flex; align-items: center; gap: 16px; opacity: 0; transform: translateY(20px); transition: all 1s var(--ease) 0.2s; }
.hero-eyebrow::before { content: ""; width: 50px; height: 1px; background: var(--gold-light); opacity: 0.7; }
.hero.in .hero-eyebrow { opacity: 1; transform: none; }

.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 6.3vw, 90px); line-height: 1.02; letter-spacing: 0.012em; text-transform: uppercase; text-shadow: 0 8px 50px rgba(0,0,0,0.35); }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; transform: translateY(112%); transition: transform 1.2s var(--ease-2); }
.hero.in h1 .line:nth-child(1) > span { transition-delay: 0.15s; }
.hero.in h1 .line:nth-child(2) > span { transition-delay: 0.27s; }
.hero.in h1 .line > span { transform: none; }
.hero-sub { max-width: 60ch; font-size: clamp(15px, 1.3vw, 18px); color: rgba(255, 255, 255, 0.86); line-height: 1.8; opacity: 0; transform: translateY(20px); transition: all 1s var(--ease) 0.5s; }
.hero.in .hero-sub { opacity: 1; transform: none; }
.hero-cta-row { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); transition: all 1s var(--ease) 0.65s; }
.hero.in .hero-cta-row { opacity: 1; transform: none; }

.hero-side { position: absolute; left: var(--gutter); bottom: 40px; z-index: 3; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 18px; }
.hero-side::after { content: ""; width: 60px; height: 1px; background: rgba(255,255,255,0.4); }
@media (max-width: 1180px) { .hero-side { display: none; } }

.hero-dots { position: absolute; bottom: 110px; right: var(--gutter); z-index: 3; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.hero-dots button { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.6); }
.hero-dots button .n { font-size: 10px; letter-spacing: 0.1em; opacity: 0; transition: opacity 0.4s; }
.hero-dots button i { width: 28px; height: 1px; background: rgba(255,255,255,0.4); display: block; transition: all 0.5s var(--ease); }
.hero-dots button.active i { width: 48px; background: var(--gold-light); }
.hero-dots button.active .n, .hero-dots button:hover .n { opacity: 1; }

.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; }
.scroll-hint .line { width: 1px; height: 50px; background: rgba(255,255,255,0.3); overflow: hidden; position: relative; }
.scroll-hint .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold-light); animation: scrollline 2.2s var(--ease) infinite; }
@keyframes scrollline { 0% { top: -60%; } 100% { top: 110%; } }
@media (max-width: 760px) { .hero-dots { display: none; } .scroll-hint { display: none; } }

/* ============================================================
   AGENCE — editorial
   ============================================================ */
.agence { background: var(--ivory); overflow: hidden; }
.agence-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 110px); align-items: center; }
.agence-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.agence-copy .num-tag { font-family: var(--font-display); font-size: 15px; color: var(--gold); letter-spacing: 0.1em; }

.agence-visual { position: relative; padding: 30px 0 80px; }
.agence-visual .img-main { width: 84%; aspect-ratio: 0.86; object-fit: cover; box-shadow: var(--shadow-soft); }
.agence-visual .img-main img { width: 100%; height: 100%; object-fit: cover; }
.agence-visual .img-overlap { position: absolute; right: 0; bottom: 12px; width: 50%; aspect-ratio: 1.2; border: 8px solid var(--ivory); box-shadow: var(--shadow-card); }
.agence-visual .img-overlap img { width: 100%; height: 100%; object-fit: cover; }
.agence-visual .exp-badge { position: absolute; left: 4%; bottom: 30px; background: var(--charcoal); color: #fff; padding: 22px 28px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-card); }
.exp-badge .num { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--gold-light); line-height: 1; }
.exp-badge .lbl { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.75); }

.agence-stats { display: flex; gap: clamp(28px, 4vw, 54px); margin-top: 6px; flex-wrap: wrap; }
.agence-stats .stat .num { font-family: var(--font-display); font-size: clamp(38px, 4vw, 50px); font-weight: 600; color: var(--charcoal); line-height: 1; }
.agence-stats .stat .num span { color: var(--gold); font-size: 0.7em; }
.agence-stats .stat .lbl { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- Services ---------- */
.services { background: var(--white); color: var(--ink); }
.services .section-head h2 { color: var(--ink); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service { padding: 44px 30px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; position: relative; transition: background 0.5s var(--ease); }
.service::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.6s var(--ease-2); }
.service:hover::before { width: 100%; }
.service:last-child { border-right: 0; }
.service:hover { background: rgba(29,53,86,0.035); }
.service .si { color: var(--gold); }
.service .si svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.1; }
.service .snum { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.service h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; }
.service p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   POURQUOI DUBAÏ
   ============================================================ */
.pourquoi { background: var(--sand); overflow: hidden; }
.figs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fig { padding: clamp(34px, 4vw, 50px) clamp(20px, 2.4vw, 34px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; position: relative; }
.fig::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.7s var(--ease-2); }
.fig:hover::before { width: 100%; }
.fig:last-child { border-right: 0; }
.fig .fnum { font-family: var(--font-display); font-size: clamp(44px, 5vw, 70px); font-weight: 600; color: var(--ink); line-height: 0.85; letter-spacing: -0.01em; }
.fig .fnum sup, .fig .fnum .u { color: var(--gold); }
.fig .flbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); font-weight: 400; }
.fig .fdesc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) { .figs { grid-template-columns: 1fr 1fr; } .fig:nth-child(2n) { border-right: 0; } .fig:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .figs { grid-template-columns: 1fr; } .fig { border-right: 0; border-bottom: 1px solid var(--line); } .fig:last-child { border-bottom: 0; } }

/* ============================================================
   PROJETS
   ============================================================ */
.projets { background: var(--ivory-2); }
.projets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 30px); }

.projet-card { background: var(--white); box-shadow: 0 12px 44px -28px rgba(28,20,8,0.34); display: flex; flex-direction: column; cursor: pointer; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.projet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

.pc-media { position: relative; aspect-ratio: 4/3.1; overflow: hidden; background: var(--charcoal); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.projet-card:hover .pc-media img { transform: scale(1.045); }
.pc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,13,16,0.55) 100%); opacity: 0; transition: opacity 0.5s; }
.projet-card:hover .pc-media::after { opacity: 1; }
.pc-tag { position: absolute; top: 16px; left: 16px; z-index: 3; background: rgba(11,13,16,0.6); backdrop-filter: blur(6px); color: var(--gold-light); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; padding: 8px 13px; }
.pc-count { position: absolute; top: 16px; right: 16px; z-index: 3; color: #fff; font-size: 10px; letter-spacing: 0.14em; background: rgba(11,13,16,0.45); backdrop-filter: blur(6px); padding: 7px 11px; display: flex; align-items: center; gap: 6px; }
.pc-view { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; color: #fff; transform: translateY(8px); opacity: 0; transition: all 0.5s var(--ease); }
.projet-card:hover .pc-view { transform: none; opacity: 1; }
.pc-view span { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.pc-view .circle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.6); display: grid; place-items: center; }

.pc-body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.pc-dev { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.pc-body h3 { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1; margin-top: -6px; }
.pc-desc { font-size: 14px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-specs { margin-top: auto; border-top: 1px solid var(--line); }
.pc-specs li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pc-specs li:last-child { border-bottom: 0; }
.pc-specs .k { color: var(--muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.pc-specs .v { text-align: right; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,9,11,0.78); backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); display: grid; place-items: center; padding: clamp(14px, 3vw, 40px); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-card { width: min(1180px, 100%); max-height: calc(100svh - 60px); background: var(--ivory); display: grid; grid-template-columns: 1.25fr 0.75fr; overflow: hidden; box-shadow: 0 60px 140px rgba(0,0,0,0.5); transform: translateY(30px) scale(0.98); transition: transform 0.6s var(--ease-2); }
.lightbox.open .lb-card { transform: none; }
.lb-gallery { position: relative; background: var(--black); overflow: hidden; }
.lb-stage { position: relative; width: 100%; height: 100%; min-height: 360px; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s var(--ease); }
.lb-stage img.active { opacity: 1; }
.lb-arrows { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; pointer-events: none; }
.lb-arrows button { pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(247,244,238,0.92); color: var(--charcoal); display: grid; place-items: center; font-size: 16px; transition: all 0.3s; }
.lb-arrows button:hover { background: var(--gold); color: #fff; }
.lb-counter { position: absolute; bottom: 18px; left: 20px; color: #fff; font-size: 11px; letter-spacing: 0.16em; background: rgba(11,13,16,0.5); padding: 7px 12px; }
.lb-thumbs { position: absolute; bottom: 16px; right: 20px; display: flex; gap: 8px; }
.lb-thumbs i { width: 46px; height: 32px; border-radius: 2px; background-size: cover; background-position: center; opacity: 0.45; cursor: pointer; transition: opacity 0.3s, outline 0.3s; outline: 1px solid transparent; }
.lb-thumbs i.active { opacity: 1; outline-color: var(--gold-light); }
.lb-info { padding: clamp(28px, 3vw, 48px); overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.lb-info .lb-tag { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.lb-info h3 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1.05; }
.lb-info .lb-dev { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: -10px; }
.lb-info .lb-desc { font-size: 14.5px; color: var(--ink); line-height: 1.8; }
.lb-info .lb-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 4px; }
.lb-info .lb-specs li { background: var(--ivory); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.lb-info .lb-specs .k { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lb-info .lb-specs .v { font-size: 14px; font-family: var(--font-display); font-weight: 600; }
.lb-info .lb-note { font-size: 11.5px; color: var(--muted-2); }
.lb-info .btn { margin-top: 6px; align-self: flex-start; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: rgba(247,244,238,0.92); color: var(--charcoal); display: grid; place-items: center; font-size: 16px; transition: all 0.3s; }
.lb-close:hover { background: var(--charcoal); color: #fff; }

/* ============================================================
   REINVEST
   ============================================================ */
.reinvest { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.reinvest .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 1; filter: brightness(1.13) saturate(1.04); will-change: transform; }
.reinvest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,39,64,0.74) 0%, rgba(18,39,64,0.44) 42%, rgba(18,39,64,0.16) 100%); }
.reinvest .h-display em { color: var(--gold-light); }
.reinvest h2, .reinvest-copy .lead, .reinvest-copy .num-tag { text-shadow: 0 2px 26px rgba(0,0,0,0.4); }
.reinvest .container { position: relative; z-index: 2; }
.reinvest-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.reinvest-copy { display: flex; flex-direction: column; gap: 24px; }
.reinvest-copy .num-tag { color: var(--gold-light); font-family: var(--font-display); font-size: 15px; letter-spacing: 0.1em; }
.reinvest-copy .lead { color: rgba(255,255,255,0.76); }
.reinvest-stats { display: grid; gap: 18px; }
.rstat { border: 1px solid rgba(255,255,255,0.16); padding: 32px 30px; display: flex; align-items: baseline; gap: 22px; background: rgba(18,39,64,0.34); backdrop-filter: blur(3px); transition: border-color 0.4s, background 0.4s; }
.rstat:hover { border-color: var(--gold-light); background: rgba(18,39,64,0.52); }
.rstat .num { font-family: var(--font-display); font-size: clamp(48px, 5vw, 70px); font-weight: 600; color: var(--ivory); line-height: 0.9; flex-shrink: 0; }
.rstat .lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ============================================================
   PLAN
   ============================================================ */
.plan { background: var(--ivory); overflow: hidden; }
.plan-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.plan-visual { position: relative; }
.plan-visual .img-reveal { aspect-ratio: 0.92; box-shadow: var(--shadow-soft); }
.plan-visual img { width: 100%; height: 100%; object-fit: cover; }
.plan-visual .plan-chip { position: absolute; right: -16px; top: 36px; background: var(--white); box-shadow: var(--shadow-card); padding: 16px 22px; display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.plan-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #3bb273; box-shadow: 0 0 0 4px rgba(59,178,115,0.18); }
.plan-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.plan-sub { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.plan-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; width: 100%; background: var(--line); border: 1px solid var(--line); }
.plan-points li { background: var(--ivory); padding: 18px 20px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.plan-points li b { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 600; }

/* ---------- Form modal ---------- */
.form-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(11,13,16,0.6); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 22px; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
.form-overlay.open { opacity: 1; pointer-events: auto; }
.form-card { width: min(940px, 100%); background: var(--ivory); box-shadow: 0 50px 130px rgba(0,0,0,0.45); display: grid; grid-template-columns: 0.8fr 1.2fr; max-height: calc(100svh - 44px); overflow: hidden; transform: translateY(28px); transition: transform 0.6s var(--ease-2); }
.form-overlay.open .form-card { transform: none; }
.form-aside { position: relative; background: var(--black); color: #fff; padding: 40px 34px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.form-aside .fa-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.45; }
.form-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,16,0.5), rgba(11,13,16,0.85)); }
.form-aside > * { position: relative; z-index: 2; }
.form-aside h4 { font-family: var(--font-display); font-size: 27px; font-weight: 600; line-height: 1.12; }
.form-aside .fa-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.form-aside .fa-list li { font-size: 12.5px; color: rgba(255,255,255,0.82); display: flex; gap: 10px; align-items: flex-start; }
.form-aside .fa-list li::before { content: "—"; color: var(--gold-light); }
.form-main-wrap { position: relative; overflow-y: auto; max-height: calc(100svh - 44px); }
.form-main { position: relative; }
.form-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; font-size: 15px; color: var(--muted); transition: all 0.3s; z-index: 5; }
.form-close:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.form-progress { display: flex; gap: 6px; margin: 16px 0 28px; }
.form-progress i { flex: 1; height: 2px; background: var(--line); transition: background 0.4s; }
.form-progress i.done { background: var(--gold); }
.form-step { display: none; }
.form-step.active { display: block; animation: stepin 0.55s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.form-step h3 { font-family: var(--font-display); font-size: clamp(23px, 3vw, 31px); font-weight: 600; margin-bottom: 6px; }
.form-step .step-hint { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.opt { border: 1px solid var(--line); background: var(--white); padding: 17px 19px; font-size: 13.5px; text-align: left; transition: all 0.3s var(--ease); }
.opt:hover { border-color: var(--gold); transform: translateY(-2px); }
.opt.selected { border-color: var(--gold); background: var(--gold-pale); box-shadow: inset 0 0 0 1px var(--gold); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input { width: 100%; border: 1px solid var(--line); background: var(--white); padding: 15px 17px; font-size: 15px; font-family: inherit; font-weight: 300; color: var(--ink); outline: none; transition: border-color 0.3s; }
.field input:focus { border-color: var(--gold); }
.field input.err { border-color: #c0392b; }
.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.form-back { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.form-back:hover { color: var(--charcoal); }
.form-back[hidden] { visibility: hidden; }
.form-success { display: none; text-align: center; padding: 50px clamp(30px, 4vw, 50px); }
.form-success.show { display: block; animation: stepin 0.55s var(--ease); }
.form-success .check { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-size: 28px; color: var(--gold); }
.form-success h3 { font-family: var(--font-display); font-size: 29px; font-weight: 600; margin-bottom: 10px; }
.form-success p { color: var(--muted); font-size: 14px; max-width: 380px; margin: 0 auto 24px; }

/* ============================================================
   QUARTIERS — carte interactive
   ============================================================ */
.quartiers { background: var(--white); }
.qmap { display: flex; flex-direction: column; gap: clamp(18px, 2.2vw, 30px); }
.qmap-top { display: grid; grid-template-columns: 1.22fr 0.78fr; gap: clamp(20px, 2.6vw, 40px); align-items: stretch; }

/* --- carte réelle (Leaflet) --- */
.qmap-stage { position: relative; height: clamp(440px, 52vh, 540px); background: #eceae5; border: 1px solid var(--line); overflow: hidden; }
#qmap-map { position: absolute; inset: 0; width: 100%; height: 100%; background: #eceae5; z-index: 1; }
.qmap-legend { position: absolute; right: 14px; top: 13px; z-index: 600; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); background: rgba(252,250,245,0.85); backdrop-filter: blur(4px); padding: 6px 11px; border: 1px solid var(--line); pointer-events: none; }

/* marqueurs « goutte » premium */
.qmark { background: none !important; border: 0 !important; }
.qmark svg { width: 30px; height: 40px; overflow: visible; transform-origin: 50% 100%; transition: transform 0.3s var(--ease); filter: drop-shadow(0 3px 5px rgba(0,0,0,0.32)); }
.qmark .pin { fill: var(--charcoal); transition: fill 0.3s var(--ease); }
.qmark .dot { fill: #fff; }
.qmark:hover svg { transform: scale(1.12) translateY(-2px); }
.qmark.active svg { transform: scale(1.18) translateY(-2px); filter: drop-shadow(0 6px 10px rgba(169,138,85,0.5)); }
.qmark.active .pin { fill: var(--gold); }

/* habillage Leaflet épuré */
.leaflet-container { font-family: var(--font-body); background: #eceae5; }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important; margin: 14px !important; }
.leaflet-control-zoom a { width: 30px !important; height: 30px !important; line-height: 30px !important; color: var(--ink) !important; background: rgba(252,250,245,0.95) !important; border: 1px solid var(--line) !important; font-weight: 300 !important; }
.leaflet-control-zoom a:hover { background: #fff !important; color: var(--gold-deep) !important; }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(252,250,245,0.7) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }

/* --- panneau --- */
.qmap-panel { display: flex; flex-direction: column; gap: 20px; }
.qmap-photo { position: relative; flex: 1; min-height: 260px; overflow: hidden; background: var(--charcoal); }
.qmap-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.8s var(--ease), transform 7s var(--ease); }
.qmap-photo img.active { opacity: 1; transform: scale(1); }
.qmap-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 13, 16, 0.78) 100%); }
.qmap-roi { position: absolute; right: 20px; bottom: 18px; z-index: 2; text-align: right; }
.qmap-roi .pct { font-family: var(--font-display); font-size: 38px; font-weight: 600; color: var(--gold-light); line-height: 0.9; display: block; }
.qmap-roi .lbl { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.qmap-info { display: flex; flex-direction: column; gap: 8px; }
.qmap-info .qmap-sub { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.qmap-name { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.05; }
.qmap-desc { font-size: 14px; color: var(--muted); line-height: 1.7; min-height: 3.4em; }
.qmap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 9px; }
.qmap-list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid var(--line); background: var(--white); text-align: left; cursor: pointer; transition: border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease); }
.qmap-list button span { font-size: 13.5px; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qmap-list button i { flex: none; font-style: normal; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--gold); }
.qmap-list button:hover { border-color: var(--gold); transform: translateY(-2px); }
.qmap-list button.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.qmap-list button.active i { color: var(--gold-light); }

@media (max-width: 940px) {
  .qmap-top { grid-template-columns: 1fr; }
  .qmap-stage { height: 360px; }
  .qmap-photo { min-height: 300px; }
}
@media (max-width: 480px) {
  .qmap-list { grid-template-columns: 1fr 1fr; }
  .qpin-name { display: none; }
}

/* ============================================================
   PROMOTEURS
   ============================================================ */
.promoteurs { background: var(--ivory); color: var(--ink); }
.promoteurs .section-head h2 { color: var(--ink); }
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 8px; }
.marquee-track { display: flex; align-items: center; gap: clamp(50px, 7vw, 100px); width: max-content; animation: marquee 42s linear infinite; padding: 14px 0; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 48s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.dev-logo { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: 0.16em; color: rgba(29,53,86,0.42); white-space: nowrap; transition: color 0.4s; display: flex; align-items: baseline; gap: 8px; }
.dev-logo:hover { color: var(--gold); }
.dev-logo .tm { font-family: var(--font-body); font-size: 9px; letter-spacing: 0.3em; color: var(--gold); }

/* ============================================================
   AVIS
   ============================================================ */
.avis { background: var(--ivory-2); overflow: hidden; }
.avis-slider { position: relative; }
.avis-track { display: flex; gap: 24px; transition: transform 0.85s var(--ease-2); }
.avis-card { flex: 0 0 calc((100% - 48px) / 3); background: var(--white); padding: 40px 36px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 10px 40px -28px rgba(11,13,16,0.4); position: relative; }
.avis-card .quote { font-family: var(--font-display); font-size: 70px; line-height: 0.6; color: var(--gold); opacity: 0.25; }
.avis-stars { color: var(--gold); font-size: 12px; letter-spacing: 4px; }
.avis-text { font-size: 14.5px; line-height: 1.75; color: var(--ink); font-style: italic; flex: 1; }
.avis-who { display: flex; align-items: center; gap: 14px; }
.avis-who .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--charcoal); color: var(--gold-light); display: grid; place-items: center; font-family: var(--font-display); font-size: 17px; font-weight: 600; flex-shrink: 0; }
.avis-who .name { font-size: 14px; }
.avis-who .from { font-size: 11.5px; color: var(--muted); }
.avis-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }
.avis-count { font-family: var(--font-display); font-size: 16px; color: var(--muted); }
.avis-count b { color: var(--charcoal); font-size: 22px; }
.avis-nav { display: flex; gap: 12px; }
.avis-nav button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); font-size: 16px; transition: all 0.35s; }
.avis-nav button:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ivory); color: var(--ink); text-align: center; overflow: hidden; position: relative; }
.contact::before { content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 820px; height: 820px; background: radial-gradient(circle, rgba(29,53,86,0.06) 0%, transparent 66%); pointer-events: none; }
.contact .container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.contact .lead { color: var(--muted); text-align: center; }
.contact-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.contact-meta { display: flex; gap: clamp(28px, 6vw, 72px); margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.contact-meta .item { display: flex; flex-direction: column; gap: 5px; }
.contact-meta .k { font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.contact-meta .v { font-size: 15px; color: var(--ink); }
.contact-meta .v a { color: var(--ink); }
.contact-meta .v a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: rgba(244,241,234,0.74); font-size: 13px; overflow: hidden; position: relative; padding-top: clamp(64px, 8vw, 104px); }

/* lien à filet doré révélé */
.footer a.flink { color: rgba(247,244,238,0.7); background-image: linear-gradient(var(--gold-light), var(--gold-light)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; padding-bottom: 2px; transition: background-size 0.45s var(--ease-2), color 0.45s; }
.footer a.flink:hover { color: #fff; background-size: 100% 1px; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(46px, 6vw, 76px); }
.footer .fcol h4 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px; font-weight: 400; }
.footer .fcol ul li { margin-bottom: 12px; }
.footer .fcol ul a { font-size: 14px; }
.fcol-brand .logo { display: inline-flex; margin-bottom: 18px; color: #fff; }
.fcol-brand .logo .logo-sub { color: var(--gold-light); }
.fblurb { font-size: 13.5px; color: rgba(247,244,238,0.58); line-height: 1.75; max-width: 34ch; margin-bottom: 24px; }
.fsocial { display: flex; gap: 22px; }
.fsocial a { color: rgba(247,244,238,0.68); transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.fsocial a:hover { color: var(--gold-light); transform: translateY(-2px); }
.fsocial svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.fnews-sub { font-size: 13px; color: rgba(247,244,238,0.58); line-height: 1.65; margin-bottom: 18px; max-width: 32ch; }
.fnews { display: flex; align-items: center; border-bottom: 1px solid rgba(226,202,152,0.4); transition: border-color 0.3s; }
.fnews:focus-within { border-color: var(--gold-light); }
.fnews input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-family: inherit; font-weight: 300; font-size: 14px; padding: 12px 0; }
.fnews input::placeholder { color: rgba(247,244,238,0.42); }
.fnews button { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 10px 0 10px 18px; white-space: nowrap; transition: color 0.3s; }
.fnews button .arr { transition: transform 0.35s var(--ease); }
.fnews button:hover { color: #fff; }
.fnews button:hover .arr { transform: translateX(4px); }
.fnews-done { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--gold-light); padding: 12px 0; }

/* bande newsletter / Journal */
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: clamp(26px,5vw,80px); flex-wrap: wrap; padding: 4px 0 clamp(38px,5vw,58px); border-bottom: 1px solid rgba(244,241,234,0.09); }
.footer-cta-line { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px,2.8vw,34px); line-height: 1.18; color: var(--ivory); margin-top: 14px; }
.footer-cta-line em { font-style: italic; color: inherit; }
.footer-cta .fnews { flex: 0 1 400px; min-width: min(340px, 100%); }

/* colonne contact */
.fcontact li { display: flex; flex-direction: column; gap: 3px; margin-bottom: 15px; }
.fc-k { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244,241,234,0.4); }
.fcontact a, .fcontact span:not(.fc-k) { font-size: 14px; color: rgba(244,241,234,0.78); }

.footer-word {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(48px, 15vw, 220px);
  line-height: 0.82; letter-spacing: 0.04em; text-align: center; padding: clamp(22px,3vw,44px) 0 clamp(26px,4vw,52px); white-space: nowrap;
  color: rgba(244, 241, 234, 0.1);
  border-top: 1px solid rgba(244,241,234,0.08);
}

.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding: 28px 0 38px; border-top: 1px solid rgba(244,241,234,0.08); font-size: 12px; color: rgba(244,241,234,0.5); }
.flegal-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.flegal-links a { color: rgba(247,244,238,0.55); }
.flegal-links .sep { opacity: 0.35; }
.flang { display: flex; align-items: center; gap: 8px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; }
.flang b { color: var(--gold-light); font-weight: 400; }
.flang a { color: rgba(247,244,238,0.55); }
.flang .sep { opacity: 0.4; }

/* ---------- WhatsApp — contact direct (pastille premium) ---------- */
.wa-fab {
  position: fixed; right: clamp(16px,2.2vw,30px); bottom: calc(clamp(16px,2.2vw,30px) + env(safe-area-inset-bottom, 0px)); z-index: 76;
  display: inline-flex; align-items: center; height: 56px; max-width: 56px; border-radius: 999px;
  background: rgba(18,20,25,0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 44px -16px rgba(0,0,0,0.6);
  overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(14px) scale(0.92);
  transition: max-width 0.6s var(--ease-2), opacity 0.55s var(--ease), transform 0.55s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.wa-fab.show { opacity: 1; pointer-events: auto; transform: none; }
.wa-fab:hover { max-width: 300px; border-color: rgba(255,255,255,0.22); box-shadow: 0 22px 52px -16px rgba(0,0,0,0.66); }
.wa-ic { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; color: #25d366; }
.wa-ic svg { width: 27px; height: 27px; }
.wa-txt { white-space: nowrap; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding-right: 26px; color: #fff; }
@media (hover: none) { .wa-fab { max-width: 56px !important; } }

/* ---------- Infobulles carte (Leaflet) ---------- */
.leaflet-tooltip.qtip { background: var(--charcoal); color: #fff; border: 0; border-radius: 3px; box-shadow: 0 8px 22px rgba(0,0,0,0.32); font-family: var(--font-body); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 12px; }
.leaflet-tooltip.qtip::before { border-top-color: var(--charcoal); }

/* ---------- Accessibilité clavier ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:focus-visible, .opt:focus-visible, .qmap-list button:focus-visible { outline-offset: 2px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .fcol-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PAGE AGENCE
   ============================================================ */
.page-hero { position: relative; min-height: 70svh; display: flex; align-items: flex-end; color: #fff; background: var(--navy-deep); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.92; filter: brightness(1.08); will-change: transform; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,16,0.62) 0%, rgba(11,13,16,0.24) 40%, transparent 66%), linear-gradient(180deg, transparent 42%, rgba(11,13,16,0.4) 78%, rgba(11,13,16,0.74) 100%); }
.page-hero .h-display em { color: var(--gold-light); }
.page-hero .container { position: relative; z-index: 2; padding-bottom: clamp(50px, 7vw, 100px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.page-hero h1, .page-hero .lead { text-shadow: 0 2px 24px rgba(0,0,0,0.45); }

.team { background: var(--ivory); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2vw, 30px); }
.team-card { background: var(--white); display: grid; grid-template-columns: 250px 1fr; box-shadow: 0 10px 40px -28px rgba(11,13,16,0.4); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.team-card .photo { position: relative; min-height: 320px; background: var(--sand); overflow: hidden; }
.team-card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease); }
.team-card:hover .photo img { transform: scale(1.05); }
.team-card .photo .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 64px; font-weight: 600; color: var(--gold); background: linear-gradient(160deg, var(--sand), var(--gold-pale)); }
.team-card .infos { padding: 32px 30px; display: flex; flex-direction: column; gap: 12px; }
.team-card .infos h3 { font-family: var(--font-display); font-size: 27px; font-weight: 600; }
.team-card .role { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.team-card .slogan { font-style: italic; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.team-card .bio { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.team-card.founder { grid-column: 1 / -1; grid-template-columns: 360px 1fr; }
.team-card.founder .photo { min-height: 460px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .projets-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .avis-card { flex: 0 0 calc((100% - 24px) / 2); }
  .team-grid { grid-template-columns: 1fr; }
  /* lightbox empilée + DÉFILABLE pour atteindre le bouton "Demander ce projet" */
  .lb-card { grid-template-columns: 1fr; grid-template-rows: auto auto; max-height: calc(100svh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .lb-gallery { height: 40svh; min-height: 230px; }
  .lb-stage { min-height: 0; }
  .lb-info { overflow: visible; }
  .lb-close { position: fixed; top: 18px; right: 18px; z-index: 320; }
  .form-card { grid-template-columns: 1fr; }
  .form-aside { display: none; }
  .quartiers-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .q-card:nth-child(1) { grid-column: span 2; }
  .q-card:nth-child(6) { grid-column: span 2; }
}

@media (max-width: 900px) {
  /* le header ne doit créer aucun bloc conteneur (transform/filter) qui décalerait
     le menu plein écran fixé — on neutralise l'auto-masquage et le flou sur mobile */
  .header.hide { transform: none; }
  .header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247, 244, 238, 0.98); }
  .nav { position: fixed; inset: 0; background: var(--ivory); flex-direction: column; justify-content: center; gap: 26px; transform: translateY(-100%); transition: transform 0.7s var(--ease-2); z-index: 105; }
  .nav.open { transform: none; }
  .nav a { color: var(--charcoal) !important; font-size: 16px; }
  .nav a::after { display: none; }
  .nav .nav-cta { background: var(--charcoal) !important; border-color: var(--charcoal) !important; color: #fff !important; }
  .burger { display: block; }
  .agence-grid, .plan-grid, .reinvest-grid { grid-template-columns: 1fr; }
  .plan-visual { order: -1; }
  .agence-visual { max-width: 520px; }
  .team-card, .team-card.founder { grid-template-columns: 1fr; }
  .team-card .photo, .team-card.founder .photo { min-height: 420px; }
}

@media (max-width: 640px) {
  .projets-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; border-bottom: 1px solid var(--line-dark) !important; }
  .service:last-child { border-bottom: 0 !important; }
  .avis-card { flex: 0 0 100%; }
  .opt-grid, .plan-points { grid-template-columns: 1fr; }
  .quartiers-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .q-card:nth-child(1), .q-card:nth-child(6) { grid-column: span 1; }
  .q-card:nth-child(1) { grid-row: span 1; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lb-info .lb-specs { grid-template-columns: 1fr; }

  /* ---- Raffinements mobile ---- */
  .section-pad { padding: 78px 0; }
  /* cartes projets : descriptif complet (pas de troncature sur mobile) */
  .pc-desc { -webkit-line-clamp: unset; display: block; overflow: visible; }
  /* affordance tactile : "Découvrir le projet" visible en permanence sur l'image */
  .pc-view { opacity: 1; transform: none; }
  .pc-media::after { opacity: 1; }
  /* CTA pleine largeur, cibles tactiles confortables */
  .hero-cta-row, .contact-row { flex-direction: column; width: 100%; gap: 12px; }
  .hero-cta-row .btn, .contact-row .btn { width: 100%; justify-content: center; padding: 18px 28px; }
  /* carte des quartiers plus présente */
  .qmap-stage { aspect-ratio: auto; height: 300px; max-height: none; }
  /* stats agence aérées */
  .agence-stats { gap: 22px 26px; }
  /* newsletter pied de page pleine largeur */
  .footer-cta .fnews { flex: 1 1 100%; }
  /* sous-titres de section : marge laterale pour respirer */
  .section-head .lead, .lead { max-width: 100%; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 41px; }
  .hero-eyebrow { font-size: 10.5px; letter-spacing: 0.3em; }
  .h-display { font-size: 30px; }
  .section-head .num { font-size: 60px; }
  .container { width: calc(100% - 36px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .reveal, .lines .line > span, .img-reveal img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .cursor, .cursor-dot, .grain { display: none !important; }
}
