@media only screen and (max-width: 576px) {
    h1 {
        font-size: 32px !important;
    }

    .home .slider .slider-content {
        top: 30%;
        text-align: center;
        max-width: initial;
        padding: 0 15px;
    }

    .home .partenaires .slick-prev {
        left: 0;
    }

    .home .partenaires .slick-next {
        right: 0;
    }

    .home .slider .slider-content a.btn-catalogue {
        margin-left: 0;
    }

    .slider-content .btn-hero {
        flex-direction: column;
        align-items: center;
    }

    .main-references p {
        max-width: inherit;
    }

    .header-item h3 {
        font-size: 18px;
    }

    .banner img {
        width: 100%;
        height: auto;
    }
}

@media only screen and (max-width: 768px) {
    .wpcf7 form input[type=submit] {
        width: 100%;
    }

    .hero .hero-img {
        height: 300px;
    }
}

@media only screen and (max-width: 992px) {
    .slick-dots li {
        max-width: 15px;
        max-height: 15px;
    }

    .row-modalites .col-lg-4 {
        margin-bottom: 12px;
    }

    .header-formations .formation-item {
        margin-bottom: 24px;
    }

    .equipe {
        margin-top: 70px;
    }

    .equipe h2 {
        text-align: center;
    }

    .banner-histoire .container {
        display: flex;
        flex-direction: column;
    }

    .banner-histoire .container figure {
        order: 2;
    }

    .banner-histoire blockquote {
        margin-bottom: 50px;
    }

    .banner-histoire blockquote::before {
        left: 0;
    }

    .banner-histoire blockquote p {
        max-width: initial;
        margin-left: 0;
    }

    .banner-histoire blockquote::after {
        right: 0;
    }

    .home .enseignements .enseignement-item {
        height: auto;
    }

    .home .enseignements .enseignement-item p {
        display: block;
    }

    .home .enseignements .teaching-btn {
        flex-direction: column;
        align-items: center;
    }

    .home .enseignements .teaching-btn a {
        margin-right: 0;
        margin-bottom: 24px;
        min-width: 80%;
        justify-content: center;
    }

    .home .chiffres {
        background: linear-gradient(var(--secondary) 70%, var(--secondary));
        margin-top: 24px;
        padding-bottom: 0;
    }

    .home .chiffres .chiffres-content {
        margin-bottom: 32px;
    }

    .home .enseignements {
        margin-top: 40px;
        text-align: center;
    }

    .banner {
        max-height: initial;
        background: var(--white);
        text-align: center;
        box-shadow: none;
    }

    .home .banner .container {
        display: flex;
        flex-direction: column;
    }

    .home .banner .container figure {
        order: 2;
    }

    .banner img {
        margin-right: 0;
        float: none;
        margin-bottom: 24px;
    }

    .banner h2 {
        color: var(--primary);
        font-size: 36px;
        margin-bottom: 32px;
    }

    .home .partenaires h2 {
        text-align: center;
    }

    #footer {
        text-align: center;
    }

    #menu-footer {
        justify-content: center;
        margin-bottom: 20px;
    }

    #footer .footer-2 a {
        margin: 0 auto 24px auto;
    }

    #myBtn {
        display: none;
    }

    #header .nav-menu .section-list li.current-menu-item a::after {
        content: none;
    }

    #header .nav-menu .section-list li.current-menu-item a {
        text-decoration: underline;
    }

    #header .nav-menu .section-list {
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-left: 0;
    }

    #header .nav-menu .section-list li::before {
        content: none;
    }

    #header .my-menu a.burger-menu.active span {
        background: transparent;
    }

    #header .my-menu a.burger-menu.active span::before {
        transform: rotate(45deg) translate(6px, 8px);
        background: var(--primary);
    }

    #header .my-menu a.burger-menu span::before {
        top: -10px;
    }

    #header .my-menu a.burger-menu.active span::after {
        transform: rotate(-45deg) translate(6px, -8px);
        background: var(--primary);
    }

    #header .nav-menu .section-list li a {
        color: var(--primary);
        font-size: 16px;
    }

    #header .nav-menu .section-list li:not(:last-child) {
        margin-right: 0;
        margin-bottom: 32px;
    }

    #header .my-menu a.burger-menu span::after {
        top: 10px;
    }

    #header .my-menu a.burger-menu span::before,
    #header .my-menu a.burger-menu span::after {
        background: var(--white);
        content: '';
        height: 4px;
        position: absolute;
        transition: all .2s ease-in-out;
        width: 100%;
    }

    #header .my-menu a.burger-menu span {
        background: var(--white);
        display: block;
        height: 4px;
        margin: 10px 0;
        position: relative;
        transition: all .2s ease-in-out;
        width: 100%;
    }

    #header .my-menu .nav-desktop .nav-menu {
        top: 0;
    }

    #header .my-menu .nav-desktop .nav-menu.active {
        transform: translateX(0);
        -moz-transform: translateX(0);
        -webkit-transform: translateX(0);
    }

    .nav-desktop .nav-menu {
        display: none;
    }

    #header .my-menu .nav-menu {
        background: #fff;
        display: block;
        height: 100%;
        margin: 0;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        transition: all 0.3s ease;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        padding: 20px 60px 30px;
        position: fixed;
        transform: translateX(100%);
        -moz-transform: translateX(100%);
        -webkit-transform: translateX(100%);
        right: 0;
        top: 170px;
        text-align: center;
        max-width: inherit;
        max-width: 100%;
        width: 100%;
        z-index: 8;
    }

    #header .my-menu a.burger-menu {
        padding: 20px 5px;
        width: 40px;
        top: 0;
        display: block;
        opacity: 1;
        z-index: 99;
        position: relative;
        float: right;
    }
}

