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

.dc-centrer-horizontalement {
	display: flex;
	flex-direction: row;
	align-items: center;
  	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -ms-flexbox;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: row;
	 -moz-box-orient: vertical;
	 -moz-box-direction: normal;
	  -ms-flex-direction: row;
	-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;
	}
}



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

#main-content {
	background-color:#FAF6F2;
}	
#et-main-area {
	display:flex;
	flex-direction:column;
}
#page-container {
	overflow-x:hidden;
	overflow-y:hidden;
}

/*TITRES*/
.h2-400, h1 {
    font-weight: 400;
	color:#585975;
}
/*IMAGE BLOCK*/
.wa-img-block > span {
    height: 100%;
}
.wa-img-block > span > img {
    height: 100%;
    object-fit: cover;
}
/*MENU*/
nav li li {
    line-height: normal;
}
#wa-menu .et_pb_menu__wrap {
	justify-content:flex-end;
}
#wa-menu .et_pb_menu__menu > a {
    margin: 10px 0;
    padding: 0 10px;
    height: 40px;
    line-height: 0;
}

#wa-menu .et_pb_menu__menu > li {
    height: 60px;
}

#wa-menu .et_pb_menu__menu  .current-menu-item a {
    background-color: #585975;
    color: #faf6f2;
    margin: 10px 0;
    padding: 0 10px;
    line-height: 0;
}

#wa-menu .et_pb_menu__menu  .sub-menu .current-menu-item  {
    background-color: #585975;
}


/*soulignement du menu au survol*/
#wa-menu .et_pb_menu__menu  > ul > li:hover:not(.current-menu-item):after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 2px;
    background-color: #585975;
    margin: 0 10%;
}

/*sous-menus*/
#wa-menu .et_pb_menu__menu ul.sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08); 
}
#wa-menu .et_pb_menu__menu ul.sub-menu {
    margin-top: -1px;
    padding: 0;
}
#wa-menu .et_pb_menu__menu ul.sub-menu li {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0;
    width: 100%;
    background: #ebe3db;
}
#wa-menu .et_pb_menu__menu ul.sub-menu li:not(.current-menu-item):hover {
    background-color: #faf6f2;
}
#wa-menu .et_pb_menu__menu ul.sub-menu li a {
    width: 100%;
    padding: 0 10px;
}

#wa-menu .et_pb_menu__menu ul.sub-menu li a:hover {
    background-color: transparent;
    opacity: 1;
}

/*
** MENU MOBILE : en pleine largeur et le hamburger devient une croix pour fermer
*/

.et_pb_menu .et_mobile_menu {
	padding: 0 5%;
    position: fixed;
    left: 0;
    width: 100%;
    height: 100vh; 
    z-index: 1000;
	overflow-y: scroll !important;
    max-height: 80vh !important;
    -webkit-overflow-scrolling: touch !important;
	margin-top:15px;
}

.mobile_nav.opened .mobile_menu_bar:before {
	content: "\4d";
}

.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu, .et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu ul {
	background-color:#faf6f2!important;
}

@media (min-width: 981px) {
  .et_pb_menu .sub-menu {
      max-height: 100vh;
      overflow-y: auto;
      z-index: 9999;
  }
}


/*GALERIE MASONRY*/
.sm-grid{
  max-width:100%;
}
.grid-sm-boxes-in {
  	padding:0;
}
.grid-sm-border {
	border:none;
}
.grid-sm-border img {
	    box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.3);
}
.sm-gallery-title h2{
	font-family:Raleway;
	font-size:2rem;
	font-weight:700;
}

