:root {
  --bg: #EBE6DA; /* Gofun encore plus profond pour casser le blanc */
  --surface: rgba(255, 255, 255, 0.95);
  --surface-light: #f7f7f5;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --gold: #C9A84C;
  --gold-soft: rgba(201, 168, 76, 0.12);
  --gold-glow: rgba(201, 168, 76, 0.25);
  --navy: #002244; /* Kon-iro */
  --border: rgba(0, 0, 0, 0.08);
  --white: #ffffff;
  --whatsapp: #25D366;
  --radius: 20px;
  --radius-lg: 28px;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-float: 0 12px 40px rgba(0,0,0,0.1);
  --thumb-size: 22px;
  --track-h: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  min-width: 0;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}

/* ─── HANDWRITING STYLES ─── */
.letter-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 100px;
  background: #fdfdfb;
  box-shadow: 0 10px 50px rgba(0,0,0,0.05);
  border-radius: 4px;
  position: relative;
  min-height: 600px;
  line-height: 1.6;
  z-index: 1;
}

.letter-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: url('../assets/logo.png') center/contain no-repeat;
  opacity: 0.1; /* Visibilité augmentée pour un aspect plus institutionnel */
  pointer-events: none;
  z-index: -1;
}

.handwritten-body {
  font-family: 'Dancing Script', cursive;
  font-size: 1.9rem;
  color: #2c3e50;
  white-space: pre-line;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(30px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background-image: none;
  touch-action: manipulation;
}

body[data-page="apropos"] {
  background: url('../assets/img/WhatsApp Image 2026-05-13 at 5.31.09 AM.jpeg') center/cover no-repeat fixed;
}

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; }

a, button, .btn, .property-card, .service-card, .stat-card, .value-card, .nav-toggle, .nav-links a, .lang-option, .lang-selector, .estimate-mobile, .whatsapp-button {
  min-height: 48px;
  min-width: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(201, 168, 76, 0.20);
}

a:active, button:active, .btn:active, .property-card:active, .service-card:active, .stat-card:active, .value-card:active, .nav-toggle:active, .nav-links a:active, .lang-option:active, .lang-selector:active, .estimate-mobile:active, .whatsapp-button:active {
  transform: scale(0.98);
  transition: transform 120ms ease;
}

@media (hover: none) and (pointer: coarse) {
  html { -webkit-text-size-adjust: 100%; }
  body {
    -webkit-user-select: auto;
    user-select: auto;
  }

  button, a, .btn, .property-card, .service-card, .stat-card, .value-card, .nav-toggle, .nav-links a, .lang-option, .lang-selector, .estimate-mobile, .whatsapp-button, .nav-links, .nav-group, .dropdown-menu {
    -webkit-tap-highlight-color: rgba(201, 168, 76, 0.22);
    touch-action: manipulation;
    user-select: auto;
    -webkit-user-select: auto;
    min-height: 48px;
    min-width: 48px;
    pointer-events: auto;
  }

  .property-card, .service-card, .stat-card, .value-card, .btn, .whatsapp-button {
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }

  .property-card:hover, .property-card:active,
  .service-card:hover, .service-card:active,
  .btn-fav-card:hover, .whatsapp-button:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .property-card::before,
  .property-card:hover::before {
    opacity: 0 !important;
    display: none !important;
  }
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.section-pad { padding: 80px 24px; }

/* ─── HEADER / NAV ─── */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  transition: all 300ms ease;
}

.site-header.scrolled {
  position: fixed;
  background: transparent;
  border-bottom: none;
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 20px 0px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 32px;
}


.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy); /* Même bleu que le footer */
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-left: 0px; 
}

.brand-logo {
  height: 86px; /* Logo légèrement plus grand pour une meilleure présence dans la navbar */
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.hero-home .hero-copy .hero-subtitle {
  margin: 12px auto 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  transition: transform 300ms ease, opacity 300ms ease;
}

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

.nav-links {
  position: absolute;
  top: calc(100% + 12px);
  right: 24px;
  width: min(320px, 92vw);
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
  z-index: 140;
}

.nav-links.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  animation: fadeIn 220ms ease;
}

