/* Enhanced Footer Styles */

/* Useful Links Section */
.footer-col ul li a i {
    margin-right: 8px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-col ul li a {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover i {
    transform: translateX(3px);
    color: var(--white);
}

/* Footer Grid - Fixed 4 Column Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Ensure each column stays within bounds */
.footer-col {
    min-width: 0;
    /* Important: allows text to wrap properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* À Propos column - ensure text wraps and limit width */
.footer-col:first-child {
    max-width: 280px;
    /* Limit width to force more line breaks */
}

.footer-col:first-child p {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.6;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Footer Column Animations */
.footer-col:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-col:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-col:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-col:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Social Links */
.social-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Footer Bottom Enhancement */
.footer-bottom {
    animation: fadeIn 1s ease-out 0.8s both;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Spaced copyright layout */
.copyright-spaced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-spaced span:first-child {
    font-weight: 600;
}

.copyright-spaced span:last-child {
    font-style: italic;
}

/* Mobile: stack copyright */
@media (max-width: 576px) {
    .copyright-spaced {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hover effect for all footer links */
.footer ul li a {
    position: relative;
    overflow: hidden;
}

.footer ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer ul li a:hover::before {
    width: 100%;
}

/* Contact Info Icons */
.footer-col p i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col ul li a {
        justify-content: center;
    }

    .footer-col:first-child {
        max-width: 100%;
        /* Remove width constraint on mobile */
    }
}