@media screen and (min-width: 993px) and (max-width: 1199px) {
    .equipe {
        margin-top: 850px;
    }
}

@media screen and (max-width: 1280px) {
    #header .nav-menu .section-list li:not(:last-child) {
        margin-right: 5px;
    }
}

/** Formations importées depuis ABCM (posts) **/
body.category {
    @media screen and (max-width: 767px) {
        h2 {
            font-size: 0.9em;
            line-height: 1.4;
            margin: 0;
        }

        .header-formations .pull-right {
            flex-direction: column;
            align-items: baseline;
            margin-bottom: 25px;
        }

        .formations-list {
            article {
                max-width: 100%;
                margin: 15px;
            }
        }
    }
}

body.post-template-default {
    @media screen and (max-width: 767px) {
        .hero {
            .container {
                > .row {
                    position: relative;
                }

                .post-header {
                    top: 0;
                    transform: translateY(-100%);
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    max-height: 215px;
                    min-height: 185px;
                    max-width: none;
    
                    h1 {
                        font-size: 1.5em !important;
                        margin: 0 0 0.35em;
                    }
    
                    h2.subtitle {
                        font-size: 1.25em;
                    }
    
                    .meta-tag {
                        & .category {
                            line-height: 1.8;
                        }
                    }
                }
            }
        }

        .page-content {
            .rich-text {
                h2 {
                    font-size: 1.25em;
                    margin: 30px 0 15px;
                }
            }

            .sidebar {
                margin: 30px auto 0;

                .program-pdf,
                .inscription {
                    text-align: center;

                    .btn {
                        min-width: 0;
                    }
                }
            }
        }
    }
}

body.page-nos-formations,
body.page-la-pedagogie-de-nos-interventions,
body.page-classe-virtuelle {
    @media screen and (max-width: 767px) {
        h2 {
            font-size: 1.25em !important;
            margin: 0 auto 30px !important;
        }

        h3 {
            font-size: 1em !important;
            display: block !important;
        }        
    }
}

.page-demande-dinformation {
    @media screen and (max-width: 991px) {
        .contact-widget {
            margin-top: 35px;
        }
    }
    
}