@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jacquarda+Bastarda+9&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;

}
.label-class{
    background-color: #ffffff00;
    color: #ffffff;
    border: none;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
.label-class-route{
    background-color: #ac3131;
    color: white;
    border: none;
}
.label-class-dep{
    background-color: #1e7a32;
    color: white;
    border: none;
}
.label-class-reg{
    background-color: #8b8a24;
    color: white;
    border: none;
}
#map-div {
    height: calc(100vh - 1px);
    width: 100vw;
    margin-top: 1px;
}

#map-div.info {
    cursor: help;
}

#nbr-couche {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(115, 255, 166, 1) 0%, rgba(74, 222, 128, 1) 57%, rgba(15, 235, 95, 1) 100%);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
}

.leaflet-left.leaflet-top {
    position: fixed;
    top: unset;
    left: unset;
    bottom: 30px;
    right: 20px;
}

body .leaflet-bar a,
body .leaflet-bar a:hover {
    font-family: "Jacquarda Bastarda 9", serif;
    font-weight: bold;
    font-size: 27px !important;
    background-color: #ffffff;
    border-bottom: 1px solid #cccccc;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    display: block;
    text-align: center;
    text-decoration: none;
    padding-right: 2px;
    color: #676767;
}

.open .aff {
    display: none;
}

.c-menu .cm-el>.cac {
    display: none;
}

.cm-el.open>.cac {
    display: block !important;
}

body .dessin .leaflet-bar a {
    background-color: #22c55e00;
}

body .leaflet-bar a span {
    font-family: "Jacquarda Bastarda 9", serif;
    font-weight: bold;
    font-size: 27px !important;
}

.right-aside h4 {
    padding: 5px 15px;
}

.right-aside {
    background: rgba(245, 255, 244, 0.829);
    --globalnav-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    --globalnav-background: rgba(229, 236, 187, 0.22);
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    padding: 10px;
    padding-right: 2px;
    padding-left: 0px;
    position: fixed;
    right: 65px;
    top: 10px;
    height: calc(100vh - 20px);
    width: 300px;
    z-index: 999;
}

.btn-couche {
    height: 36px;
    width: 36px;
    position: fixed;
    right: 20px;
    z-index: 99999;
    border-radius: 10px;
    top: 92px;
    background-color: #ffffff;
    color: #676767;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.btn-info {
    height: 36px;
    width: 36px;
    position: fixed;
    right: 20px;
    z-index: 99999;
    border-radius: 10px;
    top: 132px;
    background-color: #ffffff;
    color: #676767;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

}

.btn-info.open {
    color: #4ADE80;
    border: solid 1px #4ADE80;
    transition: color 0.3s ease;

}

.btn-clear {
    height: 36px;
    width: 36px;
    position: fixed;
    right: 20px;
    z-index: 99999;
    border-radius: 10px;
    top: 172px;
    background-color: #ffffff;
    color: #676767;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

}

.btn-clear.open {
    color: #4ADE80;
    border: solid 1px #4ADE80;
    transition: color 0.3s ease;

}

.container {
    position: relative;
    opacity: 0;
    visibility: hidden;
    cursor: grab;
    height: calc(100vh - 172px);
    overflow-y: auto;
    margin: 10px 0;
}

.list-item {
    position: absolute;
    top: 0;
    left: 10px;
    height: 50px;
    width: 284px;
}

.item-content {
    height: 100%;
    border: 0px solid rgba(123, 123, 123, 0.498039);
    border-radius: 4px;
    color: #676767;
    padding-left: 5px;
    font-size: 17px;
    font-weight: 400;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px 0px;
    display: flex;
    align-items: center;
    position: relative;
}

.item-content span {
    position: absolute;
    top: -0px;
    left: -7px;
    width: 20px;
    height: 20px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, rgba(115, 255, 166, 1) 0%, rgba(74, 222, 128, 1) 57%, rgba(15, 235, 95, 1) 100%);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
}

.item-content .li-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #e9e9e9;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #676767;
    margin: 0 10px;
}

.item-content .li-icon i {
    font-size: 11px;
}

.item-content .li-name {
    font-size: 13px;
}