.nav-links a {
  width: 100%;
}

.nav-links a::after {
  display: none;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: color 200ms ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 300ms ease;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.site-header.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.nav-link-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Ensure nav action buttons keep their intended styles inside the mobile/nav context */
.nav-links .btn-nav-outline {
  color: var(--gold);
  background: var(--navy);
  justify-content: center;
  padding: 14px 18px;
}

.nav-links .lang-selector,
.nav-links .btn-nav-outline,
.nav-links .nav-mobile-actions {
  width: 100%;
}

.estimate-mobile {
  width: 100%;
}

.nav-links .lang-selector {
  display: flex;
  justify-content: center;
}

.nav-links .btn-nav-outline {
  justify-content: center;
}

.nav-link-with-icon svg {
  flex-shrink: 0;
}

/* ─── DROPDOWN ─── */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.nav-links .nav-dropdown,
.nav-links .lang-selector,
.nav-links .btn-nav-outline {
  width: 100%;
}

.nav-links .lang-selector {
  display: flex;
  justify-content: flex-start;
}

.nav-links .btn-nav-outline {
  justify-content: flex-start;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
  z-index: 100;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown-links a {
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 200ms ease, color 200ms ease;
}

.dropdown-links a:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

.dropdown-more {
  color: var(--gold) !important;
  font-weight: 600 !important;
}

.dropdown-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: var(--white);
  color: #333;
  font-size: 0.9rem;
  transition: border-color 200ms ease;
}

.dropdown-search input:focus {
  outline: none;
  border-color: var(--gold);
}

.dropdown-search input::placeholder {
  color: #999;
  font-size: 0.85rem;
}

.btn {
  border: none;
  cursor: pointer;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #C9A84C;
  color: #0A0A0A;
}

.btn-primary:hover {
  background: #b08f2f;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-nav-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.42);
  background: var(--navy);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.btn-nav-outline::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(201, 168, 76, 0.08);
  pointer-events: none;
}

.btn-nav-outline:hover {
  background:
    linear-gradient(180deg, rgba(201, 168, 76, 0.18), rgba(201, 168, 76, 0.10));
  border-color: rgba(201, 168, 76, 0.82);
  color: #0A0A0A;
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(201, 168, 76, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.btn-nav-outline:focus-visible {
  outline: 3px solid rgba(201, 168, 76, 0.28);
  outline-offset: 3px;
}

.lang-selector {
  position: relative;
}

.lang-toggle {
  padding-inline: 15px;
  min-width: 66px;
}

.lang-selector .lang-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 112px;
  padding: 6px;
  background: var(--navy);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: all 180ms ease;
  z-index: 2200;
}

.lang-selector .lang-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-selector .lang-option {
  width: 100%;
  display: block;
  padding: 11px 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  border-radius: 12px;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.lang-selector .lang-option:hover {
  background: rgba(201, 168, 76, 0.10);
  color: var(--gold);
}

.lang-selector .lang-option.active {
  background: rgba(201, 168, 76, 0.16);
  color: var(--gold);
}

.lang-selector .lang-option:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201,168,76,0.15), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-home {
  min-height: 100vh;
  padding: 100px 24px 60px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.hero-subpage {
  min-height: 70vh;
  padding: 140px 24px 80px;
  background: url('../assets/img/WhatsApp Image 2026-05-13 at 5.31.09 AM.jpeg') center/cover no-repeat;
  background-attachment: scroll;
}

.hero-subpage.about-hero {
  min-height: 100vh;
  padding: 160px 24px 120px;
}

.hero-subpage.about-hero .hero-copy {
  max-width: 760px;
}

.hero-subpage.about-hero .hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 26px;
  color: var(--white);
  letter-spacing: 0;
  text-transform: none;
}

.hero-subpage.about-hero .hero-copy p {
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 780px;
  margin: 0 auto 24px;
  white-space: pre-line;
}

.hero-subpage.about-hero .eyebrow.about-title {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.26em;
  margin-bottom: 24px;
}

.hero-contact {
  background: url('../assets/img/WhatsApp Image 2026-05-13 at 5.31.09 AM.jpeg') center/cover no-repeat;
  filter: none;
}

.hero-contact .hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.hero-copy {
  max-width: 1000px;
  text-align: center;
  margin: 0 auto;
}

.hero-copy h1 {
  display: inline-block;
  max-width: min(800px, 90vw);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 1.05;
  margin: 0 0 20px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 18px 35px rgba(0,0,0,0.35);
}

.hero-home .hero-copy h1 {
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-align: center;
}

.hero-home .hero-copy .hero-title-small {
  display: block;
  font-size: 0.82em;
  line-height: 1.1;
}

.hero-home .hero-copy .hero-title-large {
  display: block;
  font-size: 1.18em;
  line-height: 1;
  font-weight: 800;
}

.hero-home .hero-copy p {
  color: var(--gold);
  font-size: 0.85rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-subpage:not(.about-hero) .hero-copy h1 {
  color: #ffffff;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-subpage:not(.about-hero) .hero-copy .eyebrow {
  color: var(--gold);
}

.hero-home .hero-copy .hero-subtitle {
  margin: 0 auto;
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 700;
  color: #ffffff;
}

.hero-contact .hero-copy h1 {
  white-space: nowrap;
  display: inline-block;
}

.hero-subpage.about-hero .hero-copy h1 {
  color: var(--white);
}

.hero-copy p {
  color: rgba(255,255,255,0.95);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 760px;
  margin: 0 auto 24px;
}

.hero-subpage.about-hero .hero-copy p {
  color: rgba(255,255,255,0.95);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
  font-weight: 700;
}

.hero-subpage.about-hero .eyebrow {
  color: var(--white);
  letter-spacing: 0.22em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.hero-actions .btn-primary {
  min-width: 220px;
  padding: 16px 26px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--navy);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-search {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px;
  margin: 32px auto 0;
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.4);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-float);
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.search-field select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 12px 14px;
  color: #111;
  background: var(--white);
  font-size: 0.9rem;
  appearance: none;
  cursor: pointer;
}

.search-button {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #d4b458, #b08f2f);
  color: #0A0A0A;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  min-height: 42px;
  align-self: end;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

/* ─── STATS ─── */
.stats { max-width: 1400px; margin: 0 auto; }

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

.stat-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stat-icon {
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  border-radius: 16px;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.75rem;
  color: #333;
}

/* ─── SERVICES ─── */
.services { max-width: 1400px; margin: 0 auto; }

.section-header { margin-bottom: 40px; }

.section-header.section-center { text-align: center; }

.section-header.section-center h2 {
  position: relative;
  display: inline-block;
  font-size: 2.2rem;
  color: #111;
}

.section-header.section-center h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -14px;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 20px;
}

.services-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
}

.service-card {
  background: var(--white);
  color: #111;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 300ms ease, box-shadow 300ms ease;
  width: 100%;
  max-width: 420px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  border-radius: 16px;
}

.service-card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #0A0A0A;
}

