/* ═══════════════════════════════════════════════
   LANG SWITCHER — dans la nav, toujours visible
   Desktop : dropdown au clic
   Mobile  : toujours dans la barre, entre hamburger et logo
═══════════════════════════════════════════════ */

.nk-lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ─── BOUTON FR / EN / AR ─── */
.nk-lang-current {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #0a0a0a;
  padding: 0.35rem 0.7rem;
  border: 0.5px solid rgba(0,0,0,0.3);
  background: #f5f4f0;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}

.nk-lang-current:hover { background: #eceae4; }

/* Flèche ▾ */
.nk-lang-current::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid rgba(0,0,0,0.5);
  transition: transform 0.18s;
  flex-shrink: 0;
}
.nk-lang-current[aria-expanded="true"] { background: #eceae4; }
.nk-lang-current[aria-expanded="true"]::after { transform: rotate(180deg); }

/* ─── DROPDOWN ─── */
.nk-lang-dropdown {
  display: none;           /* JS met flex quand is-open */
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  background: #f5f4f0;
  border: 0.5px solid rgba(0,0,0,0.22);
  min-width: 130px;
  z-index: 9999;
  flex-direction: column;
  list-style: none;
  padding: 0; margin: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.nk-lang-dropdown li { margin: 0; padding: 0; list-style: none; }

.nk-lang-dropdown a {
  display: block;
  padding: 0.75rem 1.1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #0a0a0a;
  background: #f5f4f0;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  white-space: nowrap;
  transition: background 0.15s;
}
.nk-lang-dropdown li:last-child a { border-bottom: none; }
.nk-lang-dropdown a:hover { background: #eceae4; }
.nk-lang-dropdown a[aria-current="true"] { font-weight: 400; }
.nk-lang-dropdown a[lang="ar"] {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

/* ─── MOBILE ≤768px ─── */
/* Le switcher reste dans la barre — juste plus compact */
@media (max-width: 768px) {
  .nk-lang-current {
    font-size: 10px;
    padding: 0.3rem 0.55rem;
    letter-spacing: 0.12em;
  }

  /* Dropdown mobile — s'ouvre vers le bas, pleine largeur lisible */
  .nk-lang-dropdown {
    right: 0;
    min-width: 110px;
  }
}
