/**
 * Widget Menu (Menu rapide)
 * Menu sticky avec effet de repli au scroll
 */

.widget-menu {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    transition: top 0.3s ease;
}


.widget-menu__container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    filter: drop-shadow(0px 0px 2.5px rgba(0, 0, 0, 0.25));
}

.widget-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 49px;
    background-color: #CB695F;
    border-radius: 60px 0 0 60px;
    padding: 5px 10px 5px 20px;
    text-decoration: none;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                gap 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s ease;
    overflow: hidden;
    position: relative;
    width: auto;
}

.widget-menu__item:hover {
    background-color: #b55b52;
}

.widget-menu__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-menu__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.widget-menu__text {
    color: #FFFFFF;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    padding-bottom: 5px;
    opacity: 1;
    max-width: 100px;
    overflow: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0;
}

/* État replié (sticky au scroll) */
.widget-menu[data-sticky="true"] .widget-menu__text {
    opacity: 0;
    max-width: 0;
    margin-right: -10px;
}

.widget-menu[data-sticky="true"] .widget-menu__item {
    padding: 5px 15px;
    gap: 0;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .widget-menu {
        display: none;
    }
}

@media screen and (max-width: 575px) {
    .widget-menu__text {
        font-size: 12px;
        max-width: 80px;
    }
}
