/*
Theme Name: N2M Habitat
Theme URI: https://n2m-habitat.sn
Author: N2M Habitat
Author URI: https://n2m-habitat.sn
Description: Thème WordPress sur mesure pour N2M HABITAT - Agence immobilière à Dakar, Sénégal. Converti depuis React.js.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: n2m-habitat
Tags: real-estate, immobilier, dakar, custom-theme
*/

/* ===================================================
   VARIABLES & RESET
=================================================== */
:root {
  --gold: #F4C430;
  --gold-dark: #d4a820;
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 0.75rem;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

/* ===================================================
   LAYOUT UTILITIES
=================================================== */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--gray { background: var(--gray-50); }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-600); max-width: 700px; margin: 0 auto; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

/* ===================================================
   BUTTONS
=================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem; border-radius: 9999px;
  font-weight: 700; font-size: 0.95rem; transition: var(--transition);
  cursor: pointer; border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--white); color: var(--black); transform: scale(1.05); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); transform: scale(1.05); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gold); color: var(--black); }
.btn-ghost { background: transparent; color: var(--white); }
.btn-ghost:hover { color: var(--gold); background: rgba(255,255,255,0.1); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ===================================================
   HEADER / NAVIGATION
=================================================== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(0,0,0,0.97); padding: 1rem 0;
  transition: var(--transition); border-bottom: 1px solid transparent;
}

#site-header.scrolled { padding: 0.6rem 0; box-shadow: 0 4px 20px rgba(0,0,0,0.5); border-bottom-color: rgba(244,196,48,0.2); }

.header-inner { display: flex; align-items: center; justify-content: space-between; }

.site-logo {
  font-size: 1.5rem; font-weight: 800; color: var(--gold);
  letter-spacing: -0.02em; z-index: 10;
}

.nav-desktop { display: flex; align-items: center; gap: 2rem; }

.nav-desktop a {
  font-size: 0.875rem; font-weight: 600; color: var(--white);
  padding: 0.25rem 0; position: relative;
}
.nav-desktop a:hover { color: var(--gold); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 600; color: var(--white);
  background: none; border: none; cursor: pointer; transition: var(--transition);
}
.nav-dropdown-toggle:hover { color: var(--gold); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 0.5rem;
  min-width: 220px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-xl); padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.2s ease; z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 0.6rem 1rem; font-size: 0.875rem;
  color: var(--gray-700); border-radius: 0.5rem;
}
.nav-dropdown-menu a:hover { background: var(--gray-100); color: var(--gold); }

/* Nav Buttons */
.nav-btn-project {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); padding: 0.5rem 1.25rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 600; transition: var(--transition);
}
.nav-btn-project:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.nav-btn-admin {
  display: flex; align-items: center; gap: 0.4rem;
  border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7);
  padding: 0.5rem 1.25rem; border-radius: 9999px;
  font-size: 0.875rem; transition: var(--transition);
}
.nav-btn-admin:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-btn-contact {
  background: var(--gold); color: var(--black);
  padding: 0.6rem 1.5rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 800; transition: var(--transition);
}
.nav-btn-contact:hover { background: var(--white); }

