/*
Theme Name: CAPI-ABAVENIR
Author: INSEME STUDIO
Author URI: https://insemestudio.com
Description: CAPI-ABAVENIR WP Theme By INSEME STUDIO
*/


.amelia-app-booking #amelia-booking-wrap .am-step-booking-catalog{
    margin: 0;
}

.wp-block-navigation{
    font-size: 20px;
}

.mobile-logo {
    margin-left: -40px;
}

.wp-block-navigation__responsive-container,
.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open)
{
    display: none;
}

.wp-block-navigation__responsive-container-open:not(.always-shown){
    display: block;
    position: absolute;
    top: -50px;
    right: 30px;
}

.wp-block-navigation-item:not(.wp-block-navigation-link){
    display: none!important;
}

.wp-block-navigation,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container{
    align-items: center;
    text-align: center;
}

.is-style-default{
    border-bottom: 0;
}

.reverse-column{
    flex-direction: column-reverse;
}

a, .wp-element-button{
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}
.wp-block-navigation a{
    text-transform: uppercase;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus,
.wp-block-navigation .current-menu-item a{
    text-decoration: none;
    color: var(--wp--preset--color--secondary) !important;
}

.entry-content p{
    gap: 20px;
}

.wpcf7-submit,
.wp-block-navigation-link.btn-blue a{
    padding: 10px 30px !important;
    border-radius: 50px;
    background-color: var(--wp--preset--color--secondary)!important;
    color: var(--wp--preset--color--base)!important;
    border: 0;
    text-transform: uppercase;
}

.wpcf7-text,
.wpcf7-textarea{
    padding: 10px;
    border-radius: 0;
    border: 1px solid var(--wp--preset--color--contrast);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output{
    border-color: var(--wp--preset--color--primary);
}

.wpcf7-not-valid-tip{
    color:var(--wp--preset--color--primary);
}

.wpcf7 form.sent .wpcf7-response-output{
    border-color: var(--wp--preset--color--secondary);
}

.btn-blue .wp-element-button{
    background-color: var(--wp--preset--color--secondary);
}

.btn-blue .wp-element-button:hover,
.wp-block-navigation-link.btn-blue a:hover,
.btn-blue .wp-element-button:focus,
.wp-block-navigation-link.btn-blue a:focus,
.btn-blue .wp-element-button:active,
.wp-block-navigation-link.btn-blue a:active{
    color: var(--wp--preset--color--base) !important;
    background-color: var(--wp--preset--color--contrast) !important;
}

.btn-orange .wp-element-button{
    background-color: var(--wp--preset--color--primary);
}

.btn-orange .wp-element-button:hover,
.btn-orange .wp-element-button:focus,
.btn-orange .wp-element-button:active{
    color: var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--contrast);
}

.home-top {
    display: flex;
    flex-direction: column;
}

.home-top-left{
    position: relative;
    background-color: #1e7f81;
    background-image: url("./assets/images/digest.webp");
    background-repeat: no-repeat;
}

.home-top-right{
    display: flex;
    background: #e58d6d;
    margin-block-start: 0;
}

.home-top-right-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
    justify-content: center;
    gap: 30px;
}

.home-top-left .wp-block-image {
    margin: 20px 20px 0px 20px;
}

.home-top-left .wp-block-image img{
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
}

.separator-left, .separator-right{
    margin-block-start: 0;
}

.separator-left span{
    display: block;
    width: 45%;
    height: 60px;
    border-bottom: 1px solid var(--wp--preset--color--contrast);
    border-right: 1px solid var(--wp--preset--color--contrast);
}

.separator-left.separator-left-small span{
    width: 85%;
    height: 60px;
}

.separator-right{
    display: flex;
    justify-content: end;
}

.separator-right span{
    display: block;
    width: 60%;
    height: 40px;
    border-bottom: 1px solid var(--wp--preset--color--contrast);
    border-left: 1px solid var(--wp--preset--color--contrast);
}

.separator-right.separator-right-big span{
    width: 85%;
    height: 80px;
}

.white-bg {
    background: var(--wp--preset--color--base) !important;
}

