/* @import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap"); */


/** Select */

.custom-select {
    position: relative;
    font-family: Quicksand;
}

.custom-select select {
    display: none;
}

.select-selected {
    height: 44px;
    display: flex;
    align-items: center;
    font-weight: bold !important;
    border-radius: 4px;
    border: solid 1px #036ba1;
    background-position: right 10px bottom 48%;
    background-repeat: no-repeat;
}

.select-selected:not(.select-arrow-active) {
    background-image: url("../icons/Icons/chevron-down-blue.svg");
}

.select-selected.select-arrow-active {
    background-image: url("../icons/Icons/chevron-up-blue.svg");
}

.select-items div,
.select-selected {
    color: #036ba1;
    padding: 4px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    transition: all 0.1s;
}

.select-items {
    position: absolute;
    background-color: white;
    top: 90%;
    left: 0;
    right: 0;
    position: absolute;
    padding: 10px 2px 16px 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: solid 1px #036ba1;
    border-top: none;
}


.select-hide {
    display: none;
}

.block-hide {
    opacity: 0;
}

.select-items div:hover,
.same-as-selected {
    font-weight: bold !important;
    color: #db0084 !important;
    background-color: #db00840d;
}

.year-norms-selected {
    background-color: #036ba1 !important;
    color: white;
}

@media (max-device-width: 762px) {
    #data-filter {
        position: absolute;
        left: 0px;
        width: 100% !important;
        z-index: 1;
    }

    .custom-select:not(#select-area) {
        position: unset;
        flex: 1;
        border-radius: 0 !important;
    }

    #select-year-norms,
    .select-selected:not(#select-area .select-selected) {
        display: flex;
        align-items: center;
        font-weight: bold !important;
        border-radius: 0;
        border: solid 1px #eeeeee;
        border-left: none;
        background-position: right 16px bottom 50%;
        background-repeat: no-repeat;
    }

    #select-year-norms.not-selected {
        border-bottom: 6px solid #036ba1 !important ;
    }

    .select-selected:not(#select-area .select-selected):last-child {
        border-right: none;
    }

    #select-year {
        width: calc(55% + 15px) !important ;
    }
    #data-filter .select-items {
        z-index: 10;
        margin-left: 3px;
        position: absolute;
        width: calc(100% - 6px) !important;
        border-radius: 0px;
        border-bottom: solid 1px #036ba1;
        padding-top: 10px;
    }

    #data-filter.with-days .custom-select,
    #select-area {
        position: relative;
    }

    #data-filter.with-days .custom-select .select-selected:not(:first-child) {
        margin-top: -1px;
    }

    .select-selected:not(#select-area .select-selected).select-arrow-active {
        position: relative;
        border-bottom-color: white;
    }

    .custom-select-selected:not(#select-area .select-selected).not-selected {
        border-right-color: #036ba1;
    }

    #data-filter .custom-select .select-arrow-active {
        border: none;
    }

    .custom-select-selected:not(#select-area .select-selected).not-selected .select-selected{
        border-right: none;
    }

    .custom-select-selected:not(#select-area .select-selected) .select-selected.select-arrow-active{
        border-bottom-color: #036ba1;
    }

    .select-selected:not(#select-area .select-selected).select-arrow-active:after {
        position: absolute;
        content: " ";
        width: calc(100% - 3px);
        height: 100%;
        left: 0;
        top: 0;
        border: solid 2px #036ba1;
        border-bottom: none;
        padding-bottom: 10px;
    }

    #data-filter:not(.with-days) .custom-select.not-selected {
        border-bottom: 7px solid #036ba1 !important ;
    }

    #data-filter:not(.with-days) .custom-select.not-selected .select-selected{
        border-bottom: none;
    }

    #data-filter:not(.with-days) #select-month:not(.custom-select-selected) {
        background-color: white;
    }


    #data-filter.with-days {
        height: 120px;
        flex-direction: column;
    }

    #data-filter.with-days .custom-select{
        width: 100% !important;
        height: 50px;
    }

    #data-filter.with-days .custom-select .select-selected {
        height: 100%;
        padding: 0 16px;
        border-bottom: none !important;
    }

    #select-year-norms {
        width: 50% !important;
        margin-left: 0 !important;
    }
}

.custom-select-selected {
    background-color: #036ba1;  
    border-radius: 5px;
}

