/* ===================================
   FOOTER STYLES - Design Figma
   =================================== */

/* Footer Global */
.site-footer {
    background-color: #2d3037;
    color: #ffffff;
    width: 100%;
}

/* Smooth scroll pour toute la page */
html {
    scroll-behavior: smooth;
}

/* Back to the top button - dans le footer */
.back-to-top-link {
    display: inline-block;
    text-decoration: none;
    color: #e86a56;
    transition: opacity 0.3s ease;
    text-align: left;
}

.back-to-top-link:hover {
    opacity: 0.8;
}

.back-to-top-arrow {
    display: block;
    font-size: 80px;
    line-height: 1;
    margin-bottom: 15px;
    font-weight: 300;
}

.back-to-top-text {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;

    @media (max-width: 768px) {
        font-size: 20px;
    }
}

/* Footer Main Section */
.footer-main-section {
    padding: 60px 0 30px;
}


.footer-content {
    padding: 0 0 40px;

    a {
        border: none !important;
    }

    li {
        list-style: none;
    }

    .menu-item-has-children>a {
        font-weight: 600 !important;
    }

    .sub-menu {
        padding-left: 15px;
        padding-top: 15px;

        li {
            margin-bottom: 5px !important;
        }
    }
}

/* Footer Menu List */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin: 0 0 15px 0;
}

.footer-menu-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-menu-list a:hover {
    color: #e86a56;
    border-bottom-color: currentColor;
}

/* Footer Social Networks */
.footer-social-networks {
    margin-top: 30px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    opacity: 0.7;
    color: #e86a56;
}

.social-link i {
    font-size: 28px;
    line-height: 1;
}

.social-link .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.social-link img.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Bouton retour vers le haut fixe (en bas à gauche) */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--wp--preset--color--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    padding: 0;
}

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

.scroll-to-top-btn:hover {
    background-color: #d15542;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px);
}

.scroll-to-top-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 20px 30px;
}

.footer-logo-large {
    flex-shrink: 0;
}

.neos-logo {
    max-width: 150px;
    height: auto;
}

.footer-description {
    flex: 1;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

.footer-description p {
    margin: 0 0 10px;
}

/* Footer Legal */
.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #ffffff;
    font-size: 14px;
}

.copyright p {
    margin: 0;
}

.legal-links {
    display: flex;
}

.legal-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.legal-menu li {
    margin: 0;
}

.legal-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-menu a:hover {
    color: #e86a56;
    border-bottom-color: currentColor;
}

/* Contact Information in Footer */
.footer-contact-info {
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact-info p {
    margin: 5px 0;
    margin-top: 0 !important;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-contact-info a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #e86a56;
    border-bottom-color: currentColor;
}

.entreprise-name {
    font-weight: 600;
    margin-top: 15px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-main-section {
        padding: 40px 35px 20px;

        .container {
            padding: 0;
        }
    }

    .footer-content>div {
        margin-bottom: 30px;
    }

    .footer-content>div:last-child {
        margin-bottom: 0;
    }
}

/* Footer Logo Image */
.footer-logo img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    /* Reasonable default limit */
    object-fit: contain;
}