html, body{
    margin:0;
    padding:0;
    overflow: hidden;
    font-family:'Barlow', 'sans-serif';
    background-color:#000000;
}

.hide, .hidden{
    display:none !important;
}

.mb-400{
    margin-bottom:1rem;
}

.text-center{
    text-align:center;
}

nav ul {
    display: flex;
    gap: 15px;
    margin:10px 0 0 0;
}
nav ul li{
    box-sizing: border-box;
    background-color:#FFFFFF;
    color:#000;
    border-radius:1.4375rem;
    height:2.75rem;
    display:flex;
    align-items: center;
    padding-inline:2em;
    cursor:pointer;
    transition: 0.3s background-color;
    font-size:14px;
    text-align: center;
}

nav ul li a{
    color:#000;
    text-decoration:none;
}
nav ul li:hover,
nav ul li.active {
    background-color:#00a6d1;
    color:#FFFFFF;
}

nav ul li:hover a,
nav ul li a:hover {
    color:#FFFFFF;
}


nav ul li .layer-on-demand{
    border-radius:1.4375rem;
    font-size:10px;
    text-align: center;
}

nav ul li.goto-premium{
    background-color: #DF9814FF;
    color:#FFFFFF;
}

nav ul li.goto-premium:hover{
    background-color: #ffb630;
}

.flex-container{
    display:flex;
    align-items: stretch;
}

.sidebar{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    z-index:100;
    background-color: #4fb2d2;
    transition: all 0.3s ease-out;
    width:4.81rem;
    color:#FFFFFF;
}

.sidebar.open{
    background-image:linear-gradient(#ffffff, #ffffff 4.81rem, rgba(16, 41, 50, 0.8) 4.81rem, rgba(16, 41, 50, 0.8), rgba(29, 77, 95, 0.8));
    width:23.75rem;
}

html, body, .flex-container{
    height:100%;
}

#map{
    width:100%;
}

h1{

    font-weight: normal;
    font-size: 1.4rem;
    color: rgb(223, 215, 249);
    background-color: rgba(0,0,0,0.7);
    border-radius: 15px;
    padding:10px;
}

.container-tc{
    position:absolute;
    z-index: 9999;
    left:50%;
    transform: translateX(-50%);
    transition: all 0.3s ease-out;
    margin:10px;
}

.container-bc{
    position:absolute;
    z-index: 9999;
    transform: translateX(-50%);
    transition: all 0.3s ease-out;
    bottom:0;
    left:50%;
    margin-bottom:30px !important;
}

.project-sidebar-button{
    height:4.81rem;
    width:4.81rem;
    background-color: #4fb2d2;
    transition: color 0.2s ease-out, background-color 0.2s ease-out;
    border:0;
    position:relative;
    cursor: pointer;
}

.project-sidebar-button:hover{
    color: #4fb2d2;
    background-color: #fff;
}

.project-sidebar-button svg{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
}

.project-sidebar-button .close path{ fill: #FFFFFF; }
.project-sidebar-button:hover .close path{ fill: #4fb2d2; }


.sidebar.open .project-sidebar-button .close{ display:none; }

.sidebar .project-sidebar-button .open{ display:none; }
.sidebar.open .project-sidebar-button .open{ display:block; }

.project-sidebar-button .open path{ fill: #FFFFFF; }
.project-sidebar-button:hover .open path{ fill: #4fb2d2; }

.project-sidebar-link[data-type="city"][data-is-granted="false"],
.project-sidebar-link[data-type="city"][data-is-calculated="false"]{
    position:relative;
}

.project-sidebar-link[data-type="city"][data-is-granted="false"]:hover,
.project-sidebar-link[data-type="city"][data-is-calculated="false"]:hover{
    color:rgba(255,255,255,0.2);
}

.project-sidebar-link[data-type="city"][data-is-granted="false"]:hover::after,
.project-sidebar-link[data-type="city"][data-is-calculated="false"]:hover::after{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    content: 'Abonnement non actif';
    background-color:rgba(0,0,0,0.9);
    color:#FFFFFF;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5em;
}
/* Ville accessible mais sans sections UCIX calculées : ce n'est pas un
   problème d'abonnement, on le dit. (Abonnement inactif ET non calculée →
   le message abonnement, déclaré après, l'emporte.) */
.project-sidebar-link[data-type="city"][data-is-granted="true"][data-is-calculated="false"]:hover::after{
    content: 'Ville non calculée';
}
.project-sidebar-link[data-type="city"][data-is-granted="false"]:hover::after{
    content: 'Abonnement non actif';
}

#search-results .no-results,
#search-results .pending {
    box-sizing: border-box;
    padding: 1.25rem 1.5rem;
    width: 100%;
    text-decoration: none;
    transition: color 0.2s ease-out, background-color 0.2s ease-out;
    border: 0;
    background-color: transparent;
    text-align: left;
}

#search-results .pending {
    text-align: center;
}



.sidebar-container{
    margin-bottom:4.81rem;
}

.project-sidebar-form {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem;
    font-size: 1.125rem;
    letter-spacing: 0.0375em;
    line-height: 1em;
    text-align: center;
    margin-bottom:0;
}


.project-sidebar-search {
    overflow: hidden;
    display: flex;
    margin-bottom: 0;
    width: 100%;
    border: 1px solid #fff;
    border-radius: 1.4375rem;
    text-align: left;
    background-color: rgba(0,0,0,0.7);
}

.project-sidebar-input {
    height: 2.75rem;
    flex: 1;
    padding: 0.8125rem 0.8125rem 0.8125rem 1.625rem;
    width: 0;
    border:0;
    background:none;
    color:#FFF;
    text-align:left;
}

.project-sidebar-input::placeholder{
    color:#FFF;
}

.project-sidebar-input:focus,
.project-sidebar-input:focus-visible,
.project-sidebar-input:active{
    border:0;
    outline: none;
}

.project-sidebar-submit {
    flex-shrink: 0;
    padding: 0 1rem;
    transition: color 0.2s ease-out, background-color 0.2s ease-out;
    border:0;
    background:none;
    color:#FFF;
    fill:#FFF;
}

.project-sidebar-submit img{
    height:19px;
}

.project-sidebar-link {
    position: relative;
    display: block;
    padding: 1.25rem 1.5rem;
    width: 100%;
    text-decoration: none;
    transition: color 0.2s ease-out, background-color 0.2s ease-out;
    border:0;
    background-color:transparent;
    text-align:left;
}

.project-sidebar-link:hover:not([data-is-granted="false"]):not([data-is-calculated="false"]){
    color: #4fb2d2;
    background-color: #fff;
}

.project-sidebar-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: normal;
    margin:0;
    padding:0;
    color:#FFFFFF;
}

.project-sidebar-location {
    color:#FFF;
}

.project-sidebar-link:hover .project-sidebar-name,
.project-sidebar-link:hover .project-sidebar-location{
    color: #4fb2d2;
}

.pending{
    font-style: italic;
}

.no-results, .pending{
    color:#FFFFFF;
    font-family:sans-serif;
    text-align:center;
}

#search-results, .default-city{
    overflow-y: scroll;
    height: calc(100vh - 4.81rem - 110px);
    max-height:300px;
    background-color: rgba(0,0,0,0.7);
    margin-inline:1.25rem;
    border-radius:1.4375rem;

    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */

}

