/* ============================================================
   15 000 Logements – SABLUX Côte d'Ivoire
   Front-end CSS – World-class Premium Design
   ============================================================ */

:root {
    --primary: #8F4396;
    --primary-dark: #6d3373;
    --primary-light: #b06ab8;
    --primary-glow: rgba(143,67,150,.25);
    --gray: #B1B3B6;
    --gray-dark: #2d2d3a;
    --gray-light: #f8f9fc;
    --blue: #0068B0;
    --blue-light: #e8f4fd;
    --orange: #F59331;
    --yellow: #FFCA30;
    --white: #ffffff;
    --black: #111118;
    --success: #10b981;
    --danger: #ef4444;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 3px rgba(0,0,0,.04);
    --shadow: 0 4px 24px rgba(0,0,0,.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,.08);
    --shadow-lg: 0 16px 64px rgba(0,0,0,.1);
    --shadow-xl: 0 24px 80px rgba(0,0,0,.14);
    --shadow-glow: 0 8px 40px var(--primary-glow);
    --ease-out: cubic-bezier(.16,1,.3,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --ease-smooth: cubic-bezier(.4,0,.2,1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--gray-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .3s var(--ease-smooth); }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ============================================================
   CUSTOM CURSOR GLOW (subtle)
   ============================================================ */
.cursor-glow {
    position: fixed; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none; z-index: 0; opacity: 0;
    transition: opacity .6s var(--ease-smooth);
    transform: translate(-50%, -50%);
    filter: blur(40px);
}
body:hover .cursor-glow { opacity: .4; }

/* ============================================================
   NAVIGATION – Glassmorphism
   ============================================================ */
.main-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transition: all .5s var(--ease-out);
}
.main-nav.scrolled {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 12px rgba(0,0,0,.06);
    border-bottom-color: rgba(0,0,0,.06);
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}

.nav-brand { display: flex; align-items: center; position: relative; }
.nav-logo {
    height: 52px; width: auto;
    transition: opacity .4s ease;
    object-fit: contain;
}
.nav-logo:hover { opacity: .85; }
.nav-logo-white { opacity: 1; }
.nav-logo-dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.main-nav.scrolled .nav-logo-white { opacity: 0; }
.main-nav.scrolled .nav-logo-dark { opacity: 1; }

.nav-menu { list-style: none; display: flex; gap: 4px; align-items: center; }
.nav-menu li a {
    display: block; padding: 10px 18px; font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,.85); border-radius: 50px;
    transition: all .3s var(--ease-smooth);
    position: relative;
}
.main-nav.scrolled .nav-menu li a { color: var(--gray-dark); }
.main-nav.scrolled .nav-menu li a:hover { color: var(--primary); }
.nav-menu li a::after {
    content: ''; position: absolute; bottom: 6px; left: 50%; width: 0; height: 2px;
    background: var(--primary); border-radius: 2px;
    transition: all .3s var(--ease-out);
    transform: translateX(-50%);
}
.nav-menu li a:hover { color: #fff; }
.nav-menu li a:hover::after { width: 20px; }
.nav-cta-client {
    background: var(--primary) !important; color: var(--white) !important; font-weight: 600;
    padding: 10px 20px !important; font-size: 13px !important;
    display: inline-flex !important; align-items: center; gap: 6px;
}
.nav-cta-client::after { display: none !important; }
.nav-cta-client:hover {
    background: var(--primary-dark) !important; color: var(--white) !important;
    transform: translateY(-1px); box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 28px; height: 20px; position: relative; z-index: 1001;
}
.nav-toggle span {
    display: block; width: 100%; height: 2px; background: #fff;
    position: absolute; left: 0; border-radius: 2px;
    transition: all .4s var(--ease-out);
}
.main-nav.scrolled .nav-toggle span { background: var(--gray-dark); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.nav-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.nav-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px); z-index: 999;
    opacity: 0; pointer-events: none;
    transition: opacity .4s var(--ease-smooth);
}
.nav-overlay.active { opacity: 1; pointer-events: all; }

/* ============================================================
   HERO – Immobilier SABLUX
   ============================================================ */
.hero-section {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center;
    background: #0a0a18;
    overflow: hidden;
}

