/* ═══════════════════════════════════════════════════════
   L&G PRESTIGE IMMOBILIER — DESIGN SYSTEM PREMIUM 2026
   ═══════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --night:       #0B1622;
  --night-deep:  #060D16;
  --night-mid:   #13243A;
  --gold:        #C9A96E;
  --gold-light:  #DEC08D;
  --cream:       #F5F0E8;
  --cream-light: #FAFAF7;
  --grey:        #6B7280;
  --grey-light:  #9CA3AF;
  --grey-line:   #E5E2DC;
  --white:       #FFFFFF;
  --font-title:  'Cormorant Garamond', 'Georgia', serif;
  --font-body:   'Inter', sans-serif;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  background: var(--cream-light);
  color: var(--night);
  overflow-x: hidden;
  overscroll-behavior: none;
}

body.loading { overflow: hidden; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input { font-family: inherit; }


/* ─── LOADER ─────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-bg {
  position: absolute;
  inset: 0;
  background: var(--night-deep);
}

/* Lignes architecturales de fond */
.loader-bg-line {
  position: absolute;
  background: rgba(201,169,110,0.06);
  animation: loaderLineReveal 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform-origin: top center;
}
.loader-bg-line--1 { width: 1px; top: 0; bottom: 0; left: 25%; animation-delay: 0.1s; }
.loader-bg-line--2 { width: 1px; top: 0; bottom: 0; left: 50%; animation-delay: 0.25s; }
.loader-bg-line--3 { width: 1px; top: 0; bottom: 0; left: 75%; animation-delay: 0.4s; }

@keyframes loaderLineReveal {
  0%   { opacity: 0; transform: scaleY(0); }
  100% { opacity: 1; transform: scaleY(1); }
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Logo */
.loader-logo-wrap {
  width: 280px;
  position: relative;
}

.loader-logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0;
  animation: loaderLogoReveal 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}

@keyframes loaderLogoReveal {
  0%   { opacity: 0;    filter: brightness(0) saturate(0); }
  18%  { opacity: 0.6;  filter: brightness(1.5) saturate(0) contrast(1.2); }
  45%  { opacity: 0.85; filter: brightness(1.2) saturate(0.4) sepia(0.6) hue-rotate(5deg); }
  72%  { opacity: 1;    filter: brightness(1.3) saturate(1) sepia(0.5) hue-rotate(0deg); }
  100% { opacity: 1;    filter: brightness(1.1) saturate(0.9) sepia(0.3); }
}

/* Wordmark */
.loader-wordmark {
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-wordmark.in {
  opacity: 1;
  transform: translateY(0);
}

.loader-wm-prestige,
.loader-wm-immo {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}

.loader-wm-immo {
  color: rgba(255,255,255,0.45);
}

.loader-wm-sep {
  display: block;
  width: 1px;
  height: 16px;
  background: var(--gold);
  opacity: 0.5;
}

/* Tagline */
.loader-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-tagline.in {
  opacity: 1;
  transform: translateY(0);
}

.loader-tag-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.loader-tag-word {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

@keyframes loaderFadeUp {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Barre de progression */
.loader-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.loader-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.05s linear;
}

/* Exit */
#loader.exit {
  animation: loaderExit 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes loaderExit {
  0%   { opacity: 1; transform: none; }
  40%  { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-24px); }
}


/* ─── HEADER / NAV ──────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), padding 0.4s var(--ease-out);
  padding: 0;
}

#site-header.scrolled {
  background: rgba(11, 22, 34, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 72px;
  position: relative;
  z-index: 2;
  transition: padding 0.4s var(--ease-out);
}

#site-header.scrolled .nav-container { padding: 26px 72px; }

.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
}

.nav-phone:hover { color: var(--gold); }

.nav-phone svg { flex-shrink: 0; opacity: 0.7; }

.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 220px;
  transition: width 0.4s var(--ease-out), opacity 0.3s;
}

#site-header.scrolled .nav-logo { width: 164px; }

.nav-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.nav-logo:hover { opacity: 0.85; }

.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-socials a {
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
  line-height: 0;
}

.nav-socials a:hover { color: var(--gold); }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,0.75);
  transition: transform 0.35s var(--ease-out), opacity 0.35s, width 0.35s;
  transform-origin: center;
}

.nav-burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop sub-nav strip */
.nav-links-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 68px;
  padding: 14px 72px 26px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.nav-link {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 3px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

/* Full menu overlay */
.nav-menu-full {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--night-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.nav-menu-full.open {
  pointer-events: all;
  opacity: 1;
  transform: none;
}

.nav-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.nav-menu-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-link-big {
  font-family: var(--font-title);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.03em;
  line-height: 1.15;
  transition: color 0.3s;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.nav-link-big::before {
  content: attr(data-index);
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.nav-link-big:hover { color: var(--gold); }

.nav-menu-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  width: 100%;
  text-align: center;
}

.nav-menu-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  line-height: 2;
}


/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
  transform: scale(1.04);
  animation: heroZoom 14s var(--ease-out) forwards;
}

.hero-video.playing {
  opacity: 1;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6,13,22,0.80) 0%,
    rgba(11,22,34,0.65) 50%,
    rgba(11,22,34,0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  padding-top: 200px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.hero-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(52px, 7.5vw, 110px);
  font-weight: 300;
  line-height: 1.06;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.hero-title-word.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}

.hero-sub {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* Search bar */
.hero-search {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 8px 8px 8px 8px;
  max-width: 820px;
  margin-bottom: 52px;
}

.search-row {
  display: flex;
  align-items: stretch;
  gap: 1px;
}

.search-field {
  flex: 1;
  padding: 12px 18px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.search-field:last-of-type { border-right: none; }

.search-field label {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}

.search-field select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 13px;
  font-weight: 300;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.search-field select option { background: var(--night); color: var(--white); }

.search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--night-deep);
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.search-btn:hover { background: var(--gold-light); }

/* Shimmer de lumière sur la search bar */
.hero-search::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.07) 50%,
    transparent 70%
  );
  animation: searchShimmer 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 2s;
  pointer-events: none;
}