#search-results::-webkit-scrollbar,
.default-city::-webkit-scrollbar{
    display: none;  /* Safari and Chrome */
}


.layer-suggestions{
    display: none;
}

.hover-search.forceHover .layer-suggestions,
.hover-search:hover .layer-suggestions{
    display: block;
}



.legend h2,
.legend-strength h2{
    font-weight: normal;
    font-size: 1.18rem;
    color: rgb(223, 215, 249);
    text-align: center;
    margin-bottom: 0.5rem;
    padding-top: 0;
    margin-top: 0;
}

.legend,
.legend-strength{
    padding:10px;
    background-color: rgba(0,0,0,0.7);
    border-radius:15px;
    transition: 0.3s transform ease-in-out;
}

#ctrl-relative-scale{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.legend:has(+ #ctrl-relative-scale){
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.legend .range-container,
.legend-strength .range-container{
    width:100%;
    background-color:#343332;
    border-radius:15px;
    height:25px;
}

.legend-default .range{
    height:25px;
    background:black;
   /* background:linear-gradient(90deg, rgba(0,255,0,0.5) 0%, rgba(244,203,9,0.5) 25%, rgba(243,148,0,0.5) 50%, rgba(200,39,10,0.5) 75%, rgba(200,39,10,0.5) 100%);*/
    background:linear-gradient(90deg, rgba(90,211,45,0.5) 0%, rgba(167,207,23,0.5) 20%, rgba(244,203,9,0.5) 40%, rgba(244,203,9,0.5) 60%, rgba(209,46,55,0.5) 80%, rgba(199,3,11,0.5) 100%);
    display:flex;
    align-content:center;
    align-items:center;
    border-radius:15px;
    padding:0 10px;
}

.relativeRangeWithNeutralLimits{
    background:linear-gradient(90deg,
    rgba(103,103,103,0.5) 0%,
    rgba(194,194,194,0.5) 14%,
    rgba(90,211,45,0.5) 14%,
    rgba(167,207,23,0.5) 28%,
    rgba(244,203,9,0.5) 42%,
    rgba(244,203,9,0.5) 56%,
    rgba(209,46,55,0.5) 70%,
    rgba(199,3,11,0.5) 84%,
    rgba(194,194,194,0.5) 84%,
    rgba(103,103,103,0.5) 100%
    ) !important;
}

.relativeRangeWithNeutraStartlLimit{
    background:linear-gradient(90deg,
    rgba(103,103,103,0.5) 0%,
    rgba(194,194,194,0.5) 16%,
    rgba(90,211,45,0.5) 16%,
    rgba(167,207,23,0.5) 32%,
    rgba(244,203,9,0.5) 48%,
    rgba(244,203,9,0.5) 64%,
    rgba(209,46,55,0.5) 80%,
    rgba(199,3,11,0.5) 100%
    ) !important;
}

