/**
 * Styles pour le module Réseaux Sociaux - Version bouton d'aide repliable
 */

/* Conteneur principal */
.social-links-block {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    z-index: 9999 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

/* Bouton d'aide principal */
.help-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D 0%, #C239B3 100%);
    box-shadow: 0 4px 15px rgba(194, 57, 179, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    color: white;
    font-size: 24px;
}

.help-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(194, 57, 179, 0.6);
}

.help-button.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #C239B3 0%, #FF6B9D 100%);
}

/* Icône du bouton d'aide */
.help-button-icon {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Conteneur des icônes sociales */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* Animation d'apparition progressive */
.social-links.active .social-link {
    animation: slideUp 0.3s ease forwards;
}

.social-links.active .social-link:nth-child(1) { animation-delay: 0.05s; }
.social-links.active .social-link:nth-child(2) { animation-delay: 0.1s; }
.social-links.active .social-link:nth-child(3) { animation-delay: 0.15s; }
.social-links.active .social-link:nth-child(4) { animation-delay: 0.2s; }
.social-links.active .social-link:nth-child(5) { animation-delay: 0.25s; }
.social-links.active .social-link:nth-child(6) { animation-delay: 0.3s; }
.social-links.active .social-link:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-link {
    margin: 0;
    opacity: 0;
}

.social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.social-link a:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link a svg {
    width: 24px;
    height: 24px;
}

/* Couleurs spécifiques aux réseaux sociaux */
.social-link.facebook a {
    background-color: rgba(24, 119, 242, 0.95);
}

.social-link.facebook a:hover {
    background-color: #1877f2;
}

.social-link.twitter a {
    background-color: rgba(0, 0, 0, 0.95);
}

.social-link.twitter a:hover {
    background-color: #000;
}

.social-link.instagram a {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.instagram a:hover {
    opacity: 1;
    filter: brightness(1.1);
}

.social-link.linkedin a {
    background-color: rgba(0, 119, 181, 0.95);
}

.social-link.linkedin a:hover {
    background-color: #0077b5;
}

.social-link.youtube a {
    background-color: rgba(255, 0, 0, 0.95);
}

.social-link.youtube a:hover {
    background-color: #ff0000;
}

.social-link.messenger a {
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
}

.social-link.messenger a:hover {
    background: linear-gradient(135deg, #00B2FF 0%, #0058D6 100%);
}

.social-link.tiktok a {
    background-color: rgba(0, 0, 0, 0.95);
}

.social-link.tiktok a:hover {
    background-color: #000;
}

.social-link.whatsapp a {
    background-color: rgba(37, 211, 102, 0.95);
}

.social-link.whatsapp a:hover {
    background-color: #25d366;
}

/* Label "Besoin d'aide ?" - Toujours visible */
.help-label {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 10px 18px;
    border-radius: 25px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #C239B3;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Flèche pointant vers le bouton */
.help-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* Animation de la flèche */
.help-label::before {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    font-weight: 900;  /* Extra gras */
    color: #0a0a0a;
    text-shadow: 2px 2px 4px rgba(194, 57, 179, 0.3);  /* Ombre pour plus de relief */
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        right: -25px;
        opacity: 1;
    }
    50% {
        right: -30px;
        opacity: 0.6;
    }
}

.help-button:hover .help-label {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .social-links-block {
        right: 15px !important;
        bottom: 15px !important;
    }
    
    .help-button {
        width: 55px;
        height: 55px;
    }
    
    .social-link a {
        width: 45px;
        height: 45px;
    }
    
    .social-link a svg {
        width: 22px;
        height: 22px;
    }
    
    .help-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .help-button {
        width: 50px;
        height: 50px;
    }
    
    .social-link a {
        width: 42px;
        height: 42px;
    }
    
    .social-link a svg {
        width: 20px;
        height: 20px;
    }
}

/* Empêcher les conflits */
header .social-links-block,
footer .social-links-block,
.social-links-block {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    top: auto !important;
    transform: none !important;
    left: auto !important;
    float: none !important;
    width: auto !important;
}
/* Point vert lumineux forcé */
.help-button::before {
    content: '' !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 10px !important;
    height: 10px !important;
    background: #00ff88 !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8) !important;
    z-index: 999999 !important;
    animation: greenPulse 2s infinite !important;
}

@keyframes greenPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.3); 
        opacity: 0.6; 
    }
}