/* Cercle IA · menu des pays du champ téléphone (assets/js/telephone.js).
   Posé en position fixe pour sortir des cartes à overflow caché (Mon compte, pop-up admin).
   Clair par défaut (admin, Mon compte) ; data-theme="sombre" sur l'inscription (navy). */
.tel-menu {
  --tel-bg: var(--surface, #fff);
  --tel-fg: var(--text-1, #0c1023);
  --tel-muted: var(--text-3, rgba(12, 16, 35, 0.46));
  --tel-line: var(--border-1, rgba(12, 16, 35, 0.1));
  --tel-hover: var(--surface-2, #f7f3ea);
  --tel-sel: rgba(184, 146, 62, 0.12);
  --tel-sel-fg: var(--gold-600, #967431);
  --tel-flag-line: rgba(12, 16, 35, 0.1);
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 6px;
  box-sizing: border-box;
  background: var(--tel-bg);
  color: var(--tel-fg);
  border: 1px solid var(--tel-line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(12, 16, 35, 0.14);
  font: 400 14px "Inter", system-ui, sans-serif;
  animation: tel-menu-in 160ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.tel-menu[hidden] { display: none; }
.tel-menu.is-up { animation-name: tel-menu-in-up; }
.tel-menu[data-theme="sombre"] {
  --tel-bg: #111530;
  --tel-fg: #fff;
  --tel-muted: rgba(255, 255, 255, 0.46);
  --tel-line: rgba(255, 255, 255, 0.1);
  --tel-hover: rgba(255, 255, 255, 0.06);
  --tel-sel: rgba(184, 146, 62, 0.16);
  --tel-sel-fg: #d9be86;
  --tel-flag-line: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
@keyframes tel-menu-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes tel-menu-in-up { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .tel-menu { animation: none; } }

.tel-menu-liste {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
}
.tel-menu-groupe {
  padding: 10px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tel-muted);
}
.tel-menu-liste [role="option"] {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
}
.tel-menu-liste [role="option"].is-actif { background: var(--tel-hover); }
.tel-menu-liste [role="option"][aria-selected="true"] {
  background: var(--tel-sel);
  color: var(--tel-sel-fg);
  font-weight: 600;
}
.tel-menu-liste img {
  flex-shrink: 0;
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--tel-flag-line);
}
.tel-menu-nom {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tel-menu-ind {
  flex-shrink: 0;
  color: var(--tel-muted);
  font-variant-numeric: tabular-nums;
}
[aria-selected="true"] .tel-menu-ind { color: inherit; opacity: 0.8; }