.dessin .leaflet-bar a,
.dessin .leaflet-bar a:hover {
    border-bottom: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.leaflet-bar a:hover,
.btn-lb:hover {
    color: #272727 !important;
}

.leaflet-bar a:first-child {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.leaflet-bar a:last-child {
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.leaflet-control-zoom.leaflet-bar.leaflet-control {
    border-radius: 10px !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65) !important;
    border: none !important;
}

header {
    position: fixed;
    top: 12px;
    z-index: 9999;
    display: flex;
    left: 70px;
    justify-content: space-between;
    width: calc(100vw - 82px);
    height: 0px;
}

.search-container {
    width: 322px;
    margin-left: 16px;
    margin-right: 16px;
}

.search-block {
    width: 100%;
    height: 48px;
    background-color: #ffffffea;
    position: relative;
    padding: 11px 52px 11px 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    border: none;
    border-radius: 24px;
}

.leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
    background-position: -57px 3px;
}

.leaflet-draw-toolbar .leaflet-draw-draw-polygon {
    background-position: -26px 3px;
}

.leaflet-draw-toolbar .leaflet-draw-draw-circle {
    background-position: -87px 3px;
}

.leaflet-draw-toolbar .leaflet-draw-draw-marker {
    background-position: -117px 3px;
}

.leaflet-draw-toolbar .leaflet-draw-draw-polyline {
    background-position: 3px 3px;
}

.dessin .leaflet-draw-toolbar .leaflet-draw-edit-edit,
.dessin .leaflet-draw-toolbar .leaflet-draw-edit-remove {
    border-radius: 50% !important;
    background-color: #22c55e00;
}

.dessin .leaflet-bar a:first-child {
    margin-right: 10px;
}

.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled,
.leaflet-draw-toolbar .leaflet-draw-edit-edit {
    background-position: -207px 3px;
}

.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled:hover,
.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled {
    background-color: #22c55e00;
}

.leaflet-draw-actions {
    top: 45px !important;
    background-color: #fff;
    display: block;
    /* border: 1px solid silver; */
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    z-index: 99;
    border-radius: 12px;
    width: 280px;
    left: 0px;
}

.leaflet-draw-actions a {
    border-radius: 24px;
    background-color: #4ADE80;
    border: none !important;
}

.leaflet-draw-actions a:hover {
    background-color: #22c55e;
    transition: .3s;
}

.leaflet-draw-actions li:last-child a {
    -webkit-border-radius: 0 4px 4px 0;
    border-radius: 24px !important;
    background-color: #ff5c5c;
}

.leaflet-draw-actions li:last-child a:hover {
    background-color: #ff0606;

}

.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled,
.leaflet-draw-toolbar .leaflet-draw-edit-remove {
    background-position: -237px 3px;
}

.dessin .leaflet-bar {
    box-shadow: none;
    border-radius: 4px;
}

.leaflet-draw-toolbar.leaflet-bar {
    display: flex;
}

.search-block input {
    width: 100;
    padding: 0 !important;
    height: 24px !important;
    line-height: 24px;
    width: 100%;
    outline: none;
    font-size: 15px;
    border: none;
    background: none;
}

.search-block input::placeholder {
    font-weight: 400;
    color: #676767;
    opacity: .8;
}

.search-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 48px;
    width: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #676767;
}

.search-result {
    /* display: none; */
    opacity: 0;
    /* au lieu de masquer avec un display none je vais masquer avec un opacity
     car si on clique sur un resultat de recherche l'action ne se declanchera pas si l'element parent n'est pas display  */
    background-color: #ffffffea;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    font-size: 15px;
    width: 100%;
    padding: 8px 0;
    height: 0px;
    max-height: calc(100vh - 200px);
}

.focus .search-result {
    display: block;
    opacity: 1;
    height: unset;
    min-height: 150px;
}

.search-container.focus .search-block {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    box-shadow: 0 0 2px rgb(0 0 0 / 20%), 0 -1px 0 rgb(0 0 0 / 2%);
}

.profil {
    display: flex;
    justify-content: center;
    height: 48px !important;
}

.btn-lb {
    width: 36px;
    height: 36px;
    background-color: #ffffffea;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    position: fixed;
    bottom: 110px;
    right: 20px;
    z-index: 9999;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #676767;
    cursor: pointer;
}

