@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');
html, body {font-family: 'Lexend ExtraLight', 'Lexend', sans-serif;}

.bg-gradient-primary {
    background-color: #0d6efd !important;
    background-image: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important;
}

/* ==========================================================================
   TOME SELECT : CHAMP D'ICÔNES CUSTOM (BARRE + GRILLE)
   ========================================================================== */

/* --- PARTIE 1 : LA BARRE DE RECHERCHE (Fix du double select & Fond gris) --- */

/* On neutralise l'enveloppe native pour enlever la double flèche et le fond */
.ts-wrapper.tomselect-clean {
    padding: 0 !important;
    border: none !important;
    background-image: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* On force le look Bootstrap et le fond BLANC sur le champ de saisie */
.ts-wrapper.tomselect-clean .ts-control,
.ts-wrapper.tomselect-clean.single .ts-control,
.ts-wrapper.tomselect-clean.input-active .ts-control {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #ffffff !important;
    background-color: #ffffff !important; /* Force le blanc */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    min-height: 58px;
}

/* Le halo bleu au clic (Focus Bootstrap) */
.ts-wrapper.tomselect-clean.focus .ts-control {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}


/* --- PARTIE 2 : LE MENU DÉROULANT (La Grille d'icônes) --- */

/* On transforme la liste verticale en grille */
.tomselect-clean .ts-dropdown .ts-dropdown-content {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
    max-height: 300px;
}

/* On dimensionne chaque option comme un petit carré cliquable */
.tomselect-clean .ts-dropdown .option {
    width: 40px;
    height: 40px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    padding: 0 !important;
}

/* Effet au survol d'une icône dans la grille */
.tomselect-clean .ts-dropdown .option:hover,
.tomselect-clean .ts-dropdown .option.active {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    transform: scale(1.1);
}

/* On agrandit l'icône et on la centre */
.tomselect-clean .ts-dropdown .option .bi {
    font-size: 1.25rem !important;
    margin: 0 !important;
}

/* On cache le texte dans la liste (mais il reste cherchable !) */
.tomselect-clean .ts-dropdown .option span {
    display: none;
}
