/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/


.page-id-6429 .mcb-section-inner-svi2k6cc{
	margin-bottom:0!important;
}
#Content{
		padding:0!important;
	}
.the_content_wrapper{
	margin:0;
}

.event-featured-image img,
.page-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px; /* optionnel, arrondi léger */
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    margin-bottom: 25px;
}

/********** CATALOGUE ÉVÉNEMENTS ***************/

/* --- Grille d'événements (largeur uniforme) --- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* 🟢 largeur stable */
  gap: 2rem;
  justify-content: center;
}

/* --- Cartes --- */
.event-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.event-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.event-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Hauteur d'image uniforme dans les cartes */
.event-card img {
    width: 100%;
    height: 170px;          /* ajuste : 160–190 selon ce que tu veux */
    object-fit: cover;      /* recadre proprement */
    display: block;
    border-radius: 8px 8px 0 0; /* optionnel : arrondi en haut comme la carte */
}

.event-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
}

.event-date {
  color: #555;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.event-info h3 {
  font-size: 1.1rem;
  margin: 0.4rem 0;
  line-height: 1.5em;
}

.event-type {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.8rem;
}

.event-cat {
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
  background: #f6f6f6;
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 4px;
}

/* --- Ligne drapeaux + icônes lieu --- */
.event-flags-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid #eee;
}

.event-languages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.event-languages img.event-flag {
  width: 22px;
  height: auto;
  border-radius: 2px;
  display: block;
}

.event-languages .event-flag {
  display: inline-block;
  font-size: 0.8rem;
  color: #444;
  text-transform: uppercase;
}

.event-location-icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.event-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* --- Bouton "plus d'infos" --- */
.event-more {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #db4b03;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  transition: background 0.2s;
  margin-top: 1em;
}

.event-more:hover {
  background: #D4600Bcc;
}

/* === FILTRES ÉVÉNEMENTS – STYLE LISSE & MODERNE === */

.event-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem !important;
}

/* Groupes */
.filter-buttons,
.filter-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.filter-locations {
    border-left: 1px solid #ddd;
    padding-left: 1rem;
}

/* Boutons */
.event-filter,
.location-filter {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem !important;

    border: 1px solid #dcd7c9 !important;
    background: #fff !important;
    border-radius: 14px !important;

    font-size: 0.95rem !important;
    color: #5d5644 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
}

/* Icônes */
.event-filter img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    transition: transform 0.25s ease;
}

/* Hover */
.event-filter:hover,
.location-filter:hover {
    background: #faf7f0 !important;
    border-color: #c8c1ae !important;
    transform: translateY(-2px);
}

.event-filter:hover img {
    transform: scale(1.07);
}

/* Actif */
.event-filter.active,
.location-filter.active {
    background: #e8e3d6 !important;
    border-color: #b9b19d !important;
    color: #3f3a2d !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
}

.event-filter.active img {
    transform: scale(1.1);
}

/* Mobile */
@media (max-width: 600px) {
    .event-filter,
    .location-filter {
        flex: 1 1 48% !important;
        justify-content: center !important;
    }

    .event-filter img {
        width: 42px !important;
        height: 42px !important;
    }
}


/********** FIN CATALOGUE EVENEMENTS ***********/

/********** PAGE DETAIL EVENEMENT **************/

.event-registration-box {
    border: 1px solid #ccc;
    padding: 15px;
    margin: -10px 0;
    text-align: left;
}

.event-registration-box p {
    margin: 8px 0;
}

.event-flag {
    font-size: 18px;
    margin-right: 5px;
}

.event-buttons {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-register {
    display: block;
    background: #db4b03;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #e4692c; 
    color: #fff7e6;   
}


.event-layout {
  display: flex;
  gap: 40px; /* espace entre texte et aside */
  align-items: flex-start;
  margin-top: 0px; /* espace après la photo */
}

.event-main {
  flex: 1;
  min-width: 0;
}

.event-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 100px; /* ajuste selon ton header */
}

.event-periods ul li{
	margin-bottom:0;
}

