/* Grand bloc avec box shadow */
.blog-posts-wrapper {
  background-color: #fff176; /* jaune poussin clair */
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

/* Style des articles */
#blog-posts article {
  background-color: #fff176; /* jaune poussin */
  color: #004d00; /* vert foncé pour texte */
  border-radius: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Texte noir/vert */
#blog-posts .post-category {
  color:rgb(70, 150, 87);
  font-weight: bold;
  margin-bottom: 10px;
}

#blog-posts .title a {
  color: rgb(70, 150, 87);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

#blog-posts .post-meta p {
  color:rgb(70, 150, 87);
  margin: 0;
  font-size: 0.9rem;
}

/* Animation hover: effet "montée" d'une couleur verte du bas */
#blog-posts article::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background:rgb(70, 150, 87);
  z-index: 0;
  transition: height 0.4s ease;
  border-radius: 10px;
}

/* Quand hover, la couleur verte monte */
#blog-posts article:hover::before {
  height: 100%;
}

/* Le contenu texte au-dessus de la pseudo-couche */
#blog-posts article > * {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

/* Changement de couleur du texte quand hover */
#blog-posts article:hover .post-category,
#blog-posts article:hover .title a,
#blog-posts article:hover .post-meta p {
  color: #000; /* noir pour contraste sur fond vert */
}

/* Image reste normale, un peu de transition */
#blog-posts .post-img img {
  border-radius: 10px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

/* Zoom léger image au hover */
#blog-posts article:hover .post-img img {
  transform: scale(1.05);
}

/* Pagination simple */
#blog-pagination ul {
  list-style: none;
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 0;
}

#blog-pagination ul li a {
  padding: 8px 14px;
  background-color: #fff176;
  color: rgb(70, 150, 87);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#blog-pagination ul li a.active,
#blog-pagination ul li a:hover {
  background-color: rgb(70, 150, 87);
  color: #000;
}
.blog-posts-wrapper {
  background-color: #fff176; /* jaune poussin clair */
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 12px;

  /* Effet scroll */
  transition: transform 0.5s ease;
  will-change: transform;
}

.blog-posts-wrapper.scrolled-up {
  transform: translateY(-25px);
}
.blog-posts-wrapper.scrolled-down {
  transform: translateY(0);
}

/* Animation de zoom léger */
.animate-logo {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.animate-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(1, 206, 104, 0.2);
}

/* Apparition avec fondu */
.client-logo {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.client-logo:nth-child(1) { animation-delay: 0.1s; }
.client-logo:nth-child(2) { animation-delay: 0.2s; }
.client-logo:nth-child(3) { animation-delay: 0.3s; }
.client-logo:nth-child(4) { animation-delay: 0.4s; }
.client-logo:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(70, 150, 87, 0.3); /* Vert avec transparence */
  transition: left 0.5s ease-in-out;
  z-index: 0;
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* S'assurer que le contenu est au-dessus de l'effet */
.service-card * {
  position: relative;
  z-index: 1;
}
