@import "variables.css";

.elementor-231 .elementor-element.elementor-element-3ee6ed6 {
  background-color: var(--couleur-principale-logo) !important;
}

.elementor-231 .elementor-element.elementor-element-c7ffb5f {
  background-color: var(--couleur-accentuation-logo) !important;
}

.elementor-9 .elementor-element.elementor-element-42f37a1 .elementor-button {
  background-color: var(--couleur-principale-logo) !important;
}

.elementor-9 .elementor-element.elementor-element-f0b523f .elementor-button {
  background-color: var(--couleur-principale-logo) !important;
}

.elementor-9
  .elementor-element.elementor-element-4af520c
  .elementor-button:hover,
.elementor-9
  .elementor-element.elementor-element-c39e7cf
  .elementor-button:hover,
.elementor-9
  .elementor-element.elementor-element-034ccf9
  .elementor-button:hover,
.elementor-9
  .elementor-element.elementor-element-4af520c
  .elementor-button:focus,
.elementor-9
  .elementor-element.elementor-element-c39e7cf
  .elementor-button:focus,
.elementor-9
  .elementor-element.elementor-element-034ccf9
  .elementor-button:focus {
  color: white !important;
}

.elementor-9 .elementor-element.elementor-element-c39e7cf .elementor-button,
.elementor-9 .elementor-element.elementor-element-4af520c .elementor-button,
.elementor-9 .elementor-element.elementor-element-034ccf9 .elementor-button {
  fill: var(--couleur-principale-logo) !important;
  color: var(--couleur-principale-logo) !important;
}

.elementor-231
  .elementor-element.elementor-element-c7ffb5f
  > .elementor-widget-container {
  background-color: transparent !important;
}

.elementor-widget-heading .elementor-heading-title {
  color: white !important;
}

.elementor-9
  .elementor-element.elementor-element-278125d
  .elementor-counter-number-wrapper {
  color: var(--couleur-accentuation-logo) !important;
}

/* Swiper container */
.swiper-container {
  width: 100%;
  height: 60vh;
  position: relative;
}

/* Slides */
.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenu des slides */
.slide-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
  z-index: 2; /* Pour s'assurer que le contenu est au-dessus de l'image de fond */
}

