/* Styles spécifiques pour la galerie et les images */

/* Lightbox pour la galerie */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent-color-1);
  transform: scale(1.2);
}

/* Optimisation des images */
.logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.service-img img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Animation d'apparition des éléments */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Effet de zoom sur les images de la galerie */
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.gallery-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Optimisation des images pour différentes tailles d'écran */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .service-img {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .gallery-item {
    height: 150px;
  }
  
  .service-img {
    height: 160px;
  }
}

/* Animation du logo */
.logo-container {
  position: relative;
  overflow: hidden;
}

.logo {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-container:hover .logo {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Effet de parallaxe pour les images de fond */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Animation du texte du héros */
.hero h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
