/* =========================================================
   FOOTER - SECTION PARTENAIRES
   ========================================================= */

/* Le conteneur des widgets devient une seule colonne */
.footer-widget-area {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 0 0 !important;
}

/* Chaque widget occupe toute la largeur */
.footer-widget-area > .widget,
.footer-widget-area > div,
.footer-widget-area .widget {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Titre NOS PARTENAIRES */
.footer-widget-area .widget:first-child {
    text-align: center !important;
    margin-bottom: 18px !important;
}

/* Le texte du titre */
.footer-widget-area .widget:first-child p {
    text-align: center !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

/* Galerie */
.footer-widget-area .gallery-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Supprime les espaces excessifs autour de la galerie */
.footer-widget-area .gallery-grid,
.footer-widget-area .gallery-grid > * {
    box-sizing: border-box !important;
}

/* Le footer lui-même */
.site-footer {
    width: 100% !important;
}

/* Sur mobile */
@media (max-width: 768px) {
    .footer-widget-area {
        padding: 15px 10px 0 !important;
    }

    .footer-widget-area .widget:first-child {
        margin-bottom: 12px !important;
    }
}

/* Réduction de la hauteur de la galerie partenaires */
.footer-widget-area .gallery-grid img {
    max-height: 120px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* =========================================================
   GALERIE PARTENAIRES — VERSION COMPACTE
   ========================================================= */

/* Réduit fortement la taille des logos */
.footer-widget-area .gallery-grid img {
    height: 65px !important;
    max-height: 65px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
}

/* Réduit l'espace autour de la galerie */
.footer-widget-area .gallery-grid {
    padding: 8px 12px !important;
    margin: 0 auto !important;
}

/* Réduit l'espace au-dessus du titre */
.footer-widget-area {
    padding-top: 10px !important;
}

/* Titre plus discret */
.footer-widget-area .widget:first-child {
    margin-bottom: 8px !important;
}

.footer-widget-area .widget:first-child p {
    margin-bottom: 8px !important;
    font-size: 13px !important;
}

/* Footer plus compact */
.site-footer {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Encore plus compact sur tablette/mobile */
@media (max-width: 768px) {
    .footer-widget-area .gallery-grid img {
        height: 55px !important;
        max-height: 55px !important;
        max-width: 100px !important;
    }

    .footer-widget-area .gallery-grid {
        padding: 5px !important;
    }
}