/* ==========================================================================
   GLOBAL FOOTER
========================================================================== */
.site-footer {
    background-color: #0F0C29;
    color: #948BB4;
    padding: 80px 5% 40px 5%;
    font-family: 'Typo-Mulish', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Layout Principal --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.brand-col {
    flex: 1.5; 
    max-width: 320px;
}

/* --- Typographie & Espacements --- */
.footer-title {
    font-family: 'Typo-MulishBold', sans-serif;
    color: var(--jaune-rac);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 25px 0;
}

.brand-col p,
.contact-col p,
.footer-contact-info {
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 15px;
}

/* --- Logo & Identité --- */
.footer-logo {
    width: 100%;
    max-width: 300px;
    max-height: 80px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 25px;
    display: block;
}

/* --- Réseaux Sociaux --- */
.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #221F3A;
    color: var(--blanc, #ffffff);
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--jaune-rac);
    color: var(--bleu-rac);
    transform: translateY(-2px);
}

/* --- Liens & Navigation --- */
.links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-col li {
    margin-bottom: 18px;
}

.links-col a,
.contact-col a,
.footer-legal a {
    color: #948BB4;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.links-col a:hover,
.contact-col a:hover,
.footer-legal a:hover {
    color: var(--blanc);
}

/* --- Footer Bottom (Mentions légales) --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 35px;
    border-top: 1px solid #221F3A;
    font-size: 13px;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

/* ==========================================================================
   COMPOSANTS FLOTTANTS
========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--jaune-rac, #FFD54F);
    color: #20183B;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: #FFE48C;
}

/* ==========================================================================
   RESPONSIVE FOOTER
========================================================================== */
@media (max-width: 992px) {
    .brand-col {
        flex: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: row;
        gap: 40px 20px; 
    }

    .brand-col, 
    .contact-col {
        flex: 1 1 100%;
    }

    .links-col {
        flex: 1 1 40%;
        min-width: 130px; 
    }

    .footer-logo {
        max-width: 220px;
        max-height: 60px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 15px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        max-width: 180px;
        max-height: 50px;
        margin-bottom: 20px;
    }
}