.custom-select-selected .select-selected {
    color: white;
}

.custom-select-selected .select-selected:not(.select-arrow-active) {
    background-image: url("../icons/Icons/chevron-down-white.svg");
}

.custom-select-selected .select-selected.select-arrow-active {
    background-image: url("../icons/Icons/chevron-up-white.svg");
}


@media (max-device-width: 374px) {
    .select-selected {
        font-size: 10px !important;
    }
}

/** Switch Input */

.switch-input {
    position: relative;
    cursor: pointer;
    display: flex;
    height: 20px;
    align-items: center;
    margin-bottom: 16px;
    padding-left: 54px;
}

.switch-input input {
    opacity: 0;
    width: 0px;
    height: 0px;
}

.switch-slider {
    opacity: 1;
    position: absolute;
    width: 40px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d4d7db;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.switch-slider:before,
.switch-slider:after {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    opacity: 1;
    border-radius: 50%;
    -webkit-transition: 0.4s all ease-in-out;
    transition: 0.4s all ease-in-out;
}

.switch-input input:checked + .switch-slider:before,
.switch-input input:checked + .switch-slider:after {
    left: 23px;
}

.switch-input input:checked + .switch-slider {
    background-color: #036ba1;
}

.switch-input input:focus + .switch-slider {
    box-shadow: 0 0 1px #036ba1;
}

.switch-input input:checked + .switch-slider:after {
    opacity: 0;
}

.switch-slider {
    border-radius: 34px;
}

.switch-slider:before {
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../icons/Icons/check.svg");
}

/** Clim Data Table */

#clim-data-table-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

#clim-data-table-container #clim-data-table-main-title {
    width: 100%;
    height: 41px;
    display: flex;
    background-color: #003661;
}

#clim-data-table-container #clim-data-table-main-title span {
    margin: auto;
    color: white;
    font-family: Quicksand;
    font-size: 14px;
    font-weight: 600;
}

#clim-data-table-container #clim-data-table-sub-title {
    width: 100%;
    height: 42px;
    display: flex;
    background-color: #e7edf6;
    border-bottom: 1px solid #ffffff;
}

#clim-data-table-container #clim-data-table-sub-title span {
    margin: auto;
    color: black;
    font-family: Quicksand;
    font-size: 14px;
    font-weight: 600;
}

#clim-data-table-container .data-table-labels {
    background-color: #e7edf6;
}

#clim-data-table-container .data-table-labels #clim-data-table-icons-line {
    display: flex;
}

#clim-data-table-container .data-table-labels #clim-data-table-icons-line div {
    flex: 1;
    border-bottom: 1px solid #ffffff;
    height: 52px;
    background-repeat: no-repeat;
    background-position: center;
}

#clim-data-table-container .data-table-labels #clim-data-table-icons-line div:not(:last-child) {
    border-right: 1px solid #ffffff;
}

#clim-data-table-container .data-table-labels #clim-data-table-label-line {
    display: flex;
}

#clim-data-table-container .data-table-labels #clim-data-table-label-line .label-container {
    flex: 1;
    height: 102px;
}

#clim-data-table-container .data-table-labels #clim-data-table-label-line .label-container:not(:last-child) {
    border-right: 1px solid white;
}

#clim-data-table-container .data-table-labels #clim-data-table-label-line .label-container div {
    text-align: center;
    font-family: Quicksand;
    font-size: 14px;
    font-weight: 600;
}

#clim-data-table-container .data-table-labels #clim-data-table-label-line .label-container .data-label {
    height: 36px;
    margin-top: 16px;
}

#clim-data-table-container .data-table-labels #clim-data-table-label-line .label-container .norms-years {
    height: 16px;
    padding: 16px 0;
}

#clim-data-table-container .data-table-labels #clim-data-table-icons-line .temp-icon {
    background-image: url("../icons/IconBar/temp.svg");
}

#clim-data-table-container .data-table-labels #clim-data-table-icons-line .prec-icon {
    background-image: url("../icons/IconBar/pluie-1.svg");
}

#clim-data-table-container .data-table-labels #clim-data-table-icons-line .inso-icon {
    background-image: url("../icons/IconBar/Soleil.svg");
}

#clim-data-table-container .data-table-values {
    border: 1px solid #e7edf6;
}