.service-card p {
  margin: 0;
  color: #555;
  line-height: 1.8;
}

.link-cta {
  margin-top: auto;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: letter-spacing 200ms ease;
}

.link-cta:hover { letter-spacing: 0.14em; }

/* ─── BIENS PAGE LAYOUT ─── */
.biens-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.biens-sidebar {
  position: sticky;
  top: 100px;
  padding: 32px;
  background: var(--navy); /* Kon-iro */
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  color: #ffffff;
}

.biens-sidebar h3 {
  margin: 0 0 24px;
  font-size: 1.2rem;
  color: var(--gold); /* Kiniro */
  letter-spacing: 0.05em;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold); /* Labels en Kiniro sur fond bleu */
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-group select,
.filter-group input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--white);
  color: #333;
  padding: 12px 14px;
  font-size: 0.9rem;
  transition: border-color 200ms ease;
}

/* Budget control improved */
.filter-group.budget { padding-bottom: 6px; }
.budget-row { display: flex; align-items: center; gap: 12px; }
.budget-row.vertical { flex-direction: column; align-items: stretch; }
.budget-slider-wrap {
  position: relative;
  height: calc(var(--thumb-size) + 6px);
  display: flex;
  align-items: center;
}
.track-svg {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(var(--thumb-size) + 6px);
  pointer-events: none;
  overflow: visible;
}
input#budgetRange {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 10;
}
input#budgetRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: transparent;
  border: none;
}
input#budgetRange::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: transparent;
  border: none;
}
#svg-thumb-group { transition: none; }
.budget-value-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}
.budget-value {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.13);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.budget-value.updating {
  transform: scale(1.04);
  color: #fff;
  background: linear-gradient(90deg, #C9A84C, #b08f2f);
}
.budget-value:focus {
  outline: 3px solid rgba(201,168,76,0.18);
  outline-offset: 4px;
}
.budget-value.updating { transform: scale(1.03); color: #ffffff; background: linear-gradient(90deg, #C9A84C, #b08f2f); }
.budget-value:focus { outline: 3px solid rgba(201,168,76,0.12); outline-offset: 4px; }

/* show dynamic filled part using background-size via inline style set by JS */

/* Animation du texte de budget (modern button) */
.btn-budget .value-text {
  color: var(--gold);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  transition: transform 200ms ease, color 200ms ease;
}

.btn-budget.updating .value-text {
  transform: scale(1.05) translateY(-2px);
  color: #ffffff;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--gold);
  outline: none;
}

/* legacy id removed; using .btn-budget .value-text instead */

.btn-filter-reset {
  width: 100%;
  padding: 12px;
  font-size: 0.78rem;
  margin-top: 8px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-filter-reset:hover {
  background: var(--gold);
  color: #0A0A0A;
}

/* ─── MODAL DETAIL ─── */
.property-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 30, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.modal-container {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 1200px;
  max-height: 92vh;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  border: 1px solid rgba(201, 168, 76, 0.3);
  animation: modalSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.modal-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  height: 80vh;
  max-height: 680px;
  overflow: hidden;
  align-items: stretch;
}

.modal-gallery {
  background: #050505;
  display: flex !important;
  flex-direction: column !important;
  border-right: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  overflow: hidden;
  animation: slideInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  justify-content: flex-start !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

.gallery-main-wrapper {
  position: relative;
  height: 380px !important;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  width: 100%;
}

.gallery-main-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  background: rgba(201, 168, 76, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--navy);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 5;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(201, 168, 76, 0.85);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--navy);
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
  background: rgba(201, 168, 76, 1);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  padding: 12px;
  overflow-x: auto;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumbs .thumb {
  width: 80px;
  height: 55px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-thumbs .thumb.active {
  opacity: 1;
  border-color: var(--gold);
  transform: scale(1.05);
}

.video-preview-strip {
  margin: 0 24px 24px;
  padding: 16px 24px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  color: white;
  transition: background 0.3s;
}

.video-preview-strip:hover { background: #003366; }

.play-icon-small {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.modal-info {
  display: flex;
  padding: 35px 40px;
  flex-direction: column;
  overflow-y: auto;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.6) transparent;
  position: relative;
  animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Scrollbar WebKit (Chrome, Safari, Edge) */
.modal-info::-webkit-scrollbar {
  width: 8px;
}

.modal-info::-webkit-scrollbar-track {
  background: transparent;
}

.modal-info::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.6);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.modal-info::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.9);
}

/* Gradient fade effect (haut et bas) */
.modal-info::before,
.modal-info::after {
  content: '';
  position: sticky;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 10;
}

.modal-info::before {
  top: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.modal-info::after {
  bottom: 0;
  height: 30px;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.modal-header h2 {
  font-size: 2.1rem;
  margin: 4px 0;
  line-height: 1.1;
  color: var(--navy);
}

.modal-price-tag {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 5px;
}

.modal-luxury-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}

.spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.spec-item.highlight .spec-val { color: var(--gold); }

.modal-description-box h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  color: var(--muted);
}

.modal-desc {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-actions {
  padding-top: 20px;
  display: flex;
  gap: 15px;
}

.reservation-main {
  margin-top: 80px;
}

.prop-details-box {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.reservation-note {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
}

.modal-footer-note {
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .modal-container { overflow-y: auto; }
}

/* The mobile menu should only replace desktop actions on smaller screens */
.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  z-index: 100;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--gold);
  color: var(--white);
}

@media (max-width: 1024px) {
  .modal-content { grid-template-columns: 1fr; }
  .gallery-main-wrapper { height: 350px; }
  .modal-info { padding: 40px; }
  .modal-header h2 { font-size: 2rem; }
  .hero-search {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    padding: 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 40px 30px;
  }
  .contact-sidebar {
    width: 100%;
  }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 850px) {
  .modal-content { grid-template-columns: 1fr; }
  .main-detail-img { height: 250px; }
  .hero-home,
  .hero-subpage {
    padding: 80px 20px 40px;
  }
  .hero-copy {
    max-width: 90%;
    margin: 0 auto;
  }
  .hero-copy h1 {
    font-size: clamp(2.2rem, 8vw, 3.6rem);
  }
  .hero-copy p {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero-search {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }
  .hero-search .search-button {
    align-self: stretch;
  }
  .stats-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    max-width: 100%;
  }
  .contact-form {
    padding: 32px 20px;
  }
  .contact-info {
    padding: 28px;
  }
  .contact-layout {
    gap: 20px;
  }
  .form-row {
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Improved footer layout on mobile */
  .site-footer .footer-inner { padding: 28px 20px !important; }
  .footer-grid { gap: 18px !important; }
  .footer-identity { text-align: center; }
  .footer-identity .brand-logo { height: 48px; margin: 0 auto; display: block; }
  .footer-slogan { text-align: center; font-size: 0.95rem; max-width: 340px; margin: 10px auto 0; }
  .footer-bottom { display: flex; flex-direction: column; gap: 10px; align-items: center; }
  .footer-copy { text-align: center; }
}

.biens-main { min-width: 0; }

.biens-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.load-more-wrapper {
  text-align: center;
  margin-top: 40px;
}

.btn-load-more {
  padding: 18px 48px;
  font-size: 0.85rem;
}

.btn-load-more.hidden { display: none; }

/* ─── PROPERTY CARD ─── */
.property-card {
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.35);
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f2 100%);
  display: flex;
  flex-direction: column;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease, border-color 300ms ease, background 300ms ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  animation: cardAppear 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.property-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at top left, rgba(201,168,76,0.08), transparent 32%);
  transition: opacity 280ms ease;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0, 31, 63, 0.18);
  border-color: rgba(201,168,76,0.25);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf4 100%);
}

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

