/**
 * FIX POUR LA GRID DU FOOTER SUR LA HOMEPAGE
 */

/* Restore Bootstrap grid functionality in footer */
#footer .container {
    /* max-width: 1140px !important; */
    padding-right: 15px !important;
    padding-left: 15px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

#footer .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
}

#footer .col-lg-6 {
    position: relative !important;
    width: 100% !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
}

@media (min-width: 992px) {
    #footer .col-lg-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Ensure proper alignment */
#footer .align-items-center {
    align-items: center !important;
}

/* Fix for stats grid */
#footer .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important;
}

/* Fix pour les legal links */
#footer .legal-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    #footer .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 768px) {
    #footer .container {
        max-width: 100% !important;
    }
    
    #footer .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    #footer .stats-grid {
        grid-template-columns: 1fr !important;
    }
}