/* ========================================
   LANGUAGE SWITCHER STYLES
   ======================================== */

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-switch-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-switch-link:active {
  transform: translateY(0);
}

.flag-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
}

.lang-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Animation au survol */
.lang-switch-link:hover .flag-icon {
  animation: wave 0.5s ease-in-out;
}

@keyframes wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

/* Version mobile */
@media (max-width: 768px) {
  .lang-switch-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .flag-icon {
    font-size: 1.1rem;
  }
  
  /* Masquer le texte sur très petit écran */
  @media (max-width: 576px) {
    .lang-label {
      display: none !important;
    }
  }
}

/* État actif (optionnel si vous voulez indiquer la langue courante) */
.lang-switch-link[data-lang="en"] {
  /* Styles spécifiques pour la version anglaise */
}

.lang-switch-link[data-lang="fr"] {
  /* Styles spécifiques pour la version française */
}

/* Intégration dans la navbar */
.navbar .language-switcher {
  margin-left: 0.5rem;
}

/* Mode desktop - aligner correctement avec le menu */
@media (min-width: 992px) {
  .navbar .language-switcher {
    margin-left: 1rem;
  }
}

/* Ajustement pour le mode collapse (mobile) */
@media (max-width: 991px) {
  .navbar-collapse .language-switcher {
    margin-top: 1rem;
    margin-left: 0;
  }
  
  .lang-switch-link {
    width: 100%;
    justify-content: center;
  }
}