.leaflet-control-measure {
    width: 100%;
    background: none;
    box-shadow: none;

}

.leaflet-control-measure.leaflet-bar.leaflet-control.leaflet-measure-expanded .leaflet-measure-contents .leaflet-measure-action a {
    border-bottom-left-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
    border-top-left-radius: 50px !important;
    border-top-right-radius: 50px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notifications {
    position: fixed;
    z-index: 99999;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 15px;
}

.notification {
    position: relative;
    margin-top: 10px;
}

.n-content {
    background-color: #fff;
    width: 450px;
    height: 50px;
    max-width: 99vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.notification .n-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    font-size: 18px;
    color: #2240c5;
}

.notification .n-icon-success {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    font-size: 18px;
    color: #4bc522;
}

.notification .n-icon-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    font-size: 18px;
    color: #c53522;
}

.notification .n-icon-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    font-size: 18px;
    color: #e1e70f;
}

.bar {
    position: absolute;
    top: 0;
    width: 100%;
    transform-origin: right;
    transform: scaleX(1);
    height: 4px;
    border-radius: 8px;
    animation-name: bar;
    animation-duration: 2.3s;
    animation-delay: 2s;
    background-color: #2240c5;
}

.bar-error {
    position: absolute;
    top: 0;
    width: 100%;
    transform-origin: right;
    transform: scaleX(1);
    height: 4px;
    border-radius: 8px;
    animation-name: bar;
    animation-duration: 2.3s;
    animation-delay: 2s;
    background-color: #c52222;
}

.bar-warning {
    position: absolute;
    top: 0;
    width: 100%;
    transform-origin: right;
    transform: scaleX(1);
    height: 4px;
    border-radius: 8px;
    animation-name: bar;
    animation-duration: 2.3s;
    animation-delay: 2s;
    background-color: #e1e70f;
}

.notification .n-icon.error {

    color: #c52222;
}

.bar-success {
    position: absolute;
    top: 0;
    width: 100%;
    transform-origin: right;
    transform: scaleX(1);
    height: 4px;
    border-radius: 8px;
    animation-name: bar;
    animation-duration: 2.3s;
    animation-delay: 2s;
    background-color: #43c522;
}

.notification .n-icon.success {

    color: #22c54b;
}

@keyframes bar {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.notification p {
    width: 80%;
}

.outi {
    animation: notiOut 500ms ease forwards
}

@keyframes notiOut {
    to {
        height: 0;
        opacity: 0;
    }
}

.close {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 99;
    background-color: #fff;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.close:hover i {
    color: #e23b3b;
    transition: .4s;
}

.leaflet-control-measure.leaflet-bar.leaflet-control.leaflet-measure-expanded .leaflet-measure-contents .leaflet-measure-action a:hover {
    background-color: #6767671f;
    border-bottom: none;
    transition: .2s;
}

.leaflet-measure-action i {
    font-size: 15px;
}

#agriculture {}

.leaflet-measure-actions {
    display: grid;
    grid-template-columns: 20% 20% 20% 20% 20%;
}

.leaflet-control-scale-line {
    width: max-content;
    border: 1px solid #52df86;
    border-top: 1px solid #52df86;
    max-width: 36px;
    font-size: 8px;
    padding: 5px;
    border-radius: 6px;
}

.profil a {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
}

aside {
    background-color: #ffffffea;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 72px;
    z-index: 999;
}

aside ul {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    aside {
        top: unset;
        right: 0;
        width: unset;
        padding: 10px 5px;
    }

    .modal {
        top: unset !important;
        bottom: 100px;
        width: 100vw !important;
        left: 0px !important;
        max-height: 42vh;
        padding-right: 0px;
        right: 0px;
        display: flex;
        flex-direction: column-reverse;

    }

    aside ul {
        flex-direction: row;
        justify-content: space-between;
    }

    .leaflet-left.leaflet-top {
        top: 168px;
        bottom: unset;
    }

    .leaflet-bottom.leaflet-right {
        bottom: unset;
        right: unset;
        top: 90px;
        left: 60px;
    }

    .notifications {
        bottom: 100px !important;
    }
}

@media print {

    aside,
    .search-block,
    .recommendations,
    .btn-couche,
    #btn-info,
    .leaflet-control-container {
        visibility: hidden;
    }

    #map,
    #map * {
        visibility: visible;
    }

    #map {
        position: absolute;
        top: 0;
        left: 0;
    }
}

