@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --secondary: #10b981;
    --secondary-bg: #ecfdf5;
    --accent: #f59e0b;
    --accent-bg: #fffbeb;
    --text-dark: #1e293b;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-section: #f8fafc;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--text-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ====== HEADER ====== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 72px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center;
}

.header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 38px; }
.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; }
.logo-geo { color: var(--primary); }
.logo-mairie { color: var(--text-dark); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-body); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

.btn-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff;
    padding: 10px 24px; border-radius: 99px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s; border: none; cursor: pointer;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-cta:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--primary);
    padding: 10px 24px; border-radius: 99px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    border: 2px solid var(--primary); transition: all 0.3s; cursor: pointer;
}
.btn-outline:hover { background: var(--primary-bg); }

/* ====== HERO ====== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--primary-bg) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--secondary-bg); color: var(--secondary);
    padding: 6px 16px; border-radius: 99px;
    font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem; font-weight: 800;
    line-height: 1.15; margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero h1 span { color: var(--primary); }

.hero-subtitle {
    font-size: 1.2rem; color: var(--text-body);
    margin-bottom: 2.5rem; max-width: 480px; line-height: 1.8;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image img {
    width: 100%; max-width: 520px;
    border-radius: 24px;
    filter: drop-shadow(0 20px 40px rgba(37,99,235,0.15));
    animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hero-stats {
    display: flex; gap: 2rem; margin-top: 3rem;
    padding-top: 2rem; border-top: 1px solid var(--border-light);
}

.hero-stat { text-align: center; }
.hero-stat .number { font-family: 'Outfit'; font-size: 2rem; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: 0.85rem; color: var(--text-muted); }

/* ====== SECTIONS ====== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-section); }

.section-header {
    text-align: center; margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--primary); font-weight: 700;
    font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 1rem;
}

.section-header h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: var(--text-body); }

/* ====== FEATURE CARDS ====== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0; transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
}

.icon-blue { background: var(--primary-bg); }
.icon-green { background: var(--secondary-bg); }
.icon-amber { background: var(--accent-bg); }

.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-body); font-size: 0.95rem; }

/* ====== SPLIT SECTIONS (Texte + Image) ====== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-image img {
    width: 100%; max-width: 480px;
    border-radius: 24px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.08));
}

.split-content h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.split-content p { margin-bottom: 1.5rem; font-size: 1.05rem; }

.check-list { list-style: none; }
.check-list li {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 1rem; font-size: 1rem;
}

.check-icon {
    width: 28px; height: 28px; min-width: 28px;
    background: var(--secondary-bg); color: var(--secondary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; margin-top: 2px;
}

/* ====== ADMIN MOCKUP ====== */
.admin-mockup {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.mockup-bar {
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 1rem; border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.mockup-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-section); border-radius: 16px; padding: 1.25rem; text-align: center;
}

.stat-card .value { font-family: 'Outfit'; font-size: 1.8rem; font-weight: 700; color: var(--text-dark); }
.stat-card .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stat-card .value.green { color: var(--secondary); }
.stat-card .value.blue { color: var(--primary); }

.mockup-bars {
    display: flex; align-items: flex-end; gap: 10px; height: 80px; padding: 0 1rem;
}

.bar {
    flex: 1; border-radius: 6px 6px 0 0;
    transition: height 0.6s ease;
}

/* ====== RENTABILITE ====== */
.rent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.rent-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s;
}

.rent-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.rent-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.rent-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--text-dark); }
.rent-card p { color: var(--text-body); font-size: 0.95rem; }

/* ====== CTA FINAL ====== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 80px 0;
    text-align: center;
    border-radius: 0;
}

.cta-section h2 { color: #fff; font-size: 2.5rem; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2.5rem; }

.btn-white {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--primary);
    padding: 14px 32px; border-radius: 99px;
    text-decoration: none; font-weight: 700; font-size: 1.05rem;
    transition: all 0.3s; border: none; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* ====== FOOTER ====== */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-section);
}

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

.footer-info p { color: var(--text-muted); margin-top: 1rem; font-size: 0.95rem; max-width: 300px; }

.footer-links h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center; padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted); font-size: 0.85rem;
}

.footer-bottom a { color: var(--primary); text-decoration: none; }

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .hero-grid, .split, .split-reverse { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { order: -1; }
    .hero-image img { max-width: 360px; margin: 0 auto; }
    .split-image { order: -1; }
    .split-image img { max-width: 360px; margin: 0 auto; }
    .grid-3, .rent-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
    .split-content h2 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 60px 0; }
    .mockup-stats { grid-template-columns: 1fr; }
}
