/* Styles CSS additionnels pour améliorer le template */

/* Animation de fondu */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Animation pour les cartes de service */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animation pour les éléments de galerie */
.gallery-item {
  overflow: hidden;
  opacity: 0;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Animation pour les badges de confiance */
.certification-item {
  transition: transform 0.3s ease;
  opacity: 0;
}

.certification-item:hover {
  transform: scale(1.05);
}

/* Amélioration du formulaire */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Styles pour le lightbox */
#lightbox {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#lightbox.visible {
  opacity: 1;
}

/* Styles pour les compteurs */
.counter-wrapper {
  position: relative;
}

.counter {
  font-weight: bold;
}

/* Styles pour le menu mobile */
@media (max-width: 768px) {
  #main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
  }
  
  #main-menu ul {
    width: 100%;
  }
  
  #main-menu li {
    border-bottom: 1px solid #e5e7eb;
  }
  
  #main-menu li:last-child {
    border-bottom: none;
  }
  
  #main-menu a {
    display: block;
    padding: 0.75rem 0;
  }

  /* Styles pour les boutons flottants */
  #back-to-top, a[href^="tel:"] {
    z-index: 40;
    transition: transform 0.3s ease;
  }

  #back-to-top:hover, a[href^="tel:"]:hover {
    transform: scale(1.1);
  }

  /* Ajuster l'espacement entre les boutons */
  #back-to-top {
    right: 1rem;
  }

  a[href^="tel:"] {
    left: 1rem;
  }
}

/* Amélioration de l'accessibilité */
a:focus, button:focus {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

/* Optimisation pour l'impression */
@media print {
  header, footer, #back-to-top, .bg-secondary, a[href^="tel:"] {
    display: none !important;
  }
  
  body {
    color: black !important;
    background: white !important;
  }
  
  section {
    page-break-inside: avoid;
  }
}