aside ul li {
    margin: 0 10px;
    padding: 15px 0;
}

.logo {
    font-size: 1.5em;
    cursor: pointer;
}

.logo div:first-child {

    display: flex;
    justify-content: center;
}

.logo div:first-child span {
    font-family: "Oswald", sans-serif;
    font-weight: bold;
}

.logo div:first-child span:nth-child(1) {
    color: rgb(10, 170, 31);
}

.logo div:first-child span:nth-child(2) {
    color: rgb(204, 59, 59);
}

.logo div:first-child span:nth-child(3) {
    color: rgb(214, 255, 66);
}

.logo div:last-child {
    display: flex;
    justify-content: center;
    font-size: 11px;
}

.bt {
    border-bottom: 1px solid silver;
}

.icon-menu {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background-color: rgb(233 239 228);
    color: #676767;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

li:hover .icon-menu i,
li:hover .text-menu {
    color: #272727;
}

li.on .icon-menu i,
.grid .grid-element.btn-menu.active .icon-menu i,
.grid .grid-element.btn-menu:has(.open) .icon-menu i {
    color: #fff;
}

li.on .text-menu,
.grid .grid-element.btn-menu.active .text-menu {
    color: #4ADE80;
}

.grid .grid-element.btn-menu.active .text-menu,
.grid-element:has(.open) .text-menu {
    color: #4ADE80 !important;
}

li.on>.icon-menu,
.grid .grid-element.btn-menu.active .icon-menu,
.grid-element:has(.open) .icon-menu {
    background: linear-gradient(90deg, rgba(115, 255, 166, 1) 0%, rgba(74, 222, 128, 1) 57%, rgba(15, 235, 95, 1) 100%);
}

.modal-box h5 {
    font-weight: 500;
    font-size: 13px;
    padding: 10px 0;
    margin: 10px 10px 0px 10px;
}

.text-menu,
.grid .grid-element.btn-menu .text-menu {
    font-size: 10px;
    padding-top: 5px;
    color: #676767;
}

.grid .grid-element.btn-menu .icon-menu i {
    color: #676767
}

.grid .grid-element.btn-menu:hover i,
.grid .grid-element.btn-menu:hover .text-menu {
    color: #272727;
}

li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.log {
    text-align: center;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    border: 1px solid #21422361;
    background: transparent;
    /*background: linear-gradient(90deg, rgb(92 225 141) 0%, rgb(74 222 128) 57%, rgb(92 225 141) 100%);*/
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    position: fixed;
    width: 300px;
    top: 60px;
    left: 80px;
}

.modal-box {
    min-height: 150px;
    background: rgba(245, 255, 244, 0.829);
    --globalnav-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    --globalnav-background: rgba(229, 236, 187, 0.22);
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    padding: 10px;
    margin-top: 10px;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    /* max-width: min-content; */
    overflow-y: scroll;
    /* Permet le scroll vertical */
    overflow-x: visible;
    /* Permet aux éléments de dépasser horizontalement sans scroll */
    transition: .4s;
}

::-webkit-scrollbar {
    width: 7px;
}

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

.leaflet-bottom.leaflet-left {
    left: unset;
    right: 20px;
}

::-webkit-scrollbar-track {
    background-color: #4fd4652c;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: #83838360;
}

.pad {
    padding: 10px;
}

.flex {
    display: flex;
}

.p-obj {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
    margin-top: 10px;
    align-items: center;
}

.p-obj span {
    font-size: 11px;
    padding-top: 5px;
}

.p-obj img {
    border: 2px solid rgba(192, 192, 192, 0);
    border-radius: 8px;
}

.p-obj:hover img {
    border: 2px solid #4ade809f;
}

.p-obj.active img {
    border: 2px solid #4ADE80;
}

.modal h4 {
    padding: 5px 10px;
}

/* #modal-analyse{
    max-height:max-content;
    height: min-content;
} */
.f-bs,
.grid {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
}

.mt-1 {
    margin-top: 10px;
}

.grid-element {
    margin: auto;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    font-weight: 600;
}

.grid .grid-element.btn-menu .icon-menu {
    width: 52px !important;
    height: 52px !important;
    background-color: rgb(233 239 228);
    color: #676767;
}

.f-b {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #676767;
    font-size: 13px;
}

.f-b:hover,
.dessin .leaflet-bar a:hover {
    background-color: #38442f15;
    color: #272727;
    transition: .3s;
}

.bouton {
    padding: 15px;
}

.bouton button {
    width: 100%;
    padding: 10px 0;
    background-color: #4ade80;
    color: #fff;
    border-radius: 24px;
}

.bouton button:hover {
    background-color: #22c55e;
    transition: .3s;
}

.pop .title {
    font-weight: 700;
    font-size: 15px;
    color: #22c55e;
}

.leaflet-draw-toolbar.leaflet-bar.leaflet-draw-toolbar-top {
    width: 280px;
    display: flex;
    margin-top: 10px;
    box-shadow: none;
    justify-content: space-between;
}

.rel {
    position: relative;
    font-size: .8em;
}

.c-menu {
    position: absolute;
    left: 65%;
    top: 55%;
    background: rgb(223 227 201 / 22%);
    --globalnav-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    --globalnav-background: rgba(229, 236, 187, 0.22);
    width: 120px;
    min-height: 50px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    z-index: 9999;
    border-radius: 12px;
    padding: 10px;
}

.grid-element:nth-child(4n) .c-menu,
.grid-element:nth-child(3n) .c-menu {
    left: unset;
    right: 60%;
}

.cm-el {
    border-radius: 8px;
    padding: 5px 7px;
    display: flex;
    align-items: center;

}

.cm-el>div {
    display: flex;
    align-items: center;
}

.cm-el:hover {
    background-color: #53fd611e;
}

.cm-el span {
    margin-left: 5px;
}

.pop .title {
    font-weight: 700;
    font-size: 15px;
    color: #22c55e;
}

body .leaflet-bar .leaflet-measure-action a {
    background-color: #ffffff00;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.info.legend {
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    transition: all 0.3s ease-in-out;
    /* Pour une transition douce */
    cursor: pointer;
    /* Indique que l'élément est cliquable */
}

.pb-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #093013;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.p-block {
    padding-right: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 10px;
}

