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

#logoMarianne {
    background: var(--color1Darker)
}

/**ACCUEIL**/
#home-content {

    min-height: calc(100vh - var(--headerHeight));
    text-align: left;
    margin-left: -15px;
    margin-right: -15px;
}

#homeContent {
    background: url(./www/img/bg_home.png) top center;
    background-size: cover;
    background-repeat: no-repeat;
}

#home-content .left,
#home-content .right {
    display: inline-block;
    min-height: calc(100vh - var(--headerHeight));
    vertical-align: top;
}

#home-content .left {
    width: 50%;
    max-width: 800px;
    position: relative;


}

#home-content .left #illu {
    background: url(./www/img/img_home_brocard.png) bottom left;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 728px;
    position: absolute;
    left: 0;
    bottom: 0;
    min-height: calc(100vh - var(--headerHeight));
    background-size: cover;
    display: none;
}

#home-content .right {
    max-width: calc(100% - 735px);
    width: 49%;
}

#home-content h1,
#home-content h2 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    clear: both;
}

#home-content p {
    text-align: justify;
}

#home-content .other-links {
    text-align: center;
}

#home-content .other-links a {
    display: inline-block;
    text-decoration: underline;
    color: var(--color2);
    font-weight: 700;
    padding: 15px;
}

#home-content .item {
    background: var(--color1);
    display: inline-block;
    overflow: hidden;
    position: relative;
    margin: 15px 0;
}

#home-content .item-img {
    height: 200px;
    text-align: center;
}

#home-content img {
    width: 110%;
    opacity: 0.35;
}

#home-content .item-title {
    background: var(--color3);
    padding: 10px;
    color: var(--color3-text);
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100%);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
}

@media (max-width: 1520px) {
    #navBar {
        padding-top: 18px
    }

    #navBar.navbar-nav>li {
        margin: 0 7px;
    }
}

.open-details .overlay-graph-details {
    display: none !important
}

/**Modal**/
#shiny-modal-wrapper .modal-header,
.modal-title {
    background: #FFF;
    color: var(--color1)
}

.modal-title .btn-close {
    color: var(--color1)
}

#modal-mea {
    margin-top: -15px
}

#modal-mea .mea-item .mea-value:before,
#modal-mea .mea-item .mea-value:after {
    content: "\e900";
    font-family: 'bdetm';
    color: var(--color3-text);
    position: absolute;
    font-size: 14px
}

#modal-mea .mea-item .mea-value:before {
    top: 5px;
    left: 5px
}

#modal-mea .mea-item .mea-value:after {
    bottom: 5px;
    right: 5px
}

.tab-content .js-plotly-plot {
    height: auto !important;
}

.nav-tabs {
    border-top: 1px solid var(--color1);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
    border-radius: 0
}

.nav-tabs li a {
    border-top: none !important
}

#carto_main_1-carto_attributs_1-ui_table_stats_element div.dataTables_scrollBody>table>tbody>tr td:nth-child(1) {
    color: var(--color1);
    font-weight: 700;
    text-align: right;
}

#carto_main_1-carto_attributs_1-ui_table_stats_element div.dataTables_scrollBody>table>tbody>tr {
    height: 40.5px
}

#shiny-modal-wrapper .pretty.p-switch.p-fill input:checked~.state.p-primary:before {
    background: var(--color3) !important;
    color: var(--color3-text) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

#shiny-modal-wrapper .pretty.p-switch .state:before {
    border-color: rgba(0, 0, 0, 0.2);
    background: #FFF
}

#shiny-modal-wrapper .pretty.p-switch .state label:after {
    background: rgba(0, 0, 0, 0.2);
}

/****CHECKBOX / RADIO BUTTON***/
.carto-filtre .radio label {
    padding-left: 0
}

.carto-filtre .shiny-options-group .radio label span {
    padding-left: 27px;
    display: inline-block
}

.carto-filtre input[type="radio"] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    /* Remove most all native input styles */
    appearance: none;
    /* For iOS < 15 */
    background-color: #E9E7E8;
    /* Not removed via appearance */
    margin: 0;

    font: inherit;
    color: currentColor;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 0.15em;
    transform: translateY(-0.075em);

    display: block;
    margin-right: 8px;
    text-align: center;

}

.carto-filtre input[type="radio"]::before {
    content: "\e900";
    font-family: 'bdetm';
    color: var(--color1);
    width: 10px;
    height: 10px;
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    display: inline-block;
    /* Windows High Contrast Mode */
    cursor: pointer;
    box-shadow: none;
    border: none;
    margin-left: -2px;
}

.carto-filtre input[type="radio"]:checked::before {
    transform: scale(1);
    box-shadow: none;
    border: none
}

.carto-filtre input[type="radio"]:focus {
    box-shadow: none;
    border: none
}

.side .map-bottom-panel .filter-item .control-label {
    padding-left: 16px;
    position: relative;
    font-weight: 600;
}

.side .map-bottom-panel .filter-item .control-label:after {
    content: "\e900";
    font-family: 'bdetm';
    color: var(--color1);
    position: absolute;
    font-size: 14px;
    left: 0
}

.map-bottom-panel-title:before {
    content: "\e905";
    font-family: 'bdetm';
    color: var(--color1);
    display: inline-block;
    margin-right: 5px;
    font-weight: 300;
}