/* ========================================
   FOOTER ULTRA-MODERNE & COMPACT 2025
   ======================================== */

.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem 2rem 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

/* Pattern géométrique subtil en arrière-plan */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, rgba(102, 126, 234, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(102, 126, 234, 0.03) 87.5%, rgba(102, 126, 234, 0.03)),
        linear-gradient(150deg, rgba(102, 126, 234, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(102, 126, 234, 0.03) 87.5%, rgba(102, 126, 234, 0.03));
    background-size: 80px 140px;
    opacity: 0.3;
    pointer-events: none;
}

/* Ligne lumineuse en haut */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea 50%, transparent);
    animation: shimmerLine 3s infinite;
}

@keyframes shimmerLine {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.footer .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.footer .box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.footer .box:nth-child(1) {
    animation-delay: 0.1s;
    flex: 0 0 auto;
}

.footer .box:nth-child(2) {
    animation-delay: 0.2s;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.footer .box:nth-child(3) {
    animation-delay: 0.3s;
    flex: 0 0 auto;
}

/* Suppression des titres h3 */
.footer .box h3 {
    display: none;
}

/* Liens du footer - version horizontale compacte */
.footer .box a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    white-space: nowrap;
}

.footer .box a::before {
    display: none;
}

.footer .box a:hover {
    color: #ffffff;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Icônes */
.footer .box a i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer .box a:hover i {
    transform: scale(1.15);
}

/* Icône email */
.footer .box a i.fa-envelope {
    color: #667eea;
}

.footer .box a:hover i.fa-envelope {
    color: #764ba2;
}

/* Icône localisation */
.footer .box a i.fa-map-marker-alt {
    color: #667eea;
}

.footer .box a:hover i.fa-map-marker-alt {
    color: #764ba2;
}

/* Icône LinkedIn */
.footer .box a i.fa-linkedin {
    color: #0077b5;
}

.footer .box a:hover i.fa-linkedin {
    color: #ffffff;
}

/* Icône Instagram */
.footer .box a i.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer .box a:hover i.fa-instagram {
    transform: scale(1.15) rotate(-5deg);
}

/* Span dans les liens */
.footer .box a span {
    font-weight: 400;
    font-size: 0.9rem;
}

/* Section des liens légaux - disposition horizontale */
.footer .box:nth-child(2) {
    gap: 0.5rem;
}

.footer .box:nth-child(2) a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.footer .box:nth-child(2) a span {
    text-transform: capitalize;
    font-weight: 400;
    font-size: 0.85rem;
}

/* Séparateurs entre les liens légaux */
.footer .box:nth-child(2) a:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -0.5rem;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* Section réseaux sociaux */
.footer .box:nth-child(3) a {
    font-weight: 500;
}

/* Crédit en bas - version compacte */
.footer .credit {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8a8a8a;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.footer .credit span {
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animation de brillance simplifiée */
.footer .credit span {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animation d'apparition simplifiée */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Version compacte */
@media (max-width: 991px) {
    .footer .flex {
        gap: 2rem;
    }
    
    .footer .box:nth-child(2) {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 1.5rem 1rem;
        margin-top: 3rem;
    }
    
    .footer .flex {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    .footer .box {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer .box:nth-child(2) {
        order: 2;
    }
    
    .footer .box a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .footer .credit {
        margin-top: 1rem;
        padding-top: 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 450px) {
    .footer {
        padding: 1.5rem 1rem 1rem;
    }
    
    .footer .box a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        gap: 0.4rem;
    }
    
    .footer .box a i {
        font-size: 1rem;
    }
    
    .footer .box:nth-child(2) a::after {
        display: none;
    }
    
    .footer .credit {
        font-size: 0.75rem;
    }
}

/* Effet de particules flottantes (optionnel) */
.footer-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Suppression des séparateurs verticaux */
.footer .box::after {
    display: none;
}

/* Badge "Nouveau" pour les nouveaux liens (optionnel) */
.footer .box a .badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(240, 147, 251, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(240, 147, 251, 0);
    }
}