/* Background image slider with Ken Burns */
.hero-bg-slider {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg-slide {
    position: absolute; inset: -20px;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
    animation: kenBurns 20s ease infinite alternate;
}
.hero-bg-slide.active { opacity: 1; }

@keyframes kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    50%  { transform: scale(1.08) translate(-1%, -1%); }
    100% { transform: scale(1.04) translate(1%, 0); }
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(10,10,24,.75) 0%, rgba(10,10,24,.50) 40%, rgba(10,10,24,.55) 70%, rgba(10,10,24,.85) 100%),
        linear-gradient(135deg, rgba(143,67,150,.15) 0%, transparent 50%, rgba(0,104,176,.1) 100%);
}

.hero-content {
    position: relative; z-index: 3; max-width: 800px; padding: 0 24px;
    display: flex; flex-direction: column; align-items: center;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 22px; border-radius: 50px;
    background: rgba(245,147,49,.12);
    border: 1px solid rgba(245,147,49,.3);
    color: #F59331; font-size: 11px; font-weight: 700;
    margin-bottom: 28px; letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.hero-badge i { color: #F59331; font-size: 12px; }

.hero-title {
    font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: var(--white);
    line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px;
    text-shadow: 0 2px 24px rgba(0,0,0,.3);
}

.hero-subtitle {
    font-size: clamp(14px, 1.6vw, 17px); color: rgba(255,255,255,.6);
    margin-bottom: 36px; font-weight: 400; max-width: 580px;
    line-height: 1.8;
}

/* Stats bar */
.hero-stats {
    display: flex; align-items: center; gap: 0;
    margin-top: 36px; padding: 20px 36px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}
.hero-stat { text-align: center; padding: 0 24px; }
.hero-stat-value {
    font-size: 22px; font-weight: 800; color: #fff;
    letter-spacing: -.5px;
}
.hero-stat-label {
    font-size: 11px; color: rgba(255,255,255,.45);
    margin-top: 3px; font-weight: 500; letter-spacing: .3px;
}
.hero-stat-divider {
    width: 1px; height: 36px; background: rgba(255,255,255,.12);
    flex-shrink: 0;
}

/* Trust indicators */
.hero-trust {
    display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
    margin-top: 28px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.hero-trust-item {
    display: flex; align-items: center; gap: 7px;
    color: rgba(255,255,255,.4); font-size: 12px; font-weight: 500;
    letter-spacing: .3px;
}
.hero-trust-item i {
    color: rgba(245,147,49,.7); font-size: 13px;
}

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-hero {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 30px; border-radius: 10px; font-size: 14px; font-weight: 600;
    transition: all .3s ease; cursor: pointer;
    border: 1px solid transparent; text-decoration: none;
    letter-spacing: .2px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #8F4396, #6d3373);
    color: var(--white); border-color: transparent;
    box-shadow: 0 4px 20px rgba(143,67,150,.3);
}
.btn-hero-primary:hover {
    background: linear-gradient(135deg, #a04da8, #8F4396);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(143,67,150,.4);
    color: var(--white);
}

.btn-hero-outline {
    background: rgba(255,255,255,.06); color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35);
    color: var(--white); transform: translateY(-2px);
}

.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 3;
}
.hero-scroll a {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(255,255,255,.3); font-size: 10px; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase;
    text-decoration: none;
}
.hero-scroll a span { display: none; }
.hero-scroll a i { font-size: 16px; animation: scrollBounce 2.5s ease infinite; }
.hero-scroll a:hover { color: rgba(255,255,255,.6); }

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: .4; }
    50% { transform: translateY(6px); opacity: .8; }
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero-stats { flex-wrap: wrap; padding: 16px 20px; gap: 12px; }
    .hero-stat { padding: 0 16px; }
    .hero-stat-divider { display: none; }
    .hero-stat-value { font-size: 18px; }
    .hero-trust { gap: 16px; }
}

/* ============================================================
   SECTIONS – Premium spacing & typography
   ============================================================ */
.section { padding: 120px 0; position: relative; }

.section-title {
    font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; color: var(--black);
    text-align: center; margin-bottom: 16px; letter-spacing: -0.5px;
    line-height: 1.15;
}
.section-title .accent { color: var(--primary); }
.section-title::after {
    content: ''; display: block; width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--blue));
    border-radius: 3px; margin: 20px auto 0;
}
.section-desc {
    text-align: center; max-width: 640px; margin: 0 auto 56px;
    color: #6b7280; font-size: 17px; line-height: 1.8;
}

