/*
Theme Name: template
Description: Thème enfant pour le thème Divi 
Author:  Medialogue
Template: Divi
*/

@import url("../Divi/style.css");
@import url("./css/content.css");
@import url("./css/responsive.css");

#sectionServices .et_flex_column_24_24  {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
			align-items: start;
}

/* Collapse content */
#gridBlub .et_pb_blurb .et_pb_blurb_description {
	max-height: 124px; /* adjust to match your design */
	overflow: hidden;
	position: relative;
	transition: max-height 0.3s ease;
}

/* Button style */
.read-more-btn {
	color: #333;
	font-weight: bold;
	cursor: pointer;
	font-size: 16px;
	border: 2px solid #FFF;
	padding: 5px;
	background-color: #FFF;
	position: absolute;
	bottom: 20px;
	right: 20px;
}

#gridBlub .et_pb_blurb_content{
	max-width:100%;
}

/* Optional hover */
#gridBlub .read-more-btn:hover {
	background-color: transparent;
	color:#FFF;
}

#gridBlub .et_pb_blurb{
	min-height:335px;
	padding-bottom:80px!important;
}

/* Expanded state */
#gridBlub .et_pb_blurb.expanded .et_pb_blurb_description {
	max-height: 1000px; /* fallback if JS disabled */
}

#gridBlub .et_pb_blurb.expanded .et_pb_blurb_description::after {
	content: "Réduire";
	background: none;
	color: inherit;
}

#gridBlub .et_pb_blurb h4{
	line-height:1.5em;
}

div.et_pb_tabs .et_pb_tabs_controls li.et_pb_tab_active a{
	color:#FFF!important;
	background-color:#333!important;
}

/*REALISATIONS*/
.listedelienfiltre ul{
	list-style-type: none!important;
    padding: 0;
}

.listedelienfiltre ul li a {
    color: #666;
    padding: 10px 20px;
    border: 1px solid #e2e2e2;
    display: block;
        border-radius: 3px 0 0 3px;
    height: auto;
    overflow: hidden;
    margin: -1px -1px 0 0;
    background-color: #fff;

}

.listedelienfiltre ul li {
    float: left;
    font-size: 14px;
    line-height: 1em;
    cursor: pointer;
}

 #et-top-navigation{
 	font-family:'Forum',handwriting !important;
 }

 #et-top-navigation a{
 	font-size:16px !important;
 }

.et_pb_team_member_image {margin: 0 auto!important; }

.et_pb_gallery {display: none!important; opacity: 0}
.et_pb_gallery.active {display: block!important;opacity: 1;}

#sectionRealisation .et_pb_gallery_pagination a{
	color: #333!important;
}

.listedelienfiltre ul li.active a {
	color: #fff;
    background-color: #333;
}

.boxshadow img{
	box-shadow:20px 20px rgba(0,0,0,0.25);
}

.et_pb_gallery_grid .et_pb_gallery_image{
	aspect-ratio:1/1;
}

.et_pb_gallery_grid .et_pb_gallery_image a{
	height:100%;
	display:block;
}

.et_pb_gallery_grid .et_pb_gallery_item img{
	height:100%;
	object-fit:cover;
}


/*Collapse Tab Informations*/

.et_pb_tabs .et_pb_tab_content {
	min-height:100px;
	max-height: 100px;
	overflow: hidden;
	position: relative;
	transition: max-height 0.4s ease;
}

.et_pb_all_tabs .et_pb_tab_1 {
	padding-bottom: 37px;
    padding-top: 54px;
}

/* Fade */
.et_pb_tabs .et_pb_tab_content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

/* Expanded */
.et_pb_tabs .et_pb_tab_content.expanded {
  max-height: 2000px;
}

.et_pb_tabs .et_pb_tab_content.expanded::after {
  display: none;
}

/* Bouton */
.tab-read-more {
  margin-top: 15px;
  cursor: pointer;
  color: #0073aa;
  font-weight: bold;
}

.et_pb_tab_1 .tab-read-more{
	display:none;
}

.et_pb_tabs .et_pb_tab_1 .et_pb_tab_content::after{
	display:none;
}

@media screen and (max-width:1720px) {
	#sectionServices .et_flex_column_24_24{
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width:980px) {
	#sectionServices .et_flex_column_24_24{
		grid-template-columns: repeat(1, 1fr);
	}

	.et_pb_section_4 .et_pb_row {
		flex-direction:column;
	}

	.et_pb_section_4 .et_pb_row .et_pb_column{
		width:100%;
	}

	.et_pb_all_tabs .et_pb_tab{
		margin-bottom:0!important;
	}
}

@media screen and (max-width:767px){
		.et_pb_tabs_controls li a{
		display:block;
		width:100%;
	}

	.et_pb_gallery_grid .et_pb_gallery_item img {
		height: 100%;
		object-fit: cover;
		width: 100%;
	}

	div.et_pb_gallery_0 .et_pb_gallery_items{
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width:476px) {

    h2 {
        font-size: 24px;
	}

	#gridBlub .et_pb_blurb h4{
		font-size:16px;
	}

	body #page-container .et_pb_section .et_pb_button_0{
		padding:0;
	}

	.et_block_module>.et_pb_blurb_content .et_pb_main_blurb_image{
		display:none;
	}

	.et_pb_tabs_controls li a{
		display:block;
		width:100%;
	}

	.listedelienfiltre ul li {
		float: none;
	}

	div.et_pb_gallery_0 .et_pb_gallery_items{
		grid-template-columns: repeat(1, 1fr);
	}

}