/* ==========================================================================
   RIVERSIDE.CI — LUXURY REAL ESTATE LANDING PAGE
   Design System & Master Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --color-navy-dark: #07101E;
  --color-navy: #0A1628;
  --color-navy-alt: #0E1E36;
  --color-navy-card: #12243E;
  --color-navy-light: #1A2F4C;

  --color-gold-light: #F3E5AB;
  --color-gold-bright: #E5C778;
  --color-gold: #B8963E;
  --color-gold-dark: #8C6D27;
  --color-gold-accent: #D4AF37;
  
  --gradient-gold: linear-gradient(135deg, #E5C778 0%, #B8963E 50%, #8C6D27 100%);
  --gradient-gold-subtle: linear-gradient(135deg, rgba(229, 199, 120, 0.15) 0%, rgba(184, 150, 62, 0.25) 100%);
  --gradient-navy-overlay: linear-gradient(180deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.95) 100%);

  --color-white: #FFFFFF;
  --color-ivory: #F5F1E8;
  --color-stone: #EEF1F6;
  --color-grey-light: #E2E8F0;
  --color-grey-muted: #94A3B8;
  --color-grey-dark: #334155;

  --color-success: #10B981;
  --color-error: #EF4444;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 30px rgba(10, 22, 40, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 10px 30px rgba(184, 150, 62, 0.25);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout Boundaries */
  --container-max-width: 1240px;
  --container-narrow-width: 900px;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-ivory);
  background-color: var(--color-navy);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-navy);
  line-height: 1.6;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Utility Helpers */
.hidden { display: none !important; }
.text-center { text-align: center; }
.margin-top-lg { margin-top: 2rem; }

/* Focus Outline Accessibility Standard */
*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. LAYOUT CONTAINERS & TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  max-width: var(--container-narrow-width);
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section Headings */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-grey-muted);
  max-width: 680px;
  margin: 1.25rem auto 0;
  line-height: 1.7;
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--gradient-gold);
  margin: 1rem 0 0;
}

.gold-divider.center {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & BADGES (PREMIUM LUXURY STYLING)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2rem;
  min-height: 52px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}

.btn-primary.btn-gold, .btn-gold {
  background: var(--gradient-gold);
  color: var(--color-navy-dark);
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(229, 199, 120, 0.4);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.75s ease;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(184, 150, 62, 0.4);
  background: linear-gradient(135deg, #F3E5AB 0%, #C49F44 50%, #9A7B2C 100%);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-secondary.btn-outline-light, .btn-outline-light {
  background: rgba(10, 22, 40, 0.4);
  border: 1px solid rgba(245, 241, 232, 0.25);
  color: var(--color-ivory);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(245, 241, 232, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold-bright);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 58px;
  font-size: 1rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Badges */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(184, 150, 62, 0.15);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-gold-bright);
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-gold-bright);
  box-shadow: 0 0 10px var(--color-gold-bright);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.badge-gold-outline {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(229, 199, 120, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-gold-bright);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   5. NAVIGATION HEADER & MOBILE DRAWER
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0) 100%);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(184, 150, 62, 0.15);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .nav-container {
    padding: 0 2rem;
  }
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-white);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  margin-top: 2px;
}

/* Desktop Links */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ivory);
  opacity: 0.85;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--color-gold-bright);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn-nav-cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  color: var(--color-gold-bright);
}

.btn-nav-cta::after { display: none; }

.btn-nav-cta:hover {
  background: var(--gradient-gold);
  color: var(--color-navy-dark);
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
  z-index: 110;
}

@media (min-width: 992px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-gold-bright);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 105;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.4s, opacity 0.4s ease;
}

.mobile-drawer.active {
  visibility: visible;
  opacity: 1;
}

.drawer-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(7, 16, 30, 0.85);
  backdrop-filter: blur(12px);
}

.drawer-content {
  position: absolute;
  top: 0; right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: var(--color-navy-dark);
  border-left: 1px solid rgba(184, 150, 62, 0.2);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: -10px 0 40px rgba(0,0,0,0.6);
  padding-top: calc(2rem + env(safe-area-inset-top));
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

.mobile-drawer.active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(245, 241, 232, 0.1);
}

.drawer-close-btn {
  color: var(--color-ivory);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-ivory);
}

.mobile-nav-link:hover {
  color: var(--color-gold-bright);
  padding-left: 0.5rem;
}