#clim-data-table-container .data-table-values .line-data {
    height: 100%;
    display: flex;
}

#clim-data-table-container .data-table-values .line-data:not(:last-child) {
    border-bottom: 1px solid #e7edf6;
}

#clim-data-table-container .data-table-values .line-data .data-cell {
    flex: 1;
    /* height: 18px; */
    padding: 12px 0;
    text-align: center;
    font-family: Quicksand;
    font-size: 14px;
    font-weight: 600;
}

#clim-data-table-container .data-table-values .line-data .data-cell:not(:last-child) {
    border-right: 1px solid #e7edf6;
}

.sets-for-statements {
    margin-top: 43px;
}

.sets-for-statements #clim-data-table-icons-line div {
    border-bottom: none !important;
}

.sets-for-statements #clim-data-table-label-line {
    margin-top: -22px !important;
}

.sets-for-statements #clim-data-table-label-line .label-container {
    height: 60px !important;
}

.sets-for-statements #clim-data-table-label-line .norms-years {
    display: none;
    padding: 0 !important;
    height: 0 !important;
}

@media (max-device-width: 762px) {
    #clim-data-table-container {
        /* margin-top: 78px; */
    }

    #data-table-label {
        background-color: #e7edf6;
        /* height: 30px; */
        /* margin: 0 0 16px; */
        padding: 14px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #data-table-label .data-label {
        margin-bottom: 10px;
    }

    #data-table-label div {
        font-family: Quicksand;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
    }
}

/** Norms Table */

#norms-table {
    margin-top: 33px;
    padding-bottom: 70px;
}

#norms-table .norms-table-line {
    display: flex;
    width: 100%;
    box-shadow: inset 0 1px 0 0 #dddddd;
    height: 50px;
}

#norms-table .norms-table-line .norms-table-line-label {
    margin: auto 0;
    width: 468px;
    font-family: Quicksand;
    font-size: 14px;
    font-weight: 500;
}

#norms-table .norms-table-line .norms-table-line-value {
    margin: auto 0;
    font-family: Quicksand;
    font-size: 14px;
    font-weight: 500;
    color: #5a5a5a;
}

/** Statements Table */

.statements-table {
    margin-top: 33px;
    border-bottom: 1px solid #e7edf6;
}

.statements-table span {
    font-family: Quicksand;
    font-size: 10px;
    line-height: 16px;
    font-weight: 500;
    margin: auto;
    text-align: center;
    padding: 5px 0;
}

#statements-table-head {
    width: 100%;
    height: 42px;
    background-color: #e7edf6;
    border-bottom: 1px solid white;
    display: flex;
}

.statements-table-content-head {
    display: flex;
    background-color: #e7edf6;
    width: 100%;
    height: 42px;
}

#statements-table-head span {
    font-weight: bold;
}

.statements-table-content-column-label span {
    font-weight: bold !important;
}

.statements-table-content-head div:not(:last-child) {
    border-right: 1px solid white;
}

.statements-table-content-head-logo {
    background-color: #e7edf6;
    width: 50%;
    background-repeat: no-repeat;
    background-position: center;
}

.statements-table-content-period,
.statements-table-content-norms {
    border-bottom: 1px solid #e7edf6;
}

.statements-table-content-period,
.statements-table-content-norms,
.statements-table-content-record {
    width: 100%;
}

.statements-table-content-period,
.statements-table-content-norms,
.statements-table-content-record .statements-table-content-label-main > span {
    width: 80%;
}

.statements-table-content-label {
    width: 50%;
    display: flex;
    border-left: 1px solid #e7edf6;
}

.statements-table-content-label-main {
    display: flex;
    width: 25%;
    border-right: 1px solid #e7edf6;
}

.statements-table-content-label-main > span {
    font-weight: bold !important;
}

.statements-table-content-label-main,
.statements-table-content-label-details {
    border-right: 1px solid #e7edf6;
}

.statements-table-content-label-details {
    display: flex;
    flex-direction: column;
    width: calc(75% - 3px);
}

.statements-table-content-column-label {
    width: 25%;
    display: flex;
}

#statements-table-content-temp .statements-table-content-head-logo {
    background-image: url("../icons/IconBar/temp.svg");
}

#statements-table-content-prec .statements-table-content-head-logo {
    background-image: url("../icons/IconBar/pluie-1.svg");
}

