/* ============================================================
   IMMO COBAN — Feuille de style principale
   Palette : Ivoire #FAFAF8 | Or #C8833A | Bleu nuit #1A2B45
   ============================================================ */

:root {
  --gold:        #C8833A;
  --gold-light:  #E8A45C;
  --gold-dark:   #A0622A;
  --navy:        #1A2B45;
  --navy-light:  #2C4470;
  --ivory:       #FAFAF8;
  --warm-gray:   #F4F2EE;
  --text-muted:  #6B7280;
  --border:      #E5E2DC;
  --white:       #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(26,43,69,.08);
  --shadow-lg:   0 12px 40px rgba(26,43,69,.14);
  --transition:  all .25s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 { font-family: var(--font-display); }
.fw-500 { font-weight: 500; }

/* ========== TOPBAR ========== */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  padding: 8px 0;
}
.topbar a { color: rgba(255,255,255,.8); text-decoration: none; transition: var(--transition); }
.topbar a:hover { color: var(--gold-light); }
.topbar-cta {
  background: var(--gold);
  color: white !important;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: .75rem;
}
.topbar-cta:hover { background: var(--gold-dark) !important; color: white !important; }

/* ========== NAVBAR ========== */
#mainNav {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: var(--transition);
}
#mainNav.scrolled { box-shadow: var(--shadow-lg) !important; }

/* Logo */
.logo-immo { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); font-weight: 700; letter-spacing: -.5px; }
.logo-coban { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); font-weight: 700; }
.logo-tagline { font-size: .6rem; letter-spacing: 3px; color: var(--text-muted); text-transform: uppercase; margin-top: -4px; }

/* Nav links */
.navbar-nav .nav-link { color: var(--navy) !important; font-weight: 500; font-size: .9rem; padding: 8px 14px; border-radius: 8px; transition: var(--transition); }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { background: var(--warm-gray); color: var(--gold) !important; }
.nav-franchise { color: var(--gold) !important; font-weight: 600; }

/* Buttons */
.btn-gold { background: var(--gold); color: white; border: 2px solid var(--gold); border-radius: 8px; font-weight: 600; transition: var(--transition); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: white; transform: translateY(-1px); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 2px solid var(--gold); border-radius: 8px; font-weight: 600; transition: var(--transition); }
.btn-outline-gold:hover { background: var(--gold); color: white; }
.text-gold { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }

/* Mega menu */
.mega-dropdown { position: static; }
.mega-menu {
  width: 100%;
  left: 0 !important;
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0;
  margin-top: 0;
  border-top: 3px solid var(--gold);
}
.mega-title { font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 12px; }
.mega-link { display: block; color: var(--navy); font-size: .87rem; padding: 5px 0; text-decoration: none; transition: var(--transition); }
.mega-link:hover { color: var(--gold); padding-left: 4px; }
.mega-promo { background: var(--warm-gray); border-radius: var(--radius); padding: 24px; border-left: 4px solid var(--gold); }

/* Dropdown normal */
.dropdown-menu { border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius); border-top: 3px solid var(--gold); }
.dropdown-item { font-size: .88rem; padding: 8px 16px; transition: var(--transition); }
.dropdown-item:hover { background: var(--warm-gray); color: var(--gold); }


/* ========== HERO ========== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1580834341580-8c17a3a630ca?w=1600&q=75') center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,43,69,.82) 0%, rgba(26,43,69,.55) 60%, rgba(200,131,58,.2) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 80px 0 60px; }

.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: white;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
}

/* Search box */
.search-box {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-tabs { border-bottom: 1px solid var(--border); padding: 0 16px; }
.search-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: .87rem;
  padding: 14px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: var(--transition);
}
.search-tabs .nav-link.active,
.search-tabs .nav-link:hover { color: var(--gold); border-bottom-color: var(--gold); background: transparent; }
.search-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.search-input, .search-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  padding: 10px 14px;
  transition: var(--transition);
}
.search-input:focus, .search-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,131,58,.12);
  outline: none;
}
.btn-search { padding: 10px 16px; font-size: .9rem; }

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 20px 32px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 8px 28px; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: white; font-family: var(--font-display); line-height: 1; }
.stat-label { display: block; font-size: .72rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.stat-sep { width: 1px; background: rgba(255,255,255,.2); margin: 8px 0; }

/* ========== MAROC CRÉDIT BANNER ========== */
.marocredit-banner {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 28px 0;
  color: white;
}
.mc-logo {
  width: 64px; height: 64px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: white;
  margin: 0 auto;
  font-family: var(--font-display);
  box-shadow: 0 0 0 6px rgba(200,131,58,.2);
}
.mc-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-light); margin-bottom: 4px; }
.mc-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 4px; }
.mc-desc { font-size: .87rem; color: rgba(255,255,255,.7); margin: 0; }
.btn-mc-cta {
  background: var(--gold);
  color: white;
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 24px;
  transition: var(--transition);
}
.btn-mc-cta:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: white; }

