/*
 Theme Name:     Givexpert
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/

:root {
    --mainColor: #2d3e50;
    --mainColorOpacity: rgba(45,62,80,0.8);
    --mainColorHover: #374858;
    --secondColor: #df4739;
    --secondColorHover: #c23021;
    --thirdColor: #f5f5f5;
    --borderColor: #e5e5e5;
    --shadowColor: #020204;
    --textColor: #616161;
    --titleColor: #333c45;
    --inputBgColor: #c23021;
    --violetColor: #5C2483;
    --violetColorHover: #7051eb;
}

/* HELPERS */

.bg-main-color {
    background-color: var(--mainColor);
}

/* TYPO */

h1 {
    font-family: 'Pacifico';
    font-size: 3em;
    text-shadow: 0 2px 1px #000;
}

/* SECTIONS GLOBALES */

.diagonale-basse {
    transform: skew(0, 1deg);
    margin-top: -2.5em;
    padding-top: 3em!important;
}

.diagonale-basse .et_pb_row {
    transform: skew(0, -1deg);
}

.diagonale-basse-inverse {
    transform: skew(0, -1deg);
    margin-top: -2.5em;
    padding-top: 3em!important;
}

.diagonale-basse-inverse .et_pb_row {
    transform: skew(0, 1deg);
}

.diagonale-haute-bas {
    transform: skew(0, 1deg);
}

.diagonale-haute-bas .et_pb_module {
    transform: skew(0, -1deg);
}

#footer-widgets .footer-widget li {
    padding-left: 0;
}

.menu-item:before {
    display: none;
}

li:not(.menu-item) {
    margin-left: 1em;
    margin-bottom: .5em;
    padding-left: 0.5em;
    list-style: url('assets/img/check.svg');
}

li.et_pb_portfolio_filter {
    margin-left: 0;
}

li.et_pb_portfolio_filter::marker {
    content: '';
}

/* HEADER */

#header-home,
#titre-header-home {
    z-index: 1!important;
}

#main-header {
    transform: skew(0, -1deg);
    background: var(--thirdColor);
    padding-top: 1em;
    margin-top: -1em;
}

#main-header .et_menu_container {
    transform: skew(0, 1deg);
}

body.admin-bar #main-header.et-fixed-header {
    top: 0.5em!important;
}

#main-header.et-fixed-header {
    top: -2em!important;
}

#logo {
    max-height: 65%;
}

#main-header.et-fixed-header #logo {
    max-height: 50%;
    margin-top: 1em;
}

.et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation,
#top-menu-nav,
#top-menu {
    padding-top: 0;
}

#top-menu a {
    padding-top: 2em;
    text-transform: uppercase;
    line-height: 1.5;
}

.btn-menu-demo {
    top: 0.7em;
    margin-top: -1em;
    padding: 0 2em!important;
    transform: skew(0, -1deg);
    background: var(--violetColor);
    transition: .3s;
}

.btn-menu-demo:hover {
    background: var(--secondColorHover);
    transition: .3s;
}

.btn-menu-demo:hover a {
    opacity: 1!important;
}

.btn-menu-demo a {
    transform: skew(0, 1deg);
    color: #fff!important;
    font-weight: 900;
    text-align: center;
    line-height: 110%;
    padding-bottom: 1.5em!important;
}

@media(min-width: 981px){

    #main-header.et-fixed-header #top-menu .btn-menu-demo a,
    #main-header.et-fixed-header #top-menu li.current-menu-ancestor>.btn-menu-demo a,
    #main-header.et-fixed-header #top-menu li.current-menu-item>.btn-menu-demo a {
        color: #fff!important;
    }
}

#et-secondary-nav .menu-item-has-children>a:first-child:after, #top-menu .menu-item-has-children>a:first-child:after {
    top: auto;
}

.logo_container {
    margin-top: -2em;
}

.logo_container a {
    display: inline-block;
    position: absolute;
    top: 0;
    height: 145%;
    background: #fff;
    margin-top: 1em;
    padding: 3em 1em 0em 1em;
    transform: skew(0, -2deg);
}

