/* ==========================================================================
   Commun a toutes les pages ProAdmin : la police cyrillique (bulgare, russe)
   et le selecteur de langue a drapeaux, calque sur celui de vvl-lang.dev
   (bouton drapeau + panneau de tous les pays avec recherche), injecte par
   /static/assets/js/i18n.js dans chaque element [data-lang-slot].
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/static/assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

[data-lang-slot] { display: inline-flex; flex: none; }

/* Emplacement des ecrans plein cadre (connexion, inscription, 404) */
.lang-coin { position: absolute; z-index: 5; top: 18px; right: 20px; }

.cty-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 9px;
  border: 1.5px solid rgba(18, 80, 26, 0.3);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
  color: #14210f;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.cty-trigger:hover, .cty-trigger.has-value { border-color: #2f8a12; }
.cty-trigger:hover { background: #ffffff; }
.cty-trigger:focus-visible { outline: 3px solid #4cb81a; outline-offset: 2px; }
.cty-trigger .fi { width: 22px; height: 16.5px; }
.cty-empty { font-size: 16px; line-height: 1; }
/* Fleche dessinee : le caractere equivalent n'existe pas dans Montserrat. */
.cty-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #55664d; }

.cty-panel {
  position: fixed;
  z-index: 13000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 1.5px solid #2f8a12;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(10, 36, 16, 0.25);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}
.cty-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1.5px solid #c9d6c0;
  border-radius: 8px;
  background: #f4f8ef;
  color: #14210f;
  font: inherit;
  font-size: 13px;
}
.cty-search:focus { outline: none; border-color: #2f8a12; }
.cty-list { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; }
.cty-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: #14210f;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.cty-row:hover, .cty-row:focus-visible { background: #eef9df; outline: none; }
.cty-row.is-sel { background: #dff5c8; font-weight: 700; }
.cty-row .fi { flex: 0 0 auto; width: 22px; height: 16.5px; }
.cty-none { flex: 0 0 22px; text-align: center; color: #55664d; }
.cty-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .cty-trigger { transition: none; }
}