.modal-box.full {
    height: calc(100vh - 180px);
}

.leaflet-compass {
    top: 162px !important;
    right: 10px !important;
}

.leaflet-control-locate {
    top: 202px !important;
    right: 10px !important;
    border: none !important;
}

.leaflet-control.leaflet-compass {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;

}

.leaflet-control.leaflet-compass .compass-button {
    display: flex;
    justify-content: center;
    flex-wrap: wrap !important;

    align-content: center;
}

.leaflet-control.leaflet-compass .compass-icon {
    width: 20px;
    height: 20px;
    background-size: cover;
}

.leaflet-control-locate.leaflet-bar a {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0 !important;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.65);
}

.leaflet-compass .compass-alert {
    bottom: 10% !important;
    right: calc(100% + 5px) !important;
    padding: 5px !important;
    font-size: 10px !important;
    border-color: #f9a3a3 !important;
    color: #ff2e2e !important;
}

.leaflet-control-locate a i {
    font-size: 15px;
}

#legende {
    height: calc(100vh - 225px);
    overflow-y: auto;
}

.legend-item i {
    margin-right: 20px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px !important;
}

.legend-pad {
    height: 100px;
}

.legend-title {
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.legend-toggle::before {
    content: "Afficher légende";
    /* Texte lorsque la légende est fermée */
    font-weight: bold;
}




.info.legend h4 {
    padding-bottom: 15px;
}

/* Styles pour le loader */
#loader {
    position: fixed;
    left: 70px;
    bottom: 0;

    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999999;
    /* Toujours au-dessus des autres éléments */
}

.spinner {
    border: 7px solid #f3f3f39d;
    border-radius: 50%;
    border-top: 7px solid #22c55e;
    width: 80px;
    height: 80px;
    animation: spin 3s linear infinite;

}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Masquer le loader par défaut */
#loader.hidden {
    display: none;
}