.btn-drawer-cta {
  display: inline-block;
  text-align: center;
  padding: 0.9rem;
  background: var(--gradient-gold);
  color: var(--color-navy-dark) !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.drawer-footer {
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  padding-top: 1.5rem;
}

.drawer-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-gold);
}

.drawer-location {
  font-size: 0.85rem;
  color: var(--color-grey-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(6rem + env(safe-area-inset-top));
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: hero-zoom 25s infinite alternate ease-in-out;
}

@keyframes hero-zoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(6, 18, 22, 0.80) 0%, 
    rgba(8, 26, 24, 0.86) 50%, 
    rgba(7, 16, 28, 0.96) 100%
  );
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .hero-container {
    padding: 0 2rem;
  }
}

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

.badge-wrapper {
  margin-bottom: 1.5rem;
}

.hero-brand {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-white);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
  .hero-brand {
    font-size: 5.5rem;
  }
}

@media (min-width: 1200px) {
  .hero-brand {
    font-size: 6.5rem;
  }
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--color-gold-bright);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.45em;
  }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-ivory);
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 2.75rem;
  }
}

.hero-description {
  font-size: 1rem;
  color: var(--color-grey-light);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.15rem;
  }
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .hero-actions {
    flex-direction: row;
    max-width: none;
  }
  
  .hero-actions .btn {
    width: auto;
    min-width: 220px;
  }
}

/* Scroll Down Indicator */
.scroll-down-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 3.5rem;
  color: var(--color-gold);
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.scroll-down-indicator:hover {
  opacity: 1;
}

.scroll-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.bounce-icon {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

@media (max-width: 576px) {
  .hide-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   7. SECTION PRÉSENTATION ("Une nouvelle vision")
   -------------------------------------------------------------------------- */
.section-presentation {
  padding: 6rem 0;
  background-color: var(--color-navy);
  position: relative;
}

.cards-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.cards-grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Luxury Card Item */
.card-luxury {
  background: linear-gradient(180deg, var(--color-navy-card) 0%, var(--color-navy-alt) 100%);
  border: 1px solid rgba(184, 150, 62, 0.2);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card-luxury::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-gold);
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}

.card-luxury:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: 0 15px 40px rgba(10, 22, 40, 0.6);
}

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

.card-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(184, 150, 62, 0.12);
  border: 1px solid rgba(184, 150, 62, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-bright);
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 26px;
  height: 26px;
}

.card-badge-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.975rem;
  color: var(--color-grey-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.card-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ivory);
  opacity: 0.8;
}

.card-luxury:hover .card-footer-link {
  color: var(--color-gold-bright);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   8. ARCHITECTURAL BANNER (LUXURY IMAGE BREAK)
   -------------------------------------------------------------------------- */
.architectural-banner {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background-color: var(--color-navy-dark);
}

.banner-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6);
}

.banner-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(7,16,30,0.92) 0%, rgba(7,16,30,0.7) 50%, rgba(7,16,30,0.92) 100%);
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.banner-heading {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .banner-heading {
    font-size: 3rem;
  }
}

.banner-text {
  font-size: 1.1rem;
  color: var(--color-ivory);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   9. SECTION "CE QUI ARRIVE" ("Bientôt sur Riverside")
   -------------------------------------------------------------------------- */
.section-upcoming {
  padding: 6rem 0;
  background-color: var(--color-navy-dark);
}

.cards-grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-dark-interactive {
  background: var(--color-navy-card);
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card-dark-interactive:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.card-image-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-dark-interactive:hover .card-img {
  transform: scale(1.08);
}

.card-tag {
  position: absolute;
  top: 12px; right: 12px;
  padding: 0.25rem 0.6rem;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 150, 62, 0.4);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-gold-bright);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-icon {
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.card-header-icon svg {
  width: 24px;
  height: 24px;
}

.card-dark-interactive .card-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.card-status-badge {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--color-grey-muted);
  border-top: 1px dashed rgba(245, 241, 232, 0.1);
  padding-top: 0.75rem;
}

.card-btn-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(184, 150, 62, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  transition: color var(--transition-fast);
}

.card-btn-action:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   10. FORMULAIRE DE CONTACT ("Restez informé")
   -------------------------------------------------------------------------- */
.section-contact-dark {
  padding: 6rem 0;
  background-color: var(--color-navy);
  position: relative;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 3rem;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-white);
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .contact-title {
    font-size: 3.25rem;
  }
}

