/* Styles pour les drapeaux */
.flag-icon {
  display: inline-block;
  width: 18px;
  height: 12px;

  background-size: cover;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid #f0f0f0;
  background-position: center;
  background-repeat: no-repeat;
}

.flag-fr {
  background-image: url("../../assets/img/flag/fr.svg");
}
.flag-de {
  background-image: url("../../assets/img/flag/de.svg");
}

/* Styles du sélecteur */
.language-switcher .dropdown-toggle {
  background: transparent;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  color: #333;
  transition: all 0.3s ease;
}

.language-switcher .dropdown-toggle:hover {
  background: #f8f9fa;
  border-color: #d0d0d0;
}

.dropdown-menu {
  min-width: 120px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  font-size: 14px;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item.active {
  background-color: #e9f0ff;
  color: #007bff;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 767px) {
  .language-switcher {
    width: 100%;
    margin-top: 15px;
    padding: 0 15px;
  }

  .language-switcher .dropdown {
    width: 100%;
  }

  .language-switcher .dropdown-toggle {
    width: 100%;
    justify-content: center;
  }

  .language-switcher .dropdown-menu {
    width: 100%;
  }
}