.property-card:active {
  transform: translateY(-4px) scale(0.995);
  box-shadow: 0 20px 44px rgba(0, 23, 46, 0.22);
  border-color: rgba(201,168,76,0.32);
  background: linear-gradient(180deg, #ffffff 0%, #fdfaf0 100%);
}

.property-image-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
}

.property-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 45%, rgba(0,0,0,0.15));
  pointer-events: none;
}

.property-image {
  width: 100%;
  height: 100%;
  background-color: #eef1f5;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: transform 600ms ease, filter 400ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease, filter 400ms ease;
  filter: saturate(1) contrast(1.03);
}

.property-card:hover .property-image img {
  transform: scale(1.08);
  filter: saturate(1.07) brightness(1.03);
}

.badge-new {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--navy); /* Texte sombre pour lisibilité sur doré */
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
}

.btn-fav-card {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.btn-fav-card:hover { background: rgba(255,255,255,0.95); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }

.btn-fav-card svg { transition: fill 200ms ease, stroke 200ms ease; }

.btn-fav-card.active svg { fill: var(--gold); stroke: var(--gold); }

.property-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
}

.property-location {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.property-card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #111;
}

.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.property-specs span {
  background: rgba(201,168,76,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #444;
}

.property-card p {
  margin: 0;
  color: #4d4d4d;
  font-size: 0.92rem;
  line-height: 1.75;
  flex-grow: 1;
}

.btn-view-card {
  align-self: flex-start;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.04));
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn-view-card:hover,
.btn-view-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.1));
}

