/* ============================================ */
/* CSS - DiJi Gestion Véhicules */
/* ============================================ */

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

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a2e;
    line-height: 1.5;
    scroll-behavior: smooth;
}

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --primary-soft: #ecfdf5;
    --accent: #34d399;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 12px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--gray-800);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-demo {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-demo:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.05));
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

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

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

.hero p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
}

.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    margin-bottom: 1.5rem;
}

.price-tag span {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.price-tag small {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.btn-outline {
    border: 2px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.hero-image {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(5, 150, 105, 0.02));
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl);
}

/* Section Fonctionnalités */
.features {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header .subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Section Tarifs avec paiement intégré */
.pricing {
    padding: 5rem 0;
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.pricing-card.selected {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, white, var(--primary-soft));
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, white, var(--primary-soft));
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h4 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.price {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-500);
}

.old-price {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.discount-badge {
    text-align: center;
    display: inline-block;
    width: 100%;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.period {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.unlimited-badge {
    text-align: center;
    display: inline-block;
    width: 100%;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.unlimited-badge i {
    color: var(--primary);
    margin-right: 0.25rem;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.pricing-features li i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Formulaire de souscription */
.subscribe-form {
    margin-top: 3rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.subscribe-form h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.subscribe-form p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.methods {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.method-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.method-btn:hover {
    border-color: var(--primary);
}

.method-btn.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.method-btn i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.3rem;
}

.method-btn .name {
    font-weight: 600;
    font-size: 0.8rem;
}

.method-btn .number {
    font-size: 0.7rem;
    color: var(--gray-500);
}

.method-btn.mtn i { color: #ffb300; }
.method-btn.airtel i { color: #e30613; }

.instructions-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary);
    display: none;
}

.instructions-box.show {
    display: block;
}

.ref-code {
    background: var(--primary-soft);
    padding: 0.8rem;
    border-radius: 0.5rem;
    text-align: center;
    margin: 0.8rem 0;
    border: 1px dashed var(--primary);
}

.ref-code span {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: monospace;
    color: var(--primary);
}

.btn-subscribe {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-subscribe:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-subscribe:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

/* Modal confirmation */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    display: none;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.btn-close {
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

/* Section CTA */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-cta-wa {
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    transition: all 0.2s;
}

.btn-cta-wa:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0 2rem;
}

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

.footer-brand .logo-img-footer {
    width: 50px;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary);
}

.special-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--primary-soft);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.special-note p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.special-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .features-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero p {
        margin: 0 auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .methods {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .features-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-cta-wa {
        margin-left: 0;
        margin-top: 1rem;
    }
}