@import url("/www/css/vars.css") screen;

:root {
    --leaflet-green: var(--color3);
    --leaflet-green-hover: var(--bg-btn);
    --leaflet-border: rgba(0, 0, 0, 0.15);
    --leaflet-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* zoom */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--leaflet-shadow);
}
.leaflet-control-container .leaflet-bar {
    padding:0!important;

}
.leaflet-control-zoom a,
.leaflet-bar .easy-button-button {
    background-color: var(--leaflet-green) !important;
    color: #ffffff !important;
    border: none !important;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 22px;
    font-weight: bold;
    -webkit-transition: all 0.6s ease-in;
    -moz-transition: all 0.6s ease-in;
    -ms-transition: all 0.6s ease-in;
    -o-transition: all 0.6s ease-in;
    transition: all 0.6s ease-in;
}

.leaflet-control-zoom a:first-child {
    border-radius: 6px 6px 0 0;
}

.leaflet-control-zoom a:last-child {
    border-radius: 0 0 6px 6px;
}

.leaflet-control-zoom a:hover,
.leaflet-bar .easy-button-button:hover {
    background-color: var(--leaflet-green-hover) !important;
}
.leaflet-bar .easy-button-button{
    border-radius: 6px!important;
    padding: 2px;
}
.leaflet-bar .easy-button-button .antea-france {
    font-size: 20px;
}
/* Conteneur global */
.leaflet-control-legend {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    line-height: 1.4;
}

/* Gestionnaire de couche */

.leaflet-control-layers {
    border-radius: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: var(--leaflet-shadow);
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    margin-right: 20px !important
}

.leaflet-control-layers-toggle {
    background-image: none !important;
    background-color: var(--leaflet-green);
    width: 30px !important;
    height: 30px !important;
    border-radius: 4px !important;
    position: relative;
    -webkit-transition: all 0.6s ease-in;
    -moz-transition: all 0.6s ease-in;
    -ms-transition: all 0.6s ease-in;
    -o-transition: all 0.6s ease-in;
    transition: all 0.6s ease-in;
    float: right;
    display: block;
}

.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
    display: block !important;
    border-radius: 0 6px 6px 0 !important;
}

.leaflet-control-layers-toggle::before {
    content: "\f5fd";
    color: white;
    font-size: 16px;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Font Awesome 6 Free";
}

.leaflet-control-layers-toggle:hover {
    background-color: var(--leaflet-green-hover);
}

.leaflet-control-layers-expanded {
    padding: 10px 12px;
    border-radius: 6px;

}

.leaflet-control-layers {
    padding: 0 !important;
}

.leaflet-control-layers label {
    cursor: pointer;
    margin-bottom: 4px;
}

.leaflet-control-layers input[type="checkbox"],
.leaflet-control-layers input[type="radio"] {
    accent-color: var(--leaflet-green);
}

.leaflet-bar {
    border-radius: 6px;
    overflow: hidden;
}

.leaflet-control-layers-list {
    background: #FFF;
    right: 30px;
    padding: 10px
}
.side2 .leaflet-control-layers-list {
    left: 30px;
}
.side2 .leaflet-control-layers-expanded .leaflet-control-layers-toggle{
    left: 0;
    position: absolute;
    border-radius: 6px 0 0 6px !important;
}

#module_carto .leaflet-top.leaflet-left {
    top: 40px !important
}