/* Styles personnalisés Genelec */

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-orange {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }
}

/* Classes utilitaires */
.animate-slideInUp {
  animation: slideInUp 0.6s ease-out;
}

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

.pulse-orange {
  animation: pulse-orange 2s infinite;
}

/* Responsive padding pour mobile */
.mobile-padding {
  padding-bottom: 80px; /* Espace pour CTA sticky mobile */
}

@media (min-width: 768px) {
  .mobile-padding {
    padding-bottom: 0;
  }
}

/* Améliorations focus pour accessibilité */
.focus-blue:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Animation loading */
.loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Transitions fluides */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amélioration des zones cliquables (44px min) */
.tap-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Glass effect amélioré */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover effects pour cartes */
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Styles pour le formulaire de contact */
.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Amélioration des boutons CTA */
.cta-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  transition: all 0.2s ease;
}

.cta-primary:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.cta-secondary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transition: all 0.2s ease;
}

.cta-secondary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Styles mobile pour le menu sticky */
@media (max-width: 767px) {
  .sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  }
}

/* Amélioration typographie */
.text-balance {
  text-wrap: balance;
}

/* Styles pour les étoiles d'avis */
.star-rating {
  color: #fbbf24;
  font-size: 1.125rem;
}

/* Animation pour les compteurs */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Styles pour accordéon */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.open {
  max-height: 1000px;
}

/* Responsive improvements */
@media (max-width: 640px) {
  .text-responsive {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .text-responsive {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 1025px) {
  .text-responsive {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}