#statements-table-content-inso .statements-table-content-head-logo {
    background-image: url("../icons/IconBar/Soleil.svg");
}

.statements-table-content-label-details-element {
    display: flex;
    margin: auto;
}

.statements-value {
    width: 25%;
    display: flex;
}

.statements-value .value-column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e7edf6;
    width: 30%;
}

.statements-value .date-column {
    display: flex;
    flex-direction: column;
    width: 70%;
    border-right: 1px solid #e7edf6;
}

.statements-table-content-category {
    display: flex;
    width: 100%;
}

@media (max-device-width: 762px) {
    .statements-table {
        width: calc(100% + 30px);
        margin-left: -15px;
        padding-bottom: 70px;
    }

    .statements-table-mobile-head {
        display: flex;
        height: 49px;
        width: 100%;
        background-color: #e7edf6;
        position: relative;
    }

    .statements-table-mobile-head-selector {
        z-index: 5;
        transition: all 0.2s;
        position: absolute;
        top: 49px;
        left: 0;
        height: 2px;
        width: 50%;
        background-color: #036ba1;
    }

    .statements-table-mobile-head .statements-table-mobile-head-label:first-child {
        border-right: 1px solid white;
    }

    .statements-table-mobile-head-label-active {
        border-bottom: 2px solid #036ba1;
    }

    .statements-table-mobile-head-label {
        margin: auto;
        width: 50%;
        height: 100%;
        display: flex;
    }

    .statements-table-mobile-head-label span {
        font-size: 12px !important;
        font-weight: bold !important;
    }

    .statements-table-main-label {
        height: 50px;
        display: flex;
        padding: 0 16px;
        background-repeat: no-repeat;
        background-position: right 25px bottom 50%;
        background-image: url("../icons/Icons/chevron-down-grey.svg");
        background-color: white;
        z-index: 2;
    }

    .statements-table-main-label span {
        margin: auto 0 !important;
        font-size: 12px !important;
        font-weight: bold !important;
    }

    .statements-table-line {
        transition: all 0.2s ease-in-out;
        border-bottom: 1px solid #e7edf6;
        position: relative;
        max-height: 50px;
        overflow-y: hidden;
    }

    .statements-table-line-active {
        max-height: 200px;
    }

    .statements-table-line-active .statements-table-main-label{
        background-image: url("../icons/Icons/chevron-up-grey.svg");
    }

    .statements-table-label-value {
        display: flex;
        margin-bottom: 10px;
    }

    .statements-table-label {
        width: 60%;
        display: flex;
    }
    .statements-table-value,
    .statements-table-date {
        width: 20%;
    }

    .statements-table-category {
        display: none;
    }

    .statements-table-subcategory {
        display: none;
    }

    .statements-table-category-active {
        display: block;
    }

    .statements-table-subcategory-active {
        display: block;
    }
}

/** Map */

.map-section #page-bottom {
    display: flex;
    flex-direction: column;
    margin-top: -50px;
    /* margin-bottom: 471px; */
    margin-bottom: 10px;
}

#mf-outil-clim-map {
    width: 736px;
    height: 736px;
    overflow: hidden;
    margin-top: 0 !important;
}

#map-cat {
    overflow: hidden;
    position: relative;
    margin: -25px auto 25px auto;
    height: 50px;
    display: flex;
    width: 500px;
    justify-content: space-between;
    border-radius: 5px;
    border: solid 1px #003664;
}

#map-cat span {
    z-index: 1;
    transition: all 0.15s;
    width: 33.333333%;
    text-align: center;
    padding: 16px 0;
    font-family: Quicksand;
    font-size: 14px;
    font-weight: 500;
    color: #003661;
    cursor: pointer;
}

#map-cat span:not(:last-child) {
    border-right: solid 1px #003664;
}

#map-cat-selector {
    position: absolute;
    width: 33.333333%;
    height: 100%;
    left: 0;
    background-color: #003661;
    transition: all 0.15s;
    z-index: 0;
}

#map-cat span.map-cat-selected {
    color: white;
}

#area-selector {
    width: 366px;
    margin: 0px auto 0 auto;
}

