/* screen under recommended size ( < 1300px ) */
@media screen and (max-width: 1300px){
    .main-navigation > div > ul > .menu-item-has-children > a:after,
    .main-navigation > div > ul > .menu-item-has-children:hover > a:after{
        background-color: transparent;
    }
    .bubbles{
        display: block;
    }

    .bubbles > a > div{
        margin: 2%;
    }

    .grey_box{
        padding: 1rem;
    }

    /* Fond documentaire */
    #fond-documentaire_sommaire .toggle-menu{
        margin-top: 12px;
    }
}

@media screen and (max-width: 1300px) and (min-width: 909px){
    .event_box{
        flex-basis: 49.35%;
    }
}

/* screen under 1080px ( < 1080px ) */
@media screen and (max-width: 1080px){
    .menu-menu-top-orange-container{
        max-width: 530px;
    }

    .main-navigation > div > ul > .current-menu-item:after{
        content: none;
    }

    /* Contact */
    .entry-content form .form-group {
        display: block;

        width: 100%;
    }

    /* Accréditation */
    .accreditation h1,
    .orange_header h1{
        margin: 0;
    }

    .orange_header h1{
        padding: 1rem 0;
    }

    .acc_recherche #type_rech label {
        display: inline-block;
        width: 49%;
        padding-left: 5px;
        text-align: left;
    }

    .acc_recherche > form > div{
        display: block;
        border: 0;
        padding: 10px 0;
    }

    .acc_recherche form input[type="submit"]{
        float: none;
    }

    .acc_recherche .acc_recherche_bloc > a{
        width: 99%;
    }

    .acc_recherche .sub_form {
        margin-left: 0px;
    }

    .acc_recherche .acc_recherche_bloc{
        display: inline-block;
        width: 50%;
    }

    .acc_recherche .tt-menu{
        width: auto;
    }

    .acc_resultats article .acc_infos {
        padding: 0 10px 0 0;
        width: 40%;
    }

    .acc_resultats article .acc_files {
        padding: 0 0 0 10px;
    }

    .acc_resultats article .acc_files > ul.files {
        width: 100%;
        margin-left: 0;
    }

    .acc_resultats .pagination{
        width: 100%;
    }

    .acc_recherche input[type="submit"]{
        float: right;
    }

    .acc_resultats article .acc_infos,
    .acc_resultats article .acc_files{
        padding: 0;
        width: 100%;
        display: block;
        border: 0;
    }

    .acc_resultats article .acc_files{
        border-top: 1px solid #909090;
    }
}

