/* Styles pour l'intégration des données socio-économiques */

.socioeconomic-controls {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    margin: 10px;
}

.toggle-button {
    padding: 8px 12px;
    background-color: #3388ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.toggle-button:hover {
    background-color: #2366c9;
}

#socioeconomic-indicator-selector {
    width: 100%;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-top: 8px;
}

.tab-container {
    display: flex;
    margin-bottom: 15px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    cursor: pointer;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.tab.active {
    background-color: #fff;
    border-bottom: 2px solid #3388ff;
}

.tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
}

.tab-content.active {
    display: block;
}

.data-comparison-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.data-comparison-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.correlation-indicator {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.correlation-indicator-label {
    flex: 1;
}

.correlation-indicator-value {
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    color: white;
}

.correlation-high {
    background-color: #28a745;
}

.correlation-medium {
    background-color: #ffc107;
}

.correlation-low {
    background-color: #dc3545;
}

/* Styles pour les graphiques radar */
.radar-chart-container {
    height: 250px;
    margin: 20px 0;
}

/* Styles pour les filtres */
.filter-container {
    margin: 15px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.filter-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.filter-slider {
    width: 100%;
    margin: 10px 0;
}

.filter-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #666;
}

/* Styles pour les infobulles */
.custom-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 1000;
    max-width: 250px;
    font-size: 12px;
}

.custom-tooltip h4 {
    margin: 0 0 5px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.custom-tooltip p {
    margin: 3px 0;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .socioeconomic-controls {
        width: calc(100% - 20px);
    }
    
    .tab-container {
        flex-direction: column;
    }
    
    .tab {
        border-radius: 0;
        border: 1px solid #ddd;
    }
    
    .tab:first-child {
        border-radius: 5px 5px 0 0;
    }
}
