/*
Theme Name: Serenite
Theme URI: https://https://support.studiomarmotte.com/demo-divi-serenite/
Description: Thème enfant Divi avec importation de démo en un clic.
Author: Studio Marmotte
Author URI: https://studiomarmotte.com
Template: Divi
Version: 1.0
*/

@import url("../Divi/style.css"); /* Charge le CSS de Divi */

/*Serenite affichage header v2------------------------------*/
@media (max-width: 980px) {
    .et_pb_column.et_pb_column_empty {
        display:block;
    }
}
/* Serenite call to action
-----------------------------------------------------*/
.border-hover .et_pb_column {
 position: relative;
}

.border-hover .et_pb_column .et_pb_promo_description:before {
 top: 50px;
 right: 30px;
 bottom: 50px;
 left: 30px;
 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;
}
 
.border-hover .et_pb_column .et_pb_promo_description:after {
 top: 30px;
 right: 50px;
 bottom: 30px;
 left: 50px;
 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;
}
 
.border-hover .et_pb_column .et_pb_promo_description:before, 
.border-hover .et_pb_column .et_pb_promo_description:after {
 -webkit-transition-delay: 0.15s;
 transition-delay: 0.15s;
 opacity: 1;
 -webkit-transform: scale(1);
 transform: scale(1);
}
 
.border-hover .et_pb_promo {
 position: relative;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
}

.border-hover .et_pb_promo_description {
 position: static !important;
}

@media (max-width: 600px) {

.border-hover .et_pb_column .et_pb_promo_description:before {
 top: 35px;
 right: 15px;
 bottom: 35px;
 left: 15px;
}
 
.border-hover .et_pb_column .et_pb_promo_description:after {
 top: 15px;
 right: 35px;
 bottom: 15px;
 left: 35px;

}}

/* serenité img testimonial--------*/
.testimonial img {  overflow: hidden;
    border-radius: 100px 100px 100px 100px !important;
    margin-bottom: 0px;
    margin-top: 0px;
    width: 75px;
    height: 75px; 
    -o-object-fit: cover !important;
    object-fit: cover !important;

}

.et_pb_post_slider_image_top .et_pb_slide_image{
	margin: 2% auto 0 !important;
}

.testimonial .et_pb_slide_description, .testimonial 
.et_pb_slider_fullwidth_off .et_pb_slide_description{
    padding: 5% 8%;
    width: auto;
    margin: auto;
}
@media (max-width: 767px) {
    .et_pb_slide_image, .et_pb_slide_video {
        display:block !important; 
        
    }
}

/* Conteneur des articles de blog 
-------------------*/
.et_pb_blog_grid .et_pb_ajax_pagination_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Articles individuels */
.et_pb_blog_grid .et_pb_post {
    width: calc(90% - 20px); /* 50% de la largeur moins un petit espace */
    margin-bottom: 40px; /* Espacement entre les lignes */
}
.et_pb_blog_0 .et_pb_post .post-content a{
	padding: 8px;
	text-transform: uppercase;
	border-radius: 3rem;
	
}

/* Appliquer une image aux flèches de navigation */
.fleches .et-pb-slider-arrows .et-pb-arrow-prev {
    background: url("https://support.studiomarmotte.com/demo-serenite/wp-content/uploads/sites/4/2025/03/gauche2.png") no-repeat center center !important;
    background-size: contain !important;
    width: 50px !important; /* Ajuste la taille */
    height: 50px !important;
    opacity: 1 !important;
    border: none !important;
	 left: 20px !important;  /* Ajuste la position de la flèche gauche */
}

/* Flèche droite */
.fleches .et-pb-slider-arrows .et-pb-arrow-next {
    background: url("https://support.studiomarmotte.com/demo-serenite/wp-content/uploads/sites/4/2025/03/fleche-droite2.png") no-repeat center center !important;
    background-size: contain !important;
    width: 50px !important;
    height: 50px !important;
    opacity: 1 !important;
    border: none !important;
	 right: 20px !important; /* Ajuste la position de la flèche droite */
	
}

/* Masquer les icônes des flèches par défaut */
.fleches .et-pb-arrow-prev::before, 
.fleches .et-pb-arrow-next::before {
    display: none !important;
}
.fleches .et_pb_slider, 
.fleches .et_pb_posts_slider {
    overflow: visible !important;
}