.clim-infos {
    min-width: 130px;
    max-width: 400px;
    display: inline-block;
    /* margin: 17px 0 0 19px; */
    padding: 10px 12px 11px 38px;
    border-radius: 8px;
    border: solid 1px #dee2e6;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: left 8px bottom 50%;
    cursor: pointer;
}

.clim-infos h1 {
    margin: 0;
    font-size: 12px;
    width: 100%;
}

.clim-infos span {
    font-family: Quicksand;
    font-size: 10px;
    font-weight: 600;
    color: #5a5a5a;
}

.clim-infos.no-icon {
    background-image: none !important;
    padding-left: 10px !important;
    min-width: 100px !important
}

.clim-infos-temp {
    background-image: url("../icons/Icons/temp.svg");
}

.clim-infos-prec {
    background-image: url("../icons/Icons/pluie-1.svg");
}

.clim-infos-inso {
    background-image: url("../icons/Icons/Sun.svg");
}

.leaflet-marker-icon {
    display: none !important;
    cursor: default !important;
    height: auto !important;
    width: 120px !important ;
}

.show-icon {
    display: block !important;
}

.leaflet-marker-icon:hover {
    display: block !important;
}

/** MOBILE */

@media (max-device-width: 762px) {



    .clim-infos {
        min-width: 80px;
        max-width: 200px;
        display: inline-block;
        margin: 0 !important;
        padding: 4px 10px 4px 25px;
        border-radius: 8px;
        border: solid 1px #dee2e6;
        background-color: #ffffff;
        background-repeat: no-repeat;
        background-position: left 8px bottom 50%;
        background-size: 10px;
        /* pointer-events: none; */
    }
    
    .clim-infos.no-icon {
        min-width: 20px !important
    }

    .clim-infos-inso {
        background-image: url("../icons/Icons/Sun.svg");
        background-size: 15px;
    }

    .clim-infos h1 {
        font-size: 10px;
    }

    .clim-infos span {
        font-size: 9px;
    }

    .leaflet-map-pane {
        transform: translate3d(0,0,0) !important;
    }
}

/** Footer */

#mf-outil-clim-footer{
    display: none;
}

#footer-content {
    z-index: 3000;
    position: fixed;
    bottom: 0%;
    margin-left: -15px;
    width: calc(100% + 30px);
    height: 63px;
    background-color: white;
    display: flex;
}

#footer-content #footer-selector {
    transition: all 0.2s;
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: calc(100% / 3);
    background-color: #036ba1;
}

#footer-content .footer-element {
    width: calc(100% / 3);
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: inset 0 2px 0 0 #d4d7db;
}

#footer-content #footer-temp {
    background-image: url("../icons/IconBar/temp.svg");
}

#footer-content #footer-inso {
    background-image: url("../icons/IconBar/Soleil.svg");
}

#footer-content #footer-prec {
    background-image: url("../icons/IconBar/pluie-1.svg");
}

/** GENERAL */

html {
    overflow-y: scroll;
}

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1,
h2 {
    font-family: Quicksand;
    color: #145e9a;
    font-weight: bold;
}

body {
    font-family: Helvetica Neue, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f3f3f3;
    margin: 0;
    height: auto;
    overflow-x: hidden;
}

#mf-outil-clim-page-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 15px;
    /* min-height: 100vh; */
    height: 100%;
    /* overflow-x: hidden; */
}

#content {
    margin: 40px auto;
}

#mf-outil-clim-header {
    width: 700px;
    height: 46px;
    display: flex;
    justify-content: space-between;
    margin: 0;
    margin-bottom: 14px;
    position: absolute;
}

.clim-title {
    display: flex !important;
    height: 50px !important;
    margin: auto 0 !important;
}

.clim-title h1 {
    font-size: 24px !important;
    text-transform: uppercase !important;
    margin: auto 0 !important;
}

#mf-outil-clim-header #chart-table-switch {
    width: 92px;
    display: flex;
    top: -92px;
    position: absolute;
    right: 40px;
}

#mf-outil-clim-header #chart-table-switch .switch-button {
    height: 46px;
    width: 46px;
    display: flex;
    border: solid 1px #036ba1;
    cursor: pointer;
}

#mf-outil-clim-header #chart-table-switch .switch-button:focus {
    outline: none;
}

#mf-outil-clim-header #chart-table-switch #switch-button-chart {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

#mf-outil-clim-header #chart-table-switch #switch-button-table {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

