
/* div principale des selects */
.ms-parent {
    width: 100%;
    box-shadow: none;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* style pour le bouton fermé */
.ms-choice {
    height: 55px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
    color: #7a7676;
    line-height: 1.5;
    background-color: #fff;
    text-align: left;
    padding: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    outline: none;
    transition: border 0.2s ease, border-radius 0.2s ease, color 0.2s ease;
}

/* span du select */
.ms-choice span {
    display: -webkit-box;
    max-width: calc(100% - 25px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* style pour le bouton ouvert */
.ms-parent.open .ms-choice {
    border: 2px solid #00186D;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    color: #00186D;
}

/* style pour la fléche */
.ms-choice::after {
    content: '';
    background-image: url('../assets/img/chevron-down-blue.png');
    transform: translateY(-50%);
    position: absolute;
    right: 15px;
    top: 50%;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.4s ease;
}

/* rotation quand on ouvre le select */
.ms-parent.open .ms-choice::after {
    transform: translateY(-50%) rotate(180deg);
}

/* div du menu déroulant */
.ms-drop.bottom.hidden {
    overflow-y: auto;
    border: 2px solid #ccc;
    border-top: none;
    position: absolute;
    z-index: 1000;
    background-color: white;
    box-sizing: border-box;
    border-bottom-left-radius: 10px;
}


/* div comprennant les éléments */
.ms-list {
    padding: 0;
    margin: 0;
}

/* style des listes déroulantes */
.ms-list li {
    border-bottom: 1px solid #ccc;   
    border-right: 1px solid #ccc;     
    padding-top: 0.8em;
    padding-bottom: 0.6em;
    padding-left: 0.8em;
    padding-right: 0.8em;
    margin: 0;
}

/* style d'un élément sélectionné */
.ms-list li.selected span {
    color: #00186D;
}

/* supprime la bordure des trois derniers éléments */
.ms-list li:nth-last-child(-n+2) {
    border-bottom: none;
}

/* style au survol des éléments de la liste */
.ms-list li:hover {
    background-color: #e1e5f2;
}

/* checkbox des éléments */
.ms-list input[type="checkbox"] {
    accent-color: #2A3F8F;
    width: 1em;
    height: 1em;
}

/* label des éléments */
.ms-list label {
    color: #7a7676;
    font-size: 18px;
    font-weight: normal; 
}

/* style des placeholder */
.ms-placeholder,
.ms-choice span  {
    font-family: "Josefin Sans", sans-serif;
    font-size: 16px;
}

/* pour cacher une div au démarrage */
.hidden {
    display: none;
}