/******************************

TABLE OF CONTENTS :

- DIVI COMMUNITY
- GLOBAL
- HEADER
- FOOTER
- BUTTON
- HOME HEADER
- HOME TOOLKIT
- HOME PARTNERS
- PAGE HEADER
- ABOUT PARTNERS
- PARTNER
- POST CONTENT
- WP GRID BUILDER
- MEDIA QUERIES
- FORMINATOR

******************************/





/******************************

DIVI COMMUNITY

******************************/

/* 
** CENTRER DU CONTENU VERTICALEMENT 
** Voir tuto : https://www.divi-community.fr/snippets-divi/centrer-du-contenu-verticalement
*/

.dc-centrer-verticalement {
	display: flex;
	flex-direction: column;
	justify-content: center;
  	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -ms-flexbox;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	 -moz-box-orient: vertical;
	 -moz-box-direction: normal;
	  -ms-flex-direction: column;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
}


/*
** INVERSER LE SENS DES COLONNES SUR MOBILE
** Voir tuto : https://www.divi-community.fr/snippets-divi/inverser-ordre-des-colonnes-sur-mobile
*/

@media only screen and (max-width : 980px) {
	.dc-inverser-colonnes--section .dc-inverser-colonnes--ligne {
		display: -webkit-flex;
		display: -ms-flex;
		display: flex;
		-webkit-flex-direction: column-reverse;
		-ms-flex-direction: column-reverse;
		flex-direction: column-reverse;
	}
}


/*
** MENU MOBILE : en pleine largeur et le hamburger devient une croix pour fermer
*/

/* .et_mobile_menu {
	margin-left: -30px;
	padding: 5%;
	width: calc( 100% + 60px);
} */

.mobile_nav.opened .mobile_menu_bar:before {
	content: "\4d";
}


/* 
** AUGMENTER LA LARGEUR CHAMP RÉSULTAT CAPTCHA 
** Parfois, suivant la taille du texte, certains chiffres du résultat sont masqués
*/
.et_pb_contact_right p input {
	max-width: 50px;
}


/*
** METTRE EXPOSANTS ET INDICES À LA BONNE TAILLE
** Généralement, ils sont bien trop gros…
*/
sup, sub {
    font-size: 70%;
}





/******************************

GLOBAL

******************************/

:root {
    --blue: #00CFFF;
    --white: #fff9f9;
    --gold: #e2ce5f;
}





/******************************

HEADER

******************************/

.et-l--header .et_pb_column {
    display: flex;
    align-items: center;
}

.et-l--header .et_pb_column,
.et-l--header .et_pb_menu,
.et-l--header .et_pb_menu_inner_container {
    position: static;
}

.et-l--header .et_pb_image {
    flex-shrink: 0;
}

.et-l--header .et_pb_menu {
    order: 3;
}

.et-l--header .et_pb_code {
    order: 2;
}

/* WPML */

.wpml-ls {
    border: 0;
    height: 50px;
    padding: 0;
    width: 50px;
}

.wpml-ls > ul {
    margin: 0 -5px !important;
    padding: 0;
}

.wpml-ls-link {
    border: 1px solid #000;
    border-radius: 50%;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
    transition: outline-width .05s;
}

.wpml-ls-flag {
    height: 28px;
    object-fit: cover;
    width: 30px;
}

.header-mobile__wpml {
    flex-shrink: 0;
}

.wpml-ls > ul {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.16);
    display: flex;
    flex-direction: column;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.wpml-ls-item {
    order: 2;
}

.wpml-ls-current-language {
    order: 1;
    padding: 10px !important;
    pointer-events: none;
}

.wpml-ls-item:not(.wpml-ls-current-language) {
    height: 0;
    overflow: hidden;
}

.wpml-ls.is-open .wpml-ls-item:not(.wpml-ls-current-language) {
    border-top: 1px solid var(--black);
    height: auto;
    padding: 10px !important;
} 





/******************************

FOOTER

******************************/

.et-l--footer .et_pb_column {
    display: flex;
    flex-direction: column;
}

.et-l--footer .et-menu {
    flex-direction: initial !important;
}

.et-l--footer .et_mobile_nav_menu {
    display: none;
}

.et-l--footer .et_pb_menu__menu {
    display: block;
}

.et-l--footer .menu-item {
    width: 100%;
}





/******************************

BUTTON

******************************/