.slide-content h1 {
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 40px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.slide-content p {
  font-family: "Agrandir", sans-serif;
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.slide-content .button {
  font-family: "Agrandir Narrow", sans-serif;
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--couleur-secondaire-logo);
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: background-color 0.3s;
}

.slide-content .button:hover {
  background-color: rgba(255, 99, 71, 0.8);
}

/* Images de fond pour chaque slide */
.slide1 {
  background-image: url("wp-content/uploads/2021/images/IMG-20240920-WA0028.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide2 {
  background-image: url("wp-content/uploads/2021/images/a_propos_2-scaled.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide3 {
  background-image: url("wp-content/uploads/2021/images/img_4.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Flèches de navigation */

/* Supprimer les flèches par défaut de Swiper */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

/* Flèches de navigation personnalisées */
.swiper-button-next,
.swiper-button-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-sizing: border-box; /* Inclure le padding et la bordure dans la taille totale */
  padding: 0; /* Éviter tout padding qui pourrait déformer le cercle */
  margin: 0;
}

.swiper-button-next {
  right: 15px;
}

.swiper-button-prev {
  left: 15px;
}

.swiper-button-next i,
.swiper-button-prev i {
  color: #fff; /* Couleur de l'icône */
  font-size: 25px; /* Taille de l'icône */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #007520; /* Fond vert opaque au survol */
}

/* Pagination */

.swiper-pagination {
  position: absolute;
  bottom: 10px; /* Ajuste la distance par rapport au bas de la slide */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10; /* Pour s'assurer que les bullet points restent au-dessus du contenu */
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  width: 12px;
  height: 12px;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #ff7f50;
}

/* Overlay pour assombrir l'image de fond et améliorer la lisibilité du texte */
.swiper-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .slide-content h1 {
    font-size: 32px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .slide-content .button {
    padding: 10px 20px;
  }
}

/* Réinitialiser l'opacité des éléments */
.swiper-slide .slide-content > * {
  opacity: 0;
}

/* Animer le titre */
.swiper-slide-active .slide-content h1 {
  animation: slideInTitle 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

/* Animer la description */
.swiper-slide-active .slide-content p {
  animation: slideInDescription 1.5s ease-out forwards;
  animation-delay: 0.6s;
}

/* Animer le bouton */
.swiper-slide-active .slide-content .button {
  animation: zoomInButton 1.5s ease-out forwards;
  animation-delay: 0.9s;
}

/* Réinitialiser l'opacité des éléments lorsqu'ils ne sont plus actifs */
.swiper-slide:not(.swiper-slide-active) .slide-content > * {
  opacity: 0;
}

/* ****************************** */

/* Conteneur principal de la section */
.section-changement {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px;
  background: #f4f4f9;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Première colonne : Texte */
.text-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

/* Titre principal */
.section-title {
  font-family: "Agrandir Text Bold", sans-serif; /* Appliquer Agrandir Text Bold */
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
}

/* Citation */
.section-quote {
  font-family: "Agrandir Narrow", sans-serif; /* Appliquer Agrandir Narrow */
  font-size: 18px;
  color: #555;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
  border-left: 4px solid #3498db;
}

.section-quote span {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #777;
}

/* Description du texte */
.section-description {
  font-family: "Agrandir", sans-serif; /* Appliquer Agrandir Regular */
  font-size: 16px;
  color: #34495e;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Boutons */
.button-group {
  display: flex;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  font-family: "Agrandir Narrow", sans-serif; /* Appliquer Agrandir Narrow pour les boutons */
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--couleur-principale-logo);
  color: #fff !important;
}

.btn-primary:hover {
  background-color: var(--couleur-principale-logo);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--couleur-accentuation-logo);
  color: #fff !important;
}

.btn-secondary:hover {
  background-color: var(--couleur-accentuation-logo);
  transform: translateY(-2px);
}

/* Deuxième colonne : Vidéo */
.gallery-column {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slider d'images */
.image-slider {
  position: relative;
  width: 100%;
  max-width: 600px; /* Agrandir la taille du slider */
  height: 350px; /* Agrandir la hauteur du slider */
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Images */
.image-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* Pagination dots */
.pagination-dots {
  position: absolute;
  bottom: 20px; /* Place les dots à 20px du bas de l'image */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10; /* S'assurer que les dots sont au-dessus des images */
}

.pagination-dots .dot {
  width: 8px;
  height: 8px;
  background-color: rgba(
    255,
    255,
    255,
    0.7
  ); /* Couleur semi-transparente pour visibilité */
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination-dots .dot.active {
  background-color: #3498db; /* Couleur pour le dot actif */
}

/* Section Actualités */
.news-section {
  padding: 40px;
  background: #f9f9fb;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-width: 1400px; /* Augmente la largeur maximale pour contenir plus d'espace */
  margin: 40px auto; /* Garde la section centrée */
}

.news-title {
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 32px;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}

/* Grille pour les articles avec des cards plus larges */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Ajuste pour quatre colonnes */
  gap: 40px; /* Espacement augmenté entre les cards */
  width: 95%; /* Prend presque toute la largeur du conteneur */
  margin: 0 auto; /* Centrer la grille dans la section */
}

/* Card d'actualité */
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-image img {
  width: 100%;
  height: 200px; /* Ajusté pour s'adapter à la largeur augmentée */
  object-fit: cover;
}

/* Contenu de l'article */
.article-content {
  padding: 15px;
}

.article-date {
  font-family: "Agrandir Narrow", sans-serif;
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 5px;
}

.article-heading {
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.article-summary {
  font-family: "Agrandir", sans-serif;
  font-size: 14px;
  color: #34495e;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Bouton Lire la suite */
.read-more-btn {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid #3498db;
  border-radius: 25px;
  color: #3498db;
  font-family: "Agrandir Narrow", sans-serif;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: #3498db;
  color: #fff;
}

/* Styles pour les cards vides */
.news-card.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f9;
  border: 2px dashed #ddd;
  color: #7f8c8d;
  font-family: "Agrandir Narrow", sans-serif;
}

.placeholder {
  text-align: center;
  font-size: 14px;
}

/* Page Complète de l'Article */
.article-page {
  padding: 40px;
  max-width: 1000px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.article-header {
  text-align: center;
  margin-bottom: 30px;
}

.header-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 20px;
}

.article-title {
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.article-date {
  font-family: "Agrandir Narrow", sans-serif;
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 30px;
}

.article-body {
  font-family: "Agrandir", sans-serif;
  font-size: 16px;
  color: #34495e;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 20px;
}

h2 {
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 24px;
  color: #2c3e50;
  margin-top: 30px;
  margin-bottom: 15px;
}

.quote {
  font-family: "Agrandir Narrow", sans-serif;
  font-size: 16px;
  font-style: italic;
  color: #7f8c8d;
  margin: 20px 0;
  padding-left: 20px;
  border-left: 4px solid var(--couleur-principale-logo);
}

.quote span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

.article-image-large {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.infographic {
  text-align: center;
  margin: 30px 0;
}

.infographic img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.infographic-caption {
  font-size: 14px;
  color: #7f8c8d;
  margin-top: 10px;
}

/* Section CTA Faire un Don */
.cta-donate {
  margin: 30px 0;
  padding: 20px;
  background: #f4f9ff;
  border-left: 5px solid var(--couleur-principale-logo);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.cta-donate h2 {
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.cta-donate p {
  font-family: "Agrandir", sans-serif;
  font-size: 16px;
  color: #34495e;
  margin-bottom: 20px;
}

.donate-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--couleur-principale-logo);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-family: "Agrandir Narrow", sans-serif;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.donate-btn:hover {
  background: var(--couleur-accentuation-logo);
  transform: translateY(-3px);
}

.video-container {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Boutons de partage sur les réseaux sociaux */
.social-share {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  justify-content: center;
}

.social-btn {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-family: "Agrandir Narrow", sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  color: #fff;
}

.facebook {
  background: #3b5998;
}

.twitter {
  background: #1da1f2;
}

.linkedin {
  background: #0077b5;
}

.social-btn:hover {
  opacity: 0.8;
}

/* Section de commentaires */
.comments-section {
  margin-top: 40px;
}

.comments-section h3 {
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  resize: vertical;
  font-family: "Agrandir", sans-serif;
  font-size: 14px;
}

.comment-btn {
  align-self: flex-start;
  padding: 8px 16px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Agrandir Narrow", sans-serif;
  transition: background-color 0.3s ease;
}

.comment-btn:hover {
  background: #2980b9;
}

.comment {
  margin-top: 20px;
  padding: 15px;
  background: #f4f4f9;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

/* Bouton Retour */
.back-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--couleur-accentuation-logo);
  border-radius: 25px;
  color: var(--couleur-accentuation-logo);
  font-family: "Agrandir Narrow", sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.back-btn:hover {
  background: var(--couleur-accentuation-logo);
  color: #fff;
}

/* Section Témoignages */
.testimonials-section {
  /* padding: 60px 20px; */
  /* background: #f9f9fb; */
  /* border-radius: 10px; */
  /* max-width: 1200px; */
  margin: 0px auto;
  text-align: center;
}

.testimonials-title {
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 40px;
}

/* Grille de témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card de Témoignage */
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Avatar Témoignage */
.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #3498db;
}

/* Nom Témoignage */
.testimonial-name {
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Texte Témoignage */
.testimonial-text {
  font-family: "Agrandir", sans-serif;
  font-size: 14px;
  color: #34495e;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr); /* Deux colonnes sur les tablettes */
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr; /* Une seule colonne sur les mobiles */
  }
}

.elementor-236
  .elementor-element.elementor-element-9412da4:not(
    .elementor-motion-effects-element-type-background
  ),
.elementor-236
  .elementor-element.elementor-element-9412da4
  > .elementor-motion-effects-container
  > .elementor-motion-effects-layer {
  background-color: var(--couleur-principale-logo) !important;
}

/* Cacher les sous-menus par défaut */
.sub-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  padding: 10px;
  z-index: 1000;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap; /* Empêche le texte de se couper et fait en sorte que le cadre s'ajuste à la taille du texte */
  min-width: 200px; /* Valeur optionnelle pour définir une largeur minimale du sous-menu */
}

/* Afficher le sous-menu au survol de l'élément parent */
.menu-item:hover .sub-menu,
.menu-item:focus-within .sub-menu {
  display: block;
}

/* Styliser les éléments du sous-menu */
.sub-menu li {
  list-style: none;
  margin-bottom: 10px;
  white-space: nowrap; /* Garde le texte sur une seule ligne, forçant le cadre à s'ajuster */
}

/* Ajouter des styles aux liens du sous-menu pour qu'ils s'affichent correctement dans le cadre */
.sub-menu a {
  text-decoration: none;
  color: #333;
  padding: 5px 10px;
  display: block;
  white-space: nowrap; /* Empêche le texte de se couper sur plusieurs lignes */
  width: 100%; /* Assure que l'élément lien prend toute la largeur de l'élément */
}

/* Ajout d'un effet de survol sur les liens */
.sub-menu a:hover {
  background-color: #f5f5f5;
}

/* S'assurer que les sous-menus sont alignés sous l'élément parent */
.menu-item {
  position: relative;
  white-space: nowrap; /* Évite que le texte déborde hors du cadre */
}

.elementor-widget-nav-menu
  .elementor-nav-menu--main:not(.e--pointer-framed)
  .elementor-item:before,
.elementor-widget-nav-menu
  .elementor-nav-menu--main:not(.e--pointer-framed)
  .elementor-item:after {
  background-color: var(--couleur-principale-logo) !important;
}

.elementor-231
  .elementor-element.elementor-element-9550d6b
  .elementor-nav-menu--dropdown
  a:hover,
.elementor-231
  .elementor-element.elementor-element-9550d6b
  .elementor-nav-menu--dropdown
  a.elementor-item-active,
.elementor-231
  .elementor-element.elementor-element-9550d6b
  .elementor-nav-menu--dropdown
  a.highlighted {
  background-color: var(--couleur-principale-logo) !important;
}

/* Styles de base pour cacher le menu mobile */
.mobile-header,
.mobile-menu-toggle,
.mobile-nav,
.mobile-menu-overlay {
  display: none !important;
}

/* Styles pour afficher le menu mobile uniquement en dessous de 1024px */
@media screen and (max-width: 1024px) {
  .mobile-header {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-toggle {
    display: block !important;
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: white;
    z-index: 9998;
    overflow-y: auto;
  }

  .mobile-nav.active {
    display: block !important;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
  }

  .mobile-menu-overlay.active {
    display: block !important;
  }

  /* Cacher le menu desktop en mode mobile */
  .elementor-nav-menu--main {
    display: none !important;
  }
}

/* Styles du menu hamburger */
.mobile-menu-toggle {
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  z-index: 10000;
  display: none; /* Caché par défaut */
}

.mobile-menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--couleur-principale-logo);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 20px;
}

/* Animation du burger en X quand il est actif */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

@media screen and (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block; /* Afficher en mode mobile/tablette */
  }
}

/* Overlay pour le menu mobile */
.mobile-menu-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Styles pour les sous-menus mobiles */
.mobile-nav .sub-menu {
  display: none;
  background: #f8f8f8;
  padding-left: 20px;
  position: static;
  box-shadow: none;
  width: 100%;
}

.mobile-nav .menu-item-has-children > a::after {
  content: "+";
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease;
}

.mobile-nav .menu-item-has-children.active > a::after {
  transform: rotate(45deg);
}

.mobile-nav .menu-item-has-children.active .sub-menu {
  display: block;
}

/* Styles de navigation mobile */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 70px);
  background: white;
  z-index: 9999;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  display: none;
}

.mobile-nav.active {
  left: 0;
  display: block;
}

/* Amélioration de l'apparence des liens du menu */
.mobile-nav a {
  padding: 15px 20px;
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
  background-color: #f5f5f5;
}

/* Style amélioré pour le bouton Faire un don */
.mobile-nav .mobile-donate-btn {
  background: var(--couleur-principale-logo);
  color: white !important;
  margin: 15px 20px;
  text-align: center;
  border-radius: 25px;
  padding: 12px 25px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.mobile-nav .mobile-donate-btn:hover {
  background: var(--couleur-accentuation-logo);
}

/* Styles pour le menu mobile */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 70px);
  background: white;
  z-index: 9999;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  left: 0;
}

/* Style des éléments du menu */
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.mobile-nav li {
  margin: 0;
}

.mobile-nav a {
  padding: 15px 20px;
  font-size: 16px;
  border-bottom: 1px solid #eee;
}

/* Style pour le bouton hamburger */
.mobile-menu-toggle {
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  z-index: 10000;
}

/* Overlay du menu */
.mobile-menu-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Styles spécifiques pour le menu mobile en mode tablette/mobile */
@media screen and (max-width: 1024px) {
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10000;
  }

  /* Logo mobile */
  .mobile-header .site-logo img {
    height: 45px;
    width: auto;
  }

  /* Menu hamburger */
  .mobile-menu-toggle {
    width: 30px;
    height: 25px;
    margin-left: 15px;
  }

  /* Navigation mobile */
  .mobile-nav {
    top: 70px;
    height: calc(100vh - 70px);
    padding: 0;
    background: white;
  }

  /* Liste du menu */
  .mobile-nav ul {
    padding: 10px 0;
  }

  .mobile-nav li {
    margin: 0;
  }

  .mobile-nav a {
    padding: 15px 20px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
  }

  /* Sous-menus */
  .mobile-nav .sub-menu {
    background: #f8f8f8;
  }

  .mobile-nav .sub-menu a {
    padding-left: 35px;
  }

  /* Bouton Faire un don */
  .mobile-nav .mobile-donate-btn {
    margin: 15px 20px;
    padding: 12px 25px;
    font-weight: 600;
  }

  /* Overlay */
  .mobile-menu-overlay {
    top: 70px;
    height: calc(100vh - 70px);
  }

  /* Ajustement du contenu principal */
  body {
    padding-top: 60px;
  }

  .elementor-location-header {
    margin-top: 0;
  }
}

/* Ajustements pour mobile (<768px) */
@media screen and (max-width: 768px) {
  .mobile-header {
    height: 60px;
  }

  .mobile-header .site-logo img {
    height: 40px;
  }

  .mobile-nav {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .mobile-menu-overlay {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .mobile-nav a {
    padding: 12px 20px;
    font-size: 15px;
  }

  body {
    padding-top: 60px;
  }
}

/* S'assurer que le menu desktop reste intact */
@media screen and (min-width: 1025px) {
  .mobile-header,
  .mobile-nav,
  .mobile-menu-toggle,
  .mobile-menu-overlay {
    display: none !important;
  }

  body {
    padding-top: 0;
  }
}

/* Styles responsive pour la section des cards */
@media screen and (max-width: 1024px) {
  /* Ajustements pour tablettes */
  .elementor-section-full_width .elementor-container {
    padding: 0 15px;
  }

  .elementor-column.elementor-col-33 {
    padding: 15px;
  }

  /* Réduire la taille des icônes */
  .fa-5x {
    font-size: 3.5em !important;
  }

  /* Ajuster les titres */
  .elementor-heading-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  /* Ajuster le texte */
  .elementor-widget-text-editor p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Ajuster les boutons */
  .elementor-button.elementor-size-xs {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media screen and (max-width: 768px) {
  /* Ajustements pour mobile */
  .elementor-section-full_width .elementor-container {
    padding: 0 10px;
  }

  .elementor-column.elementor-col-33 {
    padding: 10px;
  }

  /* Réduire davantage les icônes */
  .fa-5x {
    font-size: 3em !important;
  }

  /* Réduire les titres */
  .elementor-heading-title {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  /* Optimiser l'espacement du texte */
  .elementor-widget-text-editor p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
  }

  /* Ajuster les marges des cards */
  .elementor-widget-wrap.elementor-element-populated {
    padding: 15px !important;
    margin-bottom: 15px;
  }

  /* Améliorer la lisibilité des boutons */
  .elementor-button.elementor-size-xs {
    padding: 8px 15px;
    font-size: 12px;
  }

  /* Forcer l'affichage en une colonne */
  .elementor-container .elementor-column.elementor-col-33 {
    width: 100% !important;
  }
}

/* Assurer que les styles desktop restent intacts */
@media screen and (min-width: 1025px) {
  .elementor-column.elementor-col-33 {
    width: 33.333% !important;
  }

  .elementor-widget-wrap.elementor-element-populated {
    padding: 20px;
  }
}

/* Section FAQ */
.faq-section {
  background-color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #f9f9fb;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--couleur-principale-logo);
  color: #fff;
}

.faq-question h3 {
  margin: 0;
  font-size: 20px;
}

.toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  padding: 0 20px;
  background-color: #ecf0f1;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 20px;
}

.faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #34495e;
}

.faq-answer ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
}

/* Styles spécifiques pour la page FAQ */
.elementor-2263 .elementor-element.elementor-element-f69fc08 {
  padding: 0 !important;
}

.elementor-2263
  .elementor-element.elementor-element-da7edc2
  > .elementor-background-overlay {
  background-color: #3498db !important;
}

/* Ajustements responsives pour la FAQ */
@media (max-width: 768px) {
  .faq-question h3 {
    font-size: 18px;
  }

  .toggle-icon {
    font-size: 16px;
  }

  .faq-section {
    padding: 40px 15px;
  }
}

/* Styles pour les titres des pages avec fond bleu */
.elementor-section-stretched .elementor-heading-title {
  color: white !important; /* Forcer la couleur blanche */
}

/* Plus spécifiquement pour FAQ et Galerie */
.elementor-element-da7edc2 .elementor-heading-title,
.elementor-element-a50b2cd .elementor-heading-title {
  color: white !important;
}

/* S'assurer que la règle précédente pour la couleur principale ne s'applique pas */
.elementor-widget-heading .elementor-heading-title {
  color: white !important;
}

/* Styles pour le menu desktop */
.elementor-nav-menu--main {
  z-index: 1000;
  position: relative;
}

/* S'assurer que les liens sont cliquables */
.elementor-nav-menu--main .elementor-nav-menu > li > a {
  position: relative;
  z-index: 1001;
  pointer-events: auto;
}

/* Correction des sous-menus */
.elementor-nav-menu--main .elementor-nav-menu .sub-menu {
  z-index: 1002;
  pointer-events: auto;
}

/* Ajuster le z-index du menu mobile pour ne pas interférer avec le desktop */
@media screen and (max-width: 1024px) {
  .mobile-header {
    z-index: 9999;
  }

  .mobile-nav {
    z-index: 9998;
  }

  .mobile-menu-overlay {
    z-index: 9997;
  }
}

/* Styles de base pour le menu mobile */
.mobile-header,
.mobile-menu-toggle,
.mobile-nav,
.mobile-menu-overlay {
  display: none !important;
}

/* Styles pour mobile et tablette */
@media screen and (max-width: 1024px) {
  /* Cacher le menu desktop */
  .elementor-nav-menu--main,
  .elementor-section-stretched.elementor-hidden-mobile {
    display: none !important;
  }

  /* Afficher le menu mobile */
  .mobile-header {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-toggle {
    display: block !important;
    cursor: pointer;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: white;
    z-index: 9998;
    overflow-y: auto;
    padding: 20px 0;
  }

  .mobile-nav.active {
    display: block !important;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
  }

  .mobile-menu-overlay.active {
    display: block !important;
  }

  /* Ajuster le contenu pour le header fixe */
  body {
    padding-top: 60px;
  }

  /* Styles pour les sous-menus mobiles */
  .mobile-nav .sub-menu {
    display: none;
    padding-left: 20px;
  }

  .mobile-nav .menu-item-has-children.active > .sub-menu {
    display: block;
  }

  /* Ajustements pour les éléments Elementor en mobile */
  .elementor-section-stretched {
    width: 100% !important;
    left: 0 !important;
  }
}

/* Ajustements spécifiques pour les très petits écrans */
@media screen and (max-width: 480px) {
  .mobile-header {
    height: 50px;
  }

  .mobile-nav {
    top: 50px;
    height: calc(100vh - 50px);
  }

  body {
    padding-top: 50px;
  }
}

/* S'assurer que le menu desktop est complètement caché en mobile */
@media screen and (max-width: 1024px) {
  .elementor-nav-menu--main {
    display: none !important;
  }
}

/* S'assurer que le menu mobile est complètement caché en desktop */
@media screen and (min-width: 1025px) {
  .mobile-header,
  .mobile-nav,
  .mobile-menu-overlay {
    display: none !important;
  }

  /* Réactiver les événements de clic sur desktop */
  .elementor-nav-menu--main,
  .elementor-nav-menu--main .elementor-nav-menu,
  .elementor-nav-menu--main .elementor-nav-menu > li,
  .elementor-nav-menu--main .elementor-nav-menu > li > a {
    pointer-events: auto !important;
  }
}

/* Styles spécifiques pour la galerie */
.gallery-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  width: 100%;
  max-width: 1200px; /* Limiter la largeur maximale */
  margin: 0 auto; /* Centrer la section */
}

.gallery-container {
  max-width: 1000px; /* Réduire la largeur maximale du conteneur */
  margin: 0 auto;
  padding: 0 15px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  padding: 8px 20px;
  border: none;
  background-color: #fff;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button.active {
  background-color: var(--couleur-principale-logo);
  color: #fff;
}

#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
  max-width: 1000px; /* Limiter la largeur de la grille */
  margin: 0 auto; /* Centrer la grille */
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1; /* Maintenir un ratio carré */
}

.grid-item img {
  width: 100%;
  height: 100%; /* Utiliser toute la hauteur du conteneur */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

/* Responsive pour la galerie */
@media (max-width: 1024px) {
  .gallery-section,
  .gallery-container,
  #gallery-grid {
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .gallery-section,
  .gallery-container,
  #gallery-grid {
    max-width: 600px;
    padding: 0 10px;
  }

  #gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
}

/* Styles spécifiques pour la page mengang */
.elementor-2264
  .elementor-element.elementor-element-da7edc2
  > .elementor-background-overlay {
  background-color: #3498db !important;
}

.elementor-2264 .elementor-element.elementor-element-f69fc08 {
  padding: 0 !important;
}

/* Style global pour la page mengang */
.village-title {
  text-align: center;
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 36px;
  color: #2c3e50;
  margin-top: 30px;
}

.village-description {
  text-align: center;
  font-size: 18px;
  color: #34495e;
  margin-bottom: 50px;
}

/* Galerie des villages */
.villages-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 50px;
  margin: 40px auto;
  max-width: 1400px;
}

.village-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.village-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.village-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.village-card:hover .village-image {
  transform: scale(1.05);
}

.village-text {
  padding: 20px;
  text-align: center;
  background-color: #fff;
}

.village-text h2 {
  font-family: "Agrandir Text Bold", sans-serif;
  font-size: 18px;
  color: var(--couleur-principale-logo);
  margin-bottom: 10px;
}

.village-text p {
  font-family: "Agrandir", sans-serif;
  font-size: 14px;
  color: #34495e;
  line-height: 1.5;
}

/* Responsive pour la galerie des villages */
@media (max-width: 1200px) {
  .villages-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .villages-gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }

  .village-image {
    height: 200px;
  }

  .village-text {
    padding: 15px;
  }

  .village-text h2 {
    font-size: 16px;
  }

  .village-text p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .villages-gallery {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .village-image {
    height: 220px;
  }

  .village-title {
    font-size: 28px;
  }

  .village-description {
    font-size: 16px;
  }
}

/* Styles spécifiques pour la page mengang - Animation des images */
.before-section,
.after-section {
  margin: 40px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-icon {
  font-size: 20px;
  color: var(--couleur-principale-logo);
}

.image-scroll-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px;
  margin: 20px 0;
  background-color: #fff;
  z-index: 1;
}

.images-wrapper {
  position: absolute;
  display: flex;
  gap: 15px;
  height: 100%;
  padding: 0;
  will-change: transform;
  background-color: #fff;
  z-index: 2;
  left: 0;
  white-space: nowrap;
}

/* Masquer les clones superflus */
.images-wrapper .images-wrapper {
  display: none !important;
}

.images-wrapper img {
  height: 280px;
  max-width: 420px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

/* Modifier l'animation pour éviter les superpositions */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 7.5px));
  }
}

#images-wrapper-avant,
#images-wrapper-apres {
  display: flex;
  animation: scrollLeft 60s linear infinite;
  transform-origin: left center;
}

/* Responsive */
@media (max-width: 768px) {
  .image-scroll-container {
    height: 220px;
  }

  .images-wrapper img {
    height: 200px;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .image-scroll-container {
    height: 180px;
  }

  .images-wrapper img {
    height: 160px;
    max-width: 240px;
  }
}
