/* --- Conteneur Principal (Gris Maquette) --- */
.filter-container {
    background-color: var(--secondary-color); 
    border-radius: 12px;
    color: #ffffff;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- Header (La zone cliquable) --- */
.filter-header {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
}

.filter-header:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

.filter-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-stats {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
}

/* --- Corps du Filtre --- */
.filter-body {
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grille pour les deux colonnes (Domaines / Géo) */
.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    font-size: 1rem;
}

/* --- Les boîtes blanches scrollables --- */
.scroll-box {
    background: #ffffff;
    color: #333333;
    border-radius: 8px;
    height: 200px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.scroll-box .form-check {
    margin-bottom: 8px;
    padding-left: 1.8rem;
}

.scroll-box .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.scroll-box .form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
}

/* Custom Scrollbar pour le look pro */
.scroll-box::-webkit-scrollbar {
    width: 8px;
}
.scroll-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}
.scroll-box::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 8px;
}
.scroll-box::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* --- Zone Type de Contrat --- */
.contract-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
}

/* --- Footer (Mots-clés + Bouton) --- */
.filter-footer {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.keyword-search {
    flex-grow: 1;
}

.keyword-search input {
    height: 45px;
    border-radius: 25px !important;
    padding-left: 20px;
    border: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.btn-rechercher {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 40px !important;
    height: 45px;
    font-weight: 800 !important;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
}

.btn-rechercher:hover {
    background-color: var(--hover-red-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 27, 29, 0.4);
}

/* --- Animation Stimulus --- */
.transition-icon {
    transition: transform 0.3s ease;
}
.rotate-180 {
    transform: rotate(180deg);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .filter-row { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .filter-footer { flex-direction: column; align-items: stretch; }
    .btn-rechercher { width: 100%; }
}