/* ========== SECTIONS COMMUNES ========== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin: 0; }
.section-sub { color: var(--text-muted); margin-top: 8px; font-size: .95rem; }
.bg-light-warm { background: var(--warm-gray); }

/* Filter pills */
.filter-pill {
  background: white;
  border: 2px solid var(--border);
  color: var(--navy);
  border-radius: 24px;
  padding: 6px 20px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-pill:hover, .filter-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

/* ========== ANNONCE CARD ========== */
.annonce-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.annonce-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.annonce-img-wrap { position: relative; overflow: hidden; height: 220px; }
.annonce-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.annonce-card:hover .annonce-img { transform: scale(1.05); }
.annonce-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: white;
  padding: 3px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
}
.annonce-type {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(26,43,69,.8); color: white;
  padding: 2px 8px; border-radius: 20px;
  font-size: .72rem; backdrop-filter: blur(4px);
}
.annonce-fav {
  position: absolute; top: 12px; right: 12px;
  background: white;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--text-muted);
}
.annonce-fav:hover { background: var(--gold); color: white; }
.annonce-body { padding: 18px 20px 20px; }
.annonce-title { font-size: .97rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-family: var(--font-display); }
.annonce-ville { font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }
.annonce-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; }
.annonce-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; }
.annonce-prix { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.annonce-prix small { font-size: .72rem; font-weight: 400; color: var(--text-muted); font-family: var(--font-body); }

/* Hidden filter */
.annonce-card-wrap.hidden { display: none; }

/* ========== SERVICES ========== */
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold); }
.service-card-gold { background: var(--navy); color: white; border-color: var(--navy); }
.service-card-gold h5, .service-card-gold p { color: white; }
.service-icon {
  width: 64px; height: 64px;
  background: var(--warm-gray);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--gold);
  transition: var(--transition);
}
.service-card-gold .service-icon { background: rgba(200,131,58,.15); }
.service-card:hover .service-icon { background: var(--gold); color: white; }
.service-card-gold:hover .service-icon { background: var(--gold); }
.service-card h5 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: .87rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.service-card-gold p { color: rgba(255,255,255,.7); }
.service-link { color: var(--gold); font-size: .85rem; font-weight: 600; text-decoration: none; transition: var(--transition); }
.service-link:hover { color: var(--gold-dark); }

/* ========== FRANCHISE SECTION ========== */
.franchise-avantages .fav-item { padding: 6px 0; font-size: .9rem; }
.franchise-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
.fv-card {
  background: var(--warm-gray);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
}
.fv-card strong { display: block; font-size: 1.1rem; color: var(--navy); }
.fv-card span { display: block; font-size: .78rem; color: var(--text-muted); }
.fv-map {
  grid-column: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 200px;
}
.fv-map img { width: 100%; height: 100%; object-fit: contain; }
.fv-map-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,43,69,.3);
  color: white;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* ========== TÉMOIGNAGES ========== */
.temoignage-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  height: 100%;
}
.temo-stars { color: var(--gold); font-size: .85rem; margin-bottom: 12px; }
.temo-texte { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.temo-auteur { display: flex; align-items: center; gap: 12px; }
.temo-avatar {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ========== VILLES ========== */
.ville-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  aspect-ratio: 3/4;
}
.ville-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ville-card:hover img { transform: scale(1.08); }
.ville-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26,43,69,.8) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 12px;
  color: white;
}
.ville-overlay strong { font-size: .95rem; font-family: var(--font-display); }
.ville-overlay span { font-size: .72rem; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ========== NEWSLETTER ========== */
.newsletter-box {
  background: var(--warm-gray);
  border-radius: var(--radius);
  padding: 36px 40px;
  border: 1px solid var(--border);
}
.newsletter-input { border: 1.5px solid var(--border); border-radius: 8px; }
.newsletter-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,131,58,.1); }
.newsletter-select { max-width: 160px; border: 1.5px solid var(--border); border-radius: 8px; }

/* ========== FOOTER ========== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }
.footer-brand { text-decoration: none; }
.footer-brand .logo-immo { color: white; font-size: 1.3rem; }
.footer-brand .logo-coban { color: var(--gold-light); font-size: 1.3rem; }
.footer-desc { font-size: .87rem; color: rgba(255,255,255,.55); max-width: 320px; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  margin-right: 8px;
  transition: var(--transition);
  font-size: .95rem;
}
.footer-socials a:hover { background: var(--gold); color: white; }
.footer-mc-badge { display: flex; align-items: center; gap: 8px; }
.mc-badge-label { font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; }
.mc-badge-link { color: var(--gold-light); font-weight: 600; font-size: .87rem; text-decoration: none; transition: var(--transition); }
.mc-badge-link:hover { color: var(--gold); }
.footer-title { color: white; font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 16px; font-family: var(--font-body); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: .87rem; color: rgba(255,255,255,.6); }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-section { min-height: 100vh; }
  .hero-stats { gap: 0; padding: 16px; }
  .stat-item { padding: 8px 14px; }
  .stat-sep { display: none; }
  .newsletter-box { padding: 24px 20px; }
  .newsletter-select { display: none; }
  .fv-card { padding: 14px; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeinup { animation: fadeInUp .6s ease both; }