.event-registration-box,
.event-quicklinks {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.event-quicklinks ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-quicklinks a {
    color: #db4b03;
    font-weight: 600;
    text-decoration: none;
}

.event-quicklinks a:hover {
    text-decoration: underline;
}


@media screen and (min-width: 769px) {
	/* Contenu principal centré, largeur limitée */
	.page .entry-content,
	.single-event .entry-content {
		 max-width: 1210;   /* ajuste à ta convenance */
		 margin: 0 auto;     /* centre horizontalement */
		 padding: 0 20px;    /* petite respiration sur les côtés */
	}


}

/* Responsive : aside au-dessus du contenu */
@media screen and (max-width: 768px) {
  
.entry-content{
	margin:0;
	padding:0;
 }
  .event-layout {
    flex-direction: column; /* empile aside + contenu */
  }

  .event-sidebar {
    order:-1;
    width: 100%;
    margin: 0; /* espace dessous */
    position: static;   /* plus de sticky sur mobile */
  }

  .event-main {
    width: 100%;
  }
  
	.event-featured-image {
	  margin-left: calc(-50vw + 50%);  /* pousse vers la gauche */
	  margin-right: calc(-50vw + 50%); /* pousse vers la droite */
	  width: 100vw;                     /* prend la largeur de la fenêtre */
	  max-width: 100vw;
	}
}
/*************** FIN PAGE DETAIL EVENEMENT ****************/


/******* CODE COURT TEACHERS ************/
.event-teachers {
    display: grid;
    gap: 20px;
    margin-bottom:1em;
    
}
/* 1 teacher → 100% */
.event-teachers.count-1 {
    grid-template-columns: 1fr;
}

/* 2 teachers → 50% chacun */
.event-teachers.count-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3+ teachers → responsive */
.event-teachers.count-3,
.event-teachers.count-4,
.event-teachers.count-5,
.event-teachers.count-6 {
    grid-template-columns: 1fr; /* mobile par défaut */
}

@media (min-width: 600px) {
    .event-teachers.count-3,
    .event-teachers.count-4,
    .event-teachers.count-5,
    .event-teachers.count-6 {
        grid-template-columns: repeat(2, 1fr); /* tablette → 2 colonnes */
    }
}

@media (min-width: 1024px) {
    .event-teachers.count-3,
    .event-teachers.count-4,
    .event-teachers.count-5,
    .event-teachers.count-6 {
        grid-template-columns: repeat(3, 1fr); /* desktop → 3 colonnes */
    }
}

.event-teachers .detail .teacher-image{
	width:180px; height:180px;
}
.event-teachers .compact h4.teacher-name{
	font-size:1.2em;
	font-weight:normal;
}

/* Style des items */
.teacher-item {
    display: flex;
    gap: 25px;
}

/* Pour 3+ teachers : alignement centré */
.event-teachers.count-3 .teacher-item,
.event-teachers.count-4 .teacher-item,
.event-teachers.count-5 .teacher-item,
.event-teachers.count-6 .teacher-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/******** FIN CODE COURT TEACHERS ********/

/******** PAGE TEACHER **********/

/* Retirer le bandeau */
.single-teacher #Subheader {
    display: none !important;
}

.single-teacher #Content {
    margin-top: 0 !important; /* supprime l’espace laissé par le bandeau */
}


#single-teacher-page .teacher-content-wrap {
	display: flex;
	align-items: flex-start;
	gap: 30px;
}

#single-teacher-page .teacher-image {
	flex: 0 0 300px;
}

#single-teacher-page .teacher-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

#single-teacher-page .teacher-text {
	flex: 1;
}

#single-teacher-page .teacher-title {
	margin-top: 0;
}
#single-teacher-page h1{
 margin-bottom:0;
}
#single-teacher-page .teacher-fonction {
	color: #777;
	font-size: 1.2em;
	margin-bottom: 10px;
	font-weight: 400;
}
#single-teacher-page .events h2{
  border-top: 1px solid #eee;
  padding-top: 1em;
}

