/* ===================================================
   lang-switcher.css — Composant de sélection de langue
   Design : Violet Signature (cohérent avec le reste du site)
   =================================================== */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(229, 231, 235, 0.5);
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: #E5E7EB;
  background: rgba(139, 92, 246, 0.15);
}

.lang-btn.active {
  background: linear-gradient(135deg, #8B5CF6, #4338CA);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Version compacte pour mobile */
@media (max-width: 768px) {
  .lang-switcher {
    gap: 1px;
    padding: 2px;
  }

  .lang-btn {
    font-size: 0.65rem;
    padding: 3px 7px;
  }
}

/* Quand la langue est japonaise : Noto Sans JP pour le corps */
body.lang-ja {
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
}

body.lang-ja h1,
body.lang-ja h2,
body.lang-ja h3,
body.lang-ja h4,
body.lang-ja h5,
body.lang-ja h6 {
  font-family: 'Noto Sans JP', 'Playfair Display', serif;
  letter-spacing: 0.02em; /* kanji préfèrent moins de tracking négatif */
}

body.lang-ja .hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem); /* kanji plus larges visuellement */
}