#mf-outil-clim-header #chart-table-switch .switch-button img {
    margin: auto;
}

#mf-outil-clim-header #chart-table-switch .switch-button:not(.switch-button-selected) {
    background-color: #ffffff;
}

#mf-outil-clim-header #chart-table-switch .switch-button-selected {
    background-color: #036ba1;
}

#mf-outil-clim-header #chart-table-switch #switch-button-chart:not(.switch-button-selected) img {
    filter: invert(42%) sepia(80%) saturate(5000%) hue-rotate(175deg) brightness(70%) contrast(90%);
}

#mf-outil-clim-header #chart-table-switch #switch-button-table.switch-button-selected img {
    filter: invert(100%) sepia(52%) saturate(2%) hue-rotate(0) brightness(200%) contrast(100%);
}

#page-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}
h2 {
    font-size: 16px;
}

#page-content #page-top {
    z-index: 401;
}

#page-content #page-top h2,
#page-content #page-bottom h2 {
    margin: 4px 0 32px 0;
}

#page-content #page-top #data-filter {
    width: 364px;
    margin-left: 0px;
    display: flex;
    justify-content: space-between;
}

#page-content #page-top #data-filter.with-days {
    width: 584px;
}

#page-content #page-top #data-filter #select-day {
    width: 191px;
}

#page-content #page-top #data-filter #select-month {
    width: 157px;
}

#page-content #page-top #data-filter #select-year {
    width: 191px;
}

#page-content #page-main #chart-container #mf-outil-clim- {
    margin-top: 37px;
}

#page-content #page-main #chart-container #chart-legends #chart-legends-visual {
    display: flex;
    margin: 32px auto !important;
    width: 510px;
    justify-content: center !important;
    flex-wrap: wrap;
}

#page-content #page-main #chart-container #chart-legends {
    font-family: Quicksand;
    font-size: 14px;
    font-weight: bold;
}

#page-content #page-main #chart-container #chart-legends #chart-legends-visual > span {
    margin-right: 16px;
    margin-bottom: 10px;
    padding-left: 18px;
    background-image: url("/assets/icons/Graph/graph-1.svg");
    background-repeat: no-repeat;
    background-position: left 0 top 50%;
    transition: all 0.1s;
}

#page-content #page-main #chart-container #chart-legends #chart-legends-visual span.legend-inactive {
    color: #9b9b9b;
    font-weight: 500;
}

#page-content #page-main #chart-container #chart-legends #chart-legends-select {
    margin-top: 28px;
}

#page-content #page-main #chart-container #chart-legends #chart-legends-select-list {
    margin-top: 32px;
}

#page-content #page-main #chart-container #chart-legends #chart-legends-select-list .legend-switch {
    display: flex;
    height: 20px;
    align-items: center;
    margin-bottom: 16px;
}

#mf-outil-clim-map {
    margin-top: 38px;
    outline: none !important;
}

#mf-outil-clim-map .leaflet-overlay-pane{
    height: 0;
    width: 0;
}

.map-section .select-items {
    z-index: 10;
}

.map-section #page-main {
    margin-top: -50px;
}

#select-year-norms {
    position: relative;
    background-image: none;
    background-color: #fff;
    height: 44px;
    width: 166px;
    padding: 16px 0;
    margin-left: 16px;
    transition: background-color 0.2s;
}

#select-year-norms:focus {
    outline: none;
}

#select-year-norms span {
    background: none;
    width: 100%;
    padding: 0;
    font-family: Quicksand;
    position: absolute;
    top: 12px;
}

/** Responsive Settings */

/** Mobile Chart */

@media (max-device-width: 762px) {
    #chart-container {
        position: relative;
        /* margin-top: 80px; */
    }

    #chart-table-switch {
        right: 40px !important;
        top: -70px !important;
    }

    #page-top-title {
        margin-bottom: 30px !important;
    }

    .statements-section #chart-container{
        /* margin-top: 40px; */
    }

    #chart-main canvas {
        margin-left: -10px !important;
    }

    #chart-main > canvas {
        position: absolute;
        top: 0;
        pointer-events: none;
        /* margin-top: 37px;     */
    }

    #chart-main #chart-left-axis {
        left: 0;
    }

    #chart-main #chart-right-axis {
        right: 0px;
    }

    #chart-main {
        width: 100%;
        overflow-x: scroll !important;
    }

    #chart-main #chart-overflow {
        width: 670px;
        max-height: 335px;
    }
}

