/* Nouveau design captivant pour les icônes des médias sociaux */
.social-icons {
    display: flex;
    gap: 5px; /* Icônes rapprochées */
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; /* Taille réduite */
    height: 28px; /* Taille réduite */
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(24, 50, 173, 0.8), rgba(0, 142, 57, 0.8));
    color: white;
    font-size: 14px; /* Taille de police adaptée */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease-out;
    pointer-events: none;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
    color: white;
}

.social-icons a:hover::before {
    opacity: 0.3;
    transform: scale(1.5);
    animation: pulse-glow 1.5s infinite;
}

.social-icons a:active {
    transform: scale(0.95);
}

/* Animations différentes pour chaque icône */
.social-icons a:nth-child(1) {
    background: linear-gradient(135deg, #3b5998, #5d7dc4);
    animation: float 3s ease-in-out infinite;
}

.social-icons a:nth-child(2) {
    background: linear-gradient(135deg, #1DA1F2, #65d1ff);
    animation: float 3s ease-in-out infinite 0.5s;
}

.social-icons a:nth-child(3) {
    background: linear-gradient(135deg, #0077B5, #00a0dc);
    animation: float 3s ease-in-out infinite 1s;
}

.social-icons a:nth-child(4) {
    background: linear-gradient(135deg, #E1306C, #F77737);
    animation: float 3s ease-in-out infinite 1.5s;
}

.social-icons a i {
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.social-icons a:hover i {
    animation: pulse-rotate 1s ease infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes pulse-rotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* Adaptation du style social pour le footer */
.footer .social-icons a {
    width: 32px; /* Taille réduite */
    height: 32px; /* Taille réduite */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 16px; /* Taille de police adaptée */
    color: white;
    margin-right: 5px; /* Espacement réduit */
}

.footer .social-icons a:hover {
    background: white;
    color: #0056b3;
    transform: translateY(-5px) scale(1.1) rotate(360deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Style pour corriger le chevauchement dans l'affichage mobile */
@media (max-width: 992px) {
    .header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 15px; /* Augmentation de l'espace entre les éléments */
    }
    
    .social-icons {
        position: static; /* Empêche le positionnement absolu qui cause le chevauchement */
        order: 1;
    }
    
    .menu-toggle {
        position: static; /* Empêche le positionnement absolu */
        order: 2;
    }
}