.logo_container a img {
    transform: skew(0, 2deg);
}

/* HOME */

.box-difference {
    background: #fff;
    border-bottom: 10px solid var(--mainColor);
    padding: 2em;
}

/* BOX FONCTIONNALITES */

.box-page-related {
    position: relative;
    overflow: hidden;
}

.box-page-related .blog-entry-header {
    position: absolute;
    left: 0;
    right: 0;
    top: 0em;
    background: var(--mainColorOpacity);
    text-align: center;
    transition: .5s;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.box-page-related:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all .5s;
}

.box-page-related:hover:before {
    background: var(--bleuFonceOpacity);
    transition: all .5s;
}

.box-page-related:hover .blog-entry-header .blog-entry-summary {
    position: relative;
    display: block;
    color: #fff;
    z-index: 2;
    font-size: 0.9em;
    line-height: 120%;
}

.box-page-related:hover .blog-entry-header {
    background: rgba(255,255,255, .7);
    transition: all .3s;
}

.box-page-related:hover .blog-entry-header h3,
.box-page-related:hover .blog-entry-summary p {
    color: var(--mainColor)!important;
    transition: all .3s;
}

.box-page-related .blog-entry-header {
    border-bottom: 5px solid white;
}

.box-page-related .blog-entry-header .blog-entry-summary {
    display: none;
}

.box-page-related img {
    width: 100%;
}

.box-page-related h3 {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    font-family: 'Pacifico';
    font-size: 1.8em;
    line-height: 150%;
    margin-bottom: 0.5em;
    padding: 0 1em;
}


/* TEMOIGNAGE */

.box-temoignage {
    position: relative;
    background: var(--thirdColor);
    box-shadow: 0 1px 0px var(--borderColor);
    margin-bottom: 0.5em!important;
    padding: 1em;
    text-indent: 1.8em;
}

.box-temoignage p {
    position: relative;
    display: inline;
}

.box-temoignage p:before,
.box-temoignage p:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.box-temoignage p:before {
    top: -5px;
    left: -1.7em;
    background: url('assets/img/left-quote.svg') no-repeat center;
}

.box-temoignage p:after {
    bottom: -5px;
    right: -1.5em;
    background: url('assets/img/right-quote.svg') no-repeat center;
}
.box-temoignage:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 0;
    border-color: var(--thirdColor) transparent transparent transparent;
}

.nom-temoignage {
    margin-left: 1.3em;
    font-weight: bold;
    font-style: italic;
}

/* FORMULAIRES */

/* .gform_wrapper.gravity-theme .gform_fields {
    width: 100%;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (1fr 2%)[12];
    /* grid-template-columns: repeat(12,2fr); */
    grid-template-rows: repeat(auto-fill,auto);
    grid-column-gap: 2%;
    grid-row-gap: 16px;
    grid-template-areas: "a b";
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: 70px 70px!important;
    align-items: start;
} */

#field_1_1,
#field_1_3,
#field_1_5,
#field_1_6 {
    grid-column: 1/6!important;
}

#field_1_3,
#field_1_5,
#field_1_6 {
    margin-bottom: 0;
}

#field_1_4 {
    grid-column: 6/12!important;
    grid-area: b;
}

/* .gfield_label {
    color: white;
} */

/* .ginput_container input,
.ginput_container textarea {
    background: var(--secondColorHover);
    border-color: var(--secondColorHover);
    color: #fff!important;
    font-weight: bold;
} */

input.text:focus, input.title:focus, input[type=text]:focus, select:focus, textarea:focus {
    border-color: var(--mainColor);
    transition: .3s;
}

body.home [id^=gform_submit_button_] {
    font-size: 1.2em;
    font-weight: 700;
    padding: .3em 1em;
    line-height: 1.7em!important;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 0;
    -webkit-transition-duration: .2s;
    transition-duration: .2s;
    -webkit-transition-property: all!important;
    transition-property: all!important;
}

body.home [id^=gform_submit_button_]:hover {
    cursor: pointer;
    opacity: .7;
}

/* Gravity TARIFS */

