/**************************************/
/**** RESPONSIVE
/**************************************/

/* MENUS */

@media screen and (max-width: 1390px) {

    #site_header {
        margin-bottom: 0;
        padding: 10px 1.5em;
    }

    a#logo_site img {
        height: auto;
    }

    #icon_mobile_menu {
        display: block;
    }

    div#icon_mobile_menu.open::before {
        content: '';
        position: absolute;
        width: 70px;
        height: 70px;
        background-color: #437568;
        border-radius: 50%;
        top: -13px;
        left: -10px;
    }

    .menu-menu-principal-container,
    #topbar {
        transform: translateX(100%);
        -webkit-transition: transform 0.8s ease;
        -o-transition: transform 0.8s ease;
        transition: transform 0.8s ease;
    }

    .menu-menu-principal-container.is-open,
    #topbar.is-open {
        transform: translateX(0);
    }

    html.is-blocked {
        overflow-y: hidden;
    }

    /* MENU PRINCIPAL */
    .menu-menu-principal-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 130px;
        width: 100%;
        padding: 0 2em;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        z-index: 999;
        background-color: #548c7d;
        overflow-y: scroll;
    }

    .menu-menu-principal-container::-webkit-scrollbar {
        display: none;
    }

    /*
    .menu-menu-principal-container::before {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 0 300px 300px;
        border-color: transparent transparent #548c7d transparent;
    }
*/

    #main_menu {
        width: 100%;
        margin-top: 2em;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        flex-direction: column;
        -webkit-box-pack: center !important;
            -ms-flex-pack: center !important;
                justify-content: center !important;
    }

    #main_menu > li {
        margin-bottom: 1em;
        line-height: initial;
    }

    #main_menu > li > a,
    #main_menu > li > span {
        padding: 10px 0;
        font-size: 1.2rem;
        font-weight: 200;
        color: #fff;
    }

    #main_menu > li > a::after,
    #main_menu > li > span::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 5px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #4a776b
    }

    .wrapper-sub-menu > .sub-menu {
        padding-left: 0;
    }

    .wrapper-sub-menu,
    .wrapper-sub-menu li .sub-menu {
        max-height: 0;
        padding: 0;
        background-color: transparent;
        overflow: hidden;
        -webkit-transition: all 0.8s ease;
        -o-transition: all 0.8s ease;
        transition: all 0.8s ease;
    }

    .wrapper-sub-menu.open,
    .wrapper-sub-menu li .sub-menu.open {
        max-height: 100vh;
    }

    #main_menu .sub-menu li {
        position: relative;
        padding: 5px 0;
        line-height: initial;
    }

    #main_menu .sub-menu li a,
    #main_menu .sub-menu li span {
        color: #fff;
        font-size: 0.8rem;
        font-weight: 500;
    }

    #main_menu .sub-menu li.menu-item-has-children span {
        display: block;
        background-image: url(../img/down-arrow.svg);
        background-repeat: no-repeat;
        background-position: center right;
        background-size: 10px;
    }

    #main_menu .sub-menu li.menu-item-has-children .sub-menu {
        margin-top: 10px;
        padding-left: 25px;
    }

    #main_menu .sub-menu li.menu-item-has-children .sub-menu li::before {
        content: '';
        position: absolute;
        width: 15px;
        height: 1px;
        left: -24px;
        top: 50%;
        background-color: #9fc418;
    }

    #main_menu .sub-menu li.menu-item-has-children .sub-menu li a,
    #main_menu .sub-menu li.menu-item-has-children .sub-menu li span {
        font-size: 1.2rem;
        font-weight: 200;
    }

    /* TOPBAR */

    #topbar {
        position: fixed;
        width: 100%;
        height: 130px;
        padding: 2em;
        left: 0;
        bottom: 0;
        z-index: 99999;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-pack: distribute;
        justify-content: space-around;
        background-color: #437568;
    }

    #menu-menu-contact {
        margin: 0;
    }

    #list_topbar li a::before {
        content: none;
    }

    #list_topbar li a,
    #menu-menu-contact li a {
        text-transform: uppercase;
        font-size: 1rem;
        color: #fff;
        font-weight: 200;
    }

    #menu-menu-contact li.contact a {
        height: auto;
        padding: 10px 15px;
        border-radius: 0;
        border: 2px solid #548c7d;
        text-transform: capitalize;
    }

    #menu-menu-contact li.contact a,
    .list_contact li.facebook a,
    .list_contact li.instagram a {
        background-color: transparent;
    }

    .list_contact li.facebook a,
    .list_contact li.instagram a {
        width: 40px;
        height: 40px;
    }


    #list_topbar li {
        width: 50%;
        margin-bottom: 10px;
    }


}

