/* Animations et effets supplémentaires pour Nerola Landing Page */

/* Variables CSS pour les couleurs */
:root {
  --primary-color: #4F46E5;
  --primary-hover-color: #4338ca;
  --secondary-color: #06b6d4;
}

/* Animation de fade-in pour les sections */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-animate {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Décalage pour les sections ciblées par ancre */
section[id] {
  scroll-margin-top: 100px; /* Décalage pour éviter que le contenu soit caché sous l'en-tête */
}

/* Animation pour les cartes d'avantages */
.benefit-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-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);
}

/* Style pour la barre de navigation fixe */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
}

/* Effet de brillance pour les boutons CTA */
.cta-shine {
  position: relative;
  overflow: hidden;
}

.cta-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.7s;
  opacity: 0;
}

.cta-shine:hover::after {
  transform: rotate(30deg) translate(100%, 100%);
  opacity: 1;
}

/* Style pour le texte mis en évidence */
.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 30%;
  width: 100%;
  background-color: rgba(79, 70, 229, 0.2);
  z-index: -1;
  transition: height 0.3s ease;
}

.highlight:hover::after {
  height: 100%;
}

/* Effet de zoom doux sur les images au survol */
.zoom-effect {
  overflow: hidden;
}

.zoom-effect img {
  transition: transform 0.5s ease;
}

.zoom-effect:hover img {
  transform: scale(1.03);
}

/* Animation pour afficher progressivement la section prix */
@keyframes priceReveal {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.price-card {
  animation: priceReveal 0.5s ease-out forwards;
}

/* Style pour la barre de navigation au défilement */
.header-scroll {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Personnalisation de la barre de défilement */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #4F46E5;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #4338ca;
}

/* Style pour le bouton mobile menu */
.mobile-menu-button {
  transition: transform 0.3s ease;
}

.mobile-menu-button:hover {
  transform: scale(1.05);
}

/* Effet de pulsation pour attirer l'attention sur le CTA principal */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Optimisations responsive */
@media (max-width: 768px) {
  .mobile-optimization {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .mobile-center {
    text-align: center;
  }
}

/* Styles pour la lightbox */
#lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
}

#lightbox-modal.hidden {
  display: none;
}

#lightbox-modal img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 4px;
}

#lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1010;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#lightbox-close:hover {
  transform: scale(1.1);
}

/* Ajustement de la taille du conteneur d'image pour la lightbox */
#lightbox-modal .bg-white {
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Style pour le conteneur principal de la lightbox */
#lightbox-modal .relative {
  position: relative;
  display: block;
}

/* Réduction des conteneurs d'images de 10% */
.reduced-container {
  width: 90%;
  height: 90%;
  margin: 0 auto;
}

/* Classes utilitaires pour les couleurs */
.bg-primary {
  background-color: var(--primary-color, #4F46E5) !important;
}

.bg-primary-dark {
  background-color: var(--primary-hover-color, #4338ca) !important;
}

.text-primary {
  color: var(--primary-color, #4F46E5) !important;
}

/* Amélioration du contraste pour l'accessibilité */
.text-primary-light {
  color: #8F86FF !important; /* Version plus claire de la couleur primaire pour un meilleur contraste sur fond sombre */
}

/* Ajout de styles pour les éléments de texte dans le footer pour améliorer le contraste */
.footer-text {
  color: #E0E0E0 !important;
}

/* Assurer que l'effet hover fonctionne correctement dans le footer */
a.footer-text:hover {
  color: var(--primary-color, #4F46E5) !important;
} 