/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Florian Petit
 Author URI: https://www.florianpetit.fr
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */
/* 
Padding pour les boutons
*/

.et_pb_button_0_wrapper .et_pb_button_0, .et_pb_button_0_wrapper .et_pb_button_0:hover, .et_pb_button_1_wrapper .et_pb_button_1, .et_pb_button_1_wrapper .et_pb_button_1:hover {
	padding-left: 26px;
    padding-right: 46px;
}
body.et_pb_button_helper_class .et_pb_button, body.et_pb_button_helper_class .et_pb_module.et_pb_button, body .et_pb_bg_layout_light.et_pb_button:hover, body .et_pb_bg_layout_light .et_pb_button:hover, body .et_pb_button:hover {
    padding-left: 26px;
    padding-right: 46px;
}
/* 
Edit de la couleur active des liens du menu header
*/
#main-header #top-menu li.current-menu-item > a {
    color: #3a3158!important;
    
}
#main-header #top-menu li.current-menu-item > a:after {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #3a3158;
    content: " ";
    margin-top: 8px;
}
#mobile_menu {
    background: #fff!important;
}
.et_mobile_menu {
    padding: 2%!important;
}
.et_mobile_menu li a {
    padding: 10px 1%!important;
}

#main-header.et-fixed-header, .et_fixed_nav #main-header {
    background-color: #ffffff54;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(5px);
}
#main-header a {
        font-weight: 500;
}
/*---------------------*/
/*--HACK TEMOIGNAGES
Module full custom ---*/
/*---------------------*/
.testimonial-section {
    max-width: 1920px;
    padding: 2% 0;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}
 
.testimonial-row {
    overflow: hidden;
}
 
.testimonial-column {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px; /* Add gap between the items */
}
 
.testimonial-box {
    flex: 0 0 calc((100% / 1) - 17px); /* Adjust width considering the gap */
    margin: 0 !important;
    box-sizing: border-box;
}
.arrows-section {
    display: flex;
    gap: 16px;
}
.arrows-section-testimonial {
    justify-content: end;
}
.arrows-section-gallery {
    justify-content: start;
}
.arrow {
    background-color: #3A3158;
    color: #F4F2FE;
    padding: 20px 40px;
    cursor: pointer;
    border-radius: 40px;
}
.arrow.inactive {
    background-color: #F4F2FE;
    color: #3A3158;
}
/* Responsive design */
@media (max-width: 479px) {
    .testimonial-box {
        flex: 0 0 100%; /* Show one item at a time */
}

/*---------------------*/
/*--HACK TEMOIGNAGES
Module original de DIVI  ---*/
/*---------------------*/
.testimonial-column {
    gap: 0px; /* Add gap between the items */
    }
}
.custom-slider-temoignages .et_pb_column {
  /*position: unset;*/
}
.custom-slider-temoignages .et_pb_slider {
  position: unset;
}
.custom-slider-temoignages .et_pb_slider_container_inner {
  /*display: flex;*/
}
.custom-slider-temoignages .et-pb-arrow-next, .custom-slider-temoignages .et-pb-arrow-prev {
  opacity: 1;
  position: unset;
  margin: 0;
  background-color: #3A3158;
  padding: 11px 35px 17px 35px;
  display: inline-block;
  border-radius: 40px;
}
.custom-slider-temoignages .et-pb-arrow-next {
  top: 0;
  left: 0;
  right: 0;
}
.custom-slider-temoignages .et-pb-arrow-prev {
  top: 0;
  right: 0;
  left: 0;
  margin-right: 16px;
}
.custom-slider-temoignages .et-pb-slider-arrows {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 99;
}
.custom-slider-temoignages .et-pb-slider-arrows .et-pb-arrow-prev:before, .custom-slider-temoignages .et-pb-slider-arrows .et-pb-arrow-next:before {
    font-size: 1.3rem;
}