@media screen and (max-width: 768px) {
    #topbar {
        /*
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
*/
        align-items: center;
        justify-content: space-between;
    }

    #list_topbar,
    #list_topbar li a,
    #menu-menu-contact li a {
        margin-right: 0 !important;
    }

    /*
    #list_topbar li,
    #menu-menu-contact li {
        text-align: center;
    }
*/

    #list_topbar li a,
    #menu-menu-contact li a {
        font-size: 16px;
    }

}

@media screen and (max-width: 600px) {}



/* SITE */

@media screen and (max-width: 1280px) {

    #hero main h1 {
        max-width: 90%;
        font-size: 2.1rem;
    }

    /* Équipe */


    ul.team li {
        width: 290px;
    }

    /* Conseil d'administration */

    #list_council li {
        width: 23%;
        margin: 5px;
    }

    /* Annuaire  */

    .wrapper_filters {
        padding: 2.5em 2em;
    }

    .wrapper_filters > .container-fluid > .row > div:first-of-type {
        padding-right: 0;
        border-right: 0;
    }

    #form_search {
        margin-bottom: 4em;
    }

    #form_filters .filtres h4 {
        text-align: left !important;
    }

    #form_filters .filters {
        -webkit-flex: 2;
        -moz-flex: 2;
        -ms-flex: 2;
        -o-flex: 2;
        flex: 2;
    }

        /* Bandeau soutiens financiers */

    #footer_site {
        margin-bottom: 0;
    }

    #wrapper_bandeau_partners {
        position: relative;
        height: auto;
        padding: 1.5em 1em;
    }

    #wrapper_bandeau_partners h5 {
        -webkit-box-flex: 0;
            -ms-flex: none;
                flex: none;
        margin-bottom: 15px;
    }

    #wrapper_bandeau_partners ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    #wrapper_bandeau_partners ul li {
        padding: 0 10px;
    }

    .content_bandeau_partners > .row::before {
        content: none;
    }

    #wrapper_bandeau_partners ul li img {
        height: 50px;
    }
}

@media screen and (max-width: 1024px) {

    /* HOME */

    #hero main ul {
        height: 150px;
    }

    #list_filieres li {
        width: 100px;
        height: 100px;
    }

    #list_numbers li {
        width: 270px;
    }

    .item_numbers.small span {
        font-size: 4rem;
    }

    .item_numbers span {
        font-size: 5rem;
    }

    #list_adhesion li {
        flex: none;
        width: 48%;
        margin-right: 2%;
    }

    #wrapper_bandeau_partners ul li img {
        height: 40px;
    }

}


