/*=================================================================================================================
------------------STYLE GRAPHIQUES--------------------------------------------------------------------------------
===================================================================================================================*/
.conteneur-graphique{
    margin: 0;
    padding: 10px;
    display: block;
    width: 100%;
    min-height: 110px !important;
    height: 50%;
    border-radius: 8px;
 box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* conteneur filtres */
.filtres {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 40px;  
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Bloque (Label + Input) */
.filtre-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filtre-label {
    font-weight: bold;
    margin: 0; 
}

/* Interrupeteur */
.toggle-container {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    background: #ebebeb;
    padding: 8px 18px;
    border-radius: 30px;
}

.toggle-text {
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}


.switch {
    position: relative;
    display: inline-block !important;
    width: 50px !important;
    height: 26px !important;
    margin: 0 !important;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px !important;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px !important;
    width: 18px !important;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


input:checked + .slider {
    background-color: var(--color-alfa) !important; 
}

input:checked + .slider:before {
    transform: translateX(24px);
}
#communeSelect {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

#phenoChart {
    display: block;
    width: 100% !important;
    height: 80% !important;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#phenoChartAnnees {
    display: block;
    width: 100% !important;
    min-height: 450px !important;
}
