
/* Structure principale pour les lieux de sejoue */
.image-card {
  position: relative;
  transition: transform 0.3s ease;
  border-radius: 10px;
  overflow: hidden; /* Pour s'assurer que le texte ne dépasse pas les bords */
}

.image-card:hover {
  transform: scale(1.05); /* Zoom de x1.05 au survol */
}

.image-card img {
  height: 200px; 
  object-fit: cover; 
  border-radius: 10px;
  width: 100%;
  border-radius: 10px;
}

/* Style du texte qui sera affiché au survol */
.image-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(211, 98, 11, 0.7); /* Fond sombre avec transparence */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Caché par défaut */
  transition: opacity 0.3s ease; /* Transition douce pour l'apparition du texte */
  text-align: center;
  padding: 10px;
}

/* Afficher le texte au survol */
.image-card:hover .overlay {
  opacity: 1; /* Affiche le texte lorsque l'image est survolée */
}

/* Style pour chaque ligne */
.row {
  margin-bottom: 20px; 
}

/* Écrans très petits (mobiles très petits, portrait) */
@media (max-width: 480px) {
  .overlay h3 {
    font-size: 1.2rem; /* Réduit la taille du titre */
  }

  .overlay p {
    font-size: 1rem; /* Réduit la taille de la statistique */
  }
}

.sejour-img {
  height: 350px !important;
}

.lieu-stage-img {
  width: 450px;
  height: 400px !important;
}

.logement-img {
  width: 500px;
}

/* ajout logement debut */
.option-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.option-card {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  width: 30%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Assure une hauteur égale */
}
.option-card:hover {
  transform: scale(1.05);
}
.option-card h3 {
  color: #2c3e50;
}
.option-card p {
  font-size: 1rem;
  color: #555;
}
.option-card ul {
  text-align: left;
  margin-top: 15px;
  margin-bottom: 15px;
  padding-left: 20px;
}
.option-card ul li {
  margin-bottom: 8px;
  color: #555;
}

.cta-button {
  background-color: #9c4f07;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  /* margin-top: auto; /* Force le bouton à être en bas */
}
.cta-button:hover {
  background-color: #9c540f;
  text-decoration: none;
  color: #ffffffc2;
}

/* Ajouter une ligne de séparation après chaque carte d'option */
.option-card + .option-card {
  border-top: 2px solid #ddd;
}

/* Media Queries pour rendre le site responsive */
@media (max-width: 1024px) {
  .option-row {
      justify-content: space-around;
  }
  .option-card {
      width: 45%; /* Deux colonnes sur les écrans moyens (tablettes) */
  }
}

@media (max-width: 768px) {
  .option-card {
      width: 100%; /* Une seule colonne sur les petits écrans (smartphones) */
  }
  h2 {
      font-size: 1.5rem;
  }
}

/* logement fin */

/* Lorsqu'une image est visible, l'opacité est à 1 */
.active {
  opacity: 1;
}