@media screen and (max-width: 990px) {

    /* HOME */
    .wrapper_news {
        margin-bottom: 4em;
        text-align: center;
    }

    #hero main {
        justify-content: center;
        text-align: center;
    }

    #hero main h1 {
        max-width: 100%;
    }

    #hero main::before {
        left: 50%;
        top: -40px;
        transform-origin: left;
        transform: translate(0%, -50%) rotate(90deg);
    }

    #list_news {
        padding-bottom: 5em;
        text-align: left;
    }

    #news aside {
        text-align: center;
    }

    #news aside .custom_title {
        display: inline-block;
        text-align: left;
    }

    #filieres .row {
        -webkit-flex-direction: column-reverse;
        -moz-flex-direction: column-reverse;
        -ms-flex-direction: column-reverse;
        -o-flex-direction: column-reverse;
        flex-direction: column-reverse;
    }

    #list_filieres {
        justify-content: center !important;
    }

    #list_filieres li {
        width: 116px;
        height: 116px;
    }

    #list_filieres {
        -webkit-transform: translateX(0) translateY(-40px);
        -ms-transform: translateX(0) translateY(-40px);
        transform: translateX(0) translateY(-40px);
    }

    #actions p {
        max-width: 100%;
    }

    #key_numbers {
        padding-top: 9em;
    }

    #list_numbers {
        margin-top: 2em;
    }

    #list_numbers li {
        width: 47%;
    }

    #list_numbers li:nth-of-type(2n + 2) {
        margin-right: 0;
    }

    #filieres {
        padding-left: 10px;
        padding-right: 10px;
    }

    #footer_site::before {
        right: -37%;
        width: 50%;
    }

    .wrapper_logos,
    .wrapper_address,
    .wrapper_socials {
        margin-bottom: 2em;
    }

    .wrapper_tooltip {
        top: 0;
        left: 50%;
        -webkit-transform: translate(-50%, -100%);
        -ms-transform: translate(-50%, -100%);
        transform: translate(-50%, -100%);
    }

    #list_brands li:hover .wrapper_tooltip {
        -webkit-transform: translate(-50%, -110%);
        -ms-transform: translate(-50%, -110%);
        transform: translate(-50%, -110%);
    }

    .content_tooltip::after {
        top: auto;
        left: 50%;
        bottom: -33px;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
        border-width: 8px 7.5px 0 7.5px;
        border-color: #548c7d transparent transparent transparent;
    }

    /* Agenda */

    #list_agenda .dates {
        width: 30%;
    }

    #list_agenda article {
        width: 70%;
    }

    /* Équipe */

    div.first_item {
        float: none;
        display: block;
        width: 100%;
        height: 200px;
        margin-bottom: 2%;
    }

    div.first_item h2 {
        left: 50px;
        transform: translate(0, -50%);
    }

    ul.team {
        padding-left: 0;
    }

    ul.team li {
        width: 48%;
    }

    /* Conseil d'administration */

    .wrapper_tooltip.council .content_tooltip::after {
        right: 50%;
        -webkit-transform: translate(-50%, 100%);
        -ms-transform: translate(-50%, 100%);
        transform: translate(-50%, 100%);
    }

    /* Annuaire */

    #list_members header {
        margin-bottom: 1em;
    }

    #list_members > li > a {
        height: auto;
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
    }

    /* Sidebar */

    #sidebar {
        margin-top: 2em;
    }

    /* Financeurs */

    .wrapper_filters.projects h2 {
        margin-bottom: 1em !important;
    }

    .wrapper_filters.projects div.col-lg-9 {
        padding-top: 2em;
        padding-left: 0;
        padding-right: 0;
        border-top: 5px solid #609a8b;
        border-left: 0;
    }

    .wrapper_filters.projects .wrapper_buttons {
        margin-top: 2em;
    }

    .wrapper_results.funders .item_member img {
        margin-right: 0 !important;
        margin-bottom: 1em;
    }

    .wrapper_results.funders .item_member header,
    .wrapper_results.funders #list_members .list_terms:first-child li {
        margin-bottom: 0 !important;
    }

    .content_funder .thumb {
        margin-top: 1em;
    }

    .bloc_sidebar.button a {
        background-position: -5%;
    }

}

@media screen and (max-width: 768px) {

    /* Pages Submenu */

    #list_subpages {
        margin-bottom: 1em;
    }

    #list_subpages li a {
        margin: 5px;
        padding: 0.3em 0.5em;
        border: 2px solid;
        font-size: 14px;
    }

    /* Blog */

    #list_news li,
    #list_files li {
        width: 48%;
    }

    #list_news:not(.home) li:nth-of-type(2n),
    #list_files li:nth-of-type(2n) {
        margin-right: 0;
    }

    #aside_posts #list_news li:not(:last-of-type) {
        margin-right: 2%;
    }

    /* Conseil d'administration */

    #list_council li {
        width: 48%;
        margin-bottom: 2em;
        text-align: center;
    }

    /* Annuaire */

    #list_members li article,
    #list_members header {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
    }

    #list_members header {
        align-items: center !important;
    }

    #list_members li h3 {
        margin: 0;
        font-size: 20px;
    }

    #list_members .list_terms {
        padding-left: 0;
        text-align: center;
    }

    #list_members .list_terms:first-child li {
        margin-bottom: 15px;
    }

    #list_members .list_terms:last-child {
        display: block !important;
    }

    /* Formations */

    #list_news.formations li {
        width: 100%;
        margin-bottom: 6em;
    }

    /* Projets */

    .content_project .post_meta {
        float: none !important;
        clear: both;
    }

    /* Agenda */

    .dates.single {
        margin-bottom: 1em;
    }

}