.about-top{
    background: var(--wp--preset--color--gray);
    display: flex;
    flex-direction: column-reverse;
    margin: 50px 0 0;
}
.about-top-left {
    position: relative;
}

.about-top-left-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
    justify-content: center;
    gap: 30px;
}

.about-top .wp-block-image{
    margin: -50px 0 0 50px;
}

.about-top .wp-block-image img{
    border-radius: 50% 0 0 50%;
}

.formation-top{
    display: flex;
    position: relative;
    flex-direction: column;
    margin: 50px 0 0;
}

.formation-top-left-content{
    display: flex;
    flex-direction: column;
    padding: 30px 10px;
    justify-content: center;
    margin-block-start: 0;
    gap: 30px;
}

.formation-top .wp-block-image{
    margin: 50px 0 0;
}

.formation-top-right{
    background: var(--wp--preset--color--gray);
    display: flex;
    align-items: center;
    margin-block-start: 0;
}

.consultation-top{
    display: flex;
    position: relative;
    flex-direction: column;
    margin: 50px 0 0;
}

.consultation-top-left-content{
    display: flex;
    flex-direction: column;
    padding: 30px 10px;
    justify-content: center;
    margin-block-start: 0;
    gap: 30px;
}

.consultation-top-left .wp-block-image img{
    border-radius: 50% 50% 0 0;
}

.consultation-top-left.no-radius .wp-block-image img{
    border-radius: 0;
}

.consultation-top-right{
    background: var(--wp--preset--color--gray);
    display: flex;
    align-items: center;
    margin-block-start: 0;
}

.home-feedback h2{
    margin-bottom: -40px;
}

.wp-block-latest-posts{
    text-align: center;
}

