/* ============================================
   CF IMMO - COURTAGE IMMOBILIER PREMIUM
   Mode Dual : Light (default) + Dark toggle
   ============================================ */

/* === LIGHT THEME (default CF Immo) === */
body.cfimmo-page {
  --bg: #FAFAF8;
  --bg-alt: #F3F1ED;
  --surface: #FFFFFF;
  --surface-light: #F9F8F6;
  --border: #E8E6E1;
  --border-hover: #C5A55A;
  --gold: #C5A55A;
  --gold-light: #D4B76A;
  --gold-dim: rgba(197,165,90,.12);
  --teal: #2D6A4F;
  --teal-dim: rgba(45,106,79,.08);
  --white: #1A1A2E;
  --gray: #6B7280;
  --gray-light: #374151;
  --dark: #1A1A2E;
  --radius: 1rem;
  --radius-sm: .5rem;
  --radius-lg: 1.5rem;
  --transition: all .4s cubic-bezier(.23,1,.32,1);
  color: #1A1A2E;
  background: #FAFAF8;
}
body.cfimmo-page ::selection { background: var(--gold); color: #fff; }

/* === DARK THEME (toggle) === */
body.cfimmo-page.dark-mode {
  --bg: #06090f;
  --bg-alt: #0a0f1a;
  --surface: #0d1322;
  --surface-light: #111827;
  --border: rgba(230,168,23,.08);
  --border-hover: rgba(230,168,23,.2);
  --gold: #E6A817;
  --gold-light: #f0c050;
  --gold-dim: rgba(230,168,23,.15);
  --teal: #1BA8A6;
  --teal-dim: rgba(27,168,166,.12);
  --white: #f8fafc;
  --gray: #94a3b8;
  --gray-light: #cbd5e1;
  --dark: #2D3436;
  color: #f8fafc;
  background: #06090f;
}

/* === THEME TOGGLE === */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
body.cfimmo-page .theme-toggle .icon-moon { display: block; }
body.cfimmo-page.dark-mode .theme-toggle .icon-moon { display: none; }
body.cfimmo-page.dark-mode .theme-toggle .icon-sun { display: block; }

/* === NAV OVERRIDE LIGHT === */
body.cfimmo-page .nav {
  background: rgba(250,250,248,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
body.cfimmo-page .nav.scrolled {
  background: rgba(250,250,248,.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.05);
}
body.cfimmo-page .nav-logo-text { color: var(--gold); }
body.cfimmo-page .nav-logo-sub { color: var(--gray); }
body.cfimmo-page .nav-link { color: var(--gray); }
body.cfimmo-page .nav-link:hover { color: var(--dark); }
body.cfimmo-page .nav-link::after { background: var(--gold); }
body.cfimmo-page .nav-link-cta {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}
body.cfimmo-page .nav-link-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
}
body.cfimmo-page .nav-burger span { background: var(--dark); }

/* Dark mode nav */
body.cfimmo-page.dark-mode .nav {
  background: rgba(6,9,15,.92);
}
body.cfimmo-page.dark-mode .nav.scrolled {
  background: rgba(6,9,15,.98);
  box-shadow: none;
  border-bottom: 1px solid rgba(230,168,23,.08);
}
body.cfimmo-page.dark-mode .nav-link { color: #94a3b8; }
body.cfimmo-page.dark-mode .nav-link:hover { color: #f8fafc; }
body.cfimmo-page.dark-mode .nav-link-cta {
  color: var(--gold);
  background: transparent;
  border-color: rgba(230,168,23,.2);
}
body.cfimmo-page.dark-mode .nav-burger span { background: #cbd5e1; }

/* === HERO OVERRIDE === */
body.cfimmo-page .immo-hero-bg {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D3748 40%, #1A1A2E 100%);
}
body.cfimmo-page.dark-mode .immo-hero-bg {
  background: linear-gradient(135deg, #06090f 0%, #0d1a2d 40%, #0a1628 70%, #06090f 100%);
}
body.cfimmo-page .immo-hero-line1 { color: #fff; }
body.cfimmo-page .immo-hero-sub { color: rgba(255,255,255,.7); }
body.cfimmo-page .immo-hero-teaser { color: rgba(255,255,255,.6); }
body.cfimmo-page .immo-hero-teaser strong { color: var(--gold-light); }
body.cfimmo-page .immo-hero-stat-num { color: var(--gold-light); }
body.cfimmo-page .immo-hero-stat-label { color: rgba(255,255,255,.5); }

/* === SECTION OVERRIDES LIGHT === */
body.cfimmo-page .section { background: var(--bg); }
body.cfimmo-page .section-dark { background: var(--bg-alt); border-top: 1px solid var(--border); }
body.cfimmo-page .section-title { color: var(--dark); }
body.cfimmo-page .section-tag { color: var(--gold); }
body.cfimmo-page .section-desc { color: var(--gray); }

/* === CARD SHADOWS LIGHT === */
body.cfimmo-page .immo-card {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-color: var(--border);
}
body.cfimmo-page .immo-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  border-color: var(--gold);
}
body.cfimmo-page .advantage-card {
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
body.cfimmo-page .pricing-card-inner {
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

/* === BUTTON OVERRIDES === */
body.cfimmo-page .btn-primary {
  background: linear-gradient(135deg, var(--dark), #2D3748);
  color: #fff;
  box-shadow: 0 4px 15px rgba(26,26,46,.2);
}
body.cfimmo-page .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(26,26,46,.3);
}
body.cfimmo-page .btn-outline {
  color: var(--dark);
  border-color: var(--border);
}
body.cfimmo-page .btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
body.cfimmo-page.dark-mode .btn-primary {
  background: linear-gradient(135deg, #E6A817, #d4960f);
  color: #06090f;
}
body.cfimmo-page.dark-mode .btn-outline {
  color: #f8fafc;
  border-color: rgba(255,255,255,.2);
}

/* === FOOTER LIGHT === */
body.cfimmo-page .footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
body.cfimmo-page .footer-logo { color: var(--gold); }
body.cfimmo-page .footer-tagline { color: var(--gray); }

/* === SEARCH BAR LIGHT === */
body.cfimmo-page .immo-search {
  background: rgba(26,26,46,.9);
  border-color: rgba(197,165,90,.2);
}
body.cfimmo-page .immo-search-field label { color: rgba(197,165,90,.8); }
body.cfimmo-page .immo-search-field select { color: #fff; }
body.cfimmo-page .immo-search-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
}

/* === PRICING LIGHT === */
body.cfimmo-page .pricing-featured .pricing-card-inner {
  border: 2px solid var(--gold);
  box-shadow: 0 8px 30px rgba(197,165,90,.12);
}
body.cfimmo-page .pricing-amount { color: var(--gold); }
body.cfimmo-page .pricing-features li::before { background: var(--gold); }

/* === HERO IMMOBILIER === */
.immo-hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:6rem 2rem 4rem}
.immo-hero-bg{position:absolute;inset:0;z-index:0;background:linear-gradient(135deg,#06090f 0%,#0d1a2d 40%,#0a1628 70%,#06090f 100%)}
.immo-hero-gradient{position:absolute;inset:0;background:
  radial-gradient(ellipse 60% 40% at 30% 60%,rgba(27,168,166,.08) 0%,transparent 60%),
  radial-gradient(ellipse 50% 50% at 70% 30%,rgba(230,168,23,.06) 0%,transparent 50%)}
.immo-hero-content{position:relative;z-index:2;text-align:center;max-width:900px;margin:0 auto}
.immo-hero-badge{display:inline-block;font-size:.65rem;font-weight:700;letter-spacing:.25em;text-transform:uppercase;color:var(--gold);border:1px solid var(--gold-dim);padding:.4rem 1.2rem;border-radius:2rem;margin-bottom:2rem;backdrop-filter:blur(10px);background:rgba(230,168,23,.05)}
.immo-hero-title{margin-bottom:1.5rem}
.immo-hero-line1{display:block;font-family:'Playfair Display',serif;font-size:clamp(2.5rem,6vw,4.5rem);font-weight:700;color:var(--white);line-height:1.1}
.immo-hero-line2{display:block;font-family:'Playfair Display',serif;font-size:clamp(2rem,5vw,3.5rem);background:linear-gradient(135deg,var(--gold),var(--gold-light));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1.2;margin-top:.3rem}
.immo-hero-sub{font-size:clamp(.85rem,1.6vw,1.05rem);color:var(--gray);line-height:1.8;margin-bottom:2.5rem;font-weight:300;letter-spacing:.03em}

/* === BARRE DE RECHERCHE === */
.immo-search{display:flex;align-items:stretch;background:rgba(13,19,34,.85);backdrop-filter:blur(20px) saturate(1.8);border:1px solid rgba(230,168,23,.15);border-radius:1rem;overflow:hidden;margin-bottom:2.5rem;max-width:800px;margin-left:auto;margin-right:auto}
.immo-search-field{flex:1;padding:1rem 1.2rem;border-right:1px solid rgba(255,255,255,.06);display:flex;flex-direction:column;gap:.3rem}
.immo-search-field:last-of-type{border-right:none}
.immo-search-field label{font-size:.6rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);opacity:.7}
.immo-search-field select{background:transparent;border:none;color:var(--white);font-family:'Inter',sans-serif;font-size:.85rem;font-weight:500;outline:none;cursor:pointer;-webkit-appearance:none;appearance:none;padding-right:1rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0 center}
.immo-search-field select option{background:var(--surface);color:var(--white)}
.immo-search-btn{padding:1rem 2rem;background:linear-gradient(135deg,var(--gold),#d4960f);color:var(--bg);border:none;cursor:pointer;font-family:'Inter',sans-serif;font-size:.85rem;font-weight:700;display:flex;align-items:center;gap:.5rem;white-space:nowrap;transition:var(--transition);letter-spacing:.03em}
.immo-search-btn:hover{filter:brightness(1.15)}

@media(max-width:700px){
  .immo-search{flex-direction:column;border-radius:.8rem}
  .immo-search-field{border-right:none;border-bottom:1px solid rgba(255,255,255,.06);padding:.8rem 1rem}
  .immo-search-btn{justify-content:center;padding:.9rem}
}

/* === HERO STATS === */
.immo-hero-stats{display:flex;align-items:center;gap:2rem;justify-content:center;flex-wrap:wrap;margin-bottom:2rem}
.immo-hero-stat{text-align:center}
.immo-hero-stat-num{display:block;font-family:'Rajdhani',sans-serif;font-size:2rem;font-weight:700;color:var(--gold);line-height:1}
.immo-hero-stat-label{font-size:.65rem;color:var(--gray);letter-spacing:.1em;text-transform:uppercase;font-weight:500}
.immo-hero-stat-sep{width:1px;height:35px;background:linear-gradient(to bottom,transparent,var(--border-hover),transparent)}
.immo-hero-teaser{font-size:.82rem;color:var(--gray);max-width:550px;margin:0 auto;line-height:1.7}
.immo-hero-teaser strong{color:var(--gold);font-weight:600}

/* === PROPERTY CARDS (improved) === */
.immo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}

.immo-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:var(--transition);display:flex;flex-direction:column}
.immo-card:hover{border-color:var(--border-hover);transform:translateY(-4px);box-shadow:0 20px 60px rgba(0,0,0,.4)}
.immo-card.hidden{display:none}

.immo-card-img{position:relative;width:100%;height:220px;overflow:hidden}
.immo-card-img-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;background:linear-gradient(145deg,#0d1a2d,#162035,#0a1628);position:relative;overflow:hidden}
.immo-card-img-placeholder::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(27,168,166,.06),transparent 50%,rgba(230,168,23,.04));z-index:1}
.immo-card-img-placeholder svg{color:rgba(230,168,23,.15);z-index:2}
.immo-card-img-placeholder .immo-card-placeholder-price{font-family:'Rajdhani',sans-serif;font-size:1.6rem;font-weight:700;color:rgba(230,168,23,.25);z-index:2;letter-spacing:.02em}
.immo-card:hover .immo-card-img-placeholder{background:linear-gradient(145deg,#101f35,#1a2940,#0e1d30)}

.immo-card-badge{position:absolute;top:.8rem;left:.8rem;font-size:.55rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;padding:.3rem .7rem;border-radius:1.5rem;backdrop-filter:blur(8px);z-index:3}
.immo-badge-vente{background:rgba(230,168,23,.85);color:var(--bg)}
.immo-badge-location{background:rgba(27,168,166,.85);color:var(--white)}
.immo-badge-premium{background:linear-gradient(135deg,rgba(168,85,247,.9),rgba(124,58,237,.9));color:var(--white)}

.immo-card-body{padding:1.4rem;flex:1;display:flex;flex-direction:column}
.immo-card-type{font-size:.6rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin-bottom:.4rem}
.immo-card-body h3{font-family:'Rajdhani',sans-serif;font-size:1.05rem;font-weight:600;color:var(--white);margin-bottom:.5rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.immo-card-price-main{font-family:'Rajdhani',sans-serif;font-size:1.4rem;font-weight:700;color:var(--gold);margin-bottom:.3rem}
.immo-card-loc{display:flex;align-items:center;gap:.4rem;font-size:.78rem;color:var(--gray);margin-bottom:1rem}
.immo-card-loc svg{flex-shrink:0;color:var(--gold);opacity:.6}

.immo-card-specs{display:flex;gap:.8rem;padding-top:.8rem;border-top:1px solid var(--border);margin-top:auto}
.immo-spec{text-align:center;flex:1;padding:.3rem 0}
.immo-spec-val{display:block;font-family:'Rajdhani',sans-serif;font-size:1.05rem;font-weight:700;color:var(--white)}
.immo-spec-label{font-size:.5rem;color:var(--gray);letter-spacing:.06em;text-transform:uppercase}

.immo-card-cta{display:block;text-align:center;padding:.75rem;margin:1rem 1.4rem 1.4rem;font-size:.75rem;font-weight:600;color:var(--gold);border:1px solid var(--gold-dim);border-radius:var(--radius-sm);transition:var(--transition);text-decoration:none}
.immo-card-cta:hover{background:var(--gold);color:var(--bg)}

@media(max-width:900px){.immo-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.immo-grid{grid-template-columns:1fr}}

/* === ADVANTAGES === */
.advantages-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1.2rem}
.advantage-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem 1.5rem;text-align:center;transition:var(--transition)}
.advantage-card:hover{border-color:var(--border-hover);transform:translateY(-3px);box-shadow:0 15px 40px rgba(0,0,0,.2)}
.advantage-icon{width:56px;height:56px;border-radius:14px;background:var(--gold-dim);display:flex;align-items:center;justify-content:center;color:var(--gold);margin:0 auto 1.2rem}
.advantage-icon-teal{background:var(--teal-dim);color:var(--teal)}
.advantage-card h3{font-family:'Rajdhani',sans-serif;font-size:1rem;font-weight:600;color:var(--white);margin-bottom:.5rem}
.advantage-card p{font-size:.78rem;color:var(--gray);line-height:1.7}

@media(max-width:900px){.advantages-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.advantages-grid{grid-template-columns:1fr}}

/* === PRICING NOTE === */
.pricing-note{text-align:center;font-size:.72rem;color:var(--gray);margin-top:2rem;font-style:italic}

/* === FINAL CTA === */
.immo-final-cta{text-align:center;padding:4rem 2rem;background:linear-gradient(135deg,var(--surface),rgba(230,168,23,.04));border:1px solid rgba(230,168,23,.15);border-radius:var(--radius-lg)}
.immo-final-cta h2{font-family:'Playfair Display',serif;font-size:clamp(1.8rem,4vw,2.5rem);color:var(--white);margin-bottom:1rem}
.immo-final-cta p{font-size:.95rem;color:var(--gray);margin-bottom:2rem;max-width:500px;margin-left:auto;margin-right:auto}
.immo-final-btns{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-bottom:2rem}
.immo-final-trust{font-size:.72rem;color:rgba(148,163,184,.5);letter-spacing:.05em}
.immo-final-trust span{color:var(--gray)}
