/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(-45deg, rgba(240, 147, 251, 0.2), rgba(245, 87, 108, 0.2));
    clip-path: polygon(0 100%, 100% 30%, 100% 100%);
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.5);
    color: white;
}

.social-link i {
    position: relative;
    z-index: 2;
}

/* Responsive Mobile - Inverser l'ordre des éléments du footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    /* Pour index.php - Footer simple avec flexbox */
    .footer .container {
        display: flex;
        flex-direction: column;
    }
    
    /* Les logos sociaux passent en premier (order: 1) */
    .social-links {
        order: 1;
        margin: 1rem 0;
    }
    
    /* Le copyright passe en second (order: 2) */
    .footer-copyright {
        order: 2;
        margin-top: 1rem;
    }
    
    /* Pour les autres pages avec row Bootstrap */
    .footer .row {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .footer .row .col-md-6 {
        width: 100%;
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .footer .row .col-md-6:first-child {
        margin-bottom: 0;
        margin-top: 1rem;
    }
    
    /* Centrer les liens sociaux sur mobile */
    .social-links {
        justify-content: center;
    }
    
    /* Réduire la taille des icônes sur mobile */
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Ajuster le texte du copyright */
    .footer-copyright p,
    .footer p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}
