/* Responsive Fixes CSS */

/* Fix for hero section title being hidden by fixed header on mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: 120px !important; /* Extra padding to account for fixed header */
    }
    
    .page-hero {
        padding-top: 130px !important; /* Even more padding for inner pages */
    }
    
    .hero-content {
        padding-top: 20px;
    }
    
    /* Ensure hero section has enough height on mobile */
    .hero {
        min-height: 100vh;
        height: auto;
    }
    
    /* Improve readability of hero text on mobile */
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 576px) {
    .hero {
        padding-top: 100px !important;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    /* Ensure buttons stack nicely on small screens */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
}

/* Ensure header is always on top */
.header {
    z-index: 1000;
}
/* Ajoutez ces règles pour corriger l'affichage des cartes statistiques sur mobile */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .hero-stats .stat-item {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .hero-stats .stat-item {
        padding: 1rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }
}
