
#work_pic .top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: calc(2% + 5px);
    padding-inline: 5%;
}

#work_pic .top .filter_menu {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: calc(1vw + 2px);
}

#work_pic .top .filter_menu button {
    text-transform: capitalize;
    font-size: var(--fs-18);
    letter-spacing: 1.2px;
    cursor: pointer;
}

#work_pic .top .filter_menu button:hover,
#work_pic .top .filter_menu button.selected {
    color: var(--font-beige);
}

.custom_select_wrapper {
    position: relative;
    display: inline-block;
    width: 180px; /* ajuste la largeur */
    font-family: Arial, sans-serif;
    user-select: none;
    letter-spacing: 1px;
    display: none;
}

.custom_select_selected {
    border: 2px solid var(--beige);
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ajouter un petit caret "flèche" à droite */
.custom_select_selected::after {
    content: "▾"; /* tu peux changer par une icône */
    margin-left: 10px;
    color: var(--font-black);
    user-select: none;
    pointer-events: none;
}

/* Liste déroulante */
.custom_options {
    position: absolute;
    top: calc(100% - 2px); /* 100% - taille border-bottom */
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--beige);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: var(--z-index-select-menu);
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 0 0 4px 4px;
}

/* Affiche quand open */
.custom_select_wrapper.open .custom_options {
    opacity: 1;
    visibility: visible;
}

/* Chaque option */
.custom_options li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
}

/* Hover option */
.custom_options li:hover,
.custom_options li[aria-selected="true"],
.custom_options li:focus {
    background-color: var(--beige);
    color: var(--font-white);
    outline: none;
}

/* Scrollbar simple */
.custom_options::-webkit-scrollbar {
    width: 6px;
}
.custom_options::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}