.custom-slider-temoignages .et_pb_bg_layout_dark .et_pb_slide_description {
    text-shadow: unset;
}
.custom-slider-temoignages .et_pb_slider_0 .et_pb_slide_image img {

}
.custom-slider-temoignages .et_pb_slide_description .et_pb_slide_title {
}
.custom-slider-temoignages .et_pb_slide_content p {
    margin-top: 32px;
}

/*---------------------*/
/*--HACK Gallery Procedure---*/
/*---------------------*/
.gallery-section {
    max-width: 1920px;
    padding: 2% 0;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}
 
.gallery-row {
    overflow: hidden;
}
 
.gallery-column {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px; /* Add gap between the items */
}
 
.gallery-box {
    flex: 0 0 calc((100% / 1) - 17px); /* Adjust width considering the gap */
    margin: 0 !important;
    box-sizing: border-box;
}
.gallery-box img {
    border-radius: 40px;
}

/* Responsive design */
@media (max-width: 479px) {
    .gallery-box {
        flex: 0 0 100%; /* Show one item at a time */
}
   
.gallery-column {
    gap: 0px; /* Add gap between the items */
}}

/*---------------------*/
/*--HACK FORMULAIRE ---*/
/*---------------------*/
.form-contact p {
    padding: 20px 20px 10px 20px;
    background: white;
    border-radius: 15px;
    margin-bottom: 16px;
}

.form-contact label {
    font-size: 12px;
}

.form-contact input {
    width: 100%;
    border: none;
    height: 50px;
    font-size: 16px;
    padding: 0;
}
.form-contact textarea {
    width: 100%;
    border: none;
    font-size: 16px;
    padding: 10px 0px 0px;
    height: 80px;
}
 .form-contact p:last-of-type {
    padding: 0;
    background: none;
    border-radius: 0;
    text-align: center;
    margin-top: 32px;
}

 .form-contact p:last-of-type input{
    padding: 20px;
    background: #3A3158;
    border-radius: 60px;
    width: 50%;
    color: white;
    font-size: 28px;
    height: unset;
    cursor: pointer;
}
.form-contact p:last-of-type input:hover{
    background: #513b77;
    transition: background 250ms ease;
}

/* 
Masonry Gallery by WP Zone
https://wpzone.co/wordpress-and-divi-code-snippets/
*/

.wpz-gallery-masonry .et_pb_gallery .et_pb_gallery_items {
    column-count: 3; /* number of columns for desktop */
    column-gap: 15px;  /* column spacing */
}

@media only screen and (max-width: 1200px) { 
.wpz-gallery-masonry .et_pb_gallery .et_pb_gallery_items { 
    column-count: 2;  /* number of columns for tablet devices */
} 
} 
@media only screen and (max-width: 767px) {
  .wpz-gallery-masonry .et_pb_gallery .et_pb_gallery_items {
    column-count: 1;  /* number of columns for mobile devices */
  }
}

.wpz-gallery-masonry .et_pb_gallery .et_pb_gallery_items .et_pb_gallery_item {
    width: 100%;
    margin: 0px 0px 10px 0!important; /* replace 10px to change row spacing */
    float: none!important; 
}

/* 
Custom part for vaccin in receveuses
*/

.titre_statut_vaccin {
	width: 100%;
	display: flex;
    align-items: center;
}
.titre_statut_vaccin.out {
	display: unset;
  float: left;
}
.statut_vaccin {
	margin-top: 20px;
}
.statut_vaccin_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-top: -1px;
    border-top: 1px solid #3A3158;
    border-bottom: 1px solid #3A3158;
}
.statut_vaccin_container:first-child {
    border-top: 1px solid #3A3158;
    border-bottom: 1px solid #3A3158;	
}
.statut_vaccin_container:last-child {
    border-top: 1px solid #3A3158;
    border-bottom: 1px solid #3A3158;	
}
.statut_vaccin_container .icone_vaccin img {
    width: 20px;
}
.statut_vaccin .icone_vaccin {
	width: 20%;
}
.statut_vaccin .icone_preuve {
	margin-left: auto;
}
.statut_vaccin .icone_preuve img {
  width: 40px;
}