@keyframes searchShimmer {
  0%   { left: -60%; opacity: 0; }
  8%   { opacity: 1; }
  40%  { left: 120%; opacity: 0.6; }
  41%  { opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}

.stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  transition: border-color 0.3s;
}

.hero-scroll:hover { border-color: var(--gold); }

.scroll-dot {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--white);
  border-radius: 50%;
  animation: scrollPulse 2.2s infinite;
}

@keyframes scrollPulse {
  0%   { transform: translateY(-8px); opacity: 0; }
  40%  { opacity: 1; }
  80%  { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(-8px); opacity: 0; }
}


/* ─── SECTIONS BASE ─────────────────────────────────── */
.section { padding: 120px 0; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-head {
  text-align: center;
  margin-bottom: 72px;
}

.section-head-light .section-tag { color: rgba(255,255,255,0.5); }
.section-head-light .section-tag::before,
.section-head-light .section-tag::after { background: rgba(255,255,255,0.25); }
.section-head-light .section-title { color: var(--white); }
.section-head-light .section-sub { color: rgba(255,255,255,0.55); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--night);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--grey);
  max-width: 520px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 64px;
}


/* ─── PROPERTY CARDS ────────────────────────────────── */
.properties-section { background: var(--cream-light); }

.properties-section .container {
  max-width: 100%;
  padding: 0 20px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.property-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  box-shadow: 0 2px 20px rgba(11,22,34,0.06);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(11,22,34,0.12);
}

.card-media {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.card-media img {
  transition: transform 0.8s var(--ease-out);
}

.property-card:hover .card-media img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--night-deep);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
}

.badge-exclusive { background: var(--night); color: var(--gold); }
.badge-new { background: #1a3a5c; color: var(--white); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,22,34,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.property-card:hover .card-overlay { opacity: 1; }

.card-body {
  padding: 26px 26px 22px;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--night);
  margin-bottom: 12px;
}

.card-specs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 20px;
}

.card-specs strong { color: var(--night); font-weight: 500; }
.spec-dot { color: var(--grey-light); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--grey-line);
  padding-top: 16px;
}

.card-price {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 500;
  color: var(--night);
}

.card-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s, color 0.3s;
}

.card-cta::after {
  content: '→';
  transition: transform 0.3s;
}

.property-card:hover .card-cta::after { transform: translateX(4px); }


/* ─── BUTTONS ───────────────────────────────────────── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border: 1px solid var(--night);
  color: var(--night);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.35s, color 0.35s, border-color 0.35s, gap 0.3s;
}

.btn-outline:hover {
  background: var(--night);
  color: var(--white);
  gap: 18px;
}

.btn-outline.btn-light {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.btn-outline.btn-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--gold);
  color: var(--night-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
  width: 100%;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.25);
}

.btn-lg { padding: 18px 40px; font-size: 13px; }


/* ─── CATEGORIES ─────────────────────────────────────── */
.categories-section { background: var(--night); padding: 100px 0; }
.categories-section .section-title { color: var(--cream); }
.categories-section .section-tag { color: rgba(201,169,110,0.8); }
.categories-section .section-tag::before,
.categories-section .section-tag::after { background: rgba(201,169,110,0.4); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: -2px;
}

.category-item {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 3/4;
}

.category-img-wrap {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease-out);
}

.category-item:hover .category-img-wrap { transform: scale(1.06); }

