/*
Theme Name:   AdelinePISCINES	
descriptif-col-gauche:  AdelinePISCINES
Author:       LB-creations
Template:     Divi
Version:      1.0.0
*/


/*****************/
/**MODIF POLICES**/
/*****************/
html {
    font-size: 10px;
}
#main-content, #main-content p {
    font-size: 1.6rem;
	line-height: 1.6em;
}
h1 {
	font-size: 5rem;
	line-height: 5.5rem;
	padding-bottom: 0;
}
h2 {
	font-size: 4rem;
}
h3 {
	font-size: 3.2rem !important;
}
h4 {
	font-size: 2.8rem !important;
}
blockquote p, blockquote {
	line-height: 3rem;
    font-size: 2.2rem !important;
    font-style: italic;
	font-weight: 300;
}
.section-visuel, .section-visuel p {
	font-size: 5rem !important;
	line-height: 5rem !important;
}
ul {
    line-height: 1.6em !important;
}
@media (max-width: 1380px) {
	html {
    	font-size: 8px;
	}
	#main-content, #main-content p {
    font-size: 1.75rem;
	}
}
@media (max-width: 480px) {
	html {
    	font-size: 7px;
	}
}


/*deco-titre*/
.deco-titre {
	width: fit-content;
}
.deco-titre.title-center {
	margin: auto;
}
.deco-titre.title-center h2:before {
	left: initial;
}
.deco-titre.title-right {
	margin-right: 0;
	margin-left: auto;
}
.deco-titre h2 {
	padding-bottom: 0;
}
.deco-titre h2:before {
	content: '';
    z-index: -1;
    height: 7rem;
    width: 7rem;
    left: -1vw;
    position: absolute;
    background-color: #b2e2f7;
    top: 0;
    transform: translateY(-1.3rem) rotate(45deg);
}

/*****************/
/**MODIF DIVERS***/
/*****************/
/*correction probleme liens soulignés suite maj WP*/
a:not(.wp-element-button) {
    text-decoration: none;
}
/*modifier la scroll bar sur certain navigateur*/
::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}
::-webkit-scrollbar-thumb {
    background: #222222;
}
::-webkit-scrollbar-track {
    background: #f0f0f0;
}

/*empecher scroll horizontal*/
#page-container {
	overflow-x: hidden;
}

/*largeur ligne*/
.et_pb_row {
	width: 90%;
}

/*centrer verticalement*/
.centrer-vertical {
	display: flex;
    flex-direction: column;
    justify-content: center;
	/*ou
	display: flex;
	flex-wrap: wrap;
	align-content: center;*/
}
/*forcer format image*/
.image-carre img {
    aspect-ratio: 1/1;
    object-fit: cover;
}
.image-2_3 img {
    aspect-ratio: 2/3;
    object-fit: cover;
}
.image-3_2 img {
    aspect-ratio: 3/2;
    object-fit: cover;
}
/*forcer remplissage image*/
.full-image, .full-image span {
	height: 100%;	
}
.full-image img {
	height: 100%;
	object-fit: cover;
}
/*supprimer lÃ©gende image zoom*/
.mfp-bottom-bar {
	display: none;
}

/*supprimer légende image zoom*/
.mfp-bottom-bar {
	display: none;
}

/*déalage bouton remonté vers le haut*/
@media (min-width: 981px) {
	.et_pb_scroll_top.et-pb-icon {
		right: 80px;
		z-index: 1;
	}
}
@media (max-width: 980px) and (min-width: 481px) {
	.et_pb_scroll_top.et-pb-icon {
		right: 60px;
		z-index: 1;
	}
}
/*modif list à puces*/
ul ul {
	list-style-type: none !important;
}
.et_pb_text ul ul {
    padding-bottom: 0 !important;
}

/*inverser ordre colonne sur tablette et mobile*/
@media screen and ( max-width: 980px ) {
    .inverse {
        display: flex;
        flex-direction: column-reverse;
    }
	.inverse .et_pb_column:last-child {
		margin-bottom: 3rem;
	}
}

/**********************/
/****PAGE REALISATIONS**/
/**********************/

