﻿/* Structure principale et couleur de fond du footer */
#adv-footer {
    padding: 30px 20px;
    font-family: sans-serif;
    background: linear-gradient(180deg, #143b5e 50%, #062033 100%);
    color: #e6f3ff;
}

/* Grille flexible pour l'alignement des colonnes du contenu */
.footer-main-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    align-items: flex-start;
}

/* Encart blanc premium pour le logo de la marque */
.footer-logo {
    display: block;
    height: 140px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-left: 30px;
    padding: 8px 18px;
    border-radius: 10px;
    background: #F0F4F8;
    filter: brightness(1.12) saturate(1.08) drop-shadow(0 12px 22px rgba(2, 10, 20, 0.6));
}

/* Positionnement du slogan sous le logo */
.footer-slogan {
    font-style: italic;
    font-size: 1rem;
    color: #cfe8ff;
    transform: translate(48px, 10px);
    padding-top: 20px;
}

/* Section des coordonnées et icônes de contact */
#footer-contact {
    padding: 22px 48px;
    line-height: 1.9;
    color: #e9f5ff;
    min-width: 260px;
}

.contact-line {
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-line span {
    line-height: 2;
    display: inline-block;
}

.footer-icon {
    color: #bfe0ff;
    font-size: 1.1rem;
    line-height: 1;
    min-width: 22px;
}

/* Section des liens utiles et liste de navigation */
#footer-links {
    text-align: right;
    padding: 22px 48px;
    line-height: 1.9;
    min-width: 260px;
}

#footer-contact h3,
#footer-links h3 {
    margin-top: 0;
    text-decoration: underline;
    color: #d7ecff;
}

#footer-links h3 {
    padding-bottom: 20px;
}

#footer-links ul {
    list-style: none;
}

#footer-links li {
    margin-bottom: 12px;
}

#footer-links a {
    text-decoration: none;
    color: #bfe0ff;
}

#footer-links a:hover,
#footer-links a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* Barre de copyright tout en bas */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #000000;
    color: #b9d8ff;
    padding-top: 18px;
}

/* Grille des logos partenaires */
.footer-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: 48px;
    margin-top: 60px;
}

.footer-logos img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    background: #f0f4f8;
}

@media screen and (max-width: 768px) {

    footer,
    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 40px 20px 40px 20px !important;
        box-sizing: border-box !important;
    }

    footer p,
    footer span,
    footer em,
    footer i,
    .footer-container p,
    .footer-container span {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .footer-slogan,
    #footer-logo-block em,
    #footer-header em,
    footer em {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    img[alt*="Adomicilement"],
    .footer-container img,
    #footer-logo-block img,
    footer img {
        margin: 0 auto 20px auto !important;
        display: block !important;
        transform: none !important;
        padding: 0 !important;
    }

    .footer-column,
    .footer-content-block,
    footer>div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 30px !important;
        box-sizing: border-box !important;
    }

    .footer-logos,
    div:has(> img[alt*="Chèque"]) {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .footer-logos img,
    div:has(> img[alt*="Chèque"]) img {
        max-width: 65px !important;
        height: auto !important;
    }

    footer ul,
    .footer-links {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    footer li,
    .footer-links li {
        width: 100% !important;
        text-align: center !important;
    }

    footer a,
    .footer-container a,
    .footer-links a {
        display: block !important;
        text-align: center !important;
        margin: 4px auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    footer h3,
    .footer-title,
    .footer-column h2 {
        margin-top: 10px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-bottom,
    .footer-copyright {
        width: 100% !important;
        text-align: center !important;
        margin-top: 15px !important;
    }
}