/* =========================================================
   STYLE – CARTE LEAFLET
   ========================================================= */

:root {
    --primary-1: #7d6c93;
    --primary-2: #e5a275;
    --secondary: #3188a0;
    --light-1: #f3f3ee;
    --white: #ffffff;
    --text-dark: #2b2b2b;
}

/* Conteneur élégant */
.map-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0;
    border: 3px solid var(--primary-1);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: var(--light-1);
    overflow: hidden;
}

/* Carte Leaflet */
#map1 {
    width: 100%;
    height: 600px;
    position: relative; /* IMPORTANT pour positionner la légende */
}

/* Boutons Leaflet */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background: var(--primary-1) !important;
    color: var(--white) !important;
}
.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
    background: var(--secondary) !important;
}

/* ======== LÉGENDE WMS ======== */
#legend-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
    z-index: 5000;
    font-size: 14px;
}

#legend-box h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
}

#legend-img {
    max-width: 160px;
    display: block;
}
