/* social.css */

.social-wrapper {
    position: fixed;
    bottom: 0px;
    right: 0px;
    z-index: 1000;
}

.social-toggle {
    position: relative;
    width: 30px;
    height: 30px;
    background-color: var(--color-secondary);
    border: none;
    cursor: pointer;
    z-index: 10;
}

/* L'effet Sonar reste en CSS (idéal pour les boucles infinies) */
.social-toggle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    z-index: -1;
    animation: sonar 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes sonar {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* On coupe le sonar quand le menu est ouvert */
.social-wrapper.is-open .social-toggle::before {
    animation: none;
    opacity: 0;
}

.social-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Inactif quand fermé */
}

.social-wrapper.is-open .social-panel {
    pointer-events: auto; /* Actif quand ouvert */
}

.social-item {
    position: absolute;
    top: 50%;
    left: 50%;
    /* On agrandit un peu la zone cliquable pour faire une belle bulle */
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;

    /* 🔥 Les ajouts pour la visibilité sur le texte 🔥 */
    background-color: var(--color-bg);
    /*border: 2px solid var(--color-secondary); */
    border-radius: 50%; /* Rend le fond parfaitement rond */
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);*/

    color: var(--color-secondary-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px; /* Taille de l'icône réduite pour bien s'insérer dans le cercle de 44px */

    /* État initial pour GSAP */
    opacity: 0;
    transform: scale(0);
}

/* On cible l'item et son état au survol */
.social-item,
.social-item:hover {
    text-decoration: none !important;
    /* On supprime la bordure rouge qui vient du style global des liens */
    border-bottom: none !important;
    /* On s'assure qu'aucune autre bordure ne s'affiche */
    border: none !important;
}

/* Si ton bouton principal (le carré vert) est aussi un lien, on le protège aussi */
.social-toggle,
.social-toggle:hover {
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
}

/* nom des services */

.social-tooltip {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 20;
    background-color: var(--color-bg) !important;
    color: var(--color-secondary-darker) !important;
    font-family: var(--font-family);
    padding: 6px 12px;
    border-radius: 4px; /* Un petit arrondi plus moderne */
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .social-wrapper {
        bottom: 10px;
        right: 10px;
    }
    .social-toggle {
        width: 30px;
        height: 30px;
    }

    .social-item {
        /* On agrandit la bulle entière sur mobile pour le doigt */
        width: 50px;
        height: 50px;
        margin-top: -25px;
        margin-left: -25px;
        font-size: 28px; /* On grossit l'icône proportionnellement */
    }
}
