/* menu langue */
.language-selector {
        position: relative;
        cursor: pointer;
        }


#language-popup {
  position: fixed;
  width: min(260px, calc(100vw - 14px));
  border-radius: 14px;
  border: 1px solid #c7d7dc;
  padding: 8px;
  z-index: 9998;
  background: linear-gradient(180deg, #ffffff 0%, #eef4f5 100%);
  box-shadow: 0 18px 36px rgba(22, 56, 75, 0.2);
  animation: languagePopupIn 0.16s ease;
}

.flag-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.lang-option {
  min-height: 40px;
  border: 1px solid #dde8ea;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4f5 100%);
  color: #16384b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.lang-option:hover {
  transform: translateY(-1px);
  border-color: #c7d7dc;
  background: linear-gradient(180deg, #ffffff 0%, #eef4f5 100%);
  box-shadow: 0 8px 16px rgba(22, 56, 75, 0.12);
}

.lang-option.is-active {
  border-color: #7fa8b2;
  background: linear-gradient(180deg, #f3fbf9 0%, #eaf8f5 100%);
  box-shadow: inset 0 0 0 1px #a3bec6;
}

.lang-option .fix-flag {
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #c7d7dc;
  flex-shrink: 0;
}

@keyframes languagePopupIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media screen and (max-width: 520px) {
  #language-popup {
    width: min(222px, calc(100vw - 12px));
    padding: 7px;
  }

  .flag-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .lang-option {
    min-height: 36px;
    padding: 5px;
    border-radius: 9px;
  }

  .lang-option .fix-flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
  }
}
