/*@todo filtre*/

#sansGeographie,#sansNaf{
    width:20px !important;
    height:20px !important;
}

#nombreTelecharger,#nombreEmail,#nombreNonReinitialiser{
    border: none; /* Supprime les bordures */
    background: transparent; /* Rend le fond transparent */
    pointer-events: none; /* Désactive les interactions avec la souris */
    text-align: center;
}

/* ================== OVERLAY DE CHARGEMENT ================== */
#loadingOverlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    display: none;
    z-index: 9999;
}
#loadingOverlay .overlay-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}
#loadingOverlay .spinner {
    width: 60px; height: 60px;
    border: 6px solid rgba(255, 255, 255, .3);
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin {
    0%   { transform: rotate(0deg) }
    100% { transform: rotate(360deg) }
}


/* ================== RESULTATS ================== */
.results-container {
    max-height: 30vh;
    overflow-y: auto;
    padding-right: 15px;
}
.result-item,
.card.result-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.result-item:hover,
.card.result-item:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.card.result-item .card-body { padding: 1rem 1.25rem; }
.card-title, .card.result-item h5 { font-weight: 600; margin-bottom: .25rem; }
.card-subtitle, .card.result-item h6 { font-size: .9rem; color: #6c757d; }
.card-text, .card.result-item p { font-size: .9rem; line-height: 1.5; color: #495057; }
.download-button { text-align: center; margin-top: 20px; }


/* ================== ALERTES ================== */
.alert-success {
    background: #d4edda; color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-warning {
    background: #fff3cd; color: #856404;
    border: 1px solid #ffeeba;
}
.alert-danger {
    background: #f8d7da; color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert {
    padding: 10px; margin: 10px 0;
    border-radius: 5px;
}
.alert strong { font-size: 1.5rem; }
.alert small { font-size: .85rem; color: #666; }


/* ================== SELECT2 ================== */
.select2-container { line-height: 1.2 !important; }
.select2-results__option {
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Dropdown */
.select2-dropdown { top: 100% !important; margin-top: 4px !important; }

/* Tags sélectionnés (dans l’input) */
.select2-container--bootstrap4 .select2-selection__choice {
    background-color: #dee2e6; /* gris clair */
    color: #212529;
    border: none;
    border-radius: .2rem;
    padding: .25em .5em;
    margin-top: .25rem;
    font-size: .875rem;
}
.select2-container--bootstrap4 .select2-selection__choice__remove {
    color: #212529;
    margin-right: .5em;
    font-weight: bold;
}

/* Zone multi-selection */
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
    padding: 6px 0 !important;
    display: flex; align-items: center;
    min-height: 38px;
}

/* Champ de recherche dans la dropdown */
.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
    color: #212529 !important;
    background: #fff !important;
    font-size: 15px !important;
    padding: .375rem .75rem;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

/* Survol d’une option */
.select2-container--bootstrap4 .select2-results__option--highlighted {
    background-color: #f8f9fa !important; /* gris clair */
    color: #212529 !important;
}

/* Option déjà sélectionnée dans la liste */
.select2-container--bootstrap4 .select2-results__option[aria-selected="true"] {
    background-color: #dee2e6 !important; /* gris moyen */
    color: #212529 !important;
}


/* ================== INFO TOOLTIP ================== */
.info-tooltip {
    display: inline-block;
    width: 18px; height: 18px;
    margin-left: 6px;
    text-align: center;
    line-height: 18px;
    font-size: 12px; font-weight: bold;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    cursor: help;
    position: relative;
}
.info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: .75rem;
    opacity: 0;
    transition: opacity .2s ease-in-out;
    pointer-events: none;
    z-index: 999;
}
.info-tooltip:hover::after { opacity: 1; }