@media screen and (max-width: 540px) {

    h1,
    .big {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    h5 {
        font-size: 0.9rem;
    }

    div#icon_mobile_menu.open::before {
        width: 60px;
        height: 60px;
        top: -6px;
        left: -11px;
    }

    /* HOME */
    #wrapper_slider {
        height: 20vh;
    }

    #hero main {
        padding: 1em 1.5em;
    }

    #hero main h1 {
        font-size: 2rem;
    }

    #topbar {
        padding: 0;
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
        justify-content: center;
    }

    .menu-menu-principal-container {
        bottom: 90px;
        -ms-align-items: center;
        align-items: center;

    }

    #list_news.home li:first-child {
        height: 300px;
        margin-bottom: 2em;
    }

    #list_news.home li:not(:first-child) {
        width: 100%;
        height: 300px;
    }

    #list_news.home li:first-child .title_news,
    #list_news li .title_news {
        width: 95%;
        bottom: 25px;
    }

    #list_brands li,
    #list_numbers li,
    #list_adhesion li {
        width: 100%;
        margin-right: 0 !important;
    }

    #list_numbers li:not(:last-child) {
        margin-right: 0;
    }

    #list_numbers li {
        margin-bottom: 2em;
    }

    .custom_title::after {
        content: none;
    }

    #footer_site {
        text-align: center;
    }

    .list_contact {
        justify-content: center;
    }

    .wrapper_newsletter input {
        width: 70%;
    }

    #desc_filiere {
        padding: 3em 1.2em;
    }

    /* Blog */

    form.select_cat {
        text-align: center;
    }

    form.select_cat select {
        margin-bottom: 2em;
    }

    #list_news li,
    #list_files li {
        width: 100%;
        margin-right: 0;
    }

    #list_files li {
        margin-bottom: 10%;
    }

    #list_files img.thumb {
        width: 100%;
    }

    /* Agenda */

    #list_agenda li {
        max-height: initial;
    }

    #list_agenda .dates,
    #list_agenda article {
        width: 100%;
    }

    #list_agenda .dates {
        height: 90px;
    }

    #list_agenda .dates li {
        display: inline-block;
        margin-right: 10px;

    }

    #list_agenda .dates .days li {
        font-size: 3rem;
    }

    #list_agenda article {
        position: relative;
        display: block;
        padding: 20px 1.5em;
        transform: none;
    }

    /*  Équipe  */

    div.first_item {
        margin-bottom: 1em;
    }

    ul.team {
        margin-bottom: 2em;
    }

    ul.team li {
        width: 100%;
        margin-bottom: 4%;
    }

    /* Conseil d'administration */

    #list_council li {
        width: 100%;
    }

    .wrapper_tooltip.council {
        max-width: 310px;
        min-width: 310px;
    }

    /* Annuaire */

    #form_search {
        margin-bottom: 2em;
    }

    #form_filters .filtres {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
        margin-bottom: 2em;
    }

    .wrapper_buttons {
        float: none;
        text-align: center;
    }

    .content_member .location {
        display: block;
        margin-bottom: 1.5em;
    }

    .content_member .list_terms:first-of-type,
    .bloc_contact {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
    }

    .content_member .list_terms:first-of-type li {
        padding-left: 0;
    }

    /* Projets */

    .wrapper_results.projects #list_members .list_terms li,
    .wrapper_filters.projects #form_filters .filtres {
        margin-bottom: 0;
    }

    .wrapper_filters.projects #form_filters .filtres h4 {
        margin-right: 0;
        margin-bottom: 1em !important;
    }

    .wrapper_filters.projects #form_filters .filters {
        width: 100%;
    }

    #infos_projet {
        padding: 1em;
    }

    /* Newsletter */

    #mailpoet_form_1 form.mailpoet_form {
        text-align: center;
    }

    .wrapper_newsletter #mailpoet_form_1 input {
        width: 80%;
        margin: 0 auto !important;
    }

    /* Porteurs de projets // Form */

    form fieldset {
        padding-left: 0;
        border-left: 0;
    }

    form #fiche_personne::before,
    form #fiche_projet::before {
        content: none;

    }
}

@media screen and (max-width: 500px) {

    /* MENU */

    #icon_mobile_menu {
        width: 30px;
        right: 0;
    }

    #icon_mobile_menu span:nth-child(1) {
        top: 9px;
    }

    #icon_mobile_menu.open span:nth-child(1) {
        top: 14px;
    }

    #icon_mobile_menu span:nth-child(3) {
        top: 27px;
    }

    #icon_mobile_menu.open span:nth-child(3) {
        top: 35px;
    }

    .menu-menu-principal-container {
        top: 0;
    }
    
    #topbar {
        height: 160px;
    }

    #list_topbar {
        margin-bottom: 1em;
    }

    #list_topbar li {
        margin-bottom: 0;
        text-align: center;
    }

    #main_menu > li > a,
    #main_menu > li > span {
        font-size: 16px;
    }

    #main_menu .sub-menu li a,
    #main_menu .sub-menu li span,
    #main_menu .sub-menu li .sub-menu a,
    #main_menu .sub-menu li .sub-menu span {
        font-size: 14px !important;
    }

    #list_topbar li a,
    #menu-menu-contact li a {
        font-size: 14px;
    }

    /* Sidebar */
    .bloc_sidebar.button a {
        background-position: -20%;
    }

    /* Publications */

    .options.publications .custom-switch {
        display: block;
        text-align: left;
    }

    /* Annuaire */

    .wrapper_filters {
        padding: 2.5em 1em;
    }
}