@media (max-device-width: 365px) {
    #chart-main {
        width: 95%;
    }
    #chart-table-switch {
        top: -5px !important;
    }
    #page-content {
        /* margin-top: 50px; */
    }
}

@media (max-device-width: 320px) {
    #chart-main {
        width: 100%;
    }

    #chart-main #chart-overflow {
        width: 500px;
        max-height: 250px;
    }

    #mf-outil-clim-chart {
        width: 500px !important;
        height: 250px !important;
    }
}

/** DESKTOP */

@media (max-width: 1199px) {

    #mf-outil-clim-map{
        width: 600px;
        height: 700px;
    }

    #mf-outil-clim-page-wrapper {
        width: 600px;
    }

    #chart-table-switch {
        top: -84px !important;
        right: 110px !important;
    }
}

@media (max-width: 830px) {
    #mf-outil-clim-page-wrapper {
        width: 730px;
        margin-left: -15px !important;
        width: calc(100% + 30px) !important;
    }
}

@media (max-width: 762px) {
    canvas {
        width: 600px;
        height: 300px;
    }

    #mf-outil-clim-page-wrapper,
    #mf-outil-clim-header,
    #page-content {
        width: 600px;
    }
}

@media (max-width: 700px) {
    canvas {
        width: 500px;
        height: 250px;
    }

    #mf-outil-clim-page-wrapper,
    #mf-outil-clim-header,
    #page-content {
        width: 500px;
    }
}


/** MOBILE */

@media (max-device-width: 762px) {
    body {
        width: 100%;
    }
    #mf-outil-clim-page-wrapper {
        width: 344px;
    }

    #content {
        position: relative;
        margin: 0 auto;
        width: 100%;
    }

    #mf-outil-clim-header {
        width: 100%;
        margin-bottom: 0px;
        position: absolute;
    }

    .clim-title {
        margin-top: 16px !important;
        margin-bottom: 0 !important;
        height: 20px !important;
        max-width: 450px;
    }   

    .clim-title h1 {
        font-size: 16px !important;
        width: 400px;
    }

    #chart-table-switch {
        position: absolute;
        top: -70px !important;
        right : 40px
    }

    /* .statements-section #chart-table-switch {
        top: 60px !important;
    } */

    #data-filter {
        /* margin-top: 78px; */
    }

    .statements-section #data-filter {
        /* top: 40px !important; */
    }

    .statements-section #page-top {
        margin-bottom: 40px;
    }

    .map-section #data-filter {
        margin-top: -30px;
    }

    .map-section.map-statement-section #page-main {
        margin-top: 70px;
    }

    .map-section#map-norms-section #page-main {
        margin-top: 121px;
    }

    .map-section#map-norms-section #data-filter .custom-select {
        z-index: 1001;
    }

    .map-section#map-norms-section #data-filter .custom-select.not-selected {
        z-index: 1000;
    }

    .map-section#map-norms-section #data-filter .select-selected {
        border-bottom: none;
    }


    #page-content {
        width: 100%;
    }

    #page-content #page-top h2 {
        font-size: 14px;
        margin: 0;
    }

    .statement-section #page-main {
        margin-top: 82px;
    }

    #chart-legends {
        width: 100% !important;
        display: flex;
        flex-direction: column;
    }

    #chart-legends-visual {
        width: 100% !important;
        height: 25px;
        align-items: center;
        display: flex;
        flex-wrap: wrap;
    }

    #chart-legends-visual > span {
        margin-bottom: 0 !important;
    }

    #legend-see-more {
        margin: auto 0;
        width: 25px;
        height: 25px;
        border: solid 1px #f3f3f3;
        border-radius: 100%;
        position: relative;
    }

    #legend-see-more > span {
        position: absolute;
        top: 49%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: Quicksand;
        font-size: 12px;
        font-weight: bold;
    }

    #page-content #page-main #chart-container #chart-legends .switch-input {
        font-size: 13px;
    }

    #all-legends {
        transition: all 0.5s;
        width: 100%;
        height: 400px;
        background-color: white;
        z-index: 10;
        position: fixed;
        left: 0;
        bottom: 0;
        padding: 24px;
        border-radius: 8px;
        box-shadow: 0 -5px 10px 0 rgba(178, 178, 178, 0.5);
        display: flex !important;
        flex-direction: column;
    }

    #all-legends.popup-hidden {
        bottom: -100vh;
    }

    #all-legends.popup-shown {
        bottom: 0;
    }

    #all-legends-head {
        width: 100%;
        height: 18px;
        display: flex;
        margin-bottom: 24px;
        justify-content: space-between;
    }

    #all-legends-head h2 {
        margin: 0;
    }

    #all-legends-head #close-popup {
        height: 18px;
        width: 18px;
        border-radius: 5px;
        position: relative;
    }

    #all-legends-head #close-popup:after {
        position: absolute;
        top: 0;
        right: 0;
        height: 18px;
        content: "\d7";
        font-size: 34px;
        font-weight: bold;
        color: #145e9a;
        margin-top: -10px;
    }

    #all-legends-content {
        height: 500px;
        display: block;
    }

    #all-legends-content span {
        display: block;
        margin-bottom: 16px;
        padding-left: 18px;
        font-size: 14px;
        background-image: url("../icons/Graph/graph-1.svg");
        background-repeat: no-repeat;
        background-position: left 0 top 50%;
        transition: all 0.1s;
    }

    #all-legends-content span.legend-inactive {
        color: #9b9b9b;
        font-weight: 500;
    }

    #norms-table {
        padding-right: 15px;
    }

    #norms-table .norms-table-line div {
        font-size: 12px !important;
    }

    #mf-outil-clim-map {
        width: 100%;
        /* margin-top: -10px !important; */
        height: 600px !important; 
    }

    #area-selector {
        width: calc(100% + 30px) !important;
        margin-left: -15px !important;
    }
    #select-area {
        width: 90%;
        left: 5%;
        border-bottom: solid 1px #eeeeee;
        margin-bottom: 50px;
    }
}