/* Alternating section backgrounds */
.section-about { background: var(--white); }
.section-video { background: var(--gray-light); }
.section-financing { background: var(--white); }
.section-gallery { background: var(--gray-light); }
.section-map {
    background: #f0f0f3;
    padding-bottom: 100px;
}
.section-form { background: var(--gray-light); }
.section-faq { background: var(--white); }

/* ============================================================
   ABOUT – Split layout with floating card
   ============================================================ */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center; margin-bottom: 64px;
}
.about-text p {
    font-size: 17px; line-height: 2; color: #555;
}
.about-image { position: relative; }
.about-image img {
    border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
    transition: transform .6s var(--ease-out);
}
.about-image:hover img { transform: scale(1.02); }
.about-image::after {
    content: ''; position: absolute; inset: -8px;
    border: 2px solid var(--primary); border-radius: calc(var(--radius-xl) + 8px);
    opacity: .15; z-index: -1;
}

.about-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-item {
    text-align: center; padding: 32px 16px;
    background: var(--white); border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: var(--shadow);
    transition: all .4s var(--ease-out);
    position: relative; overflow: hidden;
}
.stat-item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--blue));
    transform: scaleX(0); transition: transform .5s var(--ease-out);
    transform-origin: left;
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-number {
    display: block; font-size: 40px; font-weight: 800;
    background: linear-gradient(135deg, #8F4396, #6b7280);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1;
}
.stat-label { font-size: 13px; color: var(--gray); font-weight: 600; margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   VIDEO – Cinematic frame
   ============================================================ */
.video-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); margin-top: 32px;
}
.video-wrapper::before {
    content: ''; position: absolute; inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    border-radius: calc(var(--radius-xl) + 2px); z-index: -1;
}
.video-wrapper iframe, .video-wrapper video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: none; border-radius: var(--radius-xl);
}

/* ============================================================
   FINANCING – Glass cards with hover effects
   ============================================================ */
.financing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px; margin-top: 56px;
}
.financing-card {
    background: var(--white); border-radius: var(--radius-xl);
    padding: 44px 36px; position: relative; overflow: hidden;
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: var(--shadow);
    transition: all .5s var(--ease-out);
}
.financing-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--orange));
    opacity: 0; transition: opacity .4s;
}
.financing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.financing-card:hover::before { opacity: 1; }

.financing-icon {
    width: 68px; height: 68px; border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 26px; margin-bottom: 24px;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: transform .4s var(--ease-spring);
}
.financing-card:hover .financing-icon { transform: scale(1.1) rotate(-3deg); }
.financing-card h3 { font-size: 22px; font-weight: 700; color: var(--black); margin-bottom: 12px; }
.financing-card p { color: #6b7280; line-height: 1.75; margin-bottom: 20px; font-size: 15px; }

.btn-link {
    color: var(--primary); font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .3s var(--ease-out);
}
.btn-link i { transition: transform .3s var(--ease-spring); }
.btn-link:hover { gap: 6px; }
.btn-link:hover i { transform: translateX(4px); }

/* ============================================================
   GALLERY – Immersive Swiper
   ============================================================ */
.gallery-swiper { margin-top: 40px; padding-bottom: 56px; }
.gallery-swiper .swiper-slide { border-radius: var(--radius-xl); overflow: hidden; }
.gallery-item {
    display: block; position: relative; overflow: hidden;
    border-radius: var(--radius-xl); aspect-ratio: 4/3;
}
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 50%);
    opacity: 0; transition: opacity .4s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
    color: var(--white) !important;
    background: var(--primary);
    width: 48px; height: 48px; border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: all .3s var(--ease-spring);
}
.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after { font-size: 16px; font-weight: 700; }
.gallery-swiper .swiper-button-prev:hover,
.gallery-swiper .swiper-button-next:hover { transform: scale(1.1); background: var(--primary-dark); }
.gallery-swiper .swiper-pagination-bullet { width: 10px; height: 10px; background: var(--gray); opacity: .4; transition: all .3s; }
.gallery-swiper .swiper-pagination-bullet-active { background: var(--primary); opacity: 1; width: 28px; border-radius: 5px; }

/* ============================================================
   STATS / COUNTERS – Gradient background with glass cards
   ============================================================ */
