/*
  LEONIO i18n : styles du switcher de langue (FR / EN / PL...)
  Inséré dans la topnav desktop et dans le menu mobile.
  Conçu pour s'intégrer au design "claymorphism" du site sans concurrencer
  les CTA orange/teal.
*/

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--white, #fff);
  border: 1px solid var(--oat, #dad4c8);
  border-radius: 999px;
  padding: 3px;
  box-shadow: rgba(0, 0, 0, .04) 0 1px 2px;
}

.lang-switch .lang-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--warm-charcoal, #55534e);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background .18s ease, color .18s ease;
}

.lang-switch .lang-btn:hover {
  color: var(--black, #1a1816);
}

.lang-switch .lang-btn.is-active {
  background: var(--black, #1a1816);
  color: var(--white, #fff);
}

.lang-switch .lang-btn:focus-visible {
  outline: 2px solid var(--orange, #E8702A);
  outline-offset: 2px;
}

/* Variante "mobile menu" : centrée, un peu plus large */
.mobile-menu .lang-switch {
  margin: 18px auto 0;
}
.mobile-menu .lang-switch .lang-btn {
  font-size: 13px;
  padding: 8px 14px;
}

/* Pages avec fond sombre (mode "screen" ou bannière) : variante inversée si
   on ajoute .lang-switch.on-dark */
.lang-switch.on-dark {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
}
.lang-switch.on-dark .lang-btn {
  color: rgba(255, 255, 255, .75);
}
.lang-switch.on-dark .lang-btn:hover {
  color: #fff;
}
.lang-switch.on-dark .lang-btn.is-active {
  background: #fff;
  color: var(--black, #1a1816);
}

/* Variante "minimal" : deux mots séparés par un point médian, sans pastille
   ni fond. Conçue pour le footer-bottom : doit s'aligner visuellement avec
   le copyright et la mention "Propulsé avec ♥". */
.lang-switch.lang-switch--minimal {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  gap: 6px;
}
.lang-switch.lang-switch--minimal .lang-btn {
  background: transparent;
  color: inherit;
  opacity: .55;
  padding: 2px 4px;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 4px;
}
.lang-switch.lang-switch--minimal .lang-btn:hover {
  opacity: 1;
  color: inherit;
}
.lang-switch.lang-switch--minimal .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--minimal .lang-sep {
  opacity: .35;
  font-size: .85em;
  user-select: none;
}
