.site-header {
  column-gap: 12px;
}

.site-header > nav {
  margin-left: auto;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid rgba(18, 109, 178, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-dark);
  box-shadow: 0 8px 24px rgba(15, 34, 52, 0.05);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.language-switch:hover {
  border-color: rgba(18, 109, 178, 0.5);
  background: var(--blue-soft);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

@media (max-width: 1020px) {
  .site-header > nav {
    margin-left: 0;
  }

  .language-switch {
    position: absolute;
    top: 16px;
    right: var(--edge);
  }
}

@media (max-width: 720px) {
  .language-switch {
    top: 15px;
    right: 16px;
  }

  html[lang="fr-CA"] nav {
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  html[lang="fr-CA"] nav {
    font-size: 0.63rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switch {
    transition: none;
  }
}
