.options-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    /* overflow: hidden; */
}

.options-list li {
    border: solid 3px #E83151;
    width: 50%;
    margin-bottom: 5vh;
    padding: 1.7vh 1vw;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.options-list li:hover {
    background-color: #E83151 !important;
    
}

.options-list li:hover img {
    transform: scale(1.3);
}

.options-list li a, .valid-btn {
    text-decoration: none;
    color: white;
    font-family: 'Tilt Warp', sans-serif;
    font-size: 1.2rem;
}

.options-list li img {
    height: 3vh;
    margin-right: 1vw;
    transition: transform 0.3s ease-in-out;
}

#custom {
    margin-bottom: 5px;
}

.valid-btn {
    width: fit-content;
    background-color: #E83151;
    padding: 1vh 1vw;
    cursor: pointer;
}

#description {
    font-size: 1.5rem !important;
}

.choices {
    width: 100%;
    margin-bottom: 0;
    font-family: 'Tilt Warp', sans-serif;
}

.choices__inner {
    background-color: rgb(235, 235, 235);
    border: none;
    border-radius: 0;
    min-height: auto;
    padding: 2vh 2vw 2vh 1vw;
    transition: all 0.3s ease-in-out;
    width: calc(100% - 3vw);
}

.choices[data-type*=select-one] .choices__inner {
    padding-bottom: 2vh;
}

.choices__list--single {
    padding: 0;
    width: 100%;
}

.choices__list--single .choices__item {
    color: black;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.choices[data-type*=select-one] .choices__button {
    display: none;
}

/* Flèche personnalisée */
.choices[data-type*=select-one]:after {
    border-color: black transparent transparent transparent;
    border-width: 8px 6px 0 6px;
    margin-top: -4px;
    right: 2vw;
}

.choices[data-type*=select-one].is-open:after {
    border-color: transparent transparent black transparent;
    border-width: 0 6px 8px 6px;
    margin-top: -5px;
}

/* Dropdown */
.choices__list--dropdown {
    border: none;
    border-radius: 0;
    margin-top: 5px;
    z-index: 10001;
}

.choices__list--dropdown .choices__item {
    background-color: rgb(235, 235, 235) !important;
    padding: 2vh 2vw 2vh 1vw !important;
    color: black;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.choices__list--dropdown .choices__item--selectable:hover {
    background-color: #ED637B !important;
}

/* .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #E83151;
} */

.choices__list--dropdown .choices__item--selectable {
    padding-right: 2vw;
}

/* Images dans les options */
.choices__list--single .choices__item img,
.choices__list--dropdown .choices__item img {
    height: 3vh;
    margin-right: 1vw;
    vertical-align: middle;
}

/* Désactiver la recherche */
.choices__input {
    display: none;
}

#loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Noir semi-transparent */
    /* display: flex; */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Toujours au-dessus */
}

/* Le contenu de la popup (le rectangle blanc) */
.loading-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
}

/* Le texte du chargement */
.loading-content h2 {
    font-size: 24px;
    margin: 0;
    color: #333;
    font-family: 'Tilt Warp', sans-serif;
    font-weight: lighter;
}

#movies-nb {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
}

/* La barre de chargement elle-même */
.loading-bar {
    width: 100%;
    height: 15px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* L'intérieur de la barre (qui grandit) */
.loading-bar .progress {
    width: 0%;
    height: 100%;
    background-color: #E83151;
    transition: width 0.4s ease;
    border-radius: 10px;
}

@media screen and (max-width: 1024px) {
    .container {
        padding: 0 5vw !important;
    }

    #description {
        font-size: 1.3rem !important;
        text-align: center;
    }

    .options-list li {
        width: calc(100% - 4vw);
        padding: 2vh 2vw;
        background-color: #E83151;
        border: none;
        justify-content: center;
        gap: 2vw;
        transition: none;
    }

    .options-list li img {
        margin-right: 0;
        transition: none;
    }

    .options-list li a {
        font-size: 1.5rem;
    }

    .options-list {
        margin-bottom: 10vh;
    }
}

@media screen and (max-width: 540px) {
    .options-list li a {
        font-size: 1rem;
    }

    .choices__list--single .choices__item,
    .choices__list--dropdown .choices__item {
        font-size: 1rem;
    }

    .choices__inner {
        padding: 2vh 4vw 2vh 4vw;
        width: calc(100% - 8vw);
    }

    .choices__list--dropdown .choices__item {
        padding: 2vh 4vw 2vh 4vw !important;
    }

    .choices[data-type*=select-one]:after {
        right: 4vw;
    }

    .choices__list--single .choices__item img,
    .choices__list--dropdown .choices__item img {
        margin-right: 2vw;
    }

    .valid-btn {
        padding: 1vh 2vw;
    }

    .loading-content {
        width: auto;
    }
}
