/*
Theme Name: Divi Community Child Theme
Description: Theme enfant de Divi par Divi Community
Author: Julien - WebMate
Author URI: https://www.divi-community.fr
Template: Divi
Version: 1.1
*/

/*
  ____ _____     _____      ____ ___  __  __ __  __ _   _ _   _ ___ _______   __
 |  _ \_ _\ \   / /_ _|    / ___/ _ \|  \/  |  \/  | | | | \ | |_ _|_   _\ \ / /
 | | | | | \ \ / / | |    | |  | | | | |\/| | |\/| | | | |  \| || |  | |  \ V /
 | |_| | |  \ V /  | |    | |__| |_| | |  | | |  | | |_| | |\  || |  | |   | |
 |____/___|  \_/  |___|    \____\___/|_|  |_|_|  |_|\___/|_| \_|___| |_|   |_|

*/


/* 
** 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%;
}

/* Début de la personnalisation */

/****** Header ******/

.contact-mobile {
    display: none;
}

#main-header {
    height: 56px;
    background-color: #38439b;
}

#top-header {
    height: 56px;
}

#top-menu-nav {
    width: 100%;
}

#top-menu {
    display: flex;
    align-items: center;
    height: 56px;
    justify-content: flex-end;
    width: 100%;
}

#top-menu > li > a {
    padding-bottom: 0 !important;
}

#et-top-navigation {
    width: 100%;
    padding-top: 0 !important;
}

.et_header_style_left .logo_container {
    height: auto;
}

.logo_container.tel_leader > img {
    width: 100%;
    height: 50%;
}

.logo_container.tel_leader {
    display: flex;
    width: 25%;
    height: 100%;
    align-items: center;
}

#logo {
    padding: 5px;
}

.tel_leader {
    float: right;
    right: 0;
}

#page-container {
    padding-top: 50px !important;
}

#top-menu a {
    color: #fff200 !important;
}

.yoast-breadcrumbs {
    margin-top: 45px;
}

.leader-separator-yellow {
    padding-left: 30px;
    font-size: 1.5rem;
}

body.admin-bar.et_non_fixed_nav.et_transparent_nav #main-header, body.admin-bar.et_non_fixed_nav.et_transparent_nav #top-header,
body.admin-bar.et_fixed_nav #main-header, body.admin-bar.et_fixed_nav #top-header {
    top: 88px;
}

body.admin-bar.et_non_fixed_nav.et_transparent_nav.et_secondary_nav_enabled #main-header,
body.admin-bar.et_fixed_nav.et_secondary_nav_enabled #main-header {
    top: 32px;
}

.et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation {
    padding-top: 20px;
}

@media (min-width: 981px) {
    .et_header_style_left .et-fixed-header #et-top-navigation nav > ul > li > a, .et_header_style_split .et-fixed-header #et-top-navigation nav > ul > li > a {
        padding-bottom: 33px;
    }
}

#leader_mobile_posts {
    display: none;
}

/***** Right side block ****/
.leader_side_block {
    position: fixed;
    top: 40vh;
    right: 0;
    z-index: 99999;
}

.leader_block_mobile {
    display: none;
}

.leader_side_block > a, .leader_block_mobile > a {
    width: 120px;
    height: 120px;
    display: block;
    text-align: center;
    line-height: 1.4em;
    font-size: 12px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.leader_side_block > a:first-child, .leader_block_mobile > a:first-child {
    background-color: #fff200;
    color: #38439c;
}

.leader_side_block > a:last-child, .leader_block_mobile > a:last-child {
    margin-top: 20px;
    background-color: #38439c;
    color: #fff200;
}

.leader_side_block > a > span, .leader_block_mobile > a > span {
    padding: 0 0 10px 0;
}

.leader_side_block > a > span:before, .leader_block_mobile > a > span:before {
    font-size: 1.4rem;
    padding-bottom: 10px;
}

.leader_side_block > a:hover {
    font-weight: bold;
}

/***** Sous menu ****/

#top-header .container.clearfix {
    height: 100%;
    padding-top: 0;
}

#et-secondary-menu {
    width: 100%;
}

#et-secondary-nav {
    display: flex;
    align-items: center;
    height: 56px;
    justify-content: center;
}

#et-secondary-nav li {
    margin-right: 0;
}

#et-secondary-nav li ul, #top-header {
    background-color: #f0f0f1;
}

#top-header a {
    color: #38439b;
}

#et-info, #et-secondary-menu > ul > li a {
    padding-bottom: 0;
    height: 100%;
    text-align: justify;
    display: flex;
    align-items: center;
    justify-content: flex-end;

}

