@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ================= HEADER STRUCTURE SAFE ================= */

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;     /* 👈 important */
  width: auto;  /* 👈 au lieu de 100% */
  box-sizing: border-box;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

/* ================= MENU TOGGLE ================= */

.menu-toggle {
  position: relative;
  cursor: pointer;
  width: 30px;
  height: 30px;
  background-color: #1a001a;
  border: 1px solid #ff2aa8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ff2aa8;
  border-radius: 6px;
  box-sizing: border-box;
}

/* ================= NOTIFICATION DOTS ================= */

#notif-dot-menu-toggle {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background-color: rgb(236, 21, 21);
  border-radius: 50%;
  box-shadow: 0 0 4px #f6a;
  animation: blink 1s infinite ease-in-out;
}

#notif-dot {
  display: none;
  width: 10px;
  height: 10px;
  background-color: rgb(236, 21, 21);
  border-radius: 50%;
  box-shadow: 0 0 4px #f6a;
  animation: blink 1s infinite ease-in-out;
  margin-left: 5px;
  vertical-align: middle;
}

/* ================= LANG SWITCH ================= */

.lang-switch-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-switch-header a {
  color: #ff2aa8;
  text-decoration: none;
  font-weight: bold;
  font-size: 2em;
  display: flex;
  align-items: center;
  white-space: nowrap; /* empêche débordement emoji */
}

.lang-switch-header a span {
  margin-left: 5px;
}

/* ================= DROPDOWN SAFE ================= */

.menu-container {
  position: relative;
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  max-width: 90vw; /* sécurité mobile */
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden; /* empêche débordement horizontal */
  background: #1a001a;
  border: 1px solid #ff2aa8;
  border-radius: 6px;
  box-sizing: border-box;
  display: none;
  z-index: 1001;
}

.menu-dropdown.show {
  display: block;
}