/* Styles pour les certificats et leur modale */
.certificat-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  height: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificat-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.certificat-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.certificat-container:hover .certificat-image {
  transform: scale(1.05);
}

.certificat-overlay {
  position: absolute;
  inset: 0; /* couvre toute l'image */
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.5); /* fond semi-transparent */
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: zoom-in;
}

.certificat-container:hover .certificat-overlay {
  opacity: 1;
}

/* Amélioration du texte "Cliquez pour agrandir" */
.certificat-overlay span {
  background-color: rgba(79, 70, 229, 0.8); /* couleur accent */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 500;
  transform: translateY(5px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.certificat-overlay span::before {
  content: '\f00e'; /* icône loupe */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.certificat-container:hover .certificat-overlay span {
  transform: translateY(0);
}

/* Styles pour la modale d'agrandissement */
#certificat-modal {
  transition: opacity 0.3s ease;
}

#modal-image {
  transition: transform 0.3s ease;
  cursor: zoom-in;
  transform-origin: center;
}

/* Styles pour le mode plein écran */
.fullscreen-mode {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

.fullscreen-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fullscreen-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

/* Animation d'entrée pour le mode plein écran */
@keyframes fullscreen-enter {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.fullscreen-image {
  animation: fullscreen-enter 0.3s ease forwards;
}

/* Animation pour l'ouverture de la modale */
@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-animation {
  animation: modal-fade-in 0.3s ease forwards;
}

/* Les boutons de zoom ont été supprimés */
