
@import url('./composants/style-guide.css');
/* @import url('./composants/variables.css');
@import url('./composants/base.css');
@import url('./composants/layout.css');
@import url('./composants/components.css');
@import url('./composants/utils.css'); */

/* Gestion affichage contenu TinyMCE */
.article-content {
    font-size: 1rem;
    line-height: 1.6;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.article-content ul {
    padding-left: 1.5rem;
    list-style: disc;
}

.article-content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    color: #555;
    font-style: italic;
    margin: 1rem 0;
}


/* ----- Accueil Start ----- */

/* ----- Nav Start ----- */
.navbar {
    margin: 0px;
    padding: 0px;
    position: fixed;
    width: 100%;
    height: 90px;
    top: 0;
    z-index: 1030; /* Plus élevé pour rester au-dessus des autres éléments */
    /* overflow: hidden; */
  }
.logo-img {
    /* height: 100px; */
    width: 200px;
    padding-left: 1rem;
    object-fit: cover;
    object-position: center;
  }
  .nav-link {
    font-size: 1.1rem;
    /* color: #1735da; */
    color: var(--color-primary);
    transition: color 0.3s ease, transform 0.2s ease;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  
  .nav-link:hover {
    color: #198754; /* Vert Bootstrap */
    transform: translateY(-2px);
  }
  
  .navbar-nav .btn {
    font-size: 1.1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
  }
  
  @media (max-width: 991.98px) {
    .navbar-collapse {
      transition: max-height 0.3s ease-in-out;
    }
  }

  @media (max-width: 767px) {
    .navbar {
      position: fixed;
      width: 100%;
      height: auto;
      top: 0;
      z-index: 1030; /* Plus élevé pour rester au-dessus des autres éléments */
      overflow: hidden;
    }
    .logo-img {
      /* height: 100px; */
      margin: 0px;
      padding: 0px;
      width: 150px;
    }
    .navbar-collapse {
      justify-content: right;
    }
  }
  /* ----- Nav End ----- */

/* ----- Slider Start ----- */
.custom-slider {
  position: relative;
  width: 100%;
  /* height: 85vh; */
  /* height: auto; */
  /* aspect-ratio: 16 / 9; */
  overflow: hidden;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  margin-top: 90px;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

/* .slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 86, 179, 0.4);  bleu léger, ajuste l'opacité et la couleur 
  pointer-events: none;  Pour que le calque ne gêne pas les clics 
} */

.slide img {
  width: 100%;
  /* height: 100%;
  object-fit: cover;
  object-position: center; */
  display: block;
  filter: brightness(80%);
}

.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -80%);
  color: white;
  text-align: center;
  z-index: 2;
  width: 80%;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  z-index: 3;
  font-size: 20px;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  background-color: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: white;
}

@media (min-width: 991.98px) {
  .custom-slider {
    position: relative;
    width: 100%;
    height: 95vh; 
    /* height: auto; */
    /* aspect-ratio: 16 / 9; */
    overflow: hidden;
  }
  .slide img {
    width: 100%;
    height: auto;
    /* object-fit: contain; */
    object-fit: cover;
    object-position: center;
  }
}
@media (max-width: 991.98px) {
  .custom-slider {
      position: relative;
      width: 100%;
      /* height: 50vh; */
      height: 100%;
      overflow: hidden;
    }
    .slide img {
      width: 100%;
      /* height: 43vh; */
      /* aspect-ratio: 16 / 9;
      object-fit: hidden; */
    }
}
@media (max-width: 767px) {
  .caption {
    transform: translate(-50%, -50%);
  }
  .caption h1{
    font-size: 1.5rem;
    
  }
}
/* ----- Slider End ----- */

  /* ----- About section ----- */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ----- Temoignage section ----- */
