﻿/* Styles pour les filtres d'indicateurs - Compilé depuis indicateurs-filtres.less */

.filtre-container {
    background: #fff;
    border-radius: 8px;
    margin: 20px 0;
}

.filtre-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.filtre-section {
    margin-bottom: 15px;
    position: relative;
}

.filtre-section label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    color: #000;
}

.filtre-select {
    display: none !important;
}

.filtre-loading {
    padding: 10px 12px;
    border: 1px solid #721c24;
    border-radius: 4px;
    background-color: white;
    color: #721c24;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.filtre-loading::before {
    content: '⟳';
    display: inline-block;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.choices {
    margin-bottom: 0;
    font-size: 14px;
    display: none;
}

.choices.is-loaded {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.choices__inner {
    min-height: 44px;
    padding: 7px 12px !important;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: white;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.choices__list--multiple {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 3px;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.choices__list--multiple .choices__item {
    background-color: #ED1C24;
    border: 1px solid #ED1C24;
    border-radius: 3px;
    color: white;
    margin: 0 3px 3px 0 !important;
}

.choices__list--multiple .choices__item.is-highlighted {
    background-color: #721113;
    border-color: #721113;
}

.choices[data-type*='select-multiple'] .choices__button {
    border-left: 1px solid rgba(255,255,255,0.3);
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #ED1C24;
    color: white;
}

.choices__input {
    background-color: transparent;
    color: #333;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    text-align: left !important;
}

.choices__inner .choices__input {
    margin-left: 0 !important;
}

.choices__list--dropdown {
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
}

.choices__placeholder {
    opacity: 0.5;
}

.choices__list--multiple:not(:empty) ~ .choices__list .choices__input {
    display: none;
}

.choices[data-type*='select-multiple'] .choices__inner:has(.choices__item) .choices__input::placeholder {
    opacity: 0;
}

.choices__list--multiple .choices__item ~ .choices__input {
    width: 0 !important;
    padding: 0 !important;
}

.filtre-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-filtrer,
.btn-reinitialiser,
.btn-full-outline {
    padding: 9px 17px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Archivo';
    font-weight: 400;
    transition: all 0.3s;
}

.btn-full-outline {
    font-weight: 500;
    width: 100%;
}

.btn-filtrer {
    background: #ED1C24;
    color: white;
}

.btn-filtrer:hover {
    background: #721113;
}

.btn-reinitialiser,
.btn-full-outline {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
}

.btn-reinitialiser:hover,
.btn-full-outline:hover {
    border: 1px solid #333;
}

.resultats-container {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.resultats-container h3 {
    margin-bottom: 15px;
    color: #333;
}

.liste-indicateurs {
    list-style: none;
    padding: 0;
}

.indicateur-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #721c24;
    border-left: 4px solid #721c24;
    border-radius: 4px;
    transition: all 0.2s;
}

.indicateur-item:hover {
    background: #721c24;
    transform: translateX(5px);
}

.indicateur-titre {
    font-weight: 600;
    color: #721c24;
    font-size: 16px;
    margin-bottom: 5px;
}

.indicateur-info {
    font-size: 14px;
    color: #666;
}

.message-erreur {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 15px;
}

.chargement {
    text-align: center;
    padding: 20px;
    color: #666;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    font-size: 12px;
    color: #000;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: #721c24;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #721c24;
}

.checkbox-label span {
    user-select: none;
    font-size: 12px;
    font-weight: 400;
}