.category-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,13,22,0.85) 0%, rgba(6,13,22,0.2) 60%, transparent 100%);
  transition: opacity 0.4s;
}

.category-item:hover .category-img-wrap::after {
  background: linear-gradient(to top, rgba(6,13,22,0.92) 0%, rgba(6,13,22,0.4) 60%, transparent 100%);
}

.category-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  z-index: 1;
}

.category-body h3 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.1;
}

.category-count {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.category-item:hover .category-count { color: var(--gold); }

.category-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.category-item:hover .category-arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
  transform: translateX(4px);
}


/* ─── NUMBERS BAND ───────────────────────────────────── */
.numbers-band {
  background: var(--night-mid);
  padding: 60px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.numbers-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.number-item {
  text-align: center;
  flex: 1;
}

.number-item strong {
  font-family: var(--font-title);
  font-size: 56px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.number-item strong::after {
  content: '+';
  font-size: 0.4em;
  color: var(--gold);
  vertical-align: super;
  margin-left: 2px;
}

.number-item:nth-child(3) strong::after { content: ''; }

.number-item span {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.number-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.08);
}


/* ─── AGENCIES ───────────────────────────────────────── */
.agencies-section { background: var(--cream-light); }

.agencies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.agency-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(11,22,34,0.06);
  transition: box-shadow 0.4s, transform 0.4s var(--ease-out);
}

.agency-card:hover {
  box-shadow: 0 16px 50px rgba(11,22,34,0.10);
  transform: translateY(-4px);
}

.agency-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.agency-img-wrap img { transition: transform 0.8s var(--ease-out); }
.agency-card:hover .agency-img-wrap img { transform: scale(1.04); }

.agency-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,22,34,0.5) 0%, transparent 60%);
}

.agency-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 300;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  z-index: 1;
  user-select: none;
}

.agency-body {
  padding: 28px 26px 26px;
}

.agency-body h3 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 400;
  color: var(--night);
  margin-bottom: 4px;
}

.agency-tagline {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  font-style: italic;
}

.agency-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.agency-details li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
}

.agency-details svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.agency-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night);
  border-bottom: 1px solid var(--grey-line);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}

.agency-link::after { content: '→'; transition: transform 0.3s; }
.agency-link:hover { color: var(--gold); border-color: var(--gold); gap: 12px; }
.agency-link:hover::after { transform: translateX(3px); }


/* ─── LOCATION (LOUER) ───────────────────────────────── */
.louer-section { background: var(--white); }

.louer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.louer-card {
  padding: 48px 40px 44px;
  background: var(--cream-light);
  border: 1px solid var(--grey-line);
  border-radius: 2px;
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.4s;
}

.louer-card:hover {
  box-shadow: 0 20px 60px rgba(11,22,34,0.09);
  transform: translateY(-5px);
  border-color: var(--gold);
}

.louer-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-bottom: 28px;
  color: var(--gold);
}

.louer-card h3 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 400;
  color: var(--night);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.louer-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--grey-text);
  line-height: 1.8;
  margin-bottom: 32px;
}

.louer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night);
  border-bottom: 1px solid var(--grey-line);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}

.louer-link:hover { color: var(--gold); border-color: var(--gold); gap: 12px; }

@media (max-width: 900px) {
  .louer-grid { grid-template-columns: 1fr; max-width: 480px; margin: 48px auto 0; }
}


/* ─── TESTIMONIALS ───────────────────────────────────── */
.testimonials-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
}

.testimonials-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,13,22,0.92) 0%, rgba(11,22,34,0.85) 100%);
}

.testimonials-slider {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.7s var(--ease-out);
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
  padding: 0 20px;
}

.quote-icon {
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.testimonial-slide blockquote {
  font-family: var(--font-title);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.testimonial-author strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.06em;
}

.testimonial-author span {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.slider-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.08);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}


/* ─── ESTIMATION ─────────────────────────────────────── */
.estimation-section { background: var(--night); padding: 0; }

.estimation-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.estimation-text .section-tag { color: var(--gold); }
.estimation-text .section-tag::before,
.estimation-text .section-tag::after { background: rgba(201,169,110,0.5); }

.estimation-text h2 {
  font-family: var(--font-title);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.15;
  margin: 16px 0 20px;
}

.estimation-text h2 em {
  font-style: italic;
  color: var(--gold-light);
}

.estimation-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
}

.estimation-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.estimation-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(201,169,110,0.15);
  color: var(--gold);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form */
.estimation-form {
  background: var(--cream-light);
  border-radius: 4px;
  padding: 44px 40px;
}

.est-form h3 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 400;
  color: var(--night);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-line);
  border-radius: 2px;
  font-size: 14px;
  color: var(--night);
  background: var(--white);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}

.form-group input::placeholder { color: var(--grey-light); }