@media screen and (min-width:640px) {
	.sm-grid .grid-sm-boxes-in:hover .grid-sm-border .sm-gallery-title{
	  bottom: 4px;
	  left: 6px;
	  opacity: 1;
	  right: 6px;
	  transition: all 0.3s ease 0s;
	}
	.sm-gallery-title{
		display:flex;
		justify-content:center;
		align-items:center;
		background:rgba(255, 255, 255, 0.5);
		text-align: center;
		width:100%;
		opacity: 1;
		height:100%;
		color: rgb(0, 0, 0);
		padding:0;
		font-family:Raleway;
		font-size:2rem;
		font-weight:700;

	}
	.sm-grid .grid-sm-boxes-in:hover .grid-sm-border .sm-gallery-title{
		top:50%;
		left:50%;
		opacity: 1;
		transform:translate(-50%, -50%);
		transition: all 0.3s ease 0s;
	}
	.sm-gallery-title h2 {
		color:#555;
	}
}

@media screen and (max-width:639px) {
	.sm-gallery-title{
		position:relative;
		display:flex;
		justify-content:center;
		align-items:center;
		background:transparent;
		text-align: center;
		width:100%;
		opacity: 1;
		color: rgb(0, 0, 0);
		padding:0;
	}
	.sm-gallery-title h2 {
		color:#585975;
		font-size:1.3rem;
	}

}

/*BANNIERE ACCUEIL*/
.marquee {
  background: #585975;
  color: #fff;
}

.marquee-inner {
  display: flex;
  width: 100%; 
  animation: marquee 100s linear infinite;
}

.marquee p {
	  flex: 0 0 50%; 
	  margin: 0;
	  padding:0;
	  white-space: nowrap;
	font-size : 1.2rem;
}

.marquee:hover .marquee-inner {
  animation-play-state: paused; 
}


@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media screen and (max-width:639px) {
	.marquee p {
		 font-size : 0.9rem;
	}
	.marquee-inner {
	  display: flex;
	  width: 100%; 
	  animation: marquee 5s linear infinite;
	}
}

/*ACCUEIL-EN COURS DE REAL*/
.wa-encoursreal .et_pb_text_inner {
  display:flex;
  flex-direction:row;
  gap:30px;
}

.wa-encoursreal .et_pb_text_inner .custom-post{
  display:flex;
  flex-direction:column-reverse;
  width:33%
}
.wa-encoursreal .et_pb_text_inner .custom-post .post-thumbnail img {
	box-shadow: 6px 6px 18px 0px rgba(0, 0, 0, 0.3);
	border-radius:5px;
}

/*FICHE ARTICLE*/
.wa-statut {
	margin-top:20px;
}
.wa-statut span {
	background:#585975;
	color:#faf6f2;
	padding:8px;
}
.wa-valeur {
	font-weight:bold;
}
body.no-realisation .section-in-progress {
    display: none !important;
  }
body.no-realisation .section-categories {
    margin-bottom:50px;
  }

/*Formulaire de contact*/
.section-contact form input[type=text], .section-contact form input[type=email] {
    display: inline-block;
    height: 30px;
    width: 100%;
  }
.section-contact form textarea {
        display: inline-block;
       width: 100%;
}
.section-contact form input[type=submit] {
	color: #FAF6F2 ;
    border-color: #585975;
    border-radius: 5px;
    background-color: #585975;
	padding: .3em 1em;
	font-size:20px;
	font-weight:500;
	margin-top:20px;
}

.formulaire-contact .wpcf7 form .wpcf7-response-output {
	border-color: #585975;
	margin:2em 0 1em;
}
.star {
	color:red;
	font-size:larger;
}
/**/

/*Footer*/
.et_pb_column.col-social{
	display:flex;
	flex-direction: row;
	gap: 20px;
	justify-content:flex-end;
}
.et_pb_column.col-credit{
	display:flex;
	flex-direction: row;
	gap: 20px;
	justify-content:flex-start;
}

@media screen and (max-width:980px) {
	.et_pb_column.col-social, .et_pb_column.col-credit{
		display:flex;
		flex-direction: row;
		justify-content:center;
		gap: 20px;
	}
}	

 /*Chevrons navigation articles*/
@media screen and (max-width:639px) {
	#next-post > i, #prev-post > i {
		font-size:1.5rem;	
	}
}
