/*
  LEONIO Sport · styles du sélecteur de langue FR / EN.
  Conçu pour s'intégrer aux 3 contextes : topbar admin (compact), footer login,
  footer pages utilisateur. Discret par défaut, accessible (focus visible).
*/

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-family: 'Space Mono', ui-monospace, monospace;
}

.lang-switch .lang-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-switch .lang-btn:hover { color: #fff; }

.lang-switch .lang-btn.is-active {
  background: #fff;
  color: #0a0a0a;
}

.lang-switch .lang-btn:focus-visible {
  outline: 2px solid var(--club-color, #1DC4EE);
  outline-offset: 2px;
}

/* Variante "footer" : encore plus discrète, transparente, séparateur minimal */
.lang-switch.lang-switch--footer {
  background: transparent;
  border: none;
  padding: 0;
  gap: 6px;
}
.lang-switch.lang-switch--footer .lang-btn {
  background: transparent;
  color: inherit;
  opacity: 0.55;
  padding: 2px 4px;
  font-size: inherit;
  font-weight: 500;
}
.lang-switch.lang-switch--footer .lang-btn:hover {
  opacity: 1;
  color: inherit;
}
.lang-switch.lang-switch--footer .lang-btn.is-active {
  background: transparent;
  color: inherit;
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.lang-switch.lang-switch--footer .lang-sep {
  opacity: 0.3;
  font-size: 0.85em;
  user-select: none;
}

/* Variante "light" : sur fond clair (page tribute par exemple) */
.lang-switch.lang-switch--light {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.10);
}
.lang-switch.lang-switch--light .lang-btn {
  color: rgba(0, 0, 0, 0.55);
}
.lang-switch.lang-switch--light .lang-btn:hover { color: #1a1a1a; }
.lang-switch.lang-switch--light .lang-btn.is-active {
  background: #1a1a1a;
  color: #fff;
}