.contact-description {
  font-size: 1.1rem;
  color: var(--color-grey-muted);
  margin-top: 0.75rem;
}

/* Form Card Container */
.form-card-luxury {
  background: var(--color-navy-card);
  border: 1px solid rgba(184, 150, 62, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

@media (min-width: 768px) {
  .form-card-luxury {
    padding: 3.5rem 3rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ivory);
  letter-spacing: 0.02em;
}

.required-star {
  color: var(--color-gold);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: var(--color-grey-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-control {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(245, 241, 232, 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.form-control::placeholder {
  color: var(--color-grey-muted);
  opacity: 0.7;
}

.form-control:focus {
  background: rgba(10, 22, 40, 0.9);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.2);
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--color-gold-bright);
}

/* Phone Input Formatting (+225) */
.phone-input-wrapper {
  display: flex;
}

.country-prefix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  background: rgba(184, 150, 62, 0.12);
  border: 1px solid rgba(245, 241, 232, 0.15);
  border-right: none;
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  white-space: nowrap;
}

.phone-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 1rem;
}

/* Textarea */
.textarea-wrapper {
  align-items: flex-start;
}

.textarea-icon {
  top: 1rem;
}

.textarea-control {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--color-grey-muted);
  margin-top: 0.2rem;
}

/* Validation Icons & Error Messages */
.input-validation-icon {
  position: absolute;
  right: 1rem;
  width: 20px;
  height: 20px;
  color: var(--color-success);
  display: none;
}

.field-error-message {
  font-size: 0.75rem;
  color: var(--color-error);
  display: none;
  margin-top: 0.25rem;
}

/* Field Error State */
.form-group.has-error .form-control {
  border-color: var(--color-error);
  background: rgba(239, 68, 68, 0.05);
}

.form-group.has-error .field-error-message {
  display: block;
}

/* Field Success State */
.form-group.is-valid .input-validation-icon {
  display: block;
}

/* Privacy Notice */
.form-privacy-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--color-grey-muted);
  padding: 0.5rem 0;
}

.privacy-icon {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Status Alert Box */
.status-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-alert.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--color-success);
  color: #A7F3D0;
}

.status-alert.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--color-error);
  color: #FCA5A5;
}

/* Loading Spinner */
.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(10, 22, 40, 0.3);
  border-top-color: var(--color-navy-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   11. MODAL DIALOGS & OVERLAYS
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(7, 16, 30, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

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

.modal-box {
  background: var(--color-navy-card);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  position: relative;
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-large {
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-icon-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(184, 150, 62, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.modal-icon-success svg {
  width: 32px;
  height: 32px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.modal-message {
  font-size: 1.05rem;
  color: var(--color-ivory);
  margin-top: 1rem;
  line-height: 1.6;
}

.modal-close-icon {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  color: var(--color-grey-muted);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: all var(--transition-fast);
}

.modal-close-icon:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.15);
}

/* Property Slider inside Modal */
.preview-properties-slider {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .preview-properties-slider {
    grid-template-columns: 1fr 1fr;
  }
}

.preview-card {
  background: var(--color-navy-alt);
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.preview-img-container {
  position: relative;
  height: 200px;
}

.preview-img-container img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.preview-location {
  position: absolute;
  bottom: 10px; left: 10px;
  padding: 0.3rem 0.75rem;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  color: var(--color-gold-bright);
  display: flex; align-items: center; gap: 0.3rem;
}

.preview-card-details {
  padding: 1.25rem;
}

.preview-card-details h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 0.4rem;
}

.preview-card-details p {
  font-size: 0.85rem;
  color: var(--color-grey-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.preview-specs {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-ivory);
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  padding-top: 0.75rem;
}

.preview-specs span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer-dark {
  background-color: var(--color-navy-dark);
  border-top: 1px solid rgba(184, 150, 62, 0.2);
  padding: 4.5rem 0 2rem;
  color: var(--color-grey-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-tagline-main {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-mission {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 380px;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-links-list, .footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--color-gold-bright);
  padding-left: 0.25rem;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icon {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.copyright-text {
  color: var(--color-grey-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dot-separator {
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINT AUDIT & SAFE AREA ADAPTATION
   -------------------------------------------------------------------------- */
@media (max-width: 390px) {
  .hero-brand {
    font-size: 2.85rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .form-card-luxury {
    padding: 1.5rem 1rem;
  }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .footer-dark {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}