.est-form .btn-primary { margin-top: 8px; }

.form-note {
  font-size: 11px;
  color: var(--grey-light);
  text-align: center;
  margin-top: 12px;
}


/* ─── EDITORIAL / TABS ───────────────────────────────── */
.editorial-section { background: var(--cream-light); }

.editorial-header { text-align: center; margin-bottom: 48px; }

.editorial-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--grey-line);
  margin-bottom: 52px;
}

.tab-btn {
  padding: 12px 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s, border-color 0.3s;
}

.tab-btn:hover { color: var(--night); }
.tab-btn.active { color: var(--night); border-bottom-color: var(--gold); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.editorial-text {
  max-width: 680px;
  margin: 0 auto;
}

.editorial-lead {
  font-family: var(--font-title);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--night);
  margin-bottom: 28px;
}

.editorial-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--grey);
  margin-bottom: 18px;
}

.editorial-text p strong { color: var(--night); font-weight: 500; }


/* ─── CONTACT BAND ───────────────────────────────────── */
.contact-band {
  background: linear-gradient(135deg, var(--night-deep) 0%, var(--night-mid) 100%);
  padding: 80px 48px;
}

.contact-band-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.contact-band-text .section-tag { color: var(--gold); }
.contact-band-text .section-tag::before,
.contact-band-text .section-tag::after { background: rgba(201,169,110,0.4); }

.contact-band-text h2 {
  font-family: var(--font-title);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin: 12px 0 16px;
}

.contact-band-text p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.contact-band-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  min-width: 260px;
}

.contact-band-actions .btn-primary {
  background: var(--gold);
  color: var(--night-deep);
  width: auto;
}


/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer { background: var(--night-deep); }

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 60px;
  display: grid;
  grid-template-columns: 1.8fr 2fr 1.4fr;
  gap: 60px;
}

.footer-cols-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  max-width: 240px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.08);
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-col-agencies .footer-agency {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-col-agencies .footer-agency:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.footer-agency strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.footer-agency span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}

.footer-agency a {
  font-size: 12px;
  color: var(--gold);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-agency a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }

.footer-legal span { color: rgba(255,255,255,0.15); font-size: 10px; }

.footer-credit {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 14px 48px;
  text-align: center;
}

.footer-credit p {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
}

.footer-credit a {
  color: rgba(255,255,255,0.35);
  transition: color 0.3s;
}

.footer-credit a:hover { color: var(--gold); }


/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal-fade,
.reveal-up,
.reveal-blur {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-duration: 0.9s;
  transition-timing-function: var(--ease-out);
}

.reveal-fade { transform: none; }
.reveal-up   { transform: translateY(32px); }
.reveal-blur { transform: translateY(20px) scale(0.98); filter: blur(8px); }

.reveal-fade.visible { opacity: 1; }
.reveal-up.visible   { opacity: 1; transform: translateY(0); }
.reveal-blur.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }

[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }


/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .properties-section .container { padding: 0 16px; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 2fr; gap: 40px; }
}

@media (max-width: 900px) {
  .nav-links-desktop { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .agencies-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .estimation-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-band-inner { flex-direction: column; text-align: center; }
  .contact-band-actions { min-width: unset; width: 100%; align-items: center; }
  .numbers-inner { flex-wrap: wrap; gap: 32px; justify-content: center; }
  .number-divider { display: none; }
  .hero-content { padding: 0 24px; padding-top: 100px; }

  /* Header mobile — propre */
  .nav-container {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-left { display: none; }
  .nav-socials { display: none; }
  .nav-logo {
    position: static;
    transform: none;
    width: 140px;
    flex-shrink: 0;
  }
  #site-header.scrolled .nav-logo { width: 120px; }
  .nav-right {
    flex: 0;
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .properties-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }

  /* Footer mobile — propre */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 36px;
  }
  .footer-brand { text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-socials { justify-content: center; }
  .footer-cols-duo {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-col { text-align: left; }
  .footer-col-agencies {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-agency { text-align: center; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 18px 24px;
  }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  .search-row { flex-direction: column; gap: 0; }
  .search-field { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn { width: 100%; justify-content: center; border-radius: 0 0 2px 2px; }
  .hero-stats { gap: 20px; }
  .stat strong { font-size: 26px; }
  .container { padding: 0 24px; }
  .container-narrow { padding: 0 24px; }
  .estimation-inner { padding: 64px 24px; }
  .contact-band { padding: 60px 24px; }
  .numbers-band { padding: 48px 24px; }
  .section { padding: 80px 0; }
  .loader-logo-wrap { width: 200px; }
  .editorial-tabs { flex-wrap: wrap; }
  .tab-btn { padding: 10px 16px; font-size: 10px; }
}

@media (max-width: 400px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 42px; }
}
