/* Configuration Tailwind CSS personnalisée pour la production */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Variables CSS personnalisées */
:root {
  --ls-blue: #2563eb;
  --ls-green: #16a34a;
  --ls-gold: #f59e0b;
  --primary: #2563eb;
  --secondary: #16a34a;
  --accent: #f59e0b;
  --dark: #1f2937;
  --light: #f8fafc;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce-slow {
  0%, 20%, 53%, 80%, 100% {
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
    transform: translate3d(0, -30px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0,-4px,0);
  }
}

/* Classes utilitaires */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in {
  animation: slideIn 0.8s ease-out;
}

.bounce-slow {
  animation: bounce-slow 2s infinite;
}

/* Styles pour les gradients */
.hero-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, #1f2937, #be3030);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Amélioration du style Google Translate */
.goog-te-gadget {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
}

.goog-te-gadget-simple {
  background: white !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  color: #374151 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  min-width: 120px !important;
  display: inline-block !important;
}

.goog-te-gadget-simple:hover {
  border-color: #dc2626 !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1) !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
  color: #374151 !important;
  font-weight: 500 !important;
}

.goog-te-gadget-simple .goog-te-menu-value:hover {
  color: #dc2626 !important;
}

/* Version mobile plus compacte */
#google_translate_element_mobile .goog-te-gadget-simple {
  padding: 6px 8px !important;
  font-size: 12px !important;
  min-width: 100px !important;
}

/* Masquer les éléments indésirables */
.goog-te-banner-frame,
.skiptranslate,
.goog-logo-link {
  display: none !important;
}

/* Éviter le décalage de la page */
body {
  top: 0 !important;
}

/* Améliorer l'apparence du menu déroulant */
.goog-te-menu-frame {
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Forcer l'affichage du widget */
#google_translate_element,
#google_translate_element_mobile {
  display: block !important;
  visibility: visible !important;
}

/* Styles pour les sélecteurs de langue de fallback */
#language_fallback,
#language_fallback_mobile {
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#language_fallback:focus,
#language_fallback_mobile:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Responsive design amélioré */
@media (max-width: 768px) {
  .hero-slider {
    background-attachment: scroll;
  }
  
  .glass-effect {
    backdrop-filter: blur(5px);
  }
}

/* Accessibilité améliorée */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .slide-in,
  .bounce-slow {
    animation: none;
  }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
  :root {
    --light: #1f2937;
    --dark: #f8fafc;
  }
}

/* Optimisations pour l'impression */
@media print {
  .hero-slider,
  .glass-effect {
    background: white !important;
    color: black !important;
  }
  
  #google_translate_element,
  #google_translate_element_mobile,
  #language_fallback,
  #language_fallback_mobile {
    display: none !important;
  }
}