.property-price {
  font-size: 1.35rem;
  color: var(--gold);
  font-weight: 800;
  font-family: 'Playfair Display', serif; /* Rappel du logo */
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(201,168,76,0.15);
}

/* ─── DARK SECTION (Zebra Pattern) ─── */
.section-dark {
  background-color: var(--navy);
  color: #ffffff;
  padding: 80px 24px;
  text-align: center;
}

.section-dark h2 { color: var(--gold); }

/* ─── CONTACT PAGE ─── */
.contact-page { max-width: 1400px; margin: 0 auto; }

.contact-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: start;
}

.contact-form {
  padding: 56px;
  background: var(--navy); /* Kon-iro */
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 34, 68, 0.3);
  color: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 150px; height: 150px;
  background: radial-gradient(circle at top right, rgba(201, 168, 76, 0.1), transparent 70%);
}

.contact-form h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--gold); /* Kiniro */
  letter-spacing: 0.02em;
}

.form-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold); /* Labels en doré */
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid rgba(201, 168, 76, 0.4); /* Bordure dorée plus marquée */
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2); /* Fond plus sombre pour les champs */
  color: var(--white);
  padding: 16px 20px;
  font-size: 0.95rem;
  transition: all 300ms ease;
  font-family: 'Montserrat', sans-serif;
  color-scheme: dark; /* Force le rendu sombre pour les contrôles natifs */
}