/* === Style de la page d'archive Women === */
.vaccin-modules-container {
    margin: 0 auto;
    padding: 20px;
}
.vaccin-section {
    margin-bottom: 50px;
}
.vaccin-section header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-header {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.section-title {
    margin: 0;
    font-size: 55px!important;
}
/* === STYLES SPÉCIFIQUES PAR STATUT === */

/* Vaccin en attente - Orange/Jaune */
.vaccin-waiting-article {
	background: #F5E9E9!important;
}
.vaccin-waiting-tag {
  background: #fff;
  color: #54487d!important;
}
.vaccin-waiting-btn {
 	background: #3A3158;
  color: #F4F2FE!important;
 }

/* Vaccin in progress - Bleu */
.vaccin-completed-article {
	background: #3A3158 !important;
}
.vaccin-progress-tag, .vaccin-progress-btn {
    background: #3A3158;
    color: #F4F2FE!important;
}

/* Vaccin completed - Vert */
.vaccin-completed-tag {
    background: #F4F2FE;
    color: #3A3158;
}
.vaccin-completed-btn {
    background: #F5E9E9;
    color: #3A3158;
}

/* ==  GRILLE D'ARTICLES === */
.articles-with-details-images {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));*/
    gap: 25px;
    padding: 30px;
    background: rgba(255,255,255,0.1);
}

.article-details {
    background: #fff;
    border-radius: 40px;
    padding: 50px 70px;
}
.receveuse-card, .marraine-card {
	position: relative;
}

.article-details .receveuse-card:after, .article-details .marraine-card:before {
	content: " ";
	display: block;
	position: absolute;
	top: 40%;
	width: 60px;
	height: 2px;
	background-color: #3A3158;
}
.article-details .receveuse-card:after {
	right: 0;
}

.article-details .marraine-card:before {
	left: 0;
}

/* === TAG DE STATUT === */
.vaccin-status-tag {
    padding: 30px 44px;
    border-radius: 99px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
}

/* === CONTENU ARTICLE === */
.article-header h3 {
    margin: 15px 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.article-header h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.article-meta span {
    margin-right: 15px;
}

/* === CARTES PERSONNES === */
.details-images-container {
    display: flex;
    flex-wrap: wrap;
    /*gap: 15px;*/
    margin: 20px 0 0 0;
}

.person-card {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
}

.person-image img {
    width: 240px;
    height: 380px;
    border-radius: 180px;
    object-fit: cover;
}

.person-card h4.person-title {
    margin: 10px 0 5px 0;
    font-size: 35px!important;
}

.vaccin-completed-article .person-card h4.person-title, .vaccin-completed-article .person-card  p.person-name{
	color: #F5E9E9!important;
}

.person-name {
   font-size: 20px!important;
}

/* === BADGES DE RÔLE === */
.person-role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.receveuse-badge {
    background: #fef3c7;
    color: #d97706;
}

.marraine-badge {
    background: #dbeafe;
    color: #2563eb;
}

.donneuse-badge {
    background: #dcfce7;
    color: #16a34a;
}

/* === BOUTONS === */
.read-more-btn {
    display: inline-block;
    padding: 30px 44px;
    text-transform: uppercase;
    border-radius: 99px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.read-more-btn::after {
    margin-left: .3em;
    line-height: 1.7em;
    content: '→';
    font-size: 16px;
    font-feature-settings: "kern" off;
    font-variant: none;
    font-style: normal;
    font-weight: 400;
}

.read-more-btn:hover {
    opacity: .8;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .articles-with-details-images {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .details-images-container {
        flex-direction: column;
    }
    
    .person-card {
        min-width: auto;
    }
    
    .vaccin-status-tag {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .vaccin-modules-container {
        padding: 10px;
    }
    
    .article-details {
        padding: 15px;
    }
    
    .person-image img {
        width: 60px;
        height: 60px;
    }
}

/* === SECTION VIDE === */
.empty-section {
    opacity: 0.7;
}

.no-articles-found {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.8);
}

.et_pb_slider_0 .et_pb_slide>.et_pb_container {
  max-width: 100%!important;
}