.sticky-menu {
    position: relative;
    top: calc(100% - 30px);
    right: 0;
    z-index: 99;
}

.sticky-menu ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    align-items: flex-end; /* Ensure all icons align to the right */
}

.sticky-menu ul li {
    position: relative;
    height: 50px;
    width: 50px; /* Keep only icon visible initially */
    margin-bottom: 6px;
    border-radius: 30px 25px 25px 30px; /* Round only the right side */
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .16);
    background: #ffffff;
    transition: width 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.sticky-menu ul li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 190px; /* Ensure consistent width for all items */
    height: 100%;
    
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #2969AC;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease-in-out;
    padding-right: 175px;
}

.sticky-menu ul li a:before {
    content: "";
    position: absolute;
    width: 50px; /* Increase width to match container height */
    height: 50px; /* Increase height to match container height */
    right: 0px; /* Move the logos a bit to the left */
    top: 50%;
    transform: translateY(-50%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 50%;
}

/* Set the initial state of the text */
.sticky-menu ul li a span {
    opacity: 0;
    margin-right: 50px; /* Ensure text appears to the left of the icon */
    transition: opacity 0.2s ease-in-out;
}

/* Only expand the container when hovered */
.sticky-menu ul li:hover {
    width: 200px; /* Expand smoothly */
}

/* Show the text when hovered */
.sticky-menu ul li:hover a span {
    opacity: 1;
}

/* Ensure the icon stays in place */
.sticky-menu ul li:hover a:before {
    right: 0px;
}

/* Icons */
.sticky-menu ul li a.convertisseur:before {
    background-image: url(message.svg);
    background-color: #25D366;
}

.sticky-menu ul li a.simulateur:before {
    background-image: url(call.svg);
    background-color: #25D366;
}

.sticky-menu ul li a.nos-agences:before {
    background-image: url(calendar.svg);
    background-color: #25D366;
}

.sticky-menu ul li a.nos-agences {
    white-space: normal; /* Allow text to wrap */
    text-align: right; /* Align text to the right */
}
