/* ============================================================
   NOVIABOT — HEADER FINAL CLEAN
   Aucun effet caché, aucune classe fantôme
   Twitch logo centré, menu à droite, logo Noviabot à gauche
============================================================ */

/* ====== HEADER ====== */
header {
  width: 100%;
  min-height: 38px;
  background: #3c1b7a;
  box-shadow: 0 2px 24px #18e7ff30, 0 1.5px 9px #9147ff44;
  border-bottom: 2.5px solid #18e7ff48;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  isolation: isolate; /* Crée un nouveau contexte de stacking */
}

.header-inner {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2em;
  position: relative;
}

/* ====== LOGO NOVIABOT ====== */
.logo-zone {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.logo-img {
  height: 24px;
  width: 24px;
}

.logo-nov {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #fff;
  display: flex;
  gap: 0.05em;
}

.logo-nov .nov  { color: #d4aaff; }
.logo-nov .ia   { color: #18e7ff; }
.logo-nov .bot  { color: #d4aaff; }

/* ====== TWITCH LOGO (CENTRÉ) ====== */
.twitch-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.twitch-header-logo {
  height: 24px;
  width: 24px;
  display: block;
  opacity: 1;
}

/* ====== MENU NAVIGATION ====== */
nav {
  display: flex;
  align-items: center;
  gap: 2em;
  margin-left: auto;
}

.nav-btn {
  border: none;
  background: none;
  color: #e8eaff;
  font-weight: 900;
  font-size: 22px;
  cursor: pointer;
  padding: 0.14em 1.15em;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition: color 0.18s, text-shadow 0.19s;
}

.nav-btn.active,
.nav-btn:hover,
.nav-btn:focus {
  color: #18e7ff;
  text-shadow: 0 2px 14px #18e7ff20, 0 0 1px #18e7ff33;
}

/* ====== LANG SELECTOR CLEAN ====== */
header .lang-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 1.8em;
}

/* === Bouton principal (FR / EN / DE…) === */
header .lang-btn {
  background: none !important;
  border: none !important;
  padding: 0.14em 1.15em !important;
  margin: 0;
  color: #e8eaff;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
  font-weight: 900;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, text-shadow 0.19s ease;
}

header .lang-btn:hover {
  color: #18e7ff;
  text-shadow: 0 2px 14px #18e7ff20, 0 0 1px #18e7ff33;
}

/* === Liste déroulante === */
header .lang-list {
  display: none;
  position: absolute; /* Absolute pour être aligné avec le bouton */
  top: calc(100% + 8px); /* Juste sous le bouton */
  right: 0; /* Aligné à droite du bouton */
  background: transparent;
  border: none;
  padding: 0;
  min-width: auto;
  z-index: 999999 !important;
}

header .lang-dropdown.open .lang-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* === Items de la liste === */
header .lang-list button {
  background: rgba(60, 27, 122, 0.98);
  border: 1px solid rgba(24, 231, 255, 0.15);
  width: auto;
  min-width: 70px;
  text-align: center;
  padding: 0.14em 1.15em; /* Même padding que le bouton */
  color: #e8eaff;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
  font-size: 22px; /* Même taille que le bouton */
  font-weight: 900; /* Même poids que le bouton */
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.18s ease;
  border-radius: 4px;
}

header .lang-list button:hover {
  color: #18e7ff;
  background: rgba(60, 27, 122, 1);
  border-color: rgba(24, 231, 255, 0.3);
  text-shadow: 0 2px 14px #18e7ff20, 0 0 1px #18e7ff33;
}
/* FORCE le bouton Twitch au-dessus de tout */
.twitch-center {
  z-index: 5000 !important;
  pointer-events: auto !important;
}
header, .header-inner {
  position: relative;
  z-index: 4000;
}
.settings-page header {
  position: sticky;
  top: 0;
  z-index: 2000;
}
