/* ==========================================
   FOOTER STYLES
   ========================================== */

.site-footer {
    background: linear-gradient(180deg, #E8EEF2 0%, #F5F8FA 100%);
    padding: 1px 0 0;
    color: #1a1a1a;
}


.footer-container {
    /* max-width: 1300px; */
    margin: 25px var(--section-margin);
    /* padding: 20px 50px; */
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
    gap: 40px;
}


/* Contact Section */
.footer-contact {
    background: linear-gradient(30deg, var(--primary-blue) 0%, #34BCED 140%);
    color: white;
    border-radius: 16px;
    padding: 0 28px;
    width: 100%;
}


.footer-contact h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
}

.footer-contact p {
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 10px;
    color: white;

}


.footer-contact a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Adresse Section */
.footer-adresse h3 {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.footer-adresse {
    text-align: center;
}

.footer-links {
    text-align: center;
}

.footer-partners {
    text-align: center;
}

.footer-adresse p {
    font-size: 12px;
    color: #4a4a4a;
    line-height: 1.2;
}

.footer-horaires-title {
    margin-top: 15px !important;
    font-size: 15px;
    font-weight: 400;

}




/* Liens utiles */
.footer-adresse h3,
.footer-links h3,
.footer-partners h3 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.footer-links ul,
.footer-partners ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-partners li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-partners a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1B7FB8;

}

/* Weather Card */
.footer-weather {
    display: flex;
    justify-content: flex-end;
}

/* Footer Bottom */
.footer-bottom {
    background: white;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    position: relative;
}


.footer-bottom-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-copyright p {
    flex-grow: 1;
    margin: 0;
    color: #666;
    font-size: 14px;
}

.footer-logo img {
    flex-grow: 1;
    height: auto;
    width: auto;
    /* position: relative; */
    top: -30px;
}

.footer-atd p {
    font-size: 9px;
}

.footer-minister-logo {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: start;
    max-width: 250px;
    gap: 15px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: start;
    max-width: 250px;
    gap: 15px;
    margin-top: 10px;
}

.footer-social a {
    color: var(--subtitle-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}


.footer-social a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-atd img {
    height: 40px;
    width: auto;
}


.scroll-top-btn:hover {
    background: #155a87;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27, 127, 184, 0.4);
}

@media (min-width: 1024px) {
    .footer-adresse {
        text-align: start;
    }

    .footer-links {
        text-align: start;
    }

    .footer-partners {
        text-align: start;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        /* padding: 20px 10px; */
        justify-items: center;
        justify-content: center;

    }



    .footer-weather {
        grid-column: span 3;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        /* padding: 20px 10px; */
        justify-items: center;
        margin: 0 calc(var(--section-margin) * 0.5);
    }

    .footer-social {
        justify-content: center;
        max-width: 100%;
    }

    .footer-weather {
        justify-content: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        /* espace maîtrisé */
        text-align: center;
        height: 140px;
    }



    .footer-logo {
        order: 1;
    }

    .footer-copyright {
        order: 2;
    }

    .footer-atd {
        order: 4;
    }

    .footer-logo img {

        top: 2px;
    }

    .footer-copyright p,
    .footer-logo img,
    .footer-minister-logo {
        flex-grow: 0;
        /* IMPORTANT */
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 0;
    }

    .footer-container {
        /* padding: 0 15px; */
        margin-bottom: 40px;
    }

    .footer-contact {
        padding: 20px;
    }

    .footer-logo img {

        top: 5px;
    }

    .footer-copyright p,
    .footer-logo img,
    .footer-minister-logo {
        flex-grow: 0;
        /* IMPORTANT */
    }


}