.parent-container { 
    /* Assurez-vous que le conteneur parent a une hauteur */
    height: 100vh; /* Par exemple, hauteur de 100% de la fenêtre */
}

.leaflet-container {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0; /* L'élément restera collé en haut de son conteneur parent */
    z-index: 1 !important; /* Ajustez si nécessaire pour s'assurer que la carte reste au-dessus d'autres éléments */
    height: 100%; /* Assurez-vous que la carte prend toute la hauteur du conteneur */
}   

.main {
    margin-top: 85px;
}

.division {
    /*height: 510px;/*auto;*/ /*height: 561px;*/
    padding: 0px;
    /* position: relative !important; */
    margin-right: 20px; 
    position: relative;
    height: 100vh !important;
}

.row-gauche {
    max-height: 100% !important; 
    overflow-y: auto !important;
    padding: 20px;
    border-radius: 5px 0 0 5px;
    border: 1px #B8CBD0 solid;
    /* display: flex;
    flex-direction: column; */
}

/* .row-gauche > .row {
    flex: 1;
} */

.row-gauche .btn-group {
    position: static !important;

}
.row-gauche .dropdown-menu {
    position: absolute !important;
    /* transform: translate3d(0px, 0px, 0px) !important;
    will-change: transform; */
    z-index: 9999 !important; /* pour être sûr d'être au-dessus */
}

.row-droit {
    background-color: #f8f9fa;
    border-radius: 0 5px 5px 0;
    border: 1px #B8CBD0 solid;
    border-left: 0;
    padding: 0 !important;

}

/*maps style*/
/*---------------------------------------------------------------*/

.number-tooltip {
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-align: center;
    background-color: black;
    border-radius: 50%;
    padding: 6px 10px;
}


.filtre-switch {
    margin-top: 30px;
}

@keyframes scaleAnimation {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.label-marging {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.pd-45 {
    padding: 5px;
}

.dropdown-A78 {
    background-color: #B8CBD0 !important;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    scrollbar-color: #137C8B white;
    scrollbar-width: thin;
}


/* ========== Améliorations globales pour écrans ≥ 1400px (ex: 16 pouces et plus) ========== */

@media screen and (min-width: 1400px) {

    .division {
        height: calc(100vh - 150px) !important; /* ou 100vh, à ajuster selon la place du header */
    }
}

@media screen and (max-width: 1200px) {
    .btn-68 {
        font-size: 0.8rem !important;
        padding: 3px !important;
        margin-top: 5px !important;
        margin-left: 1px !important;
        text-align: center;
        text-decoration: blink;
        cursor: pointer;
        width: fit-content !important;
    }
    .btn-68 p {
        font-size: 0.7rem !important;
    }
    
}

.btn-68 {
    background-color: #137C8B;
    border: 1px #137C8B solid;
    color: #fff;
    font-size: 1rem;
    border-radius: .25rem;
    padding: 5px;
    margin-top: 10px !important;
    margin-left: 1px !important;
    text-align: center;
    text-decoration: blink;
    cursor: pointer;
    width: fit-content !important;
}

.btn-68:hover {
    color: #fff !important;
    animation: scaleAnimation 0.2s ease-in-out forwards;

}

.form-check-input:focus {
  border-color: #137C8B !important;
  box-shadow: 0 0 0 .25rem rgba(19, 124, 139, .25) !important; /* halo assorti */
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='rgba(19,124,139,0.5)'/></svg>") !important;
}

/* .form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e") !important;
} */

.form-switch .form-check-input:checked {
  background-color: #137C8B;   /* couleur ON */
  border-color: #137C8B;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='%23ffffff'/></svg>") !important;
}

.timeline > :first-child {
    margin: 0 !important;
    padding-left: 0 !important;
}

.timeline label {
    color: #137C8B;
}

#yearRangeSlider {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 1000;
}

#play {
    height: 30px;
    width: 50px;
    padding: 0;
    cursor: pointer;
    /*display: none;*/
}

#pause {
    height: 30px;
    width: 50px;
    padding: 0;
    cursor: pointer;
    /*display: none;*/
}

#stop {
    height: 30px;
    width: 50px;
    padding: 0;
    cursor: pointer;
    /*display: none;*/
}

.btn-45 {
    background-color: #f8f9fa;
    border: 1px #137C8B solid;
    font-size: 1rem;
    border-radius: .25rem;
    padding: 20px;
    margin: 10px;
    text-align: center;
}

.btn-45:hover {

    background-color: #137C8B;
    color: white;

}

@media screen and (max-width: 575.98px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 0.5rem;
    }

    .l-navbar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        left: 0;
    }

    .nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .main {
        margin-top: 100px;
        padding: 0.5rem;
    }
}

/* Petits écrans (téléphones grands format, 576px à 767.98px) */
@media screen and (min-width: 576px) and (max-width: 767.98px) {
    .l-navbar {
        width: 60px;
    }

    .main {
        padding: 1rem;
    }

    .nav_link {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Moyens écrans (tablettes, 768px à 991.98px) */
@media screen and (min-width: 768px) and (max-width: 991.98px) {
    .l-navbar {
        width: var(--nav-width);
    }

    .main {
        padding-left: calc(var(--nav-width) + 1rem);
    }
}

/* Grands écrans (ordinateurs portables, 992px à 1199.98px) */
@media screen and (min-width: 992px) and (max-width: 1199.98px) {
    /* .l-navbar {
        width: var(--nav-width);
    }

    .main {
        padding-left: calc(var(--nav-width) + 2rem);
    } */

    label {
        font-size: 0.8rem !important;
    }
    /* .division {
        justify-content: space-between !important;
    } */
    .row-gauche {
        /* width: 180px !important; */
        flex: 1 !important;
    }
    .row-droit {
        /* width: 750px !important; */
        flex: 4 !important;
    }

    .activer_timeline {
        justify-content: space-around !important;
    }

    p {
        font-size: 0.8rem !important;
    }
}

/* Très grands écrans (desktop large, >=1200px) */
@media screen and (min-width: 1200px) and (max-width: 1366px) {
    /* .main {
         max-width: 1200px; 
        margin: 85px 0 0 0;
        padding: 2rem;
    } */
    
    .activer_timeline {
        justify-content: space-around !important;

    }
}
