/* ═══════════════════════════════════════════════
   LANG SWITCHER
═══════════════════════════════════════════════ */

.nk-lang-switcher {
  position: relative;
  list-style: none;
}

/* ─── BOUTON FR/EN/AR ─── */
.nk-lang-current {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #0a0a0a;
  opacity: 0.65;
  padding: 0.4rem 0.8rem;
  border: 0.5px solid rgba(0,0,0,0.28);
  background: #f5f4f0;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}
.nk-lang-current:hover { opacity: 1; }

.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 #0a0a0a;
  opacity: 0.45;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nk-lang-current[aria-expanded="true"]::after { transform: rotate(180deg); }

/* ─── DROPDOWN DESKTOP ─── */
.nk-lang-dropdown {
  display: none; /* JS override avec flex quand is-open */
  position: absolute;
  top: calc(100% + 6px);
  right: 0;       /* aligné à droite du bouton */
  left: auto;
  transform: none;
  background: #f5f4f0;
  border: 0.5px solid rgba(0,0,0,0.25);
  min-width: 130px;
  z-index: 9999;
  flex-direction: column;
  list-style: none;
  box-shadow: 0 8px 24px 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;
  opacity: 0.6;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  background: #f5f4f0;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
}
.nk-lang-dropdown li:last-child a { border-bottom: none; }
.nk-lang-dropdown a:hover { opacity: 1; background: #eeede9; }
.nk-lang-dropdown a[aria-current="true"] { opacity: 1; 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 ─── */
@media (max-width: 768px) {

  /* Cacher le bouton FR — les liens sont affichés directement */
  .nk-lang-current { display: none !important; }

  /* Le dropdown devient un bloc statique dans le menu */
  .nk-lang-dropdown {
    display: block !important; /* Toujours visible sur mobile, pas de dropdown */
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    min-width: auto;
    padding: 0;
  }

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

  .nk-lang-dropdown a {
    background: transparent !important;
    border-bottom: none !important;
    padding: 0 !important;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.55;
    color: #0a0a0a;
    text-align: center;
  }
  .nk-lang-dropdown a:hover,
  .nk-lang-dropdown a[aria-current="true"] { opacity: 1; font-weight: 400; }

  .nk-lang-dropdown a[lang="ar"] {
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0;
  }
}
