:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #e8f5e9;
    --primary-gradient: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    --secondary: #667c6a;
    --bg-main: #ffffff;
    --text-main: #1b261e;
    --text-muted: #667c6a;
    --border-color: #f1f5f1;
    --radius-pill: 50rem;
    --radius-xl: 2.5rem;
    --radius-lg: 1.5rem;
}

/* Force Green Theme */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }

.text-gradient {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Map Fix */
#live-map {
    background-color: #f8fafc;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

/* Leaflet & Map Visual Fixes */
.leaflet-container {
    border-radius: 2rem;
    z-index: 1 !important;
    font-family: inherit;
}

.leaflet-bar a {
    background-color: #fff !important;
    color: var(--primary) !important;
    border: none !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 1rem;
    padding: 0.5rem;
}

.leaflet-popup-tip-container {
    display: none;
}

/* SEO Optimization classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(46, 125, 50, 0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.navbar-brand i {
    color: var(--primary);
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    font-weight: 600;
    color: var(--text-main) !important;
    margin: 0 1rem;
    font-size: 0.95rem;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: white;
    padding: 0.8rem 2.2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.3);
    color: white;
}

.btn-dark-custom {
    background: #1e1e1e;
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    border: none;
    transition: all 0.3s ease;
}

.btn-dark-custom:hover {
    background: #000;
    transform: translateY(-3px);
}

.btn-apk-custom {
    background: #f8fafc;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 700;
}

.btn-apk-custom:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 800;
    border: none;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    background: radial-gradient(circle at 90% 10%, rgba(46, 125, 50, 0.05) 0%, transparent 40%);
}

.bg-soft-primary { background: #e8f5e9; }

.hero-image-container {
    position: relative;
    padding: 20px;
}

.app-mockup {
    border-radius: 40px;
    max-width: 300px;
    transform: rotate(5deg);
    border: 10px solid #1e293b;
    box-shadow: 0 50px 100px -20px rgba(46, 125, 50, 0.2);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.2rem 1.8rem;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-1 { top: 10%; right: -5%; }
.card-2 { bottom: 20%; left: -5%; }

/* Features */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-card {
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-xl);
    background: white;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(46, 125, 50, 0.08);
    border-color: var(--primary-light);
}

.icon-box {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
}

.feature-card h3 {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

/* Gallery / Functions Presentation */
.function-row {
    margin-bottom: 120px;
}

.function-image {
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* Community */
.community-grid {
    position: relative;
}

.testimonial-card {
    position: absolute;
    bottom: -30px;
    right: 0;
    max-width: 350px;
}

/* APK Section */
.apk-download-box {
    background: #f8fafc;
    border-radius: var(--radius-xl);
    padding: 4rem;
    margin-top: 4rem;
    border: 1px solid #e2e8f0;
}

/* Download CTA Section Fix */
.download-section {
    background-color: #f8fafc !important;
    padding: 100px 0;
}

.download-section h2 {
    color: #2e7d32 !important; /* Vert officiel */
    font-weight: 800;
}

.download-section p {
    color: #1b5e20 !important;
    opacity: 0.9;
}

.download-section .btn-white {
    background-color: white !important;
    color: #2e7d32 !important;
    border: 2px solid #2e7d32 !important;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.1) !important;
}

.download-section .btn-outline-white {
    background-color: #2e7d32 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2) !important;
}

.download-section .btn-outline-white:hover {
    background-color: #1b5e20 !important;
    transform: translateY(-3px);
}

/* Footer */
.footer-links a:hover {
    color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section { padding-top: 120px; }
    .hero-text { text-align: center; }
    .hero-text .d-flex { justify-content: center; }
    .app-mockup { max-width: 250px; }
    .testimonial-card { position: relative; bottom: 0; max-width: 100%; margin-top: 2rem; }
    .apk-download-box { padding: 2.5rem; }
}