.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
  padding-right: 50px;
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #ffffff; /* Bordure blanche au focus pour le contraste */
  outline: none;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

/* États de validation */
.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select {
  border-color: #ff4d4d !important;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.15) !important;
  background: rgba(255, 77, 77, 0.05);
  animation: fieldErrorShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes fieldErrorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.form-group.invalid label {
  color: #ff4d4d;
}

.form-group option {
  background: var(--navy);
  color: var(--white);
}

.btn-submit {
  width: 100%;
  padding: 20px;
  font-size: 0.85rem;
  margin-top: 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gold-soft);
}

.contact-info h3 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  color: #111;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-list li:last-child { margin-bottom: 0; }

.info-list li svg { flex-shrink: 0; margin-top: 2px; }

.info-list strong {
  display: block;
  color: #222;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.info-list p {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-map-iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 16px;
  filter: grayscale(1) contrast(1.1);
  display: block;
}

/* ─── VALUES SECTION ─── */
.values-section {
  margin-top: 64px;
}

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

.value-card {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  border: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-icon {
  margin-bottom: 28px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--navy); /* Kon-iro pour casser le blanc */
  color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0, 34, 68, 0.1);
}

.value-card h3 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  color: #0A0A0A;
  letter-spacing: 0.02em;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
  max-width: 280px;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 80px 24px 40px;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-identity .brand {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--white) !important; /* Marque blanc dans le footer */
}

.footer-identity .brand-logo {
  height: 75px;
}

.footer-slogan {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 320px;
}

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

.social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  display: grid;
  place-items: center;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 300ms ease;
  border-radius: 4px;
}

.social-btn:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 200ms ease;
}

.footer-col ul a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

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

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

/* ─── FLOATING BUTTONS ─── */
.whatsapp-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: linear-gradient(135deg, #d4b458, #b08f2f);
  color: #0A0A0A;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(201,168,76,0.35);
  cursor: pointer;
  z-index: 90;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(201,168,76,0.5);
}


/* ─── TOAST ─── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10,10,10,0.92);
  color: #fff;
  padding: 16px 28px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.toast .toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast.success { border-bottom: 3px solid var(--gold); }
.toast.success .toast-icon svg { color: var(--gold); }
.toast.error { border-bottom: 3px solid #ff4d4d; }
.toast.error .toast-icon svg { color: #ff4d4d; }
.toast.error .toast-message { color: var(--white); } /* Assure que le texte d'erreur est blanc sur fond sombre */

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── GLASS PANEL ─── */
.glass-panel {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* ─── NO RESULTS ─── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
}