#et-secondary-menu > ul > li a {
    height: 56px;
    padding: 0 15px;
}

#et-secondary-menu > ul > li a:hover {
    background-color: #fff200;
    opacity: 1;
}

.leader-separator-blue {
    padding: 0 8px;
    font-size: 1.5rem;
    color: #38439b;
}

@media (max-width: 1450px) {
    .leader-separator-blue {
        padding: 0 6px;
    }

    #et-secondary-menu > ul > li a {
        padding: 0 6px;
    }
}

#et-secondary-nav > span:last-child {
    display: none;
}

/************* Footer **************/
.leader_desktop_footer {
    display: block;
}

.leader_mobile_footer {
    display: none;
}

.leader_footer_menu {
    padding-bottom: 0;
    height: 100%;
    text-align: justify;
    display: flex;
    align-items: center;
    line-height: 1em;
}

.leader_footer_menu > span:first-child {
    font-size: 1.5rem;
    color: #38439c;
}

.leader_footer_menu > span:last-child {
    color: black;
}

@media (max-width: 1100px) {
    .leader_desktop_footer {
        display: none;
    }

    .leader_mobile_footer {
        display: block;
    }
}

/*********** Newsletter Form *********/
.sib-email-area {
    background-color: #515aa7 !important;
    width: 40vw;
    height: 50px;
    color: white !important;
    border: none !important;
    margin: 0 auto;
}

.sib-email-area::placeholder {
    color: white;
    padding-left: 10px;
}

.sib-default-btn {
    height: 50px;
    width: 40vw;
    color: #38439c;
    background-color: white;
    border: none;
    margin-top: 15px;
}

/***** Contact Form ******/
#responsive-form {
    max-width: 70%;
    margin: 0 auto;
    width: 100%;
}

.form-row {
    width: 100%;
    display: flex;
    margin-bottom: 20px;
}

.form-row .column-half:first-child {
    padding-right: 15px;
}

.column-half {
    width: 50%;
}

.column-full {
    width: 100%;
}

#responsive-form textarea {
    width: 100%;
}

#responsive-form input, #responsive-form select {
    width: 100%;
    height: 40px;
}

.wpcf7-form-control-wrap.raisonssociale, .wpcf7-form-control-wrap.siret {
    display: block !important;
}

.boutonenvoyer {
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #38439c;
    color: #38439c;
    font-size: 1.1rem;
    cursor: pointer;
}

.boutonenvoyer:hover {
    background-color: #38439c;
    color: #fff200;
}

.entry-title.main_title {
    display: none;
}

body:not(.et-tb) #main-content .container, body:not(.et-tb-has-header) #main-content .container {
    padding: 0;
}

.yoast-breadcrumbs {
    margin-bottom: 25px;
}

.yoast-breadcrumbs a {
    color: #38439c;
}

.yoast-breadcrumbs a:hover {
    color: #515aa7;
}


/*********** Responsive ************/
@media (max-width: 1280px) {
    .menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-36 {
        background-color: inherit;
        padding: 0;
    }

    .et_mobile_menu {
        border-top: 3px solid #fff200;
    }

    .logo_container.tel_leader {
        display: none;
    }

    #top-header {
        display: none;
    }

    #top-menu-nav {
        display: none;
    }

    #et_mobile_nav_menu {
        display: block;
    }

    .contact-mobile {
        order: 2;
        display: block;
    }

    .container.clearfix.et_menu_container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .container.clearfix.et_menu_container > .logo_container:first-child {
        position: unset;
        width: initial;
        margin: 0 auto;
        order: 1;
    }

    #et-top-navigation {
        width: initial;
        order: 0;
    }

    .contact-mobile .icon-telephone {
        font-size: 1.5rem;
        color: #fff200;
    }

    .mobile_menu_bar.mobile_menu_bar_toggle {
        padding-bottom: 0 !important;
        transform: rotateY(180deg);
    }

    .mobile_menu_bar:before {
        content: '\e908';
        font-family: 'icomoon' !important;
        color: white;
    }

    #mobile_menu {
        top: 56px;
        height: 50vh;
        overflow-y: scroll;
    }

    .mobile_nav.opened .mobile_menu_bar:before {
        content: '\e900';
        font-size: 1.5rem;
    }

    .leader-separator-blue, .leader-separator-yellow {
        display: none;
    }

    #leader_interieur_img > a > span > img {
        content: url(./images/mobile/Ambiance_interieur.png)
    }

    #leader_exterieur_img > a > span > img {
        content: url(./images/mobile/Ambiance_exterieur.png);
    }

    #leader_signalisation_img > a > span > img {
        content: url(./images/mobile/Ambiance_signa.png);
    }

    #leader_qualite_img > span > img {
        content: url(./images/mobile/qualite.png);
    }

    .et_pb_text_1 {
        min-height: 0 !important;
    }

    .et_pb_text_1 > .et_pb_text_inner,
    .et_pb_text_0 > .et_pb_text_inner {
        font-size: 11px;
    }

    .et_pb_image_1 .et_pb_image_wrap img {
        height: 285px !important;
    }

    #page-container {
        padding-top: 20px !important;
    }
}