.testimonials-section {
    padding: 20px 20px 60px;
    background-color: #f9f9f9;
    text-align: center;
    overflow: hidden;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
  }
  
  .testimonials-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
  }
  
  .testimonials-carousel {
    display: flex;
    width: max-content;
    animation: scroll-left 30s linear infinite;
  }
  
  .testimonial {
    min-width: 300px;
    max-width: 300px;
    margin: 0 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
  }
  
  .testimonials-wrapper:hover .testimonials-carousel {
    animation-play-state: paused;
  }
  
  @keyframes scroll-left {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* ----- Gallerie photp ----- */
  .galerie {
    padding: 20px 20px 60px;
    background-color: #f8f9fa;
    text-align: center;
  }
  
  .filters {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    border: 1px solid #007bff;
    background: none;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
  }
  
  .filter-btn:hover {
    background-color: #007bff;
    color: white;
  }
  
  .gallerie-slider {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    justify-content: center;
  }
  
  .img-slider {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .img-slider img {
    width: 100%;
    height: auto;
    display: block;
  }

  @media (max-width: 985px) {
    .gallerie-slider {
        justify-content: left;
      }
  }
  

  /* ----- Evénement à venir section ----- */
  .evenements {
    padding: 40px 20px;
    background-color: #f8f9fa;
    text-align: center;
  }
  
  .evenements h2 {
    margin-bottom: 20px;
  }
  
  .evenements-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    justify-content: center;
  }
  
  .event-slide {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: 300px;
  }
  
  .event-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .event-card h5 {
    margin-bottom: 10px;
    font-size: 20px;
  }
  
  .event-date {
    margin-bottom: 10px;
  }
  
  .event-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  

  @media (max-width: 985px) {
    .evenements-slider {
        justify-content: left;
      }
  }
  
  
  /* ----- Articles / Actualités section ----- */
  .actualites {
    padding: 20px 0 60px;
    background-color: #f8f9fa;
    text-align: center;
  }
  
  .actualites-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    justify-content: center;
  }
  
  .actu-slide {
    flex-shrink: 0;
    width: 300px;
    scroll-snap-align: start;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
  }
  
  .actu-card {
    padding: 15px;
  }
  
  .actu-card img {
    width: 100%;
    max-height: 250px;
    border-radius: 10px;
    object-fit: cover;
    object-position: top;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
  }
  
  .actu-card h5 {
    margin: 10px 0;
    font-size: 18px;
  }
  
  .actu-date {
    font-size: 14px;
    color: gray;
    margin-bottom: 10px;
  }
  
  .actu-description {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  @media (max-width: 985px) {
    .actualites-slider {
        justify-content: left;
      }
  }
  
  /* ----- Patenaires section ----- */
  #partenaires {
    padding: 10px 0 40px;
    background-color: #e9ecef;
  }
  
  .partenaires-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    scroll-behavior: smooth;
    justify-content: center;
    align-items: center;
  }
  
  .partenaire-slide {
    flex: 0 0 auto;
    width: 150px;
    background-color: rgb(219, 214, 214);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .partenaire-card img {
    width: 50px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  .widal-img {
    width: 500px !important;
  }
  
  @media (max-width: 985px) {
    .partenaires-slider {
        justify-content: left;
      }
  }
  /* ----- Contact rapide / Newsletter ----- */
  #contact-newsletter {
    margin-top: 20px;
    padding: 20px 0;
    background-color: #e9ecef;
  }
  
  .contact-form, .newsletter-form {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-form input, .contact-form textarea, .newsletter-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
  }
  
  /* .contact-form button, .newsletter-form button {
    padding: 12px 20px;
    border: none;
    /* background-color: #007bff; */
    /* background-color: #0056b3;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
  }  */
  
  .contact-form button:hover, .newsletter-form button:hover {
    background-color: #007bff;
  }


/* ----- Accueil End ----- */
/* ----------------------------------------------------------------------------------- */
  


/* ----- A propos Start ----- */

/* ----- Banner ----- */
.banner-text {
    opacity: 0;
    transform: translateY(50px); /* Part du bas */
    transition: all 3s ease;
}

.about-banner.loaded .banner-text {
    opacity: 1;
    transform: translateY(0); /* Remonte doucement à sa place */
}


/* ----- Historique ----- */
.historique {
    background-color: #f9f9f9;
    padding: 20px 0;
}

.historique .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Cela aligne le contenu en haut */
    gap: 20px;
}

.text {
    flex: 1;
}

.historique .image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image img {
    object-fit: cover;
    width: 100%;
    height: auto; /* L'image conserve son aspect tout en remplissant son conteneur */
    border-radius: 1rem;
}

.timeline-content {
    margin-bottom: 30px;
    border: 1px solid var(--color-primary);
    border-radius: 1rem;
    padding: 10px;
}

.timeline-date {
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
        align-items: center; /* Centrer verticalement sur les petits écrans */
    }

    .image img {
        width: 100%;
    }

    .title {
        font-size: 2rem;
    }
}

/* ----- Cadre legal ----- */
#cadre-legal .lead {
  font-size: 1.2rem;
  line-height: 1.6;
}

#cadre-legal .img-fluid {
  object-fit: cover;
  border-radius: 10px;
  height: 100%;
}

@media (max-width: 767px) {
  #cadre-legal .row {
    text-align: center;
  }

  #cadre-legal .lead {
    font-size: 1rem;
  }

  #cadre-legal .img-fluid {
    margin-top: 20px;
  }
}

/* ----- Vision ----- */
.vision {
    /* background-color: #e9f5f1; */
    padding: 20px 0;
}

.vision .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vision .content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.vision .image {
    flex: 1;
    display: flex;
    justify-content: center;
    
}

.vision .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    
}

.vision .text {
    flex: 2;
}

@media (max-width: 768px) {
    .vision .content {
        flex-direction: column;
        text-align: center;
    }

    .vision .image {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .title {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .vision .image img {
        max-width: 100%;
    }
}

/* ----- Mission & Valeur ----- */
#mission-valeurs .card {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  #mission-valeurs .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  
  #mission-valeurs .card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  
  .card-deck .card {
    margin-bottom: 30px;
  }
  
  @media (max-width: 767px) {
    .card-deck .card {
      margin-bottom: 20px;
    }
  }
  
  @media (max-width: 576px) {
    .card-deck {
      display: block;
    }
  }
  
  /* ----- Teams ----- */
  .team-card {
    border-radius: 10px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  
  .team-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
  }
  
  /* ----- Pourqioi nous choisir ----- */
  .choose-card {
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }
  .choose-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transform: translateY(-5px);
  }
  
  /* ----- CTA ----- */
  .cta-join-donate {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-primary) 100%);
    padding: 4rem 2rem;
    margin: 2rem 0;
  }

  .cta-btn {
    transition: all 0.3s ease;
    border-radius: 50px;
  }

  .cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
  }

  
  
/* ----- A propos End ----- */
/* ----------------------------------------------------------------------------------- */

/* ----- BackToTop btn Start ----- */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 15px;
    font-size: 20px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 1s ease, visibility 1s, background-color 0.5s ease, transform 0.5s ease;
    z-index: 9999;
}

#backToTop:hover {
    /* background-color: #145c3f; */
    background-color: #ffc107;
    color: rgb(0, 0, 0);
    transform: scale(1.05);
}
/* ----- BackToTop btn End ----- */