@media (max-device-width: 450px){
    #mf-outil-clim-map {
        /* margin-top: -20px !important; */
        height: 550px !important;
    }

    .clim-title {
        margin-top: 20px !important;
        margin-bottom: -150px !important;
    }

    .clim-title h1 {
        width: 250px;
    }

    #mf-outil-clim-page-wrapper {
        top: 50px;
    }

    #chart-table-switch {
        right : 40px !important;
    }
}

@media (max-device-width: 374px) {

    .clim-title {
        margin-top: 0px !important;
    }

    #mf-outil-clim-page-wrapper {
        width: 285px;
    }

    #area-selector {
        margin-top: -20px;
    }

    .clim-title h1 {
        width: 200px;
    }

    #page-content #page-main #chart-container #chart-legends {
        font-size: 12px;
    }

    #page-content #page-main #chart-container #chart-legends .switch-input {
        font-size: 11px;
    }

    #norms-table .norms-table-line div {
        font-size: 10px !important;
    }

    .select-items div {
        font-size: 11px;
    }
}


.statements-section #page-main {
    margin-top: 50px;
}

#mf-outil-clim-map .leaflet-overlay-pane, #mf-outil-clim-map .leaflet-zoom-animated {
    position: absolute;
}

#mf-outil-clim-map .leaflet-map-pane svg {
    z-index: 200;
}

#mf-outil-clim-map .custom-div-icon{
    z-index: 250 !important;
}

#mf-outil-clim-map .leaflet-interactive {
    pointer-events: auto;
    cursor: pointer;
}


@media (max-device-width: 340px) {
    #mf-outil-clim-map {
        margin-top: -30px !important;
        height: 500px !important;
    }
}

.loading {
    height: 800px;
}

.loading .loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 555;
    pointer-events: none; 
}

.loading .loader-ring-light {
  top: 50%;
  left: 50%;
  position: absolute;
  margin: -100px 0 0 -100px;
  width: 200px;
  height: 200px;
  border-radius: 200px;
  -webkit-box-shadow: 0 5px 0 #1a7ac7 inset;
  box-shadow: 0 5px 0 #1a7ac7 inset;
  animation: rotate-360 2s linear infinite; 
}

@keyframes rotate-360 {
  from {
    -webkit-transform: rotate(0);
    -ms-transform: rotate(0);
    -o-transform: rotate(0);
    transform: rotate(0); 
  }
  to {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg); 
  } 
}