/*--------------------------------------------------------------------------------------------*/
/*----------------------------------------- ASTUCES DIVI ------------------------------------------*/
/*--------------------------------------------------------------------------------------------*/

@media all and (min-width: 981px) {
/* Aligner boutons en bas de colonnes (NB : au sein de colonnes à hauteur égale) */
	.aligner-bouton-en-bas .et_pb_column {
	padding-bottom:75px;
	}
	 
	.aligner-bouton-en-bas .et_pb_button_module_wrapper {
	position: absolute;
	bottom: 0%;
	left: 0;
	right: 0;
	margin: auto;
	padding: 0% 0% 0% 0%;
	}
	
	.aligner-bouton-en-bas .et_pb_button_module_wrapper a {
	margin-top:0px;
	}	
	
	
}


@media (min-width: 1024px) {
	.aligner-bouton-en-bas .et_pb_button_module_wrapper {
		padding: 0% 2% 0% 2%;
		bottom: 0px;
		margin: 0px 10%;
	}
}

@media (min-width: 1200px) {
	.aligner-bouton-en-bas .et_pb_button_module_wrapper {
	  padding: 0% 0% 0% 0%;
		width: 100%;
		margin: 0;
		margin-bottom: 0px;
	}
}


/*Ordre des colonnes*/

@media all and (max-width: 980px) {
	/*** wrap row in a flex box ***/
	.custom_row {
	  display: -webkit-box;
	  display: -moz-box;
	  display: -ms-flexbox;
	  display: -webkit-flex;
	  display: flex;
	-webkit-flex-wrap: wrap; /* Safari 6.1+ */
	flex-wrap: wrap;
	}
	 
	/*** custom classes that will designate the order of columns in the flex box row ***/
	.first-on-mobile {
	-webkit-order: 1;
	order: 1;
	}
	 
	.second-on-mobile {
	-webkit-order: 2;
	order: 2;
	}
	 
	.third-on-mobile {
	-webkit-order: 3;
	order: 3;
	}
	 
	.fourth-on-mobile {
	-webkit-order: 4;
	order: 4;
	}
	/*** add margin to last column ***/
	.custom_row:last-child .et_pb_column:last-child {
	margin-bottom: 30px;
	}
 
}




/*Centrer verticalement*/

  @media (min-width: 981px) {
	.et_pb_row.centrer-verticalement, .et_pb_row_inner.centrer-verticalement, .et_pb_section.centrer-verticalement > .et_pb_row {
	  display: -webkit-box;
	  display: -ms-flexbox;
	  display: flex;
	  direction: ltr;
	}
}

	.centrer-verticalement > .et_pb_column {
		margin-top:auto;
		margin-bottom:auto;
	}
	

/*Egaliser hauteur de colonnes*/

.egaliser-hauteur-colonne {
	display:flex;
	flex-wrap:wrap;
}

.egaliser-hauteur-colonne .et_pb_column {
	display:flex;
	flex-direction:column;
}

/*Centrer titre sur mobile*/

@media all and (max-width: 980px) {
	.centrer-sur-mobile {
		text-align:center !important;
	}
}



/*Désactiver animations sur mobile*/

@media all and (max-width: 981px) {
	.home .et_animated, .page-id-243597 .et_animated {
		opacity: 1 !important
	}
	
	.home .et_pb_section, .page-id-243597 .et_pb_section  * {
		-o-transition-property: none!important;
		-moz-transition-property: none!important;
		-webkit-transition-property: none!important;
		transition-property: none!important;
		-o-transform: none!important;
		-moz-transform: none!important;
		-ms-transform: none!important;
		-webkit-transform: none!important;
		transform: none!important;
		-webkit-animation: none!important;
		-moz-animation: none!important;
		-o-animation: none!important;
		animation: none !important;
	}
}

/*Section plein écran*/
@media (min-width: 1200px) {
	.et_pb_section.plein-ecran {
		height: 100vh;
		display: flex;
		padding-top:0px;
	}
}


/*** Changer le nombre de colonnes sur mobile ou tablet ***/
/* 2 Columns Mobile */
@media all and (max-width: 767px) {
    .two-col-mob .et_pb_column {
        width:47.25% !important;
    }
    
.two-col-mob .et_pb_column:nth-last-child(-n+2) {
        margin-bottom:0;
    }
    .two-col-mob .et_pb_column:not(:nth-child(2n)) {
            margin-right:5.5% !important;
    }
}
/* 3 Columns Mobile */
@media all and (max-width: 767px) {
    .three-col-mob .et_pb_column {
        width:29.6667% !important;
    }
    .three-col-mob .et_pb_column:nth-last-child(-n+3) {
        margin-bottom:0;
    }
    .three-col-mob .et_pb_column:not(:nth-child(3n)) {
        margin-right:5.5% !important;
    }
}
/* 4 Columns Mobile */
@media all and (max-width: 767px) {
    .four-col-mob .et_pb_column {
        width:20.875% !important;
    }
.four-col-mob .et_pb_column:nth-last-child(-n+4) {
        margin-bottom:0;
    }
    .four-col-mob .et_pb_column:not(:nth-child(4n)) {
        margin-right:5.5% !important;
    }
}
/* 5 Columns Mobile */
@media all and (max-width: 767px) {
    .five-col-mob .et_pb_column {
        width:15.6% !important;
    }
    .five-col-mob .et_pb_column:nth-last-child(-n+5) {
        margin-bottom:0;
    }
    .five-col-mob .et_pb_column:not(:nth-child(5n)) {
        margin-right:5.5% !important;
    }
}
/* 6 Columns Mobile */
@media all and (max-width: 767px) {
    .six-col-mob .et_pb_column {
        width:12.083% !important;
    }
    .six-col-mob .et_pb_column:nth-last-child(-n+6) {
        margin-bottom:0;
    }
    .six-col-mob .et_pb_column:not(:nth-child(6n)) {
        margin-right:5.5% !important;
    }
}
/*** Change Tablet Columns By DiviMundo.com ***/
/* 1 Column Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    .one-col-tab .et_pb_column {
        margin-right:0 !important;
        width:100% !important;
    }
    
        .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) {
    .two-col-tab .et_pb_column {
        width:47.25% !important;
    }
.two-col-tab .et_pb_column:nth-last-child(-n+2) {
        margin-bottom:0;
    }
    .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) {
    .three-col-tab .et_pb_column {
        width:29.6667% !important;
    }
.three-col-tab .et_pb_column:nth-last-child(-n+3) {
        margin-bottom:0;
    }
    .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) {
    .four-col-tab .et_pb_column {
        width:20.875% !important;
    }
.four-col-tab .et_pb_column:nth-last-child(-n+4) {
        margin-bottom:0;
    }
    .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) {
    .five-col-tab .et_pb_column {
        width:15.6% !important;
    }
.five-col-mob .et_pb_column:nth-last-child(-n+5) {
        margin-bottom:0;
    }
    
    .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) {
    .six-col-tab .et_pb_column {
        width:12.083% !important;
    }
    .six-col-tab .et_pb_column:nth-last-child(-n+6) {
        margin-bottom:0;
    }
    .six-col-tab .et_pb_column:not(:nth-child(6n)) {
        margin-right:5.5% !important;
    }
}
