/* ===== Sélecteur de langue (partagé entre toutes les pages) ===== */

/* --- Bouton principal --- */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #e8eaf0;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  white-space: nowrap;
}


.lang-current:hover {
  border-color: #37EFBA;
  background: rgba(55, 239, 186, 0.08);
}

.lang-globe {
  font-size: 0.75rem;
  opacity: 0.6;
}

.lang-chevron {
  font-size: 0.6rem !important;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.lang-selector.open .lang-chevron {
  transform: rotate(180deg);
}

/* --- Dropdown --- */
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #22263a;
  border: 1px solid rgba(55, 239, 186, 0.25);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 10000;
  min-width: 150px;
}


.lang-selector.open .lang-dropdown {
  display: block;
  animation: langFadeIn 0.15s ease;
}

@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Options --- */
.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  color: #e8eaf0;
  transition: background 0.15s ease;
}


.lang-dropdown button:hover {
  background: rgba(55, 239, 186, 0.1);
}

.lang-dropdown button.active {
  color: #37EFBA;
  font-weight: 600;
  background: rgba(55, 239, 186, 0.08);
}

/* --- Badge code langue --- */
.lang-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #37EFBA;
  border: 1px solid rgba(55, 239, 186, 0.4);
  border-radius: 3px;
  padding: 1px 4px;
  line-height: 1.5;
  flex-shrink: 0;
}

/* --- Conteneur aligné page CV --- */
.cv-top-controls {
  position: fixed;
  top: 14px;
  right: 12px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cv-top-controls .cv-lang-selector {
  position: static;
}

.cv-top-controls .toggle-container {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
}

.cv-lang-selector .lang-dropdown {
  right: 0;
}
