/* Couche i18n ApexVPS : barre de langues, selecteur de nav, bandeau de suggestion.
   Volontairement autonome : aucune dependance a Tailwind, pour rester identique
   sur les 45 gabarits de page (7 d'entre eux n'ont ni footer ni nav standard). */

#apex-langbar {
  background: #0f172a;
  color: #64748b;
  font-size: 13px;
  line-height: 1.9;
  padding: 18px 24px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: baseline;
  justify-content: center;
  border-top: 1px solid #1e293b;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#apex-langbar-label {
  color: #f8fafc;
  font-weight: 600;
  margin-inline-end: 4px;
}
#apex-langbar a {
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
}
#apex-langbar a:hover { color: #fff; text-decoration: underline; }
#apex-langbar a[aria-current] { color: #60a5fa; font-weight: 600; }

/* --- selecteur compact insere dans la nav (ajoute par i18n.js) --- */
/* inline-flex + align-items : les trois gabarits de nav du site n'ont pas tous
   items-center sur leur conteneur, on ne depend donc pas du leur. */
.apex-langpick { position: relative; display: inline-flex; align-items: center; }
.apex-langpick > button {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 8px 10px; border: 0; border-radius: 12px;
  background: transparent; color: #334155; cursor: pointer;
}
.apex-langpick > button:hover { background: #f1f5f9; }
.apex-langpick[data-open="true"] > button { background: #f1f5f9; }
.apex-langpick svg { width: 16px; height: 16px; flex: none; }
.apex-langpick ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
  min-width: 190px; max-height: 340px; overflow-y: auto;
  display: none; z-index: 60;
}
.apex-langpick[data-open="true"] ul { display: block; }
.apex-langpick li a {
  display: block; padding: 8px 12px; border-radius: 9px;
  font-size: 14px; color: #334155; text-decoration: none; white-space: nowrap;
}
.apex-langpick li a:hover { background: #f1f5f9; }
.apex-langpick li a[aria-current] { color: #2563eb; font-weight: 600; }

/* --- bandeau de suggestion, non bloquant --- */
#apex-langsuggest {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 70;
  margin-inline: auto; max-width: 560px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #0f172a; color: #e2e8f0;
  border: 1px solid #1e293b; border-radius: 16px;
  padding: 14px 16px; font-size: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .28);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#apex-langsuggest p { margin: 0; flex: 1 1 240px; }
#apex-langsuggest a {
  background: #2563eb; color: #fff; text-decoration: none;
  padding: 8px 14px; border-radius: 10px; font-weight: 600; white-space: nowrap;
}
#apex-langsuggest a:hover { background: #1d4ed8; }
#apex-langsuggest button {
  background: transparent; border: 0; color: #94a3b8;
  font: inherit; cursor: pointer; padding: 8px; border-radius: 8px;
}
#apex-langsuggest button:hover { color: #fff; }

@media (max-width: 480px) {
  #apex-langbar { font-size: 12px; gap: 2px 14px; }
}