.leaflet-control-locate {
    position: absolute;
    float: right;
    top: 530px;
    right: 10px;
    border-radius: 50%;
    border: solid blue 1px;
}

.compass-button {
    border-radius: 50%;

}

.leaflet-compass {
    position: absolute;
    float: right;
    top: 485px;
    right: 11px;
}

@keyframes ldio-o2brwnfp74k-o {
    0% {
        opacity: 1;
        transform: translate(0 0)
    }

    49.99% {
        opacity: 1;
        transform: translate(40px, 0)
    }

    50% {
        opacity: 0;
        transform: translate(40px, 0)
    }

    100% {
        opacity: 0;
        transform: translate(0, 0)
    }
}

@keyframes ldio-o2brwnfp74k {
    0% {
        transform: translate(0, 0)
    }

    50% {
        transform: translate(40px, 0)
    }

    100% {
        transform: translate(0, 0)
    }
}

.ldio-o2brwnfp74k div {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 30px;
    left: 10px;
}

.ldio-o2brwnfp74k div:nth-child(1) {
    background: #0ce982;
    animation: ldio-o2brwnfp74k 1s linear infinite;
    animation-delay: -0.5s;
}

.ldio-o2brwnfp74k div:nth-child(2) {
    background: #d5f046;
    animation: ldio-o2brwnfp74k 1s linear infinite;
    animation-delay: 0s;
}

.ldio-o2brwnfp74k div:nth-child(3) {
    background: #0ce982;
    animation: ldio-o2brwnfp74k-o 1s linear infinite;
    animation-delay: -0.5s;
}

.loadingio-spinner-dual-ball-jwk0tkw0j4 {
    width: 78px;
    height: 78px;
    display: inline-block;
    overflow: hidden;
    background: rgba(255, 255, 255, 0);
}

.ldio-o2brwnfp74k {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(0.78);
    backface-visibility: hidden;
    transform-origin: 0 0;
    /* see note above */
}

.ldio-o2brwnfp74k div {
    box-sizing: content-box;
}

/* Styles pour le menu contextuel */
/* .context-menu {
    color: white;
    display: none;
    position: absolute;
    background-color: rgb(62, 59, 59);
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.context-menu ul {
    list-style-type: none;
    padding: 10px;
    margin: 0;
}

.context-menu ul li {
    text-align: start;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.context-menu ul li:hover {
    background-color: #f0f0f0;
    color: black;
}

.label-class {
    font-size: 12px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    padding: 2px 5px;
    color: #333;
  }
   */
.info {
    cursor: help;
}

.context-menu {
    margin: 0;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.574), 0 -1px 0px rgba(0, 0, 0, 0.02);
    position: absolute;
    z-index: 10000;
    background: white;

    padding: 0px;
    display: none;
    font-weight: 700;
    font-size: 13px;
    /* overflow: hidden; */
}

.context-menu-item {
    margin: 5px;

    text-align: left;
    padding: 5px;
    cursor: pointer;
    position: relative;
    /* border-top: 1px solid #b9b5b5; */
    font-weight: 700;
    border-radius: 8px;

}


.context-menu-item:hover {
    background-color: #0ce9829d;
    /* Ajouter un surlignage au survol */

    font-weight: 700;
    transition: all 0.5s ease;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.574), 0 -1px 0px rgba(0, 0, 0, 0.02);
    padding: 5px;
    font-weight: 700;
}

.context-menu-item:hover .submenu {
    display: block;
    /* Afficher le sous-menu au survol */
}

.submenu-item {
    padding: 5px;
    cursor: pointer;
    font-weight: 700;
}

.submenu-item:hover {
    background-color: #0ce982;
    /* Ajouter un surlignage au survol */
}


.leaflet-marker-icon:hover {
    animation: border-pulse 1s infinite;
}

.custom-div-icon {
    display: flex;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}

@keyframes border-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.js-toggle-title {
    transition: all .5s ease;
}

.js-toggle-title:hover {
    color: rgb(0, 195, 13);
    transform: scale(1.01);
}

.js-toggle-title.open {
    color: rgb(0, 195, 13);
    transform: scale(1.01);
}

.option-texte {
    margin: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 180px;

}