.relativeRangeWithNeutraEndlLimit{
    background:linear-gradient(90deg,
    rgba(90,211,45,0.5) 0%,
    rgba(167,207,23,0.5) 16%,
    rgba(244,203,9,0.5) 32%,
    rgba(244,203,9,0.5) 49%,
    rgba(209,46,55,0.5) 65%,
    rgba(199,3,11,0.5) 81%,
    rgba(194,194,194,0.5) 81%,
    rgba(103,103,103,0.5) 100%
    ) !important;
}

.legend-strength .range{
    height:25px;
    background:black;
    background:linear-gradient(90deg, rgba(249,255,0,1) 0%,
        rgba(56,186,0,1) 100%);
    display:flex;
    align-content:center;
    align-items:center;
    border-radius:15px;
    padding:0 10px;
}

.legend-strength .range ul li{
    text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
    1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
}

.legend .range ul,
.legend-strength .range ul{
    width:100%;
    display:flex;
    justify-content: space-between;
    list-style-type: none;
    margin:0;
    padding:0;
    align-content:center;
    align-items:center;

}

.legend.lower{
    transform: scale(80%, 80%);
    filter: grayscale(1);
}

.available-on-demand{
    position: relative;
}

.nav-secondary  ul  li{
    list-style: none;
    cursor: pointer;
}
.nav-secondary > ul > li{
    padding:0.2em;
}

.nav-secondary > ul > li ul {
    display: none;
}

.nav-secondary > ul  li.open > ul{
    display: block;
}

.nav-secondary span:hover,
.nav-secondary li.active > span{
    color:#00a6d1;
}

.nav-secondary > ul > li > span{
    display:inline-block;
    box-sizing: border-box;
    width:100%;
    padding:0.5em 2em;
    background:#00a6d1;
    color:#FFFFFF;
    border-radius: 1.4375rem;
    text-align:right;
}

.nav-secondary > ul > li > span:hover{
    background-color: #088fb1;
    color:#FFF;
}


.nav-secondary > ul > li > ul > li{
    padding:0.2em;
}


.nav-secondary > ul > li > ul {
    background-color: rgba(0,0,0,0.7);
    border-radius:15px;
    padding:30px 0 20px 30px;
    margin-top:-20px;
}

.hflex-center{
    display:flex;
    justify-content: center;
    gap:15px;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hflex-center h2{
    margin:0 !important;
}

.modal--visible{
    visibility: visible !important;
    opacity: 1 !important;
}

.modal--overlay{
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    border: solid 1px #979797;
    padding: 0;
    animation: fadeIn .3s both;
    z-index: 1000;
}

.modal--content{
    z-index: 9999;
    max-width:calc(100vw - 20px);
    max-height:calc(100vh - 200px);
    overflow: auto;

    background-color: #efeeee;
    box-shadow: 0 19px 40px 0 rgba(50, 51, 94, 0.18);
    animation: slideFromTop .5s both;

    width: 500px;
    padding:2rem;
}

.modal--content li{
    margin-block: 1rem;
}

.modal--close{
    max-width: 3rem;
    aspect-ratio: 1/1;
    margin-left:auto;
    display: block;
    cursor: pointer;
}


.modal--overlay[aria-hidden="true"] {
    animation-name: fadeOut;
}

.modal--overlay[aria-hidden="true"] .modal--content {
    animation-name: slideFromBottom;
}

.f-lower{
    font-size:0.8em;
}

@keyframes fadeIn{
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut{
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideFromTop{
    from { transform: translateY(-50px); }
    to { transform: translateY( 0); }
}

@keyframes slideFromBottom{
    from { transform: translateY(0px); }
    to { transform: translateY(-50px); }
}
.has-subscription{
    text-align: center;
}

.has-subscription a{
    color: #191919;
}

.request-subscription{
    text-align: center;
}

.request-subscription a{
    color: #191919;
}

.ub_details{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}

details {
    display: contents;
    margin-block: 0;
}


details summary {
    box-sizing: border-box;
    margin-top: 0;
    border: solid 1px rgb(60 60 60);
    border-radius: 5px;
    padding: .5em 1em;
    background-color: #202020;
    color: #FFFFFF;
    list-style: none;
    cursor: pointer;
    text-align: center;
    max-width: 130px;
    min-height: 3.5em;
    font-size: 12px;
}

details:not(:last-child) summary{
    margin-right: 5px;
}

summary.active, summary:hover {
    background-color: #000000;

}

details article{
    order: 1;
    padding-block: 1rem;
    width: 100%;
}

.tree_rating_container,
.tree_criteria_container,
.ub_optimal_trees_container{
    display: flex;
    flex-wrap: wrap;
    gap:15px;
}

.tree_rating_container > *,
.tree_criteria_container > *,
.ub_optimal_trees_container > *{
    flex:1 1 30%;
    text-align: center;
}

.score_with_label{
    text-align: center;
    display:flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.score_with_label .score{
    color:#000000;
    background-color: #5ad32d;
    border-radius: 100vw;
    margin-bottom:0.2rem;
    padding:0.5em;
    flex:0;
    display: inline-block;
}

.donuts_with_label[data-id],
.score_with_label[data-id]{
    cursor:pointer;
}