/* tablet and mobile style: until 910px ( < 910px ) */
@media screen and (max-width: 909px) {
    /* PAGE DISPLAY */
    .max-width {
        max-width: 750px;
    }

    .content-area {
        width: 100% !important;
    }

    .grey_box{
        padding: 1rem 1rem 2rem 1rem;
    }
    .white_box, .orange_box, .accreditation > .grey_box {
        padding: 1rem;
    }

    .grey_box .entry-content {
        margin: 0;
    }

    .sidebar {
        margin-bottom: 0;
        padding: 1rem;
    }

    .entry-content ul, .entry-content ol{
        margin-left: 1rem;
    }

    .text-half{
        width: 100%;
    }
    
    .deco_orange{
        padding-bottom: 5rem;
        background-position: 90% 400px;
        background-size: 100%;
    }

    .site-header {
        padding: 1rem;
    }

    .site-branding{
        margin: 0;
        margin-left: auto;
        float: none;
        position: relative;
    }

    /* FOOTER */
    .site-footer {
        padding: 1rem;
        background: url(../images/cti-background-orange.svg) no-repeat -80% 0;
        background-size: cover;
    }

    .footer_links {
        width: 100%;
        margin-left: 0;
    }

    .footer_links .intro {
        margin-top: 0;
    }

    .back-to-top{
        right: 5%;
    }

    /* NAVIGATION */
    .menu-menu-top-orange-container{
        max-width: none;
    }
    .site-header-main{
        margin-top: -70px;
    }
    .site-header-menu{
        margin: 0;
        background-color: #fff;
        padding: 0;
    }

    .main-navigation{
        margin: 0;
        width: 100%;
    }

    .menu-top > div > ul li {
        display: inline-block;
        float: none;
        font-size: 12px;
        padding: 5px 1% 0 1%;
    }
    .main-navigation > div > ul > .current-menu-item:after{
        content: none;
    }

    .main-navigation #menu-menu-top-orange a:first-child,
    .main-navigation #menu-menu-top-orange a:last-child,
    .main-navigation #menu-menu-top-orange a{
        padding: 7px 0 !important;
    }

    .main-navigation .menu-item-has-children > a,
    .main-navigation > div > ul > .menu-item-has-children:last-child:hover > a:after{
        margin-right: 0;
    }

    ul#menu-menu-top-orange > li{
        margin-bottom: 0;
    }

    .main-navigation > div > ul > li:hover > a{
        color: #ff6600;
    }

    .main-navigation > div > ul > .menu-item-has-children:hover > a:after{
        content: none;
    }

    .main-navigation > div > ul > .menu-item-has-children > a:after,
    .main-navigation > div > ul > .menu-item-has-children:hover > a:after{
        position: relative;
        float: right;
        padding-right: 2rem;
        top: 0;
        right: 0;
        margin-right: 0;
        width: 16px;
        height: 16px;
        font-size: 25px;
        color: #ff6600;
        content: " ";
    }

    .main-navigation > div > ul > .menu-item-has-children > a.down-arrow:after{
        content: "\f431";
    }

    .main-navigation > div > ul > .menu-item-has-children > a.opened{
        color: #606060;
    }

    .main-navigation > div > ul > .menu-item-has-children > a.opened:after{
        content: "\f421";
        color: #606060;
    }

    .menu-toggle {
        background-color: transparent;
        border: 0;
    }

    .menu-toggle:before{
        -webkit-font-smoothing: antialiased;
        display: inline-block;
        color: #ff6600;
        font-family: "Genericons";
        font-size: 25px;
        content: "\f419";
    }

    #search-top-bar{
        position: fixed;
        top:0;
        left: 7px;
        width: 50%;
        padding: 7px;
    }


    /* Sub-menus */
    .main-navigation > div > ul > li > ul{
        padding: 0;
        margin-left: 0;
    }

    .main-navigation .sub-menu > li > .sub-menu {
        background-color: #fff;
        padding: 0;
        display: block;
        margin: 0;
        left: 0 !important;
    }

    .main-navigation ul ul li{
        margin-left: 10px;
    }

    .main-navigation ul ul li:hover > ul, .main-navigation > div > ul > li:hover > ul,
    .primary-menu .sub-menu:hover{
        text-align: left;
    }

    .main-navigation ul ul a{
        border-color: #D1D1D1;
    }




    /* HOME: BUBBLES */
    .bubbles > a > div {
        width: 152px;
        height: 152px;
        line-height: 142px;
        margin: 5px;
    }

    .bubbles a > div:hover .tiny-bubble{
        display: none;
    }

    /* PAGES */
    .site-main > article {
        margin: 0;
        padding: 0;
    }

    .orange_header{
        padding: 1rem;
        margin: 0;
    }

    aside#secondary{
        margin-left: 0;
        width: 100%;
    }

    #fond-documentaire_sommaire .toggle-menu{
        margin-top: 10px;
    }

    #fond_documentaire .fd-navigation{
        margin: 0 1%;
    }

    .event_box{
        flex-basis: 99.35%;
    }
}

/* Tablet style: from 500 to 910px ( > 500px && < 910px ) */
@media screen and (max-width: 910px) and (min-width: 500px){
    .max-width{
        max-width: 900px;
    }

    .footer_links{
        width: auto;
        float: right;
    }
    .deco_orange {
        background-position: 90% -20%;
    }

    .bubbles > a > div {
        width: 180px;
        height: 180px;
        line-height: 170px;
        margin: 5px;
    }
}

/* mobile style: under 768px ( < 768px ) */
@media screen and (max-width: 768px) {
    .gm-style .gm-style-iw {
        width: 300px !important;
        max-height: 350px;
    }

    .wplp_container.default li .insideframe{
        height: 500px;
    }
    .wplp_container.default li .insideframe .wpcu-front-box.right{
        width: 100% !important;
        position: relative;
        right: 0;
    }
    .wplp_container.default li .insideframe .thumbnail {
        height: 280px !important;
    }
    .wplp_container.default li .insideframe span.img_cropper{
        height: 230px !important;
        top: 30px;
    }
    .wplp_container.default li .insideframe span.img_cropper img{
        max-height: 85%; !important;
    }
}

/* mobile style: under 400px ( < 400px ) */
@media screen and (max-width: 400px) {
    .menu-top > div > ul > li:last-child{
        display: none;
    }

    .bubbles > a > div {
        width: 130px;
        height: 130px;
        line-height: 120px;
        margin: 5px;
    }
}