/* ============================================================
   AURÉLIUS — i18n.css
   Styles du switcher de langue FR / EN
   ============================================================ */

/* ── Switcher desktop ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.lang-sep {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-muted);
  line-height: 1;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white-muted);
  padding: 4px 2px;
  transition: color var(--transition);
  position: relative;
}

.lang-btn:hover {
  color: var(--white);
}

/* État actif — soulignement or */
.lang-btn.active {
  color: var(--gold);
}

.lang-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  border-radius: 1px;
}

/* ── Switcher mobile ── */
.lang-switcher--mobile {
  margin-top: 16px;
  justify-content: center;
}

.lang-switcher--mobile .lang-btn {
  font-size: 14px;
  letter-spacing: 0.15em;
  padding: 6px 8px;
}

.lang-switcher--mobile .lang-sep {
  font-size: 13px;
}

/* ── Transition douce lors du changement de langue ── */
[data-i18n],
[data-i18n-placeholder] {
  transition: opacity 0.15s ease;
}

body.lang-switching [data-i18n],
body.lang-switching [data-i18n-placeholder] {
  opacity: 0;
}

/* ── Responsive : cacher le switcher desktop sur mobile ── */
@media (max-width: 768px) {
  .nav__inner .lang-switcher:not(.lang-switcher--mobile) {
    display: none;
  }
}