@media (max-width: 1100px) {
    .leader_container_promo,
    .leader_container_cat1,
    .leader_container_cat2 {
        width: 100% !important;
    }

    .leader_container_cat {
        display: grid !important;
        grid-template-columns: 10vw 40vw 40vw 10vw;
        grid-template-areas: ". cat1 cat2 ." ". promo promo .";
        margin: 0;
    }

    .leader_container_cat1 {
        grid-area: cat1;
    }

    .leader_container_cat2 {
        grid-area: cat2;
    }

    .leader_container_promo {
        grid-area: promo;
    }

    #leader_promotion_title,
    #leader_qui_title,
    #leader_actualites_title {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    #leader_promotion_title > span > img {
        content: url(./images/mobile/promo.png);
    }

    #leader_qui_title > span > img {
        content: url(./images/mobile/qui.png);
    }

    #leader_actualites_title > span > img {
        content: url(./images/mobile/actu.png);
    }

    .items_to_hide {
        display: none;
    }

    .leader_side_block {
        display: none;
    }

    .leader_side_block_mobile > a {
        flex-direction: row;
    }

    .leader_block_mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .leader_block_mobile > a:last-child {
        margin: 0 0 0 10px;
    }

    .leader_block_mobile > a {
        width: 260px;
        height: 9em;
        margin: 0 1em;
        box-shadow: 0 3px 6px #00000029;
    }
}

@media (max-width: 980px) {
    .et_header_style_left #logo, .et_header_style_split #logo {
        max-width: 100%;
    }

    #leader_mobile_posts {
        display: block;
    }

    #leader_desktop_posts {
        display: none;
    }
}

/******** Custom icon fonts ********/

@font-face {
    font-family: 'icomoon';
    src: url('fonts/icomoon.eot?wamths');
    src: url('fonts/icomoon.eot?wamths#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?wamths') format('truetype'),
    url('fonts/icomoon.woff?wamths') format('woff'),
    url('fonts/icomoon.svg?wamths#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Adaptation in order to fit better to the design */
    padding-right: 10px;
    font-size: 1rem;
}

.icon-fermer:before {
    content: "\e900";
}

.icon-exterieur:before {
    content: "\e901";
}

.icon-festivite:before {
    content: "\e902";
}

.icon-interieur:before {
    content: "\e903";
}

.icon-sport:before {
    content: "\e904";
}

.icon-pavoisement:before {
    content: "\e905";
}

.icon-jeux:before {
    content: "\e906";
}

.icon-devis:before {
    content: "\e907";
}

.icon-menu:before {
    content: "\e908";
}

.icon-telephone:before {
    content: "\e909";
}

.icon-scolaire:before {
    content: "\e90a";
}

.icon-communication:before {
    content: "\e90b";
}

.icon-technique:before {
    content: "\e90c";
}

.icon-catalogue:before {
    content: "\e90d";
}

.icon-signalisation:before {
    content: "\e90e";
}

#top-header {
    top: 56px !important;
}

#main-header {
    top: 0 !important;
}

#top-menu .menu-telephone a {
    background-image: url("/wp-content/uploads/2021/08/Groupe-494@2x.png");
    background-size: 100%;
    background-repeat: no-repeat;
    padding: 0 5em;
    line-height: 2em;
    margin-top: 0.4em;
    color: transparent !important;
}

#et-top-navigation {
    padding-left: 0 !important;
}

/* Devis et catalogue sticky sur la droite */

.leader-sticky-block {
    position: fixed;
    right: 0;
    z-index: 10000000000;
    top: 30%;
    display: flex;
    flex-direction: column;
}

.leader-sticky-block a {
    width: 160px;
    height: 130px;
    margin: 5px 0;
    box-shadow: 0px 3px 6px #00000029;
    padding: 2em;
    text-align: center;
}

.leader-sticky-block-devis {
    background-color: #fff200;
    color: #38439c;
}

.leader-sticky-block-catalogue {
    background-color: #38439c;
    color: #fff200;
}

@media (max-width: 1100px) {
    .leader-sticky-block {
        display: none;
    }
}