/* Mobile */
.nav-mobile-toggle {
  display: none; color: var(--white); font-size: 1.5rem; z-index: 10;
  background: none; border: none; cursor: pointer;
}
.nav-mobile { display: none; }

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-mobile {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(0,0,0,0.98); border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem; display: none; flex-direction: column; gap: 1.25rem;
    max-height: 80vh; overflow-y: auto;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { font-size: 1.1rem; font-weight: 600; color: var(--white); }
  .nav-mobile a:hover { color: var(--gold); }
  .nav-mobile-services { border-left: 3px solid var(--gold); padding-left: 1rem; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
  .nav-mobile-services a { font-size: 0.95rem; color: var(--gray-400); }
}

/* ===================================================
   HERO SECTION
=================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 5rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1506851321937-51fff21bc9a0?auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.92), rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}
.hero-content { position: relative; z-index: 10; max-width: 56rem; animation: fadeInLeft 0.8s ease 0.2s both; }
.hero-badge {
  display: inline-block; background: var(--gold); color: var(--black);
  padding: 0.35rem 1rem; border-radius: 0.25rem;
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 800; color: var(--white); line-height: 1.05; margin-bottom: 1.5rem; }
.hero-title span { color: var(--gold); display: block; font-size: 0.8em; margin-top: 0.5rem; }
.hero-text { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; max-width: 42rem; line-height: 1.7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  text-align: center; color: rgba(255,255,255,0.5); animation: bounce 2s infinite;
}
.hero-scroll span { display: block; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem; }
.scroll-indicator {
  width: 1.5rem; height: 2.5rem; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 9999px; display: flex; justify-content: center; padding-top: 0.4rem; margin: 0 auto;
}
.scroll-dot { width: 0.25rem; height: 0.5rem; background: rgba(255,255,255,0.5); border-radius: 9999px; }

/* ===================================================
   QUICK SEARCH WIDGET
=================================================== */
.quick-search {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-xl);
  padding: 1.5rem 2rem; margin-top: -3rem; position: relative; z-index: 20;
}
.quick-search h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--gray-800); }
.quick-search-form { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.quick-search-form select,
.quick-search-form input {
  flex: 1; min-width: 160px; padding: 0.65rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: 0.5rem;
  font-size: 0.9rem; color: var(--gray-700); background: var(--white);
  transition: var(--transition); outline: none;
}
.quick-search-form select:focus,
.quick-search-form input:focus { border-color: var(--gold); }
.quick-search-form .btn { white-space: nowrap; }

/* ===================================================
   SERVICES SECTION
=================================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--white); padding: 2.5rem 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
  border: 1px solid transparent;
}
.service-card:hover {
  box-shadow: var(--shadow-xl); transform: translateY(-6px);
  border-color: var(--gold);
}
.service-icon {
  width: 4rem; height: 4rem; background: rgba(244,196,48,0.1);
  border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--gold); }
.service-icon svg { width: 2rem; height: 2rem; color: var(--gold); transition: var(--transition); }
.service-card:hover .service-icon svg { color: var(--black); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.service-card a { color: var(--gold); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.service-card a:hover { color: var(--black); }

/* ===================================================
   PROPERTIES SECTION
=================================================== */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.property-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
}
.property-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.property-card-img { position: relative; height: 220px; overflow: hidden; }
.property-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .property-card-img img { transform: scale(1.08); }
.property-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--gold); color: var(--black);
  padding: 0.3rem 0.8rem; border-radius: 9999px;
  font-size: 0.78rem; font-weight: 800;
}
.property-price {
  position: absolute; bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,0.85); color: var(--white);
  padding: 0.4rem 0.9rem; border-radius: 0.5rem;
  font-size: 0.9rem; font-weight: 700; backdrop-filter: blur(4px);
}
.property-card-body { padding: 1.5rem; }
.property-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--gray-900); }
.property-location { display: flex; align-items: center; gap: 0.4rem; color: var(--gray-500); font-size: 0.85rem; margin-bottom: 1rem; }
.property-meta { display: flex; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-100); }
.property-meta span { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: var(--gray-600); }
.property-meta svg { width: 1rem; height: 1rem; color: var(--gold); }

/* ===================================================
   OPPORTUNITIES BLOCK
=================================================== */
.opportunities { background: var(--gold); padding: 4rem 0; }
.opportunities h2 { font-size: 2rem; font-weight: 800; color: var(--black); margin-bottom: 0.5rem; }
.opportunities p { color: rgba(0,0,0,0.7); margin-bottom: 1.5rem; }
.opp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.opp-stat { text-align: center; }
.opp-stat .number { font-size: 2.5rem; font-weight: 900; color: var(--black); }
.opp-stat .label { font-size: 0.875rem; color: rgba(0,0,0,0.7); font-weight: 600; }