.gravity-tarif {
    margin-bottom: 0.5em;
    padding: 1em;
    background: var(--mainColor);
    color: #fff;
    text-align: center;
}

/*body .gform_wrapper .gform_body .gform_fields .gfield .ginput_container {border: 1px solid red}
*/

body #gform_wrapper_2 .gform_body .gform_fields .gfield .ginput_container_total .ginput_total {
	background: var(--mainColor);
	color: #fff;
	font-size: 2.3em;
    font-weight: bold;
    text-align: center;
    margin-bottom : 10px;
}

body #gform_wrapper_2 .gform_body .gform_fields .gfield .gfield_description {
    border-top: 1px dotted #fff;
}

body #gform_wrapper_2 .gform_body .gform_fields .gfield .gfield_label {
    font-family: 'Pacifico';
    font-size: 1.5em;
    padding-top: 1em;
}

body #gform_wrapper_10 .gform_body .gform_fields .gfield .ginput_container_total .ginput_total {
	background: var(--mainColor);
	color: #fff;
	font-size: 2.3em;
    font-weight: bold;
    text-align: center;
    margin-bottom : 10px;
}

body #gform_wrapper_10 .gform_body .gform_fields .gfield .gfield_description {
    border-top: 1px dotted #fff;
}

body #gform_wrapper_10 .gform_body .gform_fields .gfield .gfield_label {
    font-family: 'Pacifico';
    font-size: 1.5em;
    padding-top: 1em;
}

/* TARIFS */

.box-tarif {
    margin-bottom: 0.5em;
    padding: 1em;
    background: var(--mainColor);
    color: #fff;
    text-align: center;
}

.box-tarif label {
    margin-right: 0.5em;
    text-transform: uppercase;
    cursor: pointer;
}

.box-tarif label:hover,
.box-tarif input[type="radio"]:checked + label {
    font-weight: bold;
}

.box-tarif .input-group {
    display: inline;
}

.box-tarif .ginput_container_total .ginput_total {
    font-weight: bold;
}

.box-tarif-mensualite {
    margin-top: 1em;
    margin-bottom: .5em;
    padding-bottom: 1em;
    text-align: center;
    border-bottom: 1px dotted #fff;
}

.box-tarif-service {
    text-align: center;
}

#box-tarif-prix,
.box-tarif-currency {
    font-size: 2.3em;
    font-weight: 900;
}

.box-tarif-taxe,
.box-tarif-periode {
    font-size: 1.5em;
    font-weight: bold;
}

.info {
    position: relative;
    top: 2px;
    width: 15px;
    cursor: pointer;
}

.icon_info:before {
    content: "\e060";
}

.module-optionnel {
    position: relative;
}

.box-info {
    display: block;
    border: 1px solid #fff;
    position: absolute;
    top: -5em;
    left: 0;
    z-index: 1;
    padding: .5em;
    color: #fff;
    font-size: .9em;
    line-height: 120%;
    background: var(--mainColor);
}

/* FOOTER */

#main-footer {
    position: relative;
    margin-top: 50px;
    background-color: var(--mainColor);
    z-index: 1;
}

#main-footer:before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--mainColor);
    transform: skew(0, -1deg);
}

.footer-carisinfo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    color: var(--secondColor);
}

.footer-carisinfo img {
    margin-left: 10px;
    height: 25px;
}

/* MEDIA QUERIES */

@media (max-width: 980px){
    .et_header_style_left #logo, .et_header_style_split #logo {
        max-width: 100%;
    }
    .mobile-nav {
        padding-top: 1em;
    }

    .btn-menu-demo {
        margin-top: 0;
        transform: skew(0, 0deg);
        padding: .8em 1em 1.5em!important;
    }

    .btn-menu-demo a {
        transform: skew(0, 0deg);
        padding-bottom: 0!important;
    }

    .btn-menu-demo a br {
        display: none;
    }

    .box-tarif .input-group {
        display: block;
    }


}

/* Update Banque Postale 2023 */

.percent-value, .percent-sign {
    text-shadow: none;
}

h1 {
    text-shadow: none;
}

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

    #logo {
        max-height: 75%!important;
    }
}