/**
 * partage_social — gabarit « flottant »
 * Ordinateur : colonne verticale sur le bord droit, toujours visible.
 * Téléphone/tablette : bouton unique (au-dessus du bouton « retour en haut »)
 * qui déplie les icônes vers le haut.
 */
.share-float {
    position: fixed;
    z-index: 1040; /* sous les modales Bootstrap (1055) et le bandeau cookies */
}

.share-float__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.share-float .share-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
}

/* ── Ordinateur ───────────────────────────────────────────── */
@media (min-width: 992px) {
    .share-float {
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .share-float__toggle {
        display: none;
    }

    .share-float__menu {
        padding: .65rem .5rem;
        background: var(--bs-body-bg, #fff);
        border-radius: 14px 0 0 14px;
        box-shadow: -4px 4px 18px rgba(0, 0, 0, .12);
    }

    .share-float .share-btn:hover,
    .share-float .share-btn:focus-visible {
        transform: translateX(-3px);
    }
}

/* ── Téléphone / tablette ─────────────────────────────────── */
@media (max-width: 991.98px) {
    .share-float {
        right: calc(2rem - 3px); /* aligné sur #scroll-top (42 px) */
        bottom: calc(2rem + 42px + .75rem);
    }

    .share-float__toggle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 0;
        background: var(--color-primary, #2a2d6b);
        color: #fff;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
        transition: transform .15s;
    }

    .share-float__toggle:focus-visible {
        outline: 3px solid var(--color-primary-dark, #000);
        outline-offset: 2px;
    }

    .share-float.is-open .share-float__toggle {
        transform: rotate(-12deg) scale(.95);
    }

    .share-float__menu {
        position: absolute;
        bottom: calc(100% + .6rem);
        left: 50%;
        padding: .55rem .45rem;
        background: var(--bs-body-bg, #fff);
        border-radius: 999px;
        box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 12px);
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    }

    .share-float.is-open .share-float__menu {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        transition: opacity .18s ease, transform .18s ease, visibility 0s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .share-float__menu,
    .share-float__toggle {
        transition: none !important;
    }
}

@media print {
    .share-float {
        display: none !important;
    }
}