/*Vignette blog*/
@media (min-width: 1381px) {
	.section-realisations .vignettes .et_pb_post {
		min-height: 65rem;
	}
}
@media (max-width: 1380px) {
	.section-realisations .vignettes .et_pb_post {
		min-height: 72rem;
	}
}
.vignettes .et_pb_post{
	cursor: pointer;
}
.section-actus .et_pb_post {
	margin: 15px 0px;
    padding: 15px 10px;
}
.vignettes .et_pb_post {
    background: #f0f0f0;
    border-radius: 10px;
	border: 1px solid #d8d8d8;
}
.vignettes .et_pb_post img, .vignettes .et_pb_post a {
    border-radius: 10px 10px 0 0;
	overflow: hidden;
	transition: all 300ms ease 0ms;
}
.vignettes .et_pb_post:hover {
    background: #222;
	border: 1px solid #222;
}
.vignettes .et_pb_post:hover h2 {
   color: #fff;
}
.vignettes .et_pb_post:hover img {
   transform: scale(1.1);
}
.vignettes .et_pb_post .post-meta {
    margin: 5px 0 15px 0;
}
.post-meta .published {
    background: #b2e2f7;
    padding: 5px 10px;
    border-radius: 100em;
}
.row-actus article {
	margin: 8px !important;
	min-height: 480px;
}
.row-actus article:nth-child(2n) {
	margin-top: 16px !important;
}

/*PAGE ARTICLES*/
.single-post .wp-block-gallery {
	padding-top: 30px;
}
.single-post .container {
	width: 90%;
}
.wp-block-latest-posts.wp-block-latest-posts__list {
    list-style: disc;
    padding-left: 20px;
}
@media (min-width: 981px) {
	#left-area {
		width: 75%;
	}
	#sidebar {
		float: left;
		width: 25%;
}
	.et_right_sidebar #main-content .container:before {
		right: 25% !important;
	}
}

/*QUESTIONS/REPONSES*/
/* colors & borders */
.wp-block-yoast-faq-block {
    border-top:1px solid #eee;
}
.wp-block-yoast-faq-block .schema-faq-question {
    border-bottom:1px solid #d0d0d0;
}
.wp-block-yoast-faq-block .schema-faq-question:hover,
.wp-block-yoast-faq-block .fcp-opened .schema-faq-question {
    background-color:#fafafa;
}
.wp-block-yoast-faq-block .schema-faq-answer,
.wp-block-yoast-faq-block .fcp-opened .schema-faq-answer {
    border-bottom:1px solid #eee;
}

/* layout */
.wp-block-yoast-faq-block .schema-faq-question {
    display:block;
    padding:10px;
    position:relative;
}
.wp-block-yoast-faq-block.fcp-faq .schema-faq-question {
    cursor:pointer;
}
.wp-block-yoast-faq-block .schema-faq-answer {
    margin:0;
    padding:12px 10px;
}

/* bullet before a question */
.wp-block-yoast-faq-block .schema-faq-question:before {
    /* position gap */
    margin-top:-2px;
}
.wp-block-yoast-faq-block .schema-faq-question,
.wp-block-yoast-faq-block .schema-faq-answer {
    padding-left:34px;
}
.wp-block-yoast-faq-block .schema-faq-question:before {
    content:'';
    display:block;
    border:2px solid #d0d0d0;
    border-width:0px 2px 2px 0px;
    width:9px;
    height:9px;
    box-sizing:border-box;
    position:absolute;
    left:14px;
}
.wp-block-yoast-faq-block.fcp-faq .schema-faq-question:before {
    top:16px;
    transform:rotate(-45deg);
    transition:all 0.3s 0.3s ease;
}
.wp-block-yoast-faq-block .schema-faq-question:before,
.wp-block-yoast-faq-block.fcp-faq .fcp-opened .schema-faq-question:before {
    top:14px;
    transform:rotate(45deg);
}

/* transition */
.wp-block-yoast-faq-block.fcp-faq .schema-faq-answer {
    max-height:0;
    overflow:hidden;
    border-bottom-width:0;
    padding-top:0;
    padding-bottom:0;
    transition:padding-bottom 0.3s ease-in, max-height 0.4s ease-in, padding-top 0.1s 0.4s ease-out, border-bottom-width 0s 0.5s linear;
}
.wp-block-yoast-faq-block .fcp-opened .schema-faq-answer {
    max-height:9999px;
    border-bottom-width:1px;
    padding-top:12px;
    padding-bottom:20px;
    transition:padding-top 0.2s ease-in, max-height 0.3s 0.2s linear, padding-bottom 0.4s 0.2s ease;
}

/************************************************/
/***************PAGE INTERNE*********************/
/************************************************/
/*SECTIONS REALISATIONS*/
.section-realisations img {
	aspect-ratio: 1 / 1;
    object-fit: cover;
}
.section-realisations .et_pb_gallery_grid .et_pb_gallery_item {
    width: 16.66%!important;
    clear: right!important;
}
@media (max-width: 980px) {
	.section-realisations .et_pb_gallery_grid .et_pb_gallery_item {
		width: 33.33%!important;
		clear: right!important;
	}
}
/*-----------------------------------------------------------------------*/ 
/*-----EFFET AU SURVOL IMAGE GALLERIE------------------------------------*/ 
/*-----------------------------------------------------------------------*/