.wp-block-latest-posts__featured-image{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

a.wp-block-latest-posts__post-title{
    display: block;
    font-family: "Libre Baskervile";
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    font-size: 22px;
    text-transform: uppercase;
}

.wp-block-latest-posts__post-date,
.wp-block-post-date a{
    color:var(--wp--preset--color--dark-gray);
    text-transform: uppercase;
}

.wp-block-latest-posts__post-excerpt{
    padding: 10px;
}

.wp-block-latest-posts__list{
    margin: 50px 0;
}

.columns-3 .wp-block-post{
    text-align: center;
}

.wp-block-latest-posts__list li:nth-child(even) > .wp-block-latest-posts__featured-image img,
.wp-block-post-template.columns-3 li:nth-child(even) > .wp-block-post-featured-image img{
    border-radius: 50% 50% 0 0;
}

.wp-block-latest-posts.columns-3,
.wp-block-post-template.columns-3{
    flex-direction: column;
    gap: 50px;
}

.wp-block-latest-posts.columns-3 li,
.wp-block-post-template.columns-3 li {
    flex: 1;
    width: auto;
    margin: 0;
}

.ressource-title{
    margin: -20px 0 0 0;
}
.ressource-title span{
    background: var(--wp--preset--color--base);
    padding: 0 20px;
}

.question-column{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.question-column .circle-number{
    position: relative;
    width: 140px;
    height: 140px;
}

.question-column .circle-number .circle{
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--wp--preset--color--contrast);
    border-radius: 50%;
}

.question-column .circle-number .number{
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    font-size: 40px;
    font-weight: 100;
    text-align: center;
}

.ressources-top{
    text-align: center;
    padding: 50px 10vw;
    background: var(--wp--preset--color--gray);
    margin-bottom: 50px;
}

.single-top{
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--base);
    padding: 50px 10vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-container{
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.post-content{
    flex: 1;
}

.post-related{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.post-related h3{
    font-size: 20px;
    margin: 0;
}

.post-related ul li{
    margin-bottom: 40px;
}

.post-related ul li a.wp-block-latest-posts__post-title{
    font-size: 15px;
}

.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{
    width: auto!important;
}

.wp-block-post-template.columns-3 li{
    flex-basis: 100%;
}

footer{
    background: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
}

footer a{
    color: var(--wp--preset--color--base);
    text-decoration: none;
}

footer a:hover,
footer a:focus{
    color: var(--wp--preset--color--primary);
}


@media screen and (min-width: 768px){
    header .qualiopi-logo{
        position: absolute;
        top: 0;
        right: 3%;
    }

    h2{
        font-size: 38px;
    }

    h3{
        font-size: 32px;
    }

    .wp-block-navigation ul{
        gap: 40px;
    }

    .home-top-left{}
    .home-top-right{
        font-size: 15px;
    }

    .home-top-left .wp-block-image {
        margin: 15px 70px 0 80px;
    }

    .about-top{
        flex-direction: row;
    }

    .about-top-left{
        display: flex;
        align-items: center;
        flex: 2;
    }

    .about-top-right{
        flex: 2;
        align-items: center;
        display: flex;
        margin-block-start: 0;
    }

    .formation-top {
        flex-direction: row;
    }


    .formation-top-left{
        flex: 1;
        z-index: 1;
    }

    .formation-top .wp-block-image{
        margin: 50px 0;
    }

    .formation-top-right{
        flex: 3;
        margin-left: -10vw;
        padding: 0 2vw 0 14vw;
    }

    .formation-top h2{
        position: absolute;
        top: 0;
        left: 2vw;
        margin-block-start: 0;
    }

    .consultation-top {
        flex-direction: row;
    }

    .consultation-top-left{
        flex: 1;
        z-index: 1;
    }

    .consultation-top .wp-block-image{
        margin: 50px 0 50px 4vw;
    }

    .consultation-top-right{
        flex: 2;
        margin-left: -10vw;
        padding: 0 2vw 0 14vw;
    }

    .consultation-top h2{
        position: absolute;
        top: 0;
        left: 2vw;
        margin-block-start: 0;
    }

    .wp-block-latest-posts.columns-3,
    .wp-block-post-template.columns-3{
        flex-direction: row;
    }

    .wp-block-post-template.columns-3 li{
        flex-basis: 25%;
    }
    .wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{
         max-width: 33%;
    }
}

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

    .wp-block-navigation__responsive-container,
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open)
    {
        display: flex;
    }

    .wp-block-navigation{
        font-size: 14px;
    }
    .wp-block-navigation ul{
        gap: 25px;
    }

    .wp-block-navigation__responsive-container-open:not(.always-shown){
        display: none;
    }
    .wp-block-navigation-item:not(.wp-block-navigation-link){
        display: flex!important;
    }

    .mobile-logo{
        display: none!important;
    }

    .reverse-column{
        flex-direction: row;
    }

    h3{
        font-size: 32px;
    }

    .home-top {
        flex-direction: row;
        gap: 2em;
    }

    .home-top-left{ flex: 3; }
    .home-top-right{
        flex: 7;
        font-size: 15px;
    }

    .home-top-right-content{
        padding: 0 5% 0 25%;
    }

    .home-top-left .wp-block-image {
        margin: 45px -180px -50px 20px;
    }

    .about-top-left-content h2{
        position: absolute;
        top:-25px;
    }

    .separator-left span {
        width: 40%;
        height: 100px;
    }

    .separator-right span {
        height: 60px;
    }

    .formation-top h2 {
        left: 4vw;
    }

    .consultation-top h2 {
        left: 4vw;
    }

    .post-container{
        flex-direction: row;
        padding: 50px 5vw;
    }

    .post-content{
        flex: 3;
    }

    .post-related {
        flex: 1;
    }
}

@media screen and (min-width: 1200px){
    .wp-block-navigation{
        font-size: 1rem;
    }
    .wp-block-navigation ul{
        gap: 45px;
    }

    h3{
        font-size: 40px;
    }

    .home-top-left{ flex: 5; }
    .home-top-right{
        flex: 6;
        font-size: 17px;
    }

    .home-top-left .wp-block-image{
        margin: 55px -160px -80px 80px;
    }

    .home-top-right-content {
        padding: 0 10% 0 20%;
    }

    .about-top-left-content{
        padding: 70px 10%;
    }

    .about-top .wp-block-image{
        margin: -110px 0 0 20px;
    }

    .separator-left span {
        width: 50%;
        height: 150px;
    }

    .about-top-left{
        flex: 3;
    }
}
