/* Cyclisme & Dopage - Feuille de style
// Création     : 16/05/2007
// Purpose      : feuille de style principale du site
// Usage        : sur toutes les pages


/*********************************************************************/	
/* Style pour les images de la bibliothèque d'images v2 (14/07/2025) */	
/*********************************************************************/	

.zoom_biblioimg_v2 {
	text-align: center;
	font-size: 7pt;
	color: #000000;
}

.image_biblioimg_v2 img {
	transition: transform 0.5s ease;
	border: none;
	box-shadow: 0 0 15px 5px grey;
	cursor: pointer;
	z-index: 1;
	width: 80%;
	max-width: 800px; /* optionnel : pour limiter sur très grands écrans */	
}

/* === Lightbox d'image plein écran (clic sur une image zoomable) === */

/* Conteneur de l'overlay (fond sombre + image + croix) */
#lightbox-overlay {
  display: none;                     /* caché par défaut */
  position: fixed;                   /* occupe tout l'écran */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);   /* fond noir transparent */
  justify-content: center;          /* centre l?image horizontalement */
  align-items: center;              /* centre l?image verticalement */
  z-index: 9990;
  animation: fadeIn 0.4s ease;      /* fondu à l'ouverture */
}

/* Image affichée dans la lightbox */
#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 25px 10px #000;
  animation: zoomIn 0.4s ease;      /* zoom à l'apparition */
  z-index: 9991;
}

/* Croix de fermeture */
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #ffffff;
  font-family: Arial, sans-serif;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 9999;
  user-select: none;
  transition: background-color 0.3s, color 0.3s;
}

#lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ff5050;
}

/* Animation de fondu pour l?overlay */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Animation de zoom pour l?image */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