/*désactiver sur mobile et tablette*/
@media (max-width: 1024px) {
	.image-hover-gallery-layout .et_pb_gallery_item .et_pb_gallery_title, .image-hover-gallery-layout .et_pb_gallery_item .et_pb_gallery_caption {
		display: none;
	}
}

.image-hover-gallery-layout h3{
	font-size: 1.5em !important;
}
@media (max-width: 1450px) {
	.image-hover-gallery-layout h3{
		font-size: 15px !important;
	}
	.image-hover-gallery-layout p{
		font-size: 12px !important;
	}
}
@media (max-width: 1280px) {
	.image-hover-gallery-layout p{
		padding-top: 12px !important;
	}
}


.image-hover-gallery-layout .et_pb_gallery_item {
 overflow: hidden;
 position: relative;
}

.image-hover-gallery-layout .et_pb_gallery_item img {
 -webkit-transition: all 0.5s ease-in-out;
 -moz-transition: all 0.5s ease-in-out;
 transition: all 0.5s ease-in-out;
 display: block;
}

.image-hover-gallery-layout .et_pb_gallery_item:hover img {
 transform: scale(1.1);
}

.image-hover-gallery-layout .et_pb_gallery_item .et_pb_gallery_image:before {
 top: 10%;
 right: 2%;
 bottom: 10%;
 left: 2%;
 border-top: 1px solid #fff;
 border-bottom: 1px solid #fff;
 -webkit-transform: scale(0, 1);
 transform: scale(0, 1);
 -webkit-transform-origin: 0 0;
 transform-origin: 0 0;
 position: absolute;
 content: '';
 opacity: 0;
 -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
 transition: opacity 0.35s, transform 0.35s;
 z-index: 4;
 pointer-events: none;
}

.image-hover-gallery-layout .et_pb_gallery_item .et_pb_gallery_image:after {
 top: 2%;
 right: 10%;
 bottom: 2%;
 left: 10%;
 border-right: 1px solid #fff;
 border-left: 1px solid #fff;
 -webkit-transform: scale(1, 0);
 transform: scale(1, 0);
 -webkit-transform-origin: 100% 0;
 transform-origin: 100% 0;
 position: absolute;
 content: '';
 opacity: 0;
 -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
 transition: opacity 0.35s, transform 0.35s;
 pointer-events: none;
 z-index: 4;
}

.image-hover-gallery-layout .et_pb_gallery_item:hover .et_pb_gallery_image:before, .image-hover-gallery-layout .et_pb_gallery_item:hover .et_pb_gallery_image:after {
 -webkit-transition-delay: 0.15s;
 transition-delay: 0.15s;
 opacity: 1;
 -webkit-transform: scale(1);
 transform: scale(1);
}

.image-hover-gallery-layout .et_pb_gallery_item .et_pb_gallery_title, .image-hover-gallery-layout .et_pb_gallery_item .et_pb_gallery_caption {
 opacity: 0;
 color: #fff;
 position: absolute;
 top: 40%;
 width: 100%;
 text-align: center;
 -webkit-transition: all 0.5s ease-in-out;
 -moz-transition: all 0.5s ease-in-out;
 transition: all 0.5s ease-in-out;
 margin: 0;
 padding: 0 13%;
 pointer-events: none;
 line-height: 1em !important;
 z-index: 3;
}

/*.image-hover-gallery-layout .et_pb_gallery_item:hover .et_pb_gallery_title {
 opacity: 1;
 position: absolute;
 top: 45%;
 width: 100%;
 text-align: center;
 color: #fff;
 line-height: 1em !important;
}*/

.image-hover-gallery-layout .et_pb_gallery_item:hover .et_pb_gallery_caption {
 opacity: 1;
 position: absolute;
 top: 48%;
 width: 100%;
 text-align: center;
 color: #fff;
 line-height: 1em !important;
}
@media (max-width: 1800px) and (min-width: 1450px) {
	.image-hover-gallery-layout .et_pb_gallery_item:hover .et_pb_gallery_caption {
		top: 60% !important;
	}
}

/*-----------------------------------------------------------------------*/ 
/*-----FIN EFFET AU SURVOL IMAGE GALLERIE--------------------------------*/ 
/*-----------------------------------------------------------------------*/