/* 📱 Responsive : image au-dessus du texte en mobile */
@media (max-width: 768px) {
	#single-teacher-page .teacher-content-wrap {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	#single-teacher-page .teacher-image {
		flex: none;
		margin-bottom: 20px;
		max-width: 80%;
	}
	#single-teacher-page .the_content_wrapper{
		margin:0 20px;
	}
}
/****** 03 décembre 2025 : enlever formatage titre ********/

.page h1{
	text-transform: uppercase;
}

/*
.single-event h1 {

}
.page h1{
	font-size:36px;
	text-transform: uppercase;
	font-weight:normal;
}
.page h2{
	font-size:28px;
}
.single-event h2 {
	font-size:30px; font-weight:normal;
}
.single-event h3 {
	font-size:24px;
}
*/

/* cache le bandeau titre (Subheader) sur single-event et single post*/
.single-event #Subheader, .page #Subheader { display: none !important; }
.single-event #Header_wrapper, .page #Header_wrapper { padding-bottom: 0; }

.single-event .section_wrapper,
.page .section_wrapper,
.single-teacher .section_wrapper{
	margin-bottom:50px;
}

/* Accordéons */
.wp-block-details {
  box-sizing: border-box;
  border: 1px solid #eee;
  margin: 0 0 0.5em 0;
}
.wp-block-details p{
	margin-left:1em;
}
.wp-block-details summary {
  background: #eee;
  margin: 0 0 0.2em 0;
  padding: 0.5em;
 }

/** page d'accueil catégories **/
.content_wrapper .filter_gallery img {
  max-width: 150px!important; margin:1em;
 }

 /* Couleur du texte pour les boutons de filtre (mobile + desktop) */
.event-filters .event-filter,
.event-filters .location-filter {
    color: #8a5c28 !important;   /* Mets ta couleur ici */
}

/* Si tu veux une couleur différente quand actif */
.event-filters .event-filter.active,
.event-filters .location-filter.active {
    color: #ffffff !important;
}

/* Correction spécifique mobile */
@media (max-width: 768px) {
    .event-filters .event-filter,
    .event-filters .location-filter {
        color: #8a5c28 !important;
    }
}

/* ————————
   EVENT FILTERS — Responsive mobile (max 768px)
   ———————— */
