/*
 Theme Name:     CFMB
 Description:    Made with <3 in Switzerland
 Author:         Elipte Sarl
 Author URI:     https://elipte.com/
 Template:       Divi
 Version:        1.0.0
*/

/* -------------------------------------------------------------------------------------------------------- */
/* @GLOBAL                                                                                                  */
/* -------------------------------------------------------------------------------------------------------- */
html, body {
	overflow-x: hidden;
}

img {
	-webkit-user-drag: none; /* Chrome, Safari */
	-khtml-user-drag: none;  /* Konqueror */
	-moz-user-drag: none;    /* Firefox (ancien) */
	-o-user-drag: none;      /* Opera (ancien) */
	user-drag: none;         /* standard (pas encore largement supporté) */
}

.grecaptcha-badge {
    display: none !important;
}

/* -------------------------------------------------------------------------------------------------------- */
/* @HEADER                                                                                                  */
/* -------------------------------------------------------------------------------------------------------- */

.et_pb_menu_0_tb_header.et_pb_menu .nav li ul.sub-menu a {
    padding: 10px;
    border: solid 1px #E0E0E0;
	width: 100% !important;
}

.et_pb_menu_0_tb_header.et_pb_menu .nav li ul.sub-menu {
	padding: 0 !important;
}

.nav li li {
	padding: 0 !important;
	width: 100% !important;
}

ul#mobile_menu2 {
    padding: 0;
    margin-top: 10px;
}

/* -------------------------------------------------------------------------------------------------------- */
/* @HOME PAGE                                                                                               */
/* -------------------------------------------------------------------------------------------------------- */

/* NEWSLETTER */
@media (min-width: 767px) {
	/*set the width of the button*/
	.et_pb_newsletter_fields .et_pb_newsletter_button_wrap {
		flex-basis: 150px !important;
	}
	/*set the width of the input field minus the width of the button*/
	.et_pb_newsletter_form .et_pb_newsletter_field {
		flex-basis: calc(100% - 165px) !important;
	}
}

/* BIENS ACCUEIL */
.biens_accueil .et_pb_slide {
    height: 300px;
    background-size: cover !important;
    background-position: center center !important;
    padding: 0 !important;
}

/* Flex sur le vrai parent du texte */
.biens_accueil .et_pb_slider_container_inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Enlève tout padding/margin parasite sur la description */
.biens_accueil .et_pb_slide_description {
    padding: 0 10px 10px 20px !important;
    margin: 0 !important;
}

/* WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(90deg) translateX(100%);
    transform-origin: top right;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.whatsapp-float .whatsapp-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* POST META */
.post-meta .author {
    display: none !important;
}

/* -------------------------------------------------------------------------------------------------------- */
/* @RESPONSIVE COLUMNS                                                                                              */
/* -------------------------------------------------------------------------------------------------------- */

/*** Change Mobile Columns By VictorDuse.com.com ***/

/* 2 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .two-col-mob .et_pb_column {
        width:47.25% !important;
    }
    
html .et-db .two-col-mob .et_pb_column:nth-last-child(-n+2) {
        margin-bottom:0;
    }

    html .et-db .two-col-mob .et_pb_column:not(:nth-child(2n)) {
            margin-right:5.5% !important;
    }
}

/* 3 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .three-col-mob .et_pb_column {
        width:29.6667% !important;
    }

    html .et-db .three-col-mob .et_pb_column:nth-last-child(-n+3) {
        margin-bottom:0;
    }

    html .et-db .three-col-mob .et_pb_column:not(:nth-child(3n)) {
        margin-right:5.5% !important;
    }
}

/* 4 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .four-col-mob .et_pb_column {
        width:20.875% !important;
    }

html .et-db .four-col-mob .et_pb_column:nth-last-child(-n+4) {
        margin-bottom:0;
    }

    html .et-db .four-col-mob .et_pb_column:not(:nth-child(4n)) {
        margin-right:5.5% !important;
    }
}

/* 5 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .five-col-mob .et_pb_column {
        width:15.6% !important;
    }

    html .et-db .five-col-mob .et_pb_column:nth-last-child(-n+5) {
        margin-bottom:0;
    }

    html .et-db .five-col-mob .et_pb_column:not(:nth-child(5n)) {
        margin-right:5.5% !important;
    }
}

/* 6 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .six-col-mob .et_pb_column {
        width:12.083% !important;
    }

    html .et-db .six-col-mob .et_pb_column:nth-last-child(-n+6) {
        margin-bottom:0;
    }

    html .et-db .six-col-mob .et_pb_column:not(:nth-child(6n)) {
        margin-right:5.5% !important;
    }
}

/*** Change Tablet Columns By VictorDuse.com.com ***/

/* 1 Column Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .one-col-tab .et_pb_column {
        margin-right:0 !important;
        width:100% !important;
    }
    
        html .et-db .one-col-tab .et_pb_column:not(:last-child) {
        margin-bottom:30px !important;
    }
}

/* 2 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .two-col-tab .et_pb_column {
        width:47.25% !important;
    }

.two-col-tab .et_pb_column:nth-last-child(-n+2) {
        margin-bottom:0;
    }

    html .et-db .two-col-tab .et_pb_column:not(:nth-child(2n)) {
        margin-right:5.5% !important;
    }
}

/* 3 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .three-col-tab .et_pb_column {
        width:29.6667% !important;
    }

html .et-db .three-col-tab .et_pb_column:nth-last-child(-n+3) {
        margin-bottom:0;
    }

    html .et-db .three-col-tab .et_pb_column:not(:nth-child(3n)) {
        margin-right:5.5% !important;
    }
}

/* 4 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .four-col-tab .et_pb_column {
        width:20.875% !important;
    }

html .et-db .four-col-tab .et_pb_column:nth-last-child(-n+4) {
        margin-bottom:0;
    }

    html .et-db .four-col-tab .et_pb_column:not(:nth-child(4n)) {
        margin-right:5.5% !important;
    }
}

/* 5 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .five-col-tab .et_pb_column {
        width:15.6% !important;
    }

.five-col-tab .et_pb_column:nth-last-child(-n+5) {
        margin-bottom:0;
    }
    
    html .et-db .five-col-tab .et_pb_column:not(:nth-child(5n)) {
        margin-right:5.5% !important;
    }
}

/* 6 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .six-col-tab .et_pb_column {
        width:12.083% !important;
    }

    html .et-db .six-col-tab .et_pb_column:nth-last-child(-n+6) {
        margin-bottom:0;
    }

    html .et-db .six-col-tab .et_pb_column:not(:nth-child(6n)) {
        margin-right:5.5% !important;
    }
}