/* ===================================================
   GROUP ENTITIES SECTION
=================================================== */
.group-section { background: var(--black); color: var(--white); padding: 5rem 0; }
.entity-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem 2rem; border-radius: var(--radius); transition: var(--transition);
}
.entity-card:hover { background: rgba(255,255,255,0.1); }
.entity-icon {
  width: 4rem; height: 4rem; background: rgba(244,196,48,0.2);
  border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; transition: var(--transition);
}
.entity-card:hover .entity-icon { background: var(--gold); }
.entity-icon svg { width: 2rem; height: 2rem; color: var(--gold); transition: var(--transition); }
.entity-card:hover .entity-icon svg { color: var(--black); }
.entity-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.entity-card p { color: var(--gray-400); line-height: 1.7; margin-bottom: 1.5rem; }
.entity-link { color: var(--gold); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.entity-link:hover { color: var(--white); }

/* ===================================================
   WHY US / STATS SECTION
=================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 5rem; }
.stat-box { text-align: center; padding: 1.5rem; background: var(--gray-50); border-radius: var(--radius); }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--gold); margin-bottom: 0.25rem; }
.stat-label { font-size: 0.875rem; color: var(--gray-600); font-weight: 600; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1.5rem; }
.feature-icon {
  width: 4rem; height: 4rem; background: rgba(244,196,48,0.1);
  border-radius: 9999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-icon svg { width: 2rem; height: 2rem; color: var(--gold); }
.feature-item h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-item p { color: var(--gray-600); line-height: 1.7; }

/* ===================================================
   BLOG SECTION
=================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.blog-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 1.5rem; }
.blog-category {
  display: inline-block; background: rgba(244,196,48,0.15); color: var(--gold);
  font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.75rem;
  border-radius: 9999px; margin-bottom: 0.75rem;
}
.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card-body h3 a:hover { color: var(--gold); }
.blog-card-body p { color: var(--gray-600); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.blog-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--gray-400); }
.blog-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* Blog Page */
.blog-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; align-items: center; justify-content: space-between; }
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600;
  background: var(--white); color: var(--gray-600); border: 1.5px solid var(--gray-200);
  cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.blog-search {
  position: relative; width: 260px;
}
.blog-search input {
  width: 100%; padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1.5px solid var(--gray-200); border-radius: 0.5rem;
  font-size: 0.875rem; outline: none; transition: var(--transition);
}
.blog-search input:focus { border-color: var(--gold); }
.blog-search svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--gray-400); }

/* ===================================================
   NEWSLETTER SECTION
=================================================== */
.newsletter-section { background: var(--gold); padding: 4rem 0; }
.newsletter-card {
  background: var(--white); border-radius: 1.25rem;
  box-shadow: var(--shadow-xl); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; max-width: 56rem; margin: 0 auto;
}
.newsletter-img { position: relative; min-height: 280px; }
.newsletter-img img { width: 100%; height: 100%; object-fit: cover; }
.newsletter-img-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.newsletter-img-overlay h3 { font-size: 1.75rem; font-weight: 800; color: var(--white); text-align: center; }
.newsletter-form-area { padding: 2.5rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.newsletter-form-area p { color: var(--gray-600); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-form input {
  padding: 0.75rem 1.25rem; border: 1.5px solid var(--gray-200);
  border-radius: 0.5rem; font-size: 0.9rem; outline: none; transition: var(--transition);
}
.newsletter-form input:focus { border-color: var(--gold); }

/* ===================================================
   CONTACT SECTION
=================================================== */
.contact-section { padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1.5rem; }
.contact-info p { color: var(--gray-600); margin-bottom: 2rem; line-height: 1.7; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item-icon {
  width: 3rem; height: 3rem; background: rgba(244,196,48,0.1);
  border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 1.4rem; height: 1.4rem; color: var(--gold); }
.contact-item strong { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.contact-item span { color: var(--gray-600); font-size: 0.9rem; }
.contact-form { background: var(--white); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-xl); }
.contact-form h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--gray-200);
  border-radius: 0.5rem; font-size: 0.9rem; font-family: inherit;
  transition: var(--transition); outline: none; color: var(--gray-800);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,196,48,0.15); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===================================================
   PAGE HERO (inner pages)
=================================================== */
.page-hero {
  background: var(--black); color: var(--white);
  padding: 8rem 0 4rem; text-align: center; margin-top: 0;
}
.page-hero-img {
  position: relative; height: 28rem; margin-top: 4rem;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.page-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-img-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
}
.page-hero-img .page-hero-content { position: relative; z-index: 1; padding: 2rem; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 800; margin-bottom: 1rem; }
.page-hero p { font-size: 1.15rem; color: var(--gray-300); max-width: 600px; margin: 0 auto; }

/* Breadcrumbs */
.breadcrumbs { padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); background: var(--white); }
.breadcrumbs ul { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.breadcrumbs li { color: var(--gray-400); display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li a { color: var(--gray-600); }
.breadcrumbs li a:hover { color: var(--gold); }
.breadcrumbs li:last-child { color: var(--gold); font-weight: 600; }

/* ===================================================
   ABOUT PAGE
=================================================== */
.about-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.value-card {
  background: var(--gray-50); padding: 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 4px solid var(--gold);
}
.value-card svg { width: 2.5rem; height: 2.5rem; color: var(--gold); margin-bottom: 1rem; }
.value-card h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--gray-600); font-size: 0.9rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-card img { width: 100%; height: 16rem; object-fit: cover; filter: grayscale(1); transition: var(--transition); }
.team-card:hover img { filter: grayscale(0); }
.team-card-body { padding: 1.25rem; }
.team-card-body h3 { font-weight: 700; font-size: 1.1rem; }
.team-card-body span { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card {
  background: rgba(255,255,255,0.1); padding: 2rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
}
.testimonial-card svg { width: 2.5rem; height: 2.5rem; color: var(--gold); opacity: 0.5; margin-bottom: 1rem; }
.testimonial-card p { color: var(--gray-300); font-style: italic; margin-bottom: 1.5rem; }
.testimonial-card .author { color: var(--gold); font-weight: 700; }

/* ===================================================
   SERVICES PAGE
=================================================== */
.services-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.service-detail-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
}
.service-detail-card:hover { box-shadow: var(--shadow-xl); }
.service-detail-img { position: relative; height: 16rem; overflow: hidden; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-detail-card:hover .service-detail-img img { transform: scale(1.08); }
.service-detail-img-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); transition: var(--transition); }
.service-detail-card:hover .service-detail-img-overlay { background: rgba(0,0,0,0.2); }
.service-detail-header {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.service-detail-header .icon-wrap {
  width: 3rem; height: 3rem; background: var(--gold);
  border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
}
.service-detail-header .icon-wrap svg { width: 1.5rem; height: 1.5rem; color: var(--black); }
.service-detail-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.service-detail-body { padding: 2rem; }
.service-detail-body p { color: var(--gray-600); margin-bottom: 1.5rem; line-height: 1.7; }

/* ===================================================
   WHY US PAGE
=================================================== */
.why-hero-img { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 5rem; }
.why-hero-img img { width: 100%; height: 25rem; object-fit: cover; }
.why-hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex; align-items: flex-end; padding: 2.5rem 3rem;
}
.why-hero-img-overlay h2 { font-size: 2rem; font-weight: 800; color: var(--white); max-width: 40rem; }
.why-hero-img-overlay p { color: rgba(255,255,255,0.85); margin-top: 0.75rem; }

