
/* GUMA_D29_FLOATING_SOCIAL
   Barre sociale flottante.
   Expansion horizontale vers la gauche.
*/

.guma-floating-social {
    position: fixed;
    top: 36%;
    right: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.guma-floating-social__item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.24);
    border-right: 0;
    border-radius: 5px 0 0 5px;
    color: #fff;
    background: #51286D;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 5px 16px rgba(20,9,32,.18);
    transition:
        width 260ms ease,
        background-color 180ms ease;
    pointer-events: auto;
}

.guma-floating-social__item--facebook {
    background: #513078;
}

.guma-floating-social__item--x {
    background: #342047;
}

.guma-floating-social__item--youtube {
    background: #713253;
}

.guma-floating-social__icon {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.guma-floating-social__icon svg {
    display: block;
}

.guma-floating-social__label {
    display: block;
    padding-right: 20px;
    opacity: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: opacity 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .guma-floating-social__item:hover {
        width: 160px;
        color: #fff;
        background: #6B398D;
    }

    .guma-floating-social__item:hover
    .guma-floating-social__label {
        opacity: 1;
    }
}

.guma-floating-social__item:focus-visible,
.guma-floating-social__item.is-expanded {
    width: 160px;
    color: #fff;
    background: #6B398D;
    outline: 2px solid #F4BA7A;
    outline-offset: 2px;
}

.guma-floating-social__item:focus-visible
.guma-floating-social__label,
.guma-floating-social__item.is-expanded
.guma-floating-social__label {
    opacity: 1;
}

.guma-floating-social__item.is-inactive {
    opacity: .85;
    cursor: default;
}

@media (max-width: 640px) {
    .guma-floating-social {
        top: auto;
        bottom: 110px;
        gap: 6px;
    }

    .guma-floating-social__item {
        width: 44px;
        height: 44px;
    }

    .guma-floating-social__icon {
        flex-basis: 44px;
        height: 44px;
    }

    .guma-floating-social__item.is-expanded {
        width: 145px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guma-floating-social__item,
    .guma-floating-social__label {
        transition: none;
    }
}