.section-stats {
    background: linear-gradient(160deg, #1a0a2e 0%, var(--primary-dark) 40%, var(--primary) 70%, var(--blue) 100%);
    color: var(--white); position: relative; overflow: hidden;
}
.section-stats::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2l2 3.5-2 3z'/%3E%3C/g%3E%3C/svg%3E");
}
.section-stats .section-title { color: var(--white); }
.section-stats .section-title::after { background: linear-gradient(90deg, var(--yellow), var(--orange)); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; position: relative; z-index: 1; }
.counter-card {
    text-align: center; padding: 40px 20px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-xl);
    transition: all .4s var(--ease-out);
}
.counter-card:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.counter-icon {
    font-size: 32px; margin-bottom: 16px;
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,202,48,.15);
    display: flex; align-items: center; justify-content: center;
    margin-left: auto; margin-right: auto;
    color: var(--yellow);
}
.counter-number { font-size: 52px; font-weight: 800; color: var(--white); line-height: 1; letter-spacing: -1px; }
.counter-label { font-size: 14px; color: rgba(255,255,255,.65); margin-top: 10px; font-weight: 500; letter-spacing: .5px; }

/* ============================================================
   MAP – Modern card with filters
   ============================================================ */
.sablux-map {
    height: 560px; border-radius: var(--radius-xl);
    box-shadow: 0 8px 40px rgba(0,0,0,.1); margin-top: 24px; z-index: 1;
    border: 1px solid rgba(0,0,0,.06);
}

.map-filters {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    margin-top: 32px; padding: 16px 24px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,.04);
}
.map-filter-select {
    padding: 10px 16px; border: 1px solid #e0e0e5; border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 13px; color: var(--gray-dark);
    background: var(--white); cursor: pointer;
    transition: all .3s ease; min-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 32px;
}
.map-filter-select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px var(--primary-glow); }
.btn-filter-reset {
    padding: 10px 20px; background: var(--gray-light); border: 1px solid #e0e0e5;
    border-radius: var(--radius-sm); font-family: var(--font); font-size: 13px;
    cursor: pointer; transition: all .3s ease; color: #6b7280;
    font-weight: 500;
}
.btn-filter-reset:hover { border-color: var(--primary); color: var(--primary); background: rgba(143,67,150,.04); }

.map-legend {
    display: flex; gap: 24px; justify-content: center; margin-top: 20px;
    font-size: 12px; color: #6b7280; font-weight: 500;
}
.legend-item { display: flex; align-items: center; gap: 7px; }
.legend-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
    box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}
.legend-upcoming { background: var(--orange); }
.legend-progress { background: var(--primary); }
.legend-delivered { background: var(--success); }

/* Leaflet custom popups */
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; box-shadow: var(--shadow-xl) !important; border: none !important; }
.leaflet-popup-content { margin: 0 !important; padding: 0 !important; min-width: 260px; }
.leaflet-popup-tip { box-shadow: var(--shadow-md) !important; }
.sablux-popup { padding: 0; }
.sablux-popup img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.sablux-popup-body { padding: 16px 20px; }
.sablux-popup h4 { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.sablux-popup p { font-size: 13px; color: #6b7280; margin-bottom: 10px; line-height: 1.6; }
.sablux-popup .popup-badge {
    display: inline-block; padding: 3px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 600; color: var(--white); margin-bottom: 10px;
}
.popup-badge-upcoming { background: var(--orange); }
.popup-badge-in_progress { background: var(--primary); }
.popup-badge-delivered { background: var(--success); }
.sablux-popup .popup-cta {
    display: block; text-align: center; padding: 10px; background: var(--primary);
    color: var(--white); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
    transition: all .3s var(--ease-smooth);
}
.sablux-popup .popup-cta:hover { background: var(--primary-dark); color: var(--white); }

/* Map marker styles */
.sablux-marker { background: none !important; border: none !important; }
.sablux-marker-wrap {
    position: relative; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
}
.sablux-marker-dot {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.9);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    position: relative; z-index: 2; cursor: pointer;
}
.sablux-marker-wrap:hover .sablux-marker-dot { transform: scale(1.25); }
.sablux-marker-pulse {
    position: absolute; inset: 0; border-radius: 50%;
    opacity: .35; z-index: 1;
    animation: markerPulse 2.5s ease-out infinite;
}
@keyframes markerPulse {
    0% { transform: scale(.7); opacity: .4; }
    70% { transform: scale(2); opacity: 0; }
    100% { transform: scale(2); opacity: 0; }
}

.leaflet-control-zoom a {
    color: var(--primary) !important; border-radius: var(--radius-sm) !important;
    background: var(--white) !important; border-color: #e0e0e5 !important;
}
.leaflet-control-zoom a:hover { background: var(--primary) !important; color: var(--white) !important; border-color: var(--primary) !important; }

/* ============================================================
   FORM – Elevated card with glow
   ============================================================ */
.form-card {
    max-width: 820px; margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl); padding: 56px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,.04);
    position: relative;
}
.form-card::before {
    content: ''; position: absolute; inset: -1px;
    background: linear-gradient(135deg, var(--primary-glow), transparent, rgba(0,104,176,.1));
    border-radius: calc(var(--radius-xl) + 1px); z-index: -1;
    opacity: 0; transition: opacity .5s;
}
.form-card:focus-within::before { opacity: 1; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600; color: #374151;
    margin-bottom: 8px; letter-spacing: .3px;
}
.form-input {
    width: 100%; padding: 15px 20px; border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px;
    transition: all .3s var(--ease-smooth); color: var(--black); background: var(--white);
}
.form-input:focus {
    border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-input.error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(239,68,68,.1); }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; display: block; min-height: 16px; }

