html {
    font-size: 14px;
    position: relative;
    /*    min-height: 100%;*/
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


body {
    margin-bottom: 60px;
}


html body .leaflet-container div span btn {
    font-family: Poppins, Arial, Helvetica, sans-serif !important;
}


.leaflet-container a {
    font-size: 12px;
    color: black;
}


#map {
    width: 100%;
    height: 100vh;
    background-color: transparent;
    position: relative;
}

.leaflet-tile {
    background-color: transparent;
}

.leaflet-control-attribution.leaflet-control {
    display: none;
}

.legend-container, .legend-container button, .legend-container input, .legend-container span {
    font-size: 12px;
    font-family: Poppins, Arial, Helvetica, sans-serif !important;
}

.leaflet-top.leaflet-left{
    width:30%;
}

@media (max-width: 767px) {
    .leaflet-top.leaflet-left {
        width: 90% !important;
    }
}

#legend-control {
    width: 100%;
}


.legend-container {
    opacity: 0.9;
}

@media (max-width: 767px) {
    .legend-container {
        display: none; /* masquée par défaut sur mobile */
    }
}

.legend-hidden {
    display: none !important;
}

.legend-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 20px;
    background: white;
    width:100%;
}

.legend-search-input {
    border-radius: 25px 0 0 25px;
    border: 1px solid #ccc;
    border-right: none;
    padding-left: 15px;
}

.legend-search-btn {
    border-radius: 0 25px 25px 0;
    background-color: #e60000;
    color: white;
    border: none;
    padding: 0 20px;
}

.legend-toggle-btn-group .legend-card.btn {
    border-radius: 0;
}

.legend-toggle-btn-group .legend-card.btn:first-child {
    border-radius: 20px 0 0 20px;
}

.legend-toggle-btn-group .legend-card.btn:last-child {
    border-radius: 0 20px 20px 0;
}

.legend-box {
    width: 25px;
    height: 25px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 4px;
}

    .legend-label{
        position:relative;
        bottom:2px;
    }
    .legend-label small {
        position: relative;
        bottom: 5px;
    }

    .btn-light {
        border: 1px solid #dfdfdf;
    }

.legend-5g {
    background-color: #bb0000;
}

.legend-4g {
    background-color: #ffffae;
}

.legend-fibre-dispo {
    background-color: #4caf50;
}

.legend-fibre-deploiement {
    background-color: #64c8c8;
}

.legend-fibre-arrive {
    background-color: #f4a261;
}

    .btn-red, .btn-red:hover {
        background-color: #e60000;
        color: white !important;
        border-radius: 25px;
        font-weight: bold;
        margin-top: 15px;
    }

    .btn-red:hover {
        border: 1px solid black;
    }

.legend-mentions {
    display: none;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 10px;
    max-height: 250px;
    overflow: scroll;
    overflow-x: hidden;
}

.legend-mentions span{
    font-size:.7em;
}
