/* Sélecteur de langue unique — menu déroulant dans la barre de navigation */

.nav__lang {
  position: relative;
  flex-shrink: 0;
}

.nav__lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--gray-200, #dce9de);
  border-radius: 8px;
  background: white;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-800, #222);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav__lang-btn:hover,
.nav__lang.is-open .nav__lang-btn {
  border-color: var(--green, #16885a);
  color: var(--green-dark, #0f5c3d);
  box-shadow: 0 4px 14px rgba(22, 136, 90, 0.15);
}

.nav__lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.nav__lang-code {
  letter-spacing: 0.06em;
}

.nav__lang-chevron {
  font-size: 0.65rem;
  opacity: 0.55;
  margin-left: 0.1rem;
}

.nav__lang-menu {
  right: 0;
  left: auto;
  min-width: 220px;
  padding: 0.4rem 0;
  z-index: 1100;
}

.nav__lang-menu li {
  list-style: none;
  margin: 0;
}

.nav__lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 1rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800, #222);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav__lang-option:hover,
.nav__lang-option.is-active {
  background: var(--gray-100, #f0f7f1);
  color: var(--green-dark, #0f5c3d);
}

.nav__lang-option.is-active::after {
  content: '✓';
  margin-left: auto;
  color: var(--green, #16885a);
  font-weight: 800;
}

.nav__lang-option-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.nav__lang-option-label {
  flex: 1;
}

.nav__lang-option-code {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.45;
  letter-spacing: 0.05em;
}

.nav__lang--dropdown .nav__lang-btn {
  min-width: 4.5rem;
}

@media (max-width: 992px) {
  .nav__lang--dropdown.is-open .nav__lang-menu {
    display: block;
  }
}
