/*
Theme Name: M2GB
Description: Theme enfant de Divi pour M2GB
Author: NR
Author URI:
Template: Divi
Version: 1.1
*/

@font-face {
    font-family: 'Martel Sans';
    src: url('fonts/MartelSans-ExtraBold.woff2') format('woff2'),
        url('fonts/MartelSans-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Martel Sans';
    src: url('fonts/MartelSans-Light.woff2') format('woff2'),
        url('fonts/MartelSans-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Martel Sans';
    src: url('fonts/MartelSans-SemiBold.woff2') format('woff2'),
        url('fonts/MartelSans-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Martel Sans';
    src: url('fonts/MartelSans-Regular.woff2') format('woff2'),
        url('fonts/MartelSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'fonts/Martel Sans';
    src: url('fonts/MartelSans-Bold.woff2') format('woff2'),
        url('fonts/MartelSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Martel Sans';
    src: url('fonts/MartelSans-Black.woff2') format('woff2'),
        url('fonts/MartelSans-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Martel Sans';
    src: url('fonts/MartelSans-ExtraLight.woff2') format('woff2'),
        url('fonts/MartelSans-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}



body {
    font-family: 'Martel Sans' !important;
    font-size: .9em;
}

/*
** 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%;
}
/*******************************
* ajustement menu
*******************************/
#top-menu li li a {
    padding: 6px 0;
}
.et_pb_widget {
    min-width: 100%;
}
@media only screen and (min-width: 981px){
	#logo {
	    max-height: 65% !important;
	}
}


/*******************************
* Formulaire Contact Form 7
*******************************/
input.text, input.title, input[type="email"], input[type="password"], input[type="tel"], input[type="text"], select, textarea {
    font-family: 'Martel Sans',sans-serif;
    font-size: .9em;
		width: 100%;
    padding: 16px;
		margin: 0 0 10px 0;
}
/*input.text:focus, input.title:focus, input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus{
	border-color: #2d3940;
	color: #FFFFFF;
}*/
.wpcf7-form-control{
	margin-top: 30px;
}
.dipe-cf7 .wpcf7 form > p {
    margin-bottom: 0 !important;
}

#loginform [type="submit"]{
    padding: 15px;
    margin-bottom: 20px;
    float: right;
}
/*******************************
* fil d'ariane
*******************************/
#breadcrumbs{
	font-size: .7em;
  padding-bottom: 10px;
}


/*******************************
* blog
*******************************/

.et_pb_post h2{
		margin-bottom: 0;
		padding-bottom: 5px;
}
.et_pb_post .post-meta {
    padding-bottom: 5px;
		margin: 0;
}
.et_pb_post p{
	line-height: 1.5em;
}
.wp-block-buttons{
	text-align: center;
  border: #F68D2E !important;
}

/*******************************
* styles specifique
*******************************/
h1{
  font-weight: 900;
  font-size: 30px;
}
h2{
  font-size: 20px;
  font-weight: 900;
  color: #F68D2E !important;
}
.entry-content a {
  text-decoration: underline;
  font-weight: 900;
}
.entry-content a:hover{
  color: #000;
}
.et_pb_button, .wp-block-buttons a{
  padding : 15px 30px !important;
  color: #F68D2E !important;
  border: 4px solid #F68D2E !important;
  text-decoration: none;
  transition: all 1s ease-out;
}

.et_pb_button:hover, .et_pb_module .et_pb_button:hover, .wp-block-buttons a:hover{
  background-color: #F68D2E !important;
  color: #FFF !important;
  text-decoration: none;
}
.wp-block-latest-posts__list{
  list-style: none !important;
  text-align: center;
}
.carre{
  background-size: initial;
  background-position: top left;
  background-image: url(https://www.m2gb.com/wp-content/uploads/square-bg.png);
  background-repeat: no-repeat;
  padding: 8% 0 0 40px;
}

.orange{
	background-color: #F68D2E;
	color: #FFF;
	padding: 40px 50px !important;
}
.border-left{
	border-left: 10px solid #F68D2E;
	padding-left: 20px;
}
.border-right{
	border-right: 10px solid #F68D2E;
	padding-right: 20px;
}

.img_effect{
  text-align: center;
  text-decoration: none;
}
a img{
  text-align: center;
  text-decoration: none;
  filter: grayscale(0);
  transition: all 1s ease-out;
  opacity: 1;
  filter: alpha(opacity=100);
  zoom: 1;
}

a:hover img {
  filter: grayscale(100);
  opacity: 0.5;
  filter: alpha(opacity=50);
  zoom: 1;
}


.flip_box_back, .flip_box_front {
    padding: 0 !important;
}
.flip_box .image_wrap {
    margin-bottom: 0px !important;
}
.back_body{
  padding: 0 1em;
  text-align: center;
}