/*images galerie effet de survol----------------------------------
*/
.custom-hover-image {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* Assombrir l'image au survol */
.custom-hover-image img {
    transition: filter 0.3s ease-in-out;
}

.custom-hover-image:hover img {
    filter: brightness(50%);
    transform: scale(0.95); /* Zoom arrière */
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}


/* Ajout d'une icône personnalisée */
.custom-hover-image::after {
    content: "";
    background: url("https://support.studiomarmotte.com/demo-serenite/wp-content/uploads/sites/4/2025/03/oeil.png") no-repeat center center;
    background-size: contain; /* Ajuste l'image à la bonne taille */
    
    width: 60px;  /* Taille de l'icône */
    height: 60px; /* Taille de l'icône */
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Affichage de l'icône au survol */
.custom-hover-image:hover::after {
    opacity: 1;
}
/*inverse----------------------
*/
@media screen and ( max-width: 980px ) {
    .inverse {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Sérénité Grid Blog & Archive
-----------------------------------------------------*/

@media only screen and ( min-width: 980px ) {
.serenite_gridblog .et_pb_salvattore_content[data-columns]::before { 
  content: '2 .column.size-1of2' !important;
}
  
.serenite_gridblog .column.size-1of2 {
  width:47% !important;
  margin-right:6% !important;
}

.serenite_gridblog .column.size-1of2:last-child {
	margin-right: 0 !important;
}}

@media only screen and ( max-width: 980px ) {
.serenite_gridblog .et_pb_column .et_pb_blog_grid[data-columns]::before { 
  content: '2 .column.size-1of2' !important;
}
  
.serenite_gridblog .et_pb_column .column.size-1of2 {
  width:100% !important;
  margin-right:0%;
}
.serenite_gridblog .et_pb_post .entry-featured-image-url {
    display: block;
    position: relative;
    margin-bottom: 10px;
    height: 200px;
    object-fit: cover;
    overflow: hidden;
}
}

.serenite_gridblog .entry-title {
  margin-top: 0px;
  padding-bottom: 5px;
}
 
.serenite_gridblog .et_pb_image_container {
  margin: -40px -40px  40px;
}

.serenite_gridblog .et_pb_post .entry-featured-image-url {
    display: block;
    position: relative;
    margin-bottom: 30px;
    height: 340px;
    object-fit: cover;
    overflow: hidden;
}

.serenite_gridblog .et_pb_image_container img {
    min-width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    max-width: 100%;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}
 
.serenite_gridblog .et_pb_blog_grid .et_pb_post {
  margin-bottom: 80px;
  width: 100%;
  padding: 40px;
  background-color: #fff;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-shadow: 0px 20px 90px #FAF5F2;
  border: none;
  text-align:center;
}
 
.serenite_gridblog .et_pb_post .post-meta {
  margin-bottom: 20px;
}

.serenite_blog article a[rel="category tag"],
.archive article a[rel="category tag"]{
    color: #d17d74 !important;
}

.serenite_gridblog article a[rel="category tag"]:after,  
.serenite_gridblog .author:after,
.archive article a[rel="category tag"]:after,
.archive .author:after {
    content: ',';
    margin-left: 2px;
    margin-right: 2px;
}

.serenite_gridblog  article a[rel="category tag"]:last-child:after,
.serenite_blog .et_pb_post .post-meta a:last-child:after,
.archive  article a[rel="category tag"]:last-child:after,
.archive .et_pb_post .post-meta a:last-child:after{
    display: none;
}
/* Password 
-----------------------------------------------------*/

.post-password-required .et_password_protected_form {
    min-height: initial;
    width: 70%;
    margin: 12% auto;
    text-align: center;
    border: 5px solid #d8cec5;
    padding: 5%;
}

.et_password_protected_form .et_submit_button {
    display: block;
    float: none;
    margin: 8px auto 0;
    font-family: inherit;
    cursor: pointer;
	color: #CE936B;
}

.et_password_protected_form p input {
    background-color: #faf4f0;
    border: none !important;
    width: 100% !important;
    border-radius: 0 !important;
    font-size: 14px;
    color: #999 !important;
    padding: 16px !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
/* Sérénité menu footer------------------------
----------------*/
.serenite_footer ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligne à droite sur bureau */
    gap: 10px;
    text-align: left;
}

.serenite_footer ul li {
    display: block !important; /* Force chaque élément à être en bloc */
    width: 100%; /* Ajuste la largeur pour bien s'afficher */

}

.serenite_footer .et_pb_menu .et_pb_menu__menu, 
.serenite_footer .et_pb_menu .et_pb_menu__logo-wrap {
    justify-content: center !important;
    text-align: center !important;
}
/* Assurer que l'icône hamburger est centrée */
@media (max-width: 980px) {
  .serenite_footer .et_pb_menu--style-left_aligned .et_pb_menu__wrap {
       
        justify-content: center !important;
    }
}