/* Style pour les éléments sélectionnés avec bg-success */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: #198754 !important; /* Couleur bg-success de Bootstrap 5 */
    color: white !important;
    border: none !important;
    padding: 0.35rem 0.6rem !important;
    margin: 0.2rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
}

/* Cibler spécifiquement la classe .select2-selection__choice_display */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
    color: white !important;
}

/* Ciblage précis du conteneur de sélection */
.select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: 38px !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
}

/* S'assurer que le bouton de suppression est visible */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-right: 0.4rem !important;
    border: none !important;
    background: transparent !important;
    opacity: 1 !important;
    font-size: 1.2rem !important;
    padding: 0 0.3rem !important;
    display: inline-block !important;
    visibility: visible !important;
    position: relative !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
	background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Ajouter un style distinctif pour le bouton de suppression */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove::after {
    content: '×' !important;
    font-weight: bold !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-radius: 50% !important;
}

/* Assurer que le texte est visible */
.select2-selection_rendered .select2-selection__choice {
    background-color: #198754 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
}

/* Style pour l'affichage des choix */
.select2-selection_choice_display, 
.select2-selection__choice__display {
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
    color: white !important;
    font-weight: 500 !important;
}

/* Amélioration du style du dropdown */
.select2-container .select2-dropdown {
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #ced4da !important;
    overflow: hidden !important;
}