.toolbar-fixed #header {
    top: 80px;
}

#main-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

.layout-container {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.layout-main-wrapper {
    min-height: unset;
}

#sidebar-first {
    position: fixed;
    left: 0;
    width: 0;
    height: 90%;
    margin-left: 0;
    background: #FFF;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    z-index: 1;
    padding: 20px 0 0 0;
    overflow-y: auto;
    margin-bottom: 200px;
    top: 105px;
}

#map {
    position: absolute !important;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.layout-main {
    margin: 0;
}

@media (min-width: 851px) {
    .layout-container {
        max-width: 100%;
    }

    .site-footer .layout-container {
        max-width: 1290px;
        margin: 0 auto;
    }

    .layout-main {
        margin: 0 auto;
    }

}

@media all and (max-width: 851px) {
    body {
        overflow-x: hidden;
        overflow-y: visible;
    }

    #map {
        position: initial;
        height: 400px;
        z-index: 1;
        top: 80px;
    }

    body.path-frontpage .info-aside-container.added {
        right: 0;
        top: 80px;
        width: unset;
    }

    #afficheInfosTrafic {
        display: none;
    }

    img {
        max-width: 73%;
    }

    .site-branding__logo {
        margin: 0;
        position: absolute;
        z-index: 4;
    }

    #block-logomrn {
        display: none;
    }

    #block-logomrncarre {
        display: block;
        top: 0;
        position: absolute;
        margin: 0;
        width: 75px;
    }

    .region-header .site-branding {
        margin: 0;
        height: 95px;
    }

    .site-branding__text {
        display: none;
    }

    .region-primary-menu {
        top: 55px;
        left: 0;
        width: 100%;
    }

    .header .block .content {
        text-align: right;
    }

    #header {
        height: 80px;
        border: 0;
    }

    .block-superfish, .shrink .block-superfish {
        margin: 0;
        float: right;
    }

    .highlighted {
        margin: 0;
    }

    .region-primary-menu .menu-item a.is-active, .region-primary-menu .menu-item--active-trail a {
        background: none;
    }

    #recherche {
        height: unset;
    }

    .pac-container {
        position: absolute;
        margin: 0;
    }

    .pac-icon {
        background: url(/../../images/spotlight-waypoint.png) 0 0 no-repeat;
        margin: 0 29px 0 0;
        height: 30px;
        width: 1px;
    }

    #block-pictos {
        display: none;
    }

    #sidebar-first {
        margin: 0;
        top: 480px;
        bottom: 0;
        height: auto;
    }

    #sidebar-first .sidebar .section {
        padding: 0 30px 0 30px;
    }

    .main-content .section {
        padding: 0;
    }

    #block-selectiondinformationsaafficher, #block-itineraires {
        height: auto;
    }

    #panneau.reduire {
        right: -84%;
    }

    #panneau.reduire .contentAffichePanneau div {
        margin: 0
    }

    #panneau.sorti #right-panel {
        margin: 160px 0 0 -60px;
        width: 111%;
        padding: 0 15px;
    }

    .toggleButtons #toggleChargingUnit, .toggleButtons #toggleParking, .toggleButtons #toggleCyclic {
        min-width: unset;
        line-height: 999em;
        width: 60px;
        padding-left: 0;
    }

    .toggleButtons #toggleParking {
        background-position: 14px -60px;
    }

    .toggleButtons #toggleCyclic {
        background-position: 10px -113px;
        width: 100px;
    }

    .tabs input#tab-2 {
        left: unset;
    }

    #origin-input, #destination-input {
        width: 92%;
        margin: 0 0 10px 15px;
    }

    #mode-selector {
        float: left;
        padding: 10px 6px 7px;
        margin: 0;
    }

    #sidebar-second {
        position: relative !important;
        width: 100%;
        margin: 0;
        z-index: 3;
        height: fit-content;
        -webkit-transition: none;
        -moz-transition: none;
        -o-transition: none;
        transition: none;
        top: 420px;
    }

    body.page-node-detail #sidebar-first {
        display: none;
    }

    body.page-node-detail #sidebar-second img {
        width: 100%;
        max-width: fit-content;
    }

    body.page-node-detail .page-title {
        font-size: 1.8em;
    }

    body.page-node-detail .ds-2col-stacked-fluid > .group-left,
    body.page-node-detail .ds-2col-stacked-fluid > .group-right {
        width: 100%;
    }
}

@media all and (min-width: 768px) and (max-width: 1024px) {
    .site-branding__text {
        display: inline-block;
    }

    .site-branding__slogan {
        font-size: 1.2em;
        margin-top: 15px;
    }

    .region-header .site-branding {
        margin: 0;
        height: 95px;
    }

    .site-branding__logo {
        margin: 0 0 0 30px;
    }

    #block-pictos {
        display: none;
    }
}

@media (min-width: 461px) {
    .region-header .block {
        display: flex;
    }
}
