/*
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;
}

.page-id-7034 .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;
}

h3 {
  padding-top: 15px;
}


/* --- 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: 14px 18px;          /* plus généreux */
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 14px;         /* arrondi CTA clair */
    transition: all 0.25s ease;  /* transition plus propre */
}

.btn-register:hover {
    background: #e4692c; 
    color: #fff7e6;
    transform: translateY(-1px); /* micro feedback CTA */
}

.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 (responsive)
-------------------------------------------------- */

/* .ll-card-wrapper = colonne BeTheme => ne doit PAS devenir grid */
.ll-card-wrapper{
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  justify-content: initial !important;
  align-items: initial !important;
}

/* CARD : plus de width/height fixes -> fluide + bornée */
.ll-card{
  width: 100%;
  max-width: 420px;
  aspect-ratio: 350 / 233;
  border-radius: 25px;
  overflow: hidden;
}

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

/* LAYER noir (base) */
.ll-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    transition: background 0.55s ease;
    z-index: 1;
}

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

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

    display: flex;
    flex-direction: column;
    align-items: center;

    /* padding responsive */
    padding: clamp(18px, 2.2vw, 28px) clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px);

    pointer-events: none; /* whole card clickable */
}

/* Zone centrale (entre top et bouton) */
.ll-card-title-wrap {
    flex: 1;
    width: 100%;
    position: relative;
    text-align: center;
}

/* TITRE — centré */
.ll-card-title {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    /* typo responsive */
    font-size: clamp(18px, 1.9vw, 26px);
    font-weight: 500;
    color: white;
    letter-spacing: clamp(1px, 0.35vw, 2px);
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0;

    transition: color 0.55s ease, transform 0.65s ease, opacity 0.55s ease;
}

/* DESCRIPTION — centrée + anim d'entrée */
.ll-card-desc {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;

    margin: 0;
    padding: 0 clamp(10px, 1.6vw, 12px);

    /* typo responsive */
    font-size: clamp(14px, 1.25vw, 18px);
    line-height: 1.35;
    font-weight: 500;
    text-transform: none;
    color: rgba(0,0,0,0.88);
    text-align: center;

    opacity: 0;
    transform: translateY(calc(-50% + 12px)) scale(0.98);
    filter: blur(2px);

    transition:
        opacity 0.55s ease,
        transform 0.65s cubic-bezier(.2,.8,.2,1),
        filter 0.55s ease;
}

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

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    line-height: 1;
    white-space: nowrap;

    /* bouton responsive */
    min-height: clamp(42px, 4.2vw, 46px);
    padding: 0 clamp(18px, 2.2vw, 26px);

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

    color: #a8892f;
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 600;

    transition: transform 0.55s ease, background 0.55s ease, color 0.55s ease, border-color 0.55s ease;

    position: relative;
    z-index: 4;

    margin-top: auto;
}

.ll-card-btn span { line-height: 1; }

/* ICÔNE PNG */
.ll-card-btn .btn-icon {
    width: 16px;
    height: auto;
    transition: filter 0.55s ease;
    filter: brightness(1);
    flex: 0 0 auto;
}

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

.ll-card:hover > img {
    filter: blur(0) brightness(1.08);
    transform: scale(1.04);
}

.ll-card:hover::after {
    background: rgba(255, 255, 255, 0.72);
}

.ll-card:hover .ll-card-title {
    color: #a8892f;
    transform: translateY(calc(-50% - 26px));
    opacity: 0;
}

.ll-card:hover .ll-card-desc {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: blur(0);
}

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

.ll-card:hover .btn-icon {
    filter: brightness(0) invert(1);
}

/* Mobile : 1 colonne propre + card un peu plus haute */
@media (max-width: 600px) {
    .ll-card-wrapper {
        grid-template-columns: 1fr;
    }
    .ll-card {
        aspect-ratio: 350 / 245;
        border-radius: 22px;
    }
}

