/* Section Organigramme */
.organigramme-section {
  padding: 40px 20px;
  background-color: #003366;
  box-sizing: border-box;
}

/* Titre de la section Organigramme */
.section-titleORG {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 20px 0;
  color: #ffffff;
}

/* Conteneur des cartes de l'organigramme */
.organigramme-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  align-items: center;
  flex-wrap: wrap;
}

/* Chaque carte d'organigramme */
.organigramme-card {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 300px;
  min-height: 200px;
  border-radius: 15px;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

/* Animation pour l'agrandissement lors du survol */
.organigramme-card:hover {
  transform: scale(1.05);
}

/* Style du bouton dans la carte */
.card-button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  border: none;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  transition: background-color 0.3s ease;
}

/* Effet au survol du bouton */
.card-button:hover {
  background-color: #f5f5f5;
}

/* Conteneur d'image masqué par défaut */
.image-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  transition: height 0.6s ease;
}

/* Image dans la carte */
.image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Quand la carte est ouverte, l'image devient visible */
.organigramme-card.open .image-container {
  height: 100%;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .section-titleORG {
    font-size: 1.5rem;
  }

  .organigramme-card {
    width: 250px;
    min-height: 180px;
  }

  .organigramme-container {
    gap: 15px;
  }

  .card-button {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .section-titleORG {
    font-size: 1.2rem;
  }

  .organigramme-card {
    width: 200px;
    min-height: 150px;
  }

  .organigramme-container {
    gap: 10px;
  }

  .card-button {
    font-size: 14px;
  }
}