.no-results h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.no-results p {
  color: #666;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .biens-layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .biens-sidebar {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 20px;
    padding: 24px !important;
    background: var(--navy) !important;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .biens-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .property-card {
    flex: none !important;
    min-width: auto !important;
    width: 100% !important;
    scroll-snap-align: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .load-more-wrapper { display: block !important; }

  .hero-search {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
    gap: 12px !important;
  }

  .hero-search .search-button {
    width: 100%;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .contact-form {
    padding: 28px 20px !important;
  }

  .contact-sidebar {
    gap: 18px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1399px) {
  .navbar, .stats, .services, .biens-layout, .contact-page, .footer-inner {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 1024px) {
  .biens-layout {
    grid-template-columns: 1fr;
  }

  .biens-sidebar {
    position: sticky;
  }

  .navbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - 110px);
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
    transform: translateY(-10px);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a,
  .nav-links .lang-selector,
  .nav-links .btn-nav-outline {
    width: 100%;
  }

  .lang-selector {
    justify-content: flex-start;
  }

  .btn-nav-outline {
    justify-content: flex-start;
  }

  /* Hide desktop actions inside nav-group on mobile */
  .nav-group > .lang-selector,
  .nav-group > .btn-nav-outline,
  #languageToggle,
  #estimateButton {
    display: none !important;
  }

  /* Ensure mobile duplicates inside .nav-links are visible and take full width */
  .nav-links .lang-selector,
  .nav-links .btn-nav-outline,
  .nav-mobile-actions {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
    justify-content: flex-start;
  }

  .estimate-mobile {
    display: inline-flex !important;
    justify-content: flex-start;
  }
}

/* Mobile improvements for property cards */
@media (max-width: 768px) {
  button, a, .btn, .property-card, .service-card, .stat-card, .value-card, .nav-toggle, .nav-links a, .lang-option, .lang-selector, .estimate-mobile {
    -webkit-tap-highlight-color: rgba(201, 168, 76, 0.25);
    touch-action: manipulation;
  }

  button, .btn, .nav-toggle, .nav-links a, .property-card, .service-card, .lang-option, .lang-selector, .estimate-mobile, .whatsapp-button {
    min-height: 48px;
    min-width: 48px;
  }

  .biens-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .biens-sidebar {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 12px !important;
    padding: 18px !important;
  }

  .biens-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .property-card {
    display: grid !important;
    grid-template-columns: 110px 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
    align-items: start !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08) !important;
    width: 100% !important;
    background: var(--white) !important;
    min-height: 112px !important;
    border: 1px solid rgba(201, 168, 76, 0.18) !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  .property-image-wrap {
    width: 110px !important;
    height: 90px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    flex: none !important;
    margin: 0 !important;
  }

  .property-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  .property-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .property-body {
    padding: 2px 2px 2px 0 !important;
    gap: 8px !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
  }

  .property-body h3 {
    font-size: 1rem !important;
    margin: 0 0 6px !important;
    line-height: 1.25 !important;
    padding-right: 56px !important;
  }

  .property-body p { display: none !important; }

  .property-specs span,
  .property-location,
  .property-price { font-size: 0.85rem !important; }

  .load-more-wrapper { margin-top: 12px !important; }

  .btn-fav-card {
    width: 48px !important;
    height: 48px !important;
    top: 10px !important;
    right: 10px !important;
    border-width: 1px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
    z-index: 3 !important;
  }

  .hero-search { grid-template-columns: 1fr !important; padding: 12px !important; gap: 8px !important; }

  .nav-links a,
  .nav-links .lang-selector,
  .nav-links .btn-nav-outline {
    padding: 14px 16px !important;
    border-radius: 14px !important;
  }
}

/* SKELETON LOADING */
.skeleton-card {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
  height: 480px;
  width: 100%;
  border: 1px solid rgba(0,0,0,0.04);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── MODAL PROJECT INFO STYLES ─── */
.modal-project-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
  padding: 20px;
  background: var(--gold-soft);
  border-radius: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.meta-val {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0A0A0A;
}

.modal-details-section {
  margin: 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.modal-details-section h3 {
  font-size: 1rem;
  color: #0A0A0A;
  margin: 0 0 12px;
}

.location-text {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.modal-tags {
  margin: 24px 0;
}

.modal-tags h3 {
  font-size: 1rem;
  color: #0A0A0A;
  margin: 0 0 12px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  display: inline-block;
  padding: 6px 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #0A0A0A;
  font-weight: 500;
}

/* ─── CARD DESCRIPTION TRUNCATION ─── */
.property-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em;
  color: #666;
  line-height: 1.5em;
}