.is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
}

.label {
    display: flex;
    align-items: center;
}

.legend-input * {
    cursor: pointer;
}

input[type='checkbox'] {
    -webkit-appearance: none;
    appearance: none;
}

input[type='checkbox']:focus {
    outline: none;
}

.checkbox-input {
    min-width: 18px;
    height: 18px;
    border-radius: 4px;
    border: solid 1.5px #131313;
}

.legend-interactive {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-flow: wrap;
    margin-bottom: 16px;
}

.map-container {
    position: relative;
}

.map-title, .legend-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 16px 0;
    color: #928575;
}

.legend-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.legend-input {
    display: flex;
    align-items: center;
    margin: 8px 18px 8px 0;
}

.legend-text {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 3px 4px 0 4px;
    user-select: none;
    margin: 0;
}

.legend-text.active {
    font-weight: 800;
}

.legend-interactive .legend-input:hover .legend-text {
    font-weight: 800;
}

.legend-input input[type='checkbox']:checked {
    background-image: url('../images/check.svg');
    background-position: center;
    background-size: contain;
    
}

.legend-img-1 {
    width: 19px;
    height: 19px;
    border-radius: 12px;
    background: #ce8aba;
    border: solid 1px #ce8aba;
    margin-left: 3px;
}

.legend-img-2 {
    border: solid 1.5px #a5d4c6;
    min-width: 19px;
    height: 19px;
    border-radius: 12px;
    background: repeating-linear-gradient(150deg, #a5d4c6, #a5d4c6 1.5px, #f5f1ea 1px, #f5f1ea 4px);
    margin-left: 3px;
}

.legend-img-3{
    border: solid 1.5px #63B8E8;
    min-width: 15.5px;
    height: 15.5px;
    border-radius: 12px;
    background: repeating-linear-gradient(150deg, #63B8E8, #63B8E8 1.5px, #f5f1ea 1px, #f5f1ea 4px);
    margin-left: 3px;
}

.legend-img-4 {
    min-width: 19px;
    height: 19px;
    border-radius: 12px;
    background: #FFCD2A;
    border: solid 1px #FFCD2A;
    margin-left: 3px;
}

.legend-img-5 {
    border: solid 1.5px #1D1D1B;
    min-width: 15.5px;
    height: 15.5px;
    border-radius: 12px;
    background: repeating-linear-gradient(150deg, #1D1D1B, #1D1D1B 1.5px, #f5f1ea 1px, #f5f1ea 4px);
    margin-left: 3px;
}

.legend-img-6 {
    min-width: 16px;
    height: 16px;
    border-radius: 12px;
    background:transparent;
    border: solid 1px #EA560D;
    margin-left: 3px;
}

.legend-img-7 {
    min-width: 19px;
    height: 19px;
    border-radius: 12px;
    background:#FFF9C7;
    border: solid 1px #1D1D1B;
    margin-left: 3px;
}

/* .legend-img-7::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 16px;
    aspect-ratio: cos(30deg);
    clip-path: polygon(-50% 50%, 50% 100%, 150% 50%, 50% 0);
    background: #cad400;
    z-index: -1;
} */


.legend-img-8 {
    min-width: 19px;
    height: 19px;
    border-radius: 12px;
    background:#C8D400;
    border: solid 1px #1D1D1B;
    margin-left: 3px;
}
.legend-img-9 {
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    background: #fff;
    border: solid 2.5px #8acaed;
    margin-left: 3px;
    padding: 2px;
    background-image: url(../images/x.svg);
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}


.legend-img-10 {
    min-width: 24px;
    height: 24px;
    border-radius: 0;
    background: #fff;
   
    margin-left: 3px;
    padding: 2px;
    background-image: url(../images/pastilles.svg);
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

/* .legend-img-11 {
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    background: #fff;
    border: solid 2.5px #8acaed;
    margin-left: 3px;
    padding: 2px;
    background-image: url(../images/x.svg);
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
} */

#legend-conformite {
    display: none;
    padding: 16px;
    background: #fcfcfb;
    border: 1px solid #dcd9d5;
    border-radius: 8px;
    margin-bottom: 16px;
}

#legend-conformite.active {
    display: block;
}

.conformite {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-flow: wrap;
    margin-bottom: 16px;
    gap: 20px;
}


.conformite .pastille {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
}

.conformite .pastille p {
    font-size: 0.8rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.conformite .pastille .pastille-1 {
    width: 16px;
    height: 16px;
    border-radius: 12px;
    background: #007CC2;
    border: solid 1px #007CC2;
}

.conformite .pastille .pastille-2 {
    width: 16px;
    height: 16px;
    border-radius: 12px;
    background: #E30613;
    border: solid 1px #E30613;
}

.conformite .pastille .pastille-3 {
    width: 16px;
    height: 16px;
    border-radius: 12px;
    background: #7EBA28;
    border: solid 1px #7EBA28;
}
.conformite .pastille .pastille-4 {
    width: 16px;
    height: 16px;
    border-radius: 12px;
    background: #F2C9E0;
    border: solid 1px #F2C9E0;
}
.conformite .pastille .pastille-5 {
    width: 16px;
    height: 16px;
    border-radius: 12px;
    background: #ABABAE;
    border: solid 1px #ABABAE;
}


.images-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.layer-interactive {
    display: none;
}

@media (max-width: 1040px) {

    .map-title, .legend-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .legend-input {
        margin-bottom: 8px;
        align-items: flex-start;
    }

    .legend-interactive {
        flex-direction: column;
        align-items: flex-start;
    }

    .legend-text {
        font-size: 16px;
        margin: 0;
        padding-top: 0;
    }

    .legend-title {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .legend-img-6, .legend-img-7 {
        min-width: 22px;
        height: 22px;
    }

}