@media (max-width: 768px) {

    /* Conteneur en colonne */
    .event-filters .filter-buttons,
    .event-filters {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Chaque bouton = full width */
    .event-filters button.event-filter,
    .event-filters button.location-filter {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 58px !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: row !important;
        gap: 10px !important;

        font-size: 16px !important;
        line-height: 1.3em !important;
        padding: 14px 18px !important;

        white-space: normal !important;
        text-align: center !important;
    }

    /* Les icônes ne dépassent pas */
    .event-filters button img,
    .event-filters button svg {
        height: 28px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Pour les boutons "Tous les lieux" ou autres combinés */
    .filter-locations {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }
}

/* Tout titre h3 event sont capitalize */

.single-event h3 {
    text-transform: capitalize !important;
}

/* Taille image banière de 476 hauteur */

.page-featured-image img {
    height: 476px;
    width: 100%;
    object-fit: cover;
}

.event-featured-image img {
    height: 476px !important;
    width: 100%;
    object-fit: cover;
    display: block;
}



/* --------------------------------------------------------------------------
   Ancien code css dans l'interface betheme
-------------------------------------------------------------------------- */

.event-floating-box {
  border: 1px solid #ccc;
  padding: 20px;
  max-width: 260px;
  margin: 20px auto;
}
.event-floating-box .btn:hover {
  background-color: #a94e00;
}

.bq_wrapper {
  border-radius: 30px!important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05)!important;
}

/* Testimonial page accueil */

/* === Hover box, arrondis image === */
.hover_box_wrapper img.scale-with-grid {
border-radius: 16px !important;
display:block;
}

.hover_box_wrapper {
border-radius: 16px !important;
overflow: hidden;
}

/* === CONTENEUR PRINCIPAL DU SLIDER === */
.testimonial-slide {
  background: linear-gradient(135deg, #fff8f0, #fff);
  padding: 2rem 2.5rem;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 2rem auto;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

/* === TEXTE DU TÉMOIGNAGE === */
.testimonial-slide p {
  font-size: 1.25rem;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

/* === AUTEUR === */
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f4b400;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial-author-name {
  font-weight: 600;
  font-size: 1rem;
  color: #111;
}

/* === FLÈCHES DE NAVIGATION === */
.testimonial-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.testimonial-nav button {
  background: none;
  border: none;
  font-size: 2rem;
  color: #bbb;
  transition: all 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.testimonial-nav button:hover {
  color: #f4b400;
  transform: scale(1.2);
}

/* === BULLETS (si présents) === */
.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 8px;
}

.testimonial-dots span {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s ease;
}

.testimonial-dots span.active {
  background: #f4b400;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .testimonial-slide {
    padding: 1.5rem;
  }

  .testimonial-slide p {
    font-size: 1.1rem;
  }

  .testimonial-author img {
    width: 50px;
    height: 50px;
  }
}

.testimonial-wrapper {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

/* --------------------------------------------------
   Sticky header smooth + hide/show (Betheme Header Builder)
   À coller dans : Theme Options > Custom CSS 
   ou style.css du child theme
-------------------------------------------------- */

.mfn-header-sticky-section.mfn-sticky-on {
    padding: 5px 0 !important;
    transition: all .3s ease-in-out;
    background: rgba(0,0,0,0.9) !important;
}

.mfn-header-sticky-section.mfn-sticky-on img {
    max-height: 50px !important;
    width: auto !important;
    transition: all .3s ease-in-out;
}

.mfn-header-sticky-section img {
    max-height: 110px;
    width: auto;
    transition: all .3s ease-in-out;
}

/* --------------------------------------------------
   Card link
-------------------------------------------------- */
.ll-card {
    position: relative;
    width: 350px;
    height: 233px;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
}

/* IMAGE floue + obscure */
.ll-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.45);
    transition: filter 0.5s ease, transform 0.6s ease;
}

/* LAYER noir (derrière le voile blanc) */
.ll-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.252);
    transition: background 0.5s ease;
    z-index: 1;
}

/* LAYER blanc du hover */
.ll-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0); /* invisible au repos */
    transition: background 0.5s ease;
    z-index: 2;
}

/* CONTENT */
.ll-card-content {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    padding: 35px 20px 25px;
    pointer-events: none; /* whole card clickable */
}

/* TITRE — plus grand + plus fin */
.ll-card-title {
    font-size: 34px;
    font-weight: 500;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.5s ease, transform 0.5s ease;
}

/* BOUTON */
.ll-card-btn {
    pointer-events: auto;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 26px;
    border-radius: 30px;

    border: 2px solid #a8892f;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(2px);

    color: #a8892f;
    font-size: 15px;
    font-weight: 600;

    transition: all 0.45s ease;
}

/* ICÔNE PNG */
.ll-card-btn .btn-icon {
    width: 18px;
    height: auto;
    transition: filter 0.5s ease, opacity 0.5s ease;
    filter: brightness(1); /* doré */
}

/* ====================== HOVER ====================== */

.ll-card:hover img {
    filter: blur(0) brightness(1.15);
    transform: scale(1.02);
}

/* voile blanc */
.ll-card:hover::after {
    background: rgba(255, 255, 255, 0.66);
}

.ll-card:hover .ll-card-title {
    color: #a8892f;
    transform: translateY(-3px);
}

/* bouton hover */
.ll-card:hover .ll-card-btn {
    background: #a8892f;
    border-color: #a8892f;
    color: white;
    transform: translateY(3px);
    backdrop-filter: blur(0);
}

/* icône → blanc */
.ll-card:hover .btn-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Centrer la card */

/* Colonne Betheme transformée en conteneur FLEX */
.ll-card-wrapper {
    display: flex !important;
    justify-content: center;      /* centre peu importe 1, 2 ou 3 cards */
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;              /* passe automatiquement à la ligne si besoin */
}

/* Empêcher la carte de s’étirer */
.ll-card {
    flex: 0 0 auto;
}