.et_pb_button {
    align-items: center;
    display: inline-flex !important;
    justify-content: center;
    min-height: 60px;
    overflow: hidden;
}

.et_pb_button::before {
    position: absolute !important;
}

.et_pb_button::before,
.et_pb_button::after {
    background: center/40% no-repeat;
    content: '';
    display: block;
    height: 100%;
    outline: 2px solid #000;
    right: 0;
    top: 0;
    width: 58px;
}

.et_pb_button::before {
    background-color: #000;
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_white.svg');
    display: block !important;
    opacity: 1 !important;
}

.et_pb_button::after {
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_black.svg');
    opacity: 0 !important;
}

.et_pb_button:hover {
    box-shadow: 0 0 30px rgba(0,207,250,.3) !important;
}

.et_pb_button.m--white:hover {
    box-shadow: 0 0 30px rgba(255,255,255,.5) !important;
}

.et_pb_button:hover::before {
    opacity: 0 !important;
}

.et_pb_button:hover::after {
    opacity: 1 !important;
}

.et_pb_button.m--white::before,
.et_pb_button.m--white::after {
    outline-color: var(--white);
}

.et_pb_button.m--white::before {
    background-color: var(--white);
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_black.svg');
}

.et_pb_button.m--white::after {
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_white.svg');
}




/* .et_pb_button {
    align-items: center;
    display: inline-flex !important;
    justify-content: center;
    min-height: 60px;
    overflow: hidden;
}

.et_pb_button::before {
    position: absolute !important;
}

.et_pb_button::before,
.et_pb_button::after {
    background: center/40% no-repeat;
    content: '';
    display: block;
    height: 100%;
    outline: 2px solid #000;
    right: 0;
    top: 0;
    width: 58px;
}

.et_pb_button::before {
    background-color: #000;
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_white.svg');
    opacity: 1 !important;
}

.et_pb_button::after {
    background-color: var(--gold);
    outline-color: var(--gold);
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_black.svg');
    opacity: 0 !important;
}

.et_pb_button:hover {
    box-shadow: 0 0 30px rgba(0,207,250,.3) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

.et_pb_button.m--white:hover {
    box-shadow: 0 0 30px rgba(255,255,255,.5) !important;
}

.et_pb_button:hover::before {
    opacity: 0 !important;
}

.et_pb_button:hover::after {
    opacity: 1 !important;
}

.et_pb_button.m--white::before,
.et_pb_button.m--white::after {
    outline-color: var(--white);
}

.et_pb_button.m--white::before {
    background-color: var(--white);
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_black.svg');
}

.et_pb_button.m--white::after {
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_white.svg');
} */





/******************************

HOME HEADER

******************************/

.home-header .et_pb_row {
    display: flex;
    flex-direction: column-reverse;
}

.home-header .et_pb_column:last-child {
    margin-bottom: 50px;
}

.home-header::before {
    background: url('/wp-content/themes/lesapprimeurs/images/blood_1.png') top right/contain no-repeat;
    content: '';
    height: calc(100% - 50px);
    max-height: 698px;
    max-width: 1766px;
    position: absolute;
    /* right: -370px; */
    right: 0;
    top: 0;
    transform: translateX(21%);
    transform: translateX(26%);
    width: 130%;
    width: 240%;
}

.home-header::after {
    background: url('/wp-content/themes/lesapprimeurs/images/snake_1.png') top right/contain no-repeat;
    content: '';
    height: 36%;
    max-height: 283px;
    max-width: 978px;
    position: absolute;
    right: 0;
    top: 0;
    width: 80%;
}

.home-header .et_pb_column:first-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}





/******************************

HOME TOOLKIT

******************************/

.home-toolkit::before {
    background: url('/wp-content/themes/lesapprimeurs/images/snake_2.png') center/contain no-repeat;
    bottom: 0;
    content: '';
    height: 466px;
    position: absolute;
    right: 0;
    width: 624px;
}





/******************************

HOME PARTNERS

******************************/

.home-partners__col2 {
    align-items: center;
    display: flex;
    column-gap: 50px;
}





/******************************

PAGE HEADER

******************************/

.page-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}





/******************************

ABOUT PARTNERS

******************************/

.about-partners {
    column-gap: 16px;
}





/******************************

PARTNER

******************************/

.partner .et_pb_main_blurb_image {
    display: flex;
    flex-direction: column;
    height: 200px;
    justify-content: center;
}

.partner img {
    max-height: 100px;
    max-width: 200px;
    object-fit: contain;
}

.partner::before,
.partner::after {
    background: center/40% no-repeat;
    border-radius: 10px;
    content: '';
    position: absolute;
    height: 58px;
    border: 2px solid #000;
    right: 10px;
    bottom: 10px;
    transition: opacity .3s;
    width: 58px;
}

.partner::before {
    background-color: #000;
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_white.svg');
    opacity: 1;
}

.partner::after {
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_black.svg');
    opacity: 0;
}

.partner:hover::before {
    opacity: 0 !important;
}

.partner:hover::after {
    box-shadow: 0 0 30px rgba(0,207,250,.3) !important;
    opacity: 1 !important;
}





/******************************

NOTEBOOK

******************************/

.notebook::before,
.notebook::after {
    background: center/40% no-repeat;
    border-radius: 10px;
    content: '';
    position: absolute;
    height: 58px;
    border: 2px solid var(--white);
    right: 10px;
    bottom: 10px;
    transition: opacity .3s;
    width: 58px;
}

.notebook::before {
    background-color: var(--white);
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-down_black.svg');
    opacity: 1;
}

.notebook::after {
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-down_white.svg');
    opacity: 0;
}

.notebook:hover::before {
    opacity: 0 !important;
}

.notebook:hover::after {
    box-shadow: 0 0 30px rgba(255,255,255,.5) !important;
    opacity: 1 !important;
}





/******************************

POST CONTENT

******************************/

.et_pb_post_content * {
    padding-bottom: 0;
}

.et_pb_post_content > *:first-child {
    margin-top: 0;
}

.et_pb_post_content > *:last-child {
    margin-bottom: 0;
}

.et_pb_post_content h2,
.et_pb_post_content h3,
.et_pb_post_content h4 {
    margin-top: 1.3em;
    margin-bottom: .3em;
}

.et_pb_post_content p {
    margin-top: 1em;
}

.et_pb_post_content a {
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px !important;
}

.et_pb_post_content ul {
    margin-top: 1em;
    padding-bottom: 0;
}

.et_pb_post_content blockquote {
    border: none;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 0;
    position: relative;
}

.et_pb_post_content cite {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-top: 1.5em;
    padding-right: 270px;
}

/* .et_pb_post_content .wp-block-columns {
    margin-top: 2.5em;
    margin-bottom: 2.5em;
}

.et_pb_post_content .wp-block-columns figure {
    margin: 0;
} */

.et_pb_post_content > figure {
    margin: 2.5em -50px;
    text-align: center;
}

.et_pb_post_content figcaption {
    margin-bottom: 0;
    text-align: left;
}

.et_pb_post_content figcaption a {
    font-size: .8rem;
}

.et_pb_post_content sup {
    margin-top: 2.5em;
    margin-bottom: 2.5em;
}





/******************************

POST BODY

******************************/

.post__body p:first-child {
    font-size: 1.5rem !important;
    line-height: 1.5;
}





/******************************

WP GRID BUILDER

******************************/

.wpgb-card:not(.wpgb-card-3) .wpgb-card-body::before,
.wpgb-card:not(.wpgb-card-3) .wpgb-card-body::after {
    background: center/40% no-repeat;
    border: 2px solid #000;
    border-radius: 10px;
    bottom: 10px;
    content: '';
    height: 58px;
    position: absolute;
    right: 10px;
    transition: opacity .3s;
    width: 58px;
}

.wpgb-card:not(.wpgb-card-3) .wpgb-card-body::before {
    background-color: #000;
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_white.svg');
    opacity: 1;
}

.wpgb-card:not(.wpgb-card-3) .wpgb-card-body::after {
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_black.svg');
    opacity: 0;
}

.wpgb-card:not(.wpgb-card-3):hover .wpgb-card-body::before {
    opacity: 0 !important;
}

.wpgb-card:not(.wpgb-card-3):hover .wpgb-card-body::after {
    box-shadow: 0 0 30px rgba(0,207,250,.3) !important;
    opacity: 1 !important;
}

.wpgb-card:not(.wpgb-card-3):not(:first-child) .wpgb-block-3 {
    display: none !important;
}

.wpgb-sidebar-left {
    padding-right: 20px;
}

