/* ─── Locale Switcher — partagé entre tous les thèmes ─────────────────────── */

.locale-switcher {
  position: relative;
  display: inline-block;
  font-size: 13px;
  z-index: 200;
}

/* ── Bouton déclencheur ── */
.locale-switcher__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: all .2s ease;
  white-space: nowrap;
}

.locale-switcher__flag { font-size: 16px; line-height: 1; }
.locale-switcher__short { letter-spacing: .05em; }
.locale-switcher__arrow {
  transition: transform .2s ease;
  flex-shrink: 0;
}

/* ── Styles par contexte ── */
.locale-switcher[data-style="light"] .locale-switcher__btn {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.3);
}
.locale-switcher[data-style="light"] .locale-switcher__btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

.locale-switcher[data-style="dark"] .locale-switcher__btn {
  color: #1a2332;
  border-color: rgba(0,0,0,.15);
}
.locale-switcher[data-style="dark"] .locale-switcher__btn:hover {
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.3);
}

.locale-switcher[data-style="ghost"] .locale-switcher__btn {
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.18);
}
.locale-switcher[data-style="ghost"] .locale-switcher__btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

/* ── Flèche ouverte ── */
.locale-switcher.open .locale-switcher__arrow {
  transform: rotate(180deg);
}

/* ── Dropdown ── */
.locale-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  list-style: none;
  padding: 6px;
  margin: 0;
  animation: switcher-in .18s ease;
  border: 1px solid rgba(0,0,0,.06);
}

/* Ouvrir vers le haut si footer */
.locale-switcher.drop-up .locale-switcher__dropdown {
  top: auto;
  bottom: calc(100% + 8px);
}

.locale-switcher.open .locale-switcher__dropdown {
  display: block;
}

@keyframes switcher-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Options ── */
.locale-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #1a2332;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s;
  cursor: pointer;
}

.locale-switcher__option:hover {
  background: #f4f6f8;
  color: #1a2332;
}

.locale-switcher__option.is-current {
  background: #eef3f8;
  font-weight: 700;
  color: #1a3c5e;
}

.locale-switcher__label { flex: 1; }

.locale-switcher__check {
  color: #2b6cb0;
  font-size: 12px;
  font-weight: 700;
}

/* ── Footer variant ── */
.locale-switcher-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.locale-switcher-footer__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  letter-spacing: .03em;
}

.locale-switcher-footer__item.is-current {
  background: rgba(255,255,255,.15);
  color: #fff;
  cursor: default;
}

.locale-switcher-footer__item:not(.is-current) {
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.15);
}

.locale-switcher-footer__item:not(.is-current):hover {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
}
