/* BW Translate — sélecteur de langue (s'adapte à la police du thème) */
.bwt-switcher { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; line-height: 1; }
.bwt-switcher .bwt-lang { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; text-decoration: none; color: inherit; opacity: .75; transition: opacity .15s, background .15s; }
.bwt-switcher .bwt-lang:hover, .bwt-switcher .bwt-lang:focus-visible { opacity: 1; background: rgba(0, 0, 0, .06); }
.bwt-switcher .bwt-lang.is-current { opacity: 1; font-weight: 700; background: var(--bwt-accent, #1b2f57); color: #fff; }
.bwt-flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); flex: none; }
.bwt-switcher .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.bwt-float { position: fixed; z-index: 99990; background: rgba(255, 255, 255, .96); color: #1f2937; padding: 4px; border-radius: 999px; box-shadow: 0 4px 18px rgba(0, 0, 0, .15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bwt-float.bwt-bottom-left { left: 16px; bottom: 16px; }
.bwt-float.bwt-bottom-right { right: 16px; bottom: 16px; }
.bwt-float.bwt-top-right { right: 16px; top: 16px; }
body.admin-bar .bwt-float.bwt-top-right { top: 48px; }

@media (max-width: 600px) {
	.bwt-float .bwt-lang { padding: 6px 8px; }
	.bwt-float.bwt-style-both .bwt-code { display: none; }
}
@media print { .bwt-float { display: none; } }

/* v2.1.0 — langues en préparation (visibles par l'admin uniquement) */
.bwt-switcher .bwt-lang.is-private { outline: 1px dashed currentColor; outline-offset: -3px; }
.bwt-preview-banner { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 99999; max-width: calc(100% - 32px); background: #fff7e6; color: #5a3d00; border: 1px solid #f0c36d; border-radius: 10px; padding: 10px 16px; font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.bwt-preview-banner a { color: #1b2f57; font-weight: 600; text-decoration: underline; margin-left: 6px; }
@media print { .bwt-preview-banner { display: none; } }