.wpgb-facet + .wpgb-facet {
    border-top: 1px solid #fff;
    padding-top: 30px;
}

.wpgb-facet-title {
    color: #fff;
    /* text-transform: uppercase; */
    font-family: 'Josefin Sans';
    font-size: 1.5rem !important;
}

.wpgb-radio-label,
.wpgb-checkbox-label {
    color: #fff;
}

.tool__btn::before,
.tool__btn::after {
    background: center/40% no-repeat;
    /* border-radius: 0 10px 10px 0; */
    content: '';
    height: 100%;
    border-left: 2px solid #fff;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity .3s, border-color .3s;
    width: 60px;
}

.tool__btn::before {
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-down_white.svg');
    opacity: 1;
}

.tool__btn::after {
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-down_black.svg');
    opacity: 0;
}

.tool__btn:hover::before,
.tool__btn:hover::after {
    border-color: #000;
}

.tool__btn:hover::before {
    opacity: 0;
}

.tool__btn:hover::after {
    opacity: 1;
}





/******************************

FORMINATOR

******************************/

.forminator-input,
.forminator-textarea {
    border-radius: 10px !important;
    border-width: 2px !important;
}

.forminator-checkbox-box {
    border-width: 2px !important;
}

.forminator-checkbox__wrapper p {
    margin-top: 0;
}

.forminator-button-submit {
    border-radius: 10px !important;
    min-height: 60px !important;
    overflow: hidden;
    padding: 0 24px 0 24px !important;
}

.forminator-button-submit:hover {
    box-shadow: 0 0 30px rgba(0,207,250,.3) !important;
}

/* .forminator-button-submit::before {
    background: center/40% no-repeat;
    content: '';
    position: absolute;
    height: 60px;
    border-left: 2px solid var(--white);
    right: 0;
    top: 0;
    transition: opacity .3s;
    width: 60px;
}

.forminator-button-submit::before {
    background-color: #000;
    background-image: url('/wp-content/themes/lesapprimeurs/images/arrow-right_white.svg');
} */





/******************************

MEDIA QUERIES

******************************/

@media (min-width: 981px) {

    /******************************
    HEADER
    ******************************/

    .et-l--header .et_pb_menu {
        order: 2;
    }

    .et-l--header .et_pb_code {
        order: 3;
    }

    /* WPML */

    .wpml-ls {
        height: auto;
        width: auto;
    }

    .wpml-ls > ul {
        box-shadow: none;
        flex-direction: row;
        position: static;
    }

    .wpml-ls-item {
        margin: 0 5px !important;
    }

    .wpml-ls-current-language {
        padding: 0 !important;
    }

    .wpml-ls-item:not(.wpml-ls-current-language) {
        height: auto;
    }

    .wpml-ls-flag {
        height: 38px;
        width: 40px;
    }


    /******************************
    FOOTER
    ******************************/

    .et-l--footer .et_pb_section::before {
        background: url('/wp-content/themes/lesapprimeurs/images/snake_3.png') top right/contain no-repeat;
        content: '';
        max-height: 1225px;
        max-width: 910px;
        position: absolute;
        height: 300%;
        right: calc(50% + 200px);
        top: 50px;
        /* transform: translateY(-5%); */
        width: 100%;
    }

    .et-l--footer .et_pb_section::after {
        background: linear-gradient(rgba(255,255,255,.2) 0%, rgba(255,255,255,.8) 100%);
        bottom: 0;
        content: '';
        height: 100%;
        left: 0;
        position: absolute;
        width: 50%;
    }


    /******************************
    HOME HEADER
    ******************************/

    .home-header .et_pb_row {
        flex-direction: row;
    }

    .home-header::before {
        transform: translateX(21%);
        width: 130%;
    }


    /******************************
    WORKSHOPS GRID
    ******************************/

    /* .workshops-grid .wpgb-viewport {
        height: auto !important;
    }

    .workshops-grid .wpgb-masonry {
        display: grid;
        gap: 16px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .workshops-grid .wpgb-card {
        position: static !important;
        width: auto !important;
    }

    .workshops-grid .wpgb-card:first-child {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 3;
    }

    .workshops-grid .wpgb-card:last-child {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-end: 3;
    } */

}

@media (min-width: 1570px) {

    .big-title h1,
    .big-title h2 {
        font-size: 140px !important;
    }

}
