/**
 * Langue FR/EN — data-mount-lang-switcher sur .footer-lang ou .footer-bottom__langs
 * — chargé après ds-site.css
 *
 * Variante alignée sur Next — .cmtb-lang-switcher
 */

.footer-lang {
  display: flex;
  justify-content: flex-start;
}

/* ——— Sélecteur Next-like (FR | EN) — footer uniquement ——— */
.cmtb-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 39, 0.4);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.2),
    0 4px 6px -2px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.875rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.cmtb-lang-switcher:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.cmtb-lang-switcher--pending {
  pointer-events: none;
  opacity: 0.72;
}

.cmtb-lang-switcher__btn {
  font: inherit;
  font-weight: 500;
  margin: 0;
  padding: 0.35rem 0.62rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.cmtb-lang-switcher__btn:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.92);
}

.cmtb-lang-switcher__btn:focus-visible {
  outline: 2px solid rgba(124, 255, 91, 0.55);
  outline-offset: 2px;
}

.cmtb-lang-switcher__btn--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.cmtb-lang-switcher__btn:disabled {
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .cmtb-lang-switcher,
  .cmtb-lang-switcher__btn {
    transition: none;
  }
}

.footer-bottom__langs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-bottom--lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.footer-bottom__copyright,
.footer-bottom__muted {
  font-size: 0.875rem;
  line-height: 1.45;
}

.footer-bottom__muted {
  color: var(--text-3);
}

@media (max-width: 620px) {
  .footer-bottom--lang {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .footer-bottom--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}
