/*--------------------------------------------------
 # Footer Styles
--------------------------------------------------*/

/*--------------------------------------------------
 # Modern Footer
--------------------------------------------------*/

/*--------------------------------------------------
 # Modern Footer with Animations
--------------------------------------------------*/
.modern-footer {
    background: #4527a0; 
    color: #fff;
    padding: 2rem 0 1.2rem; 
    position: relative;
}

.modern-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; /* Centrer verticalement pour un look plus compact */
    margin-bottom: 1rem; /* Marge minimale */
}

.modern-footer .footer-logo {
    flex: 1;
    max-width: 260px;
}

.modern-footer .footer-logo img {
    max-width: 90px; /* Taille encore plus ru00e9duite */
    margin-bottom: 0.2rem; /* Marge minimale */
}

.modern-footer .footer-links {
    flex: 1;
    max-width: 200px;
}

.modern-footer .footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Gap ru00e9duit entre les liens sociaux */
    flex: 1;
    max-width: 280px;
}

/* Liens sociaux animu00e9s */
.animated-social-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.3rem; /* Padding ru00e9duit */
    border-radius: 5px;
    overflow: hidden;
    background: transparent;
}

.animated-social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.animated-social-link .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.animated-social-link:hover .icon-container {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.animated-social-link .social-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
    transition: all 0.3s ease;
}

.animated-social-link .link-text {
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.5s ease, opacity 0.3s ease, margin-left 0.3s ease;
    white-space: nowrap;
    margin-left: 0;
    background: transparent;
    display: flex;
    align-items: center;
    transform: translateY(1px); /* Ajustement fin de la position verticale */
}

.animated-social-link:hover .link-text {
    max-width: 250px;
    opacity: 1;
    margin-left: 1rem;
    transform: translateY(1px); /* Maintenir le du00e9calage vertical */
}

/* Light beam animation effect - Creates a moving highlight across links when hovered */
.animated-social-link:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.7s ease;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.animated-social-link:hover:after {
    left: 130%;
    opacity: 0.8;
}

/* Typing animation for social links - Creates typewriter effect when hovering */
.animated-social-link .typing-content {
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
    width: 0;
    overflow: hidden;
    position: relative;
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.95rem;
    border-right: 2px solid transparent;
    line-height: 1;
}

/* LinkedIn specific typing animation */
.linkedin-link .typing-content {
    width: 0;
    overflow: hidden;
}

.linkedin-link:hover .typing-content {
    animation: typingLinkedin 1.2s steps(14) forwards, blink 0.7s step-end infinite alternate;
    width: auto;
}

/* Email specific typing animation */
.email-link .typing-content {
    width: 0;
    overflow: hidden;
}

.email-link:hover .typing-content {
    animation: typingEmail 1.5s steps(23) forwards, blink 0.7s step-end infinite alternate;
    width: auto;
}

/* Animation keyframes for LinkedIn typing effect */
@keyframes typingLinkedin {
    from { width: 0; }
    to { width: 100%; }
}

/* Animation keyframes for Email typing effect */
@keyframes typingEmail {
    from { width: 0; }
    to { width: 100%; }
}

/* Cursor blinking animation for typing effect */
@keyframes blink {
    from { border-right-color: #fff; }
    to { border-right-color: transparent; }
}

/* LinkedIn specific styling - Blue accent color */
.linkedin-link .icon-container {
    background: rgba(10, 102, 194, 0.2);
}

.linkedin-link:hover .icon-container {
    background: rgba(10, 102, 194, 0.4);
}

/* Email specific styling - Red accent color */
.email-link .icon-container {
    background: rgba(234, 67, 53, 0.2);
}

.email-link:hover .icon-container {
    background: rgba(234, 67, 53, 0.4);
}

/* Style de base pour les liens du footer */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* Ru00e9duction de l'espacement */
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem; /* Taille encore plus ru00e9duite */
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    display: inline-block;
    padding: 2px 0;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-links a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.footer-links a:hover:before {
    width: 100%;
}

/* Copyright et politique de confidentialitu00e9 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.footer-bottom p {
    width: 100%;
    margin: 0;
    text-align: center;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-logo p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive styles */
@media (max-width: 992px) {
    .modern-footer .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modern-footer .footer-logo,
    .modern-footer .footer-links,
    .modern-footer .footer-contact-links {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-bottom a {
        margin-left: 0;
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .modern-footer {
        padding: 1.5rem 0 1rem;
    }
    
    .animated-social-link {
        width: 100%;
    }
    
    .animated-social-link .link-text {
        opacity: 1;
        max-width: 250px;
        margin-left: 1rem;
    }
    
    .animated-social-link .icon-container {
        width: 30px;
        height: 30px;
    }
    
    .animated-social-link .social-icon {
        width: 18px;
        height: 18px;
    }
}