/* ===================================================
   PROPERTIES PAGE
=================================================== */
.properties-page-header { background: var(--black); color: var(--white); padding: 8rem 0 3rem; text-align: center; }
.properties-filters {
  background: var(--white); padding: 1.5rem 2rem;
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 3rem;
}
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; align-items: end; }
.filter-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--gray-600); margin-bottom: 0.4rem; }
.filter-field select,
.filter-field input {
  width: 100%; padding: 0.6rem 0.9rem; border: 1.5px solid var(--gray-200);
  border-radius: 0.5rem; font-size: 0.875rem; outline: none; transition: var(--transition);
}
.filter-field select:focus,
.filter-field input:focus { border-color: var(--gold); }

/* ===================================================
   PROPERTY DETAIL PAGE
=================================================== */
.property-detail { padding: 7rem 0 4rem; }
.property-detail-header { margin-bottom: 2rem; }
.property-detail-header h1 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; margin-bottom: 0.75rem; }
.property-detail-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--gray-500); font-size: 0.9rem; }
.property-detail-meta span { display: flex; align-items: center; gap: 0.4rem; }
.property-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 0.75rem; border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; height: 450px; }
.property-gallery img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery-side { display: grid; grid-rows: 1fr 1fr; gap: 0.75rem; height: 100%; }
.property-gallery-side img { height: 100%; }
.property-detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.property-info-card, .property-contact-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem;
}
.property-features { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.property-feature-tag {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  padding: 0.35rem 1rem; border-radius: 9999px; font-size: 0.85rem; color: var(--gray-700);
}

/* ===================================================
   MAP PAGE
=================================================== */
.map-page { padding-top: 4.5rem; height: 100vh; display: flex; flex-direction: column; }
#properties-map { flex: 1; width: 100%; }

/* ===================================================
   LOGIN PAGE
=================================================== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gray-50); padding: 2rem; }
.login-card { background: var(--white); padding: 3rem 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-xl); width: 100%; max-width: 420px; }
.login-card .logo { text-align: center; font-size: 1.75rem; font-weight: 800; color: var(--gold); margin-bottom: 0.5rem; }
.login-card h2 { text-align: center; font-size: 1.4rem; font-weight: 700; margin-bottom: 2rem; }

/* ===================================================
   FOOTER
=================================================== */
#site-footer { background: var(--black); color: var(--white); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { font-size: 1.5rem; font-weight: 800; color: var(--gold); display: block; margin-bottom: 1rem; }
.footer-brand p { color: var(--gray-400); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-section h4 { font-size: 1.05rem; font-weight: 700; color: var(--gold); margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--gray-400); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-entity { margin-bottom: 1rem; }
.footer-entity strong { color: var(--white); font-size: 0.9rem; display: block; }
.footer-entity span { color: var(--gray-500); font-size: 0.8rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.footer-contact-item svg { width: 1.1rem; height: 1.1rem; color: var(--gold); flex-shrink: 0; margin-top: 0.15rem; }
.footer-contact-item span { color: var(--gray-400); font-size: 0.875rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0; text-align: center; color: var(--gray-500); font-size: 0.875rem;
}

/* Newsletter widget in footer */
.newsletter-widget { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter-widget input {
  flex: 1; padding: 0.6rem 1rem; border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
  color: var(--white); font-size: 0.875rem; outline: none;
}
.newsletter-widget input::placeholder { color: var(--gray-500); }
.newsletter-widget input:focus { border-color: var(--gold); }
.newsletter-widget button {
  background: var(--gold); color: var(--black); padding: 0.6rem 1.2rem;
  border-radius: 0.5rem; font-weight: 700; font-size: 0.875rem; transition: var(--transition);
}
.newsletter-widget button:hover { background: var(--white); }

/* ===================================================
   ANIMATIONS
=================================================== */
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

.fade-in-up { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Intersection Observer animation classes */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .property-detail-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .about-mission { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .newsletter-card { grid-template-columns: 1fr; }
  .newsletter-img { display: none; }
  .opp-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .property-gallery { grid-template-columns: 1fr; height: auto; }
  .property-gallery-side { display: none; }
  .blog-filters { flex-direction: column; align-items: flex-start; }
  .blog-search { width: 100%; }
}

/* ===================================================
   RESPONSIVE COMPLET — Mobile / Tablette / Desktop
   Breakpoints: 480px | 768px | 1024px | 1280px
=================================================== */

/* ─── TABLETTE (max 1024px) ─── */
@media (max-width: 1024px) {

  /* Container */
  .container { padding: 0 1.25rem; }

  /* Header */
  #site-header { padding: 0.75rem 0; }
  .site-logo { font-size: 1.25rem; }

  /* Homepage grids */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .svc-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem; }
  .prop-grid3 { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem; }
  .group-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .blog-grid3 { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem; }
  .why-num-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why us */
  .why-grid { grid-template-columns: 1fr !important; gap: 2rem; }

  /* CTA / Newsletter */
  .cta-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .nl-box { grid-template-columns: 1fr !important; }
  .nl-img { min-height: 200px; }

  /* Archive properties */
  .archive-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Single property */
  .property-detail-grid { grid-template-columns: 1fr !important; }
  .property-features-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 2rem; }

  /* Map */
  .map-sidebar { width: 320px; }
}

/* ─── MOBILE LARGE (max 768px) ─── */
@media (max-width: 768px) {

  /* Base */
  body { font-size: 15px; }
  .container { padding: 0 1rem; }
  .sec, section { padding: 3rem 0 !important; }

  /* Header nav */
  .nav-desktop { display: none !important; }
  .nav-mobile-toggle { display: flex !important; }

  /* Hero */
  .hero { min-height: 100svh; padding-top: 4rem; }
  .hero-title { font-size: 2.5rem !important; }
  .hero-sub { font-size: 1.2rem !important; }
  .hero-text { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .btn-gold-lg, .btn-outline-lg { width: 100%; justify-content: center; }
  .btn-ghost-lg { padding-left: 0; }

  /* Quick search */
  .qs-wrap { margin-top: -2rem; }
  .qs-box { padding: 1.25rem; border-radius: 0.85rem; }
  .qs-form { flex-direction: column; }
  .qs-form select, .qs-form input[type=number] { width: 100%; min-width: unset; }
  .qs-submit { width: 100%; justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem; }
  .stat-card { padding: 1.25rem; }
  .stat-num { font-size: 1.75rem; }

  /* Services */
  .svc-grid { grid-template-columns: 1fr !important; }
  .svc-card { padding: 1.5rem; }

  /* Properties */
  .prop-grid3 { grid-template-columns: 1fr !important; }
  .archive-grid { grid-template-columns: 1fr !important; }

  /* Group */
  .group-grid { grid-template-columns: 1fr !important; }

  /* Why us */
  .why-grid { grid-template-columns: 1fr !important; }
  .why-num-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .why-num { padding: 1.25rem; }

  /* Blog */
  .blog-grid3 { grid-template-columns: 1fr !important; }
  .blog-card-img { height: 180px; }

  /* Newsletter */
  .nl-box { grid-template-columns: 1fr !important; border-radius: 1rem; }
  .nl-img { min-height: 160px; }
  .nl-form { padding: 1.5rem; }
  .nl-row { flex-direction: column; }
  .nl-row input, .nl-btn { width: 100%; }

  /* CTA Contact */
  .cta-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .cta-row2 { grid-template-columns: 1fr !important; }
  .cta-form { padding: 1.5rem; }

  /* Section titles */
  .section-title-center h2 { font-size: 1.75rem !important; }
  .section-title-center { margin-bottom: 2rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.75rem; }
  .footer-brand .logo { font-size: 1.5rem; }

  /* Page hero */
  .page-hero { padding: 5rem 0 2.5rem !important; }
  .page-hero h1 { font-size: 2rem !important; }

  /* Single property */
  .property-detail-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .property-gallery { grid-template-columns: 1fr !important; }
  .property-gallery-side { display: none; }
  .property-features-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* About */
  .about-mission { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: 1fr !important; }
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Map */
  .map-page-wrapper { padding-top: 4rem; }
  .map-sidebar {
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    z-index: 50;
    transition: left 0.3s ease;
  }
  .map-sidebar.open { left: 0; }
  .map-mobile-toggle { display: flex !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }

  /* Dashboard */
  .dashboard-body { flex-direction: column !important; }
  .dash-sidebar {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    flex-direction: row !important;
    overflow-x: auto;
    padding: 0.5rem !important;
    gap: 0.25rem !important;
  }
  .dash-nav-link { flex-direction: column !important; font-size: 0.7rem !important; padding: 0.5rem !important; gap: 0.2rem !important; min-width: 60px; text-align: center; }
  .dash-nav-link i { font-size: 1.1rem !important; }
  .dash-main { padding: 1rem !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  .stats-dash-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Login */
  .login-wrap { grid-template-columns: 1fr !important; max-width: 420px; }
  .login-left { display: none !important; }
  .login-right { padding: 2rem 1.5rem !important; border-radius: 1rem !important; }
}

/* ─── MOBILE PETIT (max 480px) ─── */
@media (max-width: 480px) {

  /* Hero */
  .hero-title { font-size: 2rem !important; }
  .hero-sub { font-size: 1rem !important; }

  /* Stats 1 colonne sur très petit écran */
  .stats-grid { grid-template-columns: 1fr !important; }

  /* Why numbers 1 colonne */
  .why-num-grid { grid-template-columns: 1fr !important; }
  .why-num { padding: 1rem; }

  /* Team 1 colonne */
  .team-grid { grid-template-columns: 1fr !important; }

  /* Dashboard sidebar scroll */
  .dash-nav-link span { display: none !important; }
  .dash-nav-link { min-width: 45px !important; padding: 0.6rem 0.4rem !important; }

  /* Features grid 1 col */
  .property-features-grid { grid-template-columns: 1fr !important; }

  /* Buttons full width */
  .hero-btns .btn-ghost-lg { width: 100%; justify-content: center; }

  /* Section padding réduit */
  .sec { padding: 2.5rem 0 !important; }

  /* Font sizes */
  .section-title-center h2 { font-size: 1.5rem !important; }
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.4rem !important; }
}

/* ─── GRAND ÉCRAN (min 1280px) ─── */
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
  .hero-title { font-size: 5.5rem !important; }
  .prop-grid3 { grid-template-columns: repeat(3, 1fr) !important; }
  .svc-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .blog-grid3 { grid-template-columns: repeat(3, 1fr) !important; }
  .stats-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ─── UTILITAIRES RESPONSIVE ─── */
.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

/* Fix overflow horizontal global */
html, body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