.btn-submit {
    width: 100%; padding: 18px; border: none; border-radius: var(--radius-sm);
    font-size: 17px; font-weight: 700; cursor: pointer; font-family: var(--font);
    margin-top: 12px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: all .4s var(--ease-spring);
}
.btn-submit::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--blue));
    opacity: 0; transition: opacity .4s;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--primary-glow);
}
.btn-submit:hover::before { opacity: 1; }
.btn-submit span { position: relative; z-index: 1; }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.form-success { text-align: center; padding: 56px 24px; }
.form-success i {
    font-size: 72px; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--success), #059669);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.form-success h3 { font-size: 22px; color: var(--black); font-weight: 600; line-height: 1.5; }

/* ============================================================
   FAQ – Elegant accordion
   ============================================================ */
.faq-search {
    max-width: 520px; margin: 0 auto 40px; position: relative;
}
.faq-search i {
    position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 16px;
}
.faq-search input {
    width: 100%; padding: 16px 24px 16px 52px; border: 2px solid #e5e7eb;
    border-radius: 60px; font-family: var(--font); font-size: 15px;
    transition: all .3s var(--ease-smooth); background: var(--gray-light);
}
.faq-search input:focus {
    border-color: var(--primary); outline: none; background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white); border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,.06);
    transition: all .3s var(--ease-smooth);
    overflow: hidden;
}
.faq-item:hover { border-color: rgba(143,67,150,.15); }
.faq-item.open { border-color: var(--primary); box-shadow: 0 4px 20px var(--primary-glow); }
.faq-item.hidden { display: none; }

.faq-question {
    width: 100%; padding: 22px 28px; background: none; border: none;
    font-family: var(--font); font-size: 16px; font-weight: 600;
    color: var(--black); cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; text-align: left;
    transition: color .3s;
}
.faq-question:hover { color: var(--primary); }
.faq-question i {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gray-light); display: flex; align-items: center; justify-content: center;
    transition: all .4s var(--ease-out); color: var(--primary);
    font-size: 12px; flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-question i {
    transform: rotate(180deg);
    background: var(--primary); color: var(--white);
}
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height .5s var(--ease-out);
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer p { padding: 0 28px 24px; color: #6b7280; line-height: 1.85; font-size: 15px; }

/* ============================================================
   CTA – Bold gradient
   ============================================================ */
.section-cta { padding: 100px 0; position: relative; overflow: hidden; }
.section-cta::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--white); margin-bottom: 16px; letter-spacing: -0.5px; }
.cta-text { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER – Dark premium
   ============================================================ */
.main-footer {
    background: linear-gradient(180deg, #0f0f1a 0%, #111118 100%);
    color: rgba(255,255,255,.6); padding: 80px 0 0;
    position: relative; overflow: hidden;
}
.main-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--blue), transparent);
}

.footer-background-effects {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.footer-shape {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.15;
}
.footer-shape-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -250px; left: -100px;
    animation: float 20s ease-in-out infinite;
}
.footer-shape-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
    bottom: -200px; right: -50px;
    animation: float 25s ease-in-out infinite reverse;
}
.footer-shape-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; padding-bottom: 56px; }
.footer-brand h3 {
    font-size: 26px; font-weight: 800; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--white), rgba(255,255,255,.7));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-brand p { margin-bottom: 6px; font-size: 14px; }
