.section-procar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

.card {
  background: white;

  width: 250px;
  padding: 30px 20px;
  border-radius: 15px !important;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.card img {
  width: 80px;
  margin: 0 auto 20px;
}

.card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: black;
}

.card p {
  font-size: 14px;
  line-height: 1.5;
  color: #198754;
  transition: max-height 0.3s ease;
  overflow: hidden;
  max-height: 100px;
}

.card.expanded p {
  max-height: 500px;
}

.card:hover {
  background-color: #198754;
  color: white;
}

.card:hover h3,
.card:hover p {
  color: white;
}

.read-more {
  margin-top: auto;
  background-color: #198754;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;

}

.read-more:hover {
  background-color: white;
  color: #198754;
}

@media (max-width: 768px) {
  .card {
    width: 100%;
  }
}

.card-text-container {
  position: relative;
  overflow: hidden;
  max-height: 6.5em;
  /* ~4 lignes */
  transition: max-height 0.5s ease;
}

.card-text-container.expanded {
  max-height: 2000px;
}

.fadeout {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
  z-index: 1;
}

.card-text-container.expanded .fadeout {
  display: none;
}

.card-equal-height {
  height: 100%;
}

/**objectifs des projets*/
.project-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-text {
  max-height: 6em;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.project-text.expanded {
  max-height: 1000px;
}

.fadeout {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1.5em;
  width: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
}

.project-text.expanded .fadeout {
  display: none;
}

.btn-toggle {
  padding-left: 0;
}

@media (max-width: 992px) {
  .rotate-text {
    transform: none !important;
  }
}

/**mot du coordonnateur*/
.image-stack {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.image-stack img.bg-img {
  position: absolute;
  top: -10px;
  left: 100px;
  width: calc(100% - 100px);
  height: 100%;
  object-fit: cover;
  z-index: 2;
  border-radius: 10px;
}

.image-stack img.overlay-img {
  position: absolute;
  bottom: -50px;
  left: -14px;
  width: 50%;
  height: 50%;
  object-fit: cover;
  border: 5px solid rgb(15, 136, 31);
  z-index: 1;
  border-radius: 10px;
}

.read-more-content {
  max-height: 150px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.read-more-content.expanded {
  max-height: 400px;
  overflow-y: auto;
}

.read-more-btn {
  color: #198754;
  background: none;
  border: none;
  padding: 0;
  font-weight: bold;
  cursor: pointer;
}

/*en tete*/
.compact-top-bar {
  font-size: 13px;
  line-height: 1.2;
  padding-top: 5px;
  padding-bottom: 5px;
}

.compact-top-bar .h-100 {
  height: auto !important;
}

.compact-top-bar p {
  margin: 0 !important;
  padding: 0;
}

.compact-top-bar i {
  font-size: 14px;
}

/*actualités*/



.cards {
  border: 1px solid #73e686;
  border-radius: 8px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Animation douce pour le scale et l’ombre */
  overflow: hidden;
}

.cards:hover {
  transform: scale(1.05);
  /* Agrandissement fluide */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  /* Ombre plus douce mais plus large */
  cursor: pointer;
}

/* Hover sur les liens principaux : seulement texte */
.navbar-nav>.nav-item>.nav-link:hover {
  color: rgb(15, 136, 31);
  background-color: transparent;
}

/* Dropdown hover effet sur fond */
.dropdown-menu .dropdown-item:hover {
  background-color: rgba(15, 136, 31, 0.1);
  color: rgb(15, 136, 31);
}

/* Sous-dropdown s'ouvre à droite */
.dropdown-submenu {
  position: relative;

}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  display: none;
  position: absolute;
}

.dropdown-submenu:hover>.dropdown-menu {
  display: block;
}

.dropdown-menu a {
  font-weight: bold;
}


.grayscale-hover {
  filter: grayscale(100%);
  transition: all 0.3s ease-in-out;
}

.grayscale-hover:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.logo-partenaires {
  max-height: 70px;
  /* Tu peux ajuster selon ton besoin (ex : 60px, 70px...) */
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.date-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  color: #000;
  text-align: center;
  border-radius: 5px;
  padding: 5px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-family: sans-serif;
  z-index: 10;
}

.date-badge .day {
  display: block;
  font-size: 20px;
  font-weight: bold;
}

.date-badge .month {
  display: block;
  font-size: 14px;
  color: #00a63f; /* vert */
}
.position-relative {
  position: relative;
}

.btn-download {
  display: inline-block;
  padding: 10px 16px;
  background-color: #00a63f;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
  background-color: #008d36;
  transform: translateY(-2px);
}

.btn-download:active {
  transform: translateY(1px);
}

.team-item .position-relative {
  height: 300px; /* hauteur fixe pour toutes les images */
  overflow: hidden;
}

.team-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* coupe l'image sans la déformer */
  object-position: center;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

/* Rend les colonnes fluides sur mobile */
@media (max-width: 576px) {
  .col-md-6, .col-lg-3 {
      flex: 0 0 100%;
      max-width: 100%;
  }

  .team-item {
      margin-bottom: 20px;
  }
}
@media (max-width: 767.98px) {
  .col-md-5 img {
    width: 100%;
    height: auto;
  }
}

.audio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.audio-item {
  flex: 1 1 calc(50% - 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.audio-link {
  color: green;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 10px;
  cursor: pointer;
}
.audio-link:hover {
  text-decoration: underline;
}
audio {
  width: 100%;
  max-width: 300px;
  outline: none;
}

  
    .cont {
      background-color: #198754;
      padding: 40px 20px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }

    .cardd {
      background: #fff;
      border-radius: 10px;
      width: 300px;
      text-align: center;
      padding: 25px 15px;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      color: #198754;
    }

    .cardd i {
      font-size: 30px;
      margin-bottom: 10px;
    }

    .number {
      font-size: 24px;
      font-weight: bold;
    }

    .label {
      margin-top: 5px;
      font-size: 14px;
      text-transform: uppercase;
    }

    .sub-details {
      margin-top: 15px;
      font-size: 13px;
      text-align: left;
      color: #444;
      line-height: 1.6;
    }

    .sub-details i {
      font-size: 12px;
      margin-right: 5px;
      color: #198754;
    }

    @media (max-width: 500px) {
      .cardd {
        width: 90%;
      }
    }.video-cover-section {
      background: #f9f9f9;
      padding: 40px 20px;
      text-align: center;
    }
    
    .video-cover-section h2 {
      color: #198754;
      margin-bottom: 20px;
      font-size: 24px;
    }
    
    .video-cover {
      position: relative;
      display: inline-block;
      max-width: 500px;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    
    .video-cover img {
      width: 100%;
      display: block;
      border-radius: 10px;
    }
    
    .video-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background:  #1987543f;
      color: rgb(144, 153, 202);
      font-size: 28px;
      padding: 20px;
      border-radius: 50%;
      text-decoration: none;
      transition: background 0.3s ease;
    }
    
    .video-btn:hover {
      background: #1987549a;
      color: white;
    }

    .padaam-section {
      background-color: #f5f5f5;
      padding: 50px 20px;
      color: #333;
    }
    
    .padaam-container {
      max-width: 900px;
      margin: 0 auto;
      background: #fff;
      padding: 30px;
      border-left: 5px solid #198754;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .padaam-container h2 {
      color: #198754;
      margin-bottom: 20px;
      font-size: 26px;
    }
    
    .padaam-container p {
      line-height: 1.7;
      margin-bottom: 15px;
    }
    
    .padaam-container .author {
      font-weight: bold;
      color: #198754;
      margin-top: 30px;
    }
    

    .fida-section {
      background-color: #eef6ec;
      padding: 50px 20px;
      color: #333;
    }
    
    .fida-container {
      max-width: 900px;
      margin: 0 auto;
      background: #fff;
      padding: 30px;
      border-left: 5px solid #198754;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .fida-container h2 {
      color: #198754;
      margin-bottom: 25px;
      font-size: 26px;
      text-transform: uppercase;
    }
    
    .fida-container p {
      line-height: 1.7;
      margin-bottom: 15px;
      text-align: justify;
    }
    
    .fida-container ul {
      padding-left: 20px;
      margin-bottom: 20px;
    }
    
    .fida-container ul li {
      margin-bottom: 8px;
      line-height: 1.6;
    }
    
    