/* ========== RÉINITIALISATION & BASE ========== */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}
.hidden {
    display: none;
}
.user-unselectable {
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

/* ========== ZONE PRINCIPALE ========== */
#map {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ========== TITRE & COPYRIGHT ========== */
#titreMap,
#copyright {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1000;
}
#titreMap {
    bottom: 20px;
    font-size: 20px;
}
#copyright {
    display: none;
    font-size: 12px;
}
@media print {
    #copyright {
        display: block;
        bottom: 5px;
    }
}

/* ========== NIVEAU DE ZOOM ========== */
.zoom-level {
    position: absolute;
    bottom: 27px;
    left: 5px;
    z-index: 1002;
    width: 67px;
    height: 16px;
    background: white;
    padding: 2px;
    border: 2px solid black;
    font-size: 11px;
    font-weight: bold;
    font-style: italic;
    color: red;
    text-align: center;
    line-height: 16px;
}
@media print {
    .zoom-level {
        display: none !important;
    }
}

/* ========== INTERACTIVITÉ LEAFLET ========== */
.leaflet-interactive,
.leaflet-interactive:hover {
    pointer-events: auto !important;
    cursor: pointer !important;
}
canvas.leaflet-zoom-animated,
.leaflet-pane canvas,
.leaflet-zoom-animated .leaflet-interactive {
    pointer-events: auto !important;
}
canvas.leaflet-zoom-animated {
    cursor: inherit !important;
}
.leaflet-container {
    cursor: crosshair !important;
}
.leaflet-container.leaflet-dragging,
.leaflet-dragging .leaflet-interactive {
    cursor: move !important;
}
.leaflet-container:not(.leaflet-dragging) {
    cursor: crosshair !important;
}
.leaflet-popup {
    z-index: 1020;
}

/* ========== STYLE SELECTEUR ========== */
.centered-option {
    width: 100%;
    text-align: center;
}

/* ========== LÉGENDE ========== */
.legend,
.info.legend {
    background: white;
    border: 1px solid black;
    border-radius: 5px;
    padding: 5px;
    z-index: 1000;
    font-family: Arial, sans-serif;
}
.info.legend {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    opacity: 1;
    margin-bottom: 40px;
    z-index: 1010;
}
.info.legend i,
.info.legend img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}
.legend {
    /* position: absolute; */
    /* top: 150px; */
    /* left: 50px; */
    padding: 4px;
    max-width: 200px;
    max-height: 200px;
    overflow: auto;
}
.legend img {
    width: 15px;
    height: 15px;
    margin-right: 5px;
}
.legend h4 {
    font-size: 11px;
    color: #333;
    margin: 4px 0 10px;
}
.legend div {
    display: flex;
    align-items: center;
    justify-content: left;
    font-size: 10px;
    color: #555;
    margin-bottom: 5px;
    line-height: 18px;
    width: 100%;
    text-align: center;
}

/* ========== POPUPS ========== */
.popup {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #F0F0F0;
    border: 2px solid #7ae95c;
    padding: 10px;
    z-index: 1050;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    display: none;
}
.popup-link {
    text-align: center;
    display: block;
}