.footer-description {
    margin-top: 16px; margin-bottom: 20px;
    line-height: 1.8; font-size: 14px;
    color: rgba(255,255,255,.7);
    max-width: 500px;
}
.footer-brand a { color: rgba(255,255,255,.6); }
.footer-brand a:hover { color: var(--primary-light); }
.footer-address { margin-top: 12px; }

.footer-links h4, .footer-social h4 {
    font-size: 14px; font-weight: 700; color: var(--white);
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1.5px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,.5); font-size: 14px;
    transition: all .3s var(--ease-smooth);
    display: inline-flex; align-items: center; gap: 0;
}
.footer-links a:hover { color: var(--primary-light); gap: 4px; }
.footer-links a::before { content: ''; width: 0; height: 1px; background: var(--primary-light); transition: width .3s; }
.footer-links a:hover::before { width: 12px; }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,.06); display: flex; align-items: center;
    justify-content: center; color: rgba(255,255,255,.5); font-size: 16px;
    transition: all .4s var(--ease-spring);
    border: 1px solid rgba(255,255,255,.06);
}
.social-links a:hover {
    background: var(--primary); color: var(--white);
    transform: translateY(-3px); box-shadow: 0 8px 24px var(--primary-glow);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0;
    text-align: center; font-size: 13px; color: rgba(255,255,255,.35);
    position: relative; z-index: 1;
}

/* Légende de la carte */
.map-legend {
    background: white; padding: 20px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    margin-top: 24px; margin-bottom: 24px;
}
.map-legend h4 {
    font-size: 14px; font-weight: 700;
    margin-bottom: 16px; color: var(--gray-dark);
    text-transform: uppercase; letter-spacing: 1px;
}
.legend-items {
    display: flex; gap: 24px; flex-wrap: wrap;
}
.legend-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--gray-dark);
}
.legend-marker {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: transform .2s var(--ease-smooth);
}
.legend-item:hover .legend-marker {
    transform: scale(1.1);
}

/* ============================================================
   LIGHTBOX – Cinematic
   ============================================================ */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0;
    transition: opacity .4s var(--ease-smooth);
}
.lightbox.active { opacity: 1; }
.lightbox img {
    max-width: 90vw; max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 32px 80px rgba(0,0,0,.5);
    transform: scale(.9);
    transition: transform .5s var(--ease-spring);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 24px; right: 28px;
    background: rgba(255,255,255,.1); border: none;
    color: var(--white); font-size: 28px; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s var(--ease-smooth);
    backdrop-filter: blur(10px);
}
.lightbox-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0; transform: scale(.9);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-children > * { transition-delay: calc(var(--i, 0) * 100ms); }

/* Old class compat */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: var(--white); flex-direction: column;
        padding: 100px 28px 28px;
        box-shadow: -8px 0 40px rgba(0,0,0,.1);
        transition: right .5s var(--ease-out);
        gap: 4px; z-index: 1000;
    }
    .nav-menu.open { right: 0; }
    .nav-menu li a {
        padding: 14px 20px; font-size: 16px; border-radius: var(--radius-sm);
    }
    .nav-menu li a::after { display: none; }
    .nav-menu li:last-child a { text-align: center; margin-top: 8px; }

    .hero-title { letter-spacing: -0.3px; }
    .hero-ctas { flex-direction: column; align-items: center; gap: 10px; }
    .btn-hero { width: 100%; max-width: 280px; justify-content: center; padding: 12px 24px; font-size: 13px; }
    .hero-trust { gap: 12px 20px; margin-top: 28px; padding-top: 20px; }
    .hero-trust-item { font-size: 11px; }

    .form-card { padding: 32px 24px; }
    .form-grid-2 { grid-template-columns: 1fr; }

    .map-filters { flex-direction: column; padding: 16px; }
    .map-filter-select { min-width: 100%; }
    .sablux-map { height: 380px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .counter-number { font-size: 40px; }
    .counter-card { padding: 28px 12px; }

    .section { padding: 80px 0; }
}

@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-number { font-size: 32px; }
    .stat-item { padding: 20px 12px; }
    .section { padding: 64px 0; }
    .hero-badge { font-size: 11px; padding: 6px 14px; }
    .financing-grid { grid-template-columns: 1fr; }
    .map-legend { flex-wrap: wrap; gap: 16px; }
}

/* ============================================================
   ACCESSIBILITY & UTILITIES
   ============================================================ */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero-section { animation: none; }
    .reveal, .reveal-left, .reveal-right, .reveal-scale, .fade-in { opacity: 1; transform: none; }
}