/* Accessibilité : focus clavier = mêmes effets que hover */
.ll-card-link {
    display: inline-block;
    border-radius: 25px;
    text-decoration: none !important;
    outline: none;
}
.ll-card-link:focus-visible {
    outline: 3px solid rgba(168,137,47,0.85);
    outline-offset: 4px;
}
.ll-card-link:focus-visible .ll-card > img {
    filter: blur(0) brightness(1.08);
    transform: scale(1.04);
}
.ll-card-link:focus-visible .ll-card::after { background: rgba(255,255,255,0.72); }
.ll-card-link:focus-visible .ll-card-title {
    color: #a8892f;
    transform: translateY(calc(-50% - 26px));
    opacity: 0;
}
.ll-card-link:focus-visible .ll-card-desc {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: blur(0);
}
.ll-card-link:focus-visible .ll-card-btn {
    background: #a8892f;
    border-color: #a8892f;
    color: white;
    backdrop-filter: blur(0);
}
.ll-card-link:focus-visible .btn-icon { filter: brightness(0) invert(1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ll-card > img,
    .ll-card::before,
    .ll-card::after,
    .ll-card-title,
    .ll-card-desc,
    .ll-card-btn,
    .ll-card-btn .btn-icon {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ==================================================
   SAFARI FIX — CLEAN (ll-cards)
   -> supprime les doublons, corrige les accolades
   -> enlève le fallback flex (trop risqué)
   -> corrige le “gris” en forçant la card à remplir la colonne
   À coller TOUT EN BAS (et remplace ton bloc actuel)
================================================== */

/* 0) Layout : la card remplit la colonne (plus de zones grises) */
.ll-card-link{
  display: block;
  width: 100%;
}

.ll-card{
  position: relative;      /* indispensable */
  display: block;
  width: 100%;
  max-width: 100% !important; /* <-- IMPORTANT : remplit la colonne */
  min-height: 233px;       /* sécurité Safari (évite card écrasée) */
  aspect-ratio: 350 / 233; /* ratio moderne */
}

/* L'image doit toujours remplir la card */
.ll-card > img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 1) Hover uniquement sur devices hover (évite hover collant iOS/Safari touch) */
@media (hover: hover) and (pointer: fine) {
  .ll-card:hover > img { filter: blur(0) brightness(1.08); transform: scale(1.04); }
  .ll-card:hover::after { background: rgba(255, 255, 255, 0.72); }
  .ll-card:hover .ll-card-title { color: #a8892f; transform: translateY(calc(-50% - 26px)); opacity: 0; }
  .ll-card:hover .ll-card-desc { opacity: 1; transform: translateY(-50%) scale(1); filter: blur(0); }
  .ll-card:hover .ll-card-btn { background: #a8892f; border-color: #a8892f; color: #fff; backdrop-filter: blur(0); }
  .ll-card:hover .btn-icon { filter: brightness(0) invert(1); }
}

/* 2) Safari : stabilise le rendu blur/radius/overflow (sans casser le layout) */
@supports (-webkit-touch-callout: none) {
  .ll-card{
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
  }

  .ll-card > img{
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, filter;
  }

  .ll-card::before,
  .ll-card::after{
    pointer-events: none;
  }
}

/* 3) IMPORTANT : on NE met PAS le fallback flex BeTheme ici.
   Il a déjà cassé ton affichage. On le refera ciblé si besoin. */

/* H3 : padding partout */
h3 {
  padding-top: 12px;
}

/* Exclure les cards Lerab Ling */
.ll-card h3,
.ll-cards h3,
.ll-card-title {
  padding-top: 0 !important;
}

.job-offer .post-meta,
.job-offer .post-meta.clearfix,
.job-offer .post-meta::before,
.job-offer .post-meta::after {
  display: none !important;
}

/* ===============================
   JOB OFFER – Blog cards only
   =============================== */

/* Cadre image : taille uniforme */
.job-offer .posts_group.lm_wrapper.grid
.post-photo-wrapper .image_wrapper,
.job-offer .posts_group.lm_wrapper.grid
.post-photo-wrapper .image_wrapper a {
  display: block;
  height: 180px;          /* ajuste si besoin */
  overflow: hidden;
  border-radius: 12px;
}

/* Image recadrée proprement */
.job-offer .posts_group.lm_wrapper.grid
.post-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card globale */
.job-offer .posts_group.lm_wrapper.grid .post-item {
  border-radius: 14px;
  overflow: hidden;
}

/* Bloc texte plus aéré */
.job-offer .posts_group.lm_wrapper.grid .post-desc-wrapper {
  padding-top: 12px;
}

/* Ombre douce (optionnel mais propre) */
.job-offer .posts_group.lm_wrapper.grid
.post-desc-wrapper,
.job-offer .posts_group.lm_wrapper.grid
.image_frame {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ===============================
   Rigpa popup (global) 
 =============================== */
#overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99998;
}

.login-container{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;

  width: min(720px, 92vw);
  max-height: 90vh;
  overflow: auto;

  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0,0,0,.35);

  /* espace en haut pour que la croix ne bouffe pas le texte */
  padding: 56px 22px 18px;
}

.login-container .close-btn{
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;

  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;

  /* ✅ or comme avant */
  background: #b4b083;
  color: #fff;
}

.login-container .close-btn:hover{
  filter: brightness(0.95);
}

.login-container .form-table{
  width: 100%;
  border-collapse: collapse;
}

.login-container .form-table td{
  padding: 10px 8px;
  vertical-align: middle;
}

.login-container input[type="email"],
.login-container input[type="password"]{
  width: 100%;
  box-sizing: border-box;
}

/* Language switcher - uniform pills */
li.lang-item > a.mfn-menu-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Le “wrapper” autour du drapeau (même si WP met un style inline, on force ici) */
li.lang-item > a .label-wrapper{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: 6px 4px !important;
  border-radius: 999px !important;

  background: transparent !important;
  border: 1px solid rgba(255,255,255,.75);
  line-height: 1;
}

/* Drapeau */
li.lang-item > a .label-wrapper img{
  display: block;
  width: 18px !important;
  height: auto !important;
}

/* Hover */
li.lang-item:hover > a .label-wrapper{
  background: rgba(255,255,255,.18) !important;
}

/* Langue active */
li.lang-item.current-lang > a .label-wrapper{
  background: #f0dfbd !important;      /* ton “or” */
  border-color: #f0dfbd;
}