.tarifs_section {
  position: relative;
  background-image: url(../images/animal-bg.png);
  background-size: cover;
  background-position: center;
  color: #11422A;
  font-family: "Poppins", sans-serif;
  padding: 80px 20px;
 
}

/* ✅ Fond semi-transparent (opacité 50%) */
.tarifs_section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 0; /* il doit être en dessous du contenu */
}

/* ✅ Le contenu passe au-dessus du voile */
.tarifs_section * {
  position: relative;
  z-index: 1;
}

.tarifs_section h1 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 60px;
  font-weight: 700;
  color: #11422A;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.6);
}

.tarifs_section .tarifs_container {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
}

.tarifs_section .tarif_box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
    max-width: 1000px;  /* ✅ largeur uniforme */
  min-height: 320px;  /* ✅ hauteur harmonisée */
  gap: 40px;
  background: #efebe0;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tarifs_section .tarif_box .img-box {
  border-radius: 50%;
  overflow: hidden;
  width: 220px;
  height: 220px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.tarifs_section .tarif_box .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarifs_section .tarif_box .detail-box {
  flex: 1;
  min-width: 280px;
}

.tarifs_section .tarif_box .detail-box h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #11422A;
}

.tarifs_section .tarif_box .detail-box h5 {
  font-size: 1.1em;
  color: #3A7251;
  margin-bottom: 15px;
  font-weight: 500;
}

.tarifs_section .tarif_box .detail-box p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Alternance gauche / droite */
.tarifs_section .tarif_box.left {
  flex-direction: row;
  text-align: left;
}

.tarifs_section .tarif_box.right {
  flex-direction: row-reverse;
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .tarifs_section .tarif_box {
    flex-direction: column !important;
    text-align: center;
  }

  .tarifs_section .tarif_box .img-box {
    margin-bottom: 20px;
  }
}
