/* Sélecteur de langue FR / EN */
.lang-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #443438;border-radius:15px;background:linear-gradient(#21191b,#120e10);box-shadow:inset 0 1px #ffffff16}
.lang-switch button,.site-actions .lang-switch button{min-width:38px!important;height:34px!important;padding:0 11px!important;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;color:#b9aab0!important;font:inherit;font-size:12px!important;font-weight:750;letter-spacing:.07em;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s,transform .2s}
.lang-switch button:hover,.site-actions .lang-switch button:hover{color:#fff!important;transform:none!important}
.lang-switch button[aria-pressed="true"],.site-actions .lang-switch button[aria-pressed="true"]{background:linear-gradient(120deg,#fb3038,#b51720)!important;color:#fff!important;box-shadow:0 0 16px #e9293b66,inset 0 1px #ffffff38!important}
.lang-switch button:focus-visible{outline:2px solid #ff8282;outline-offset:2px}
/* version flottante (pages sans barre de navigation, ex. connexion) */
.lang-floating{position:fixed;top:14px;right:14px;z-index:9999;backdrop-filter:none}
@media(max-width:480px){.lang-switch button,.site-actions .lang-switch button{min-width:32px!important;height:30px!important;padding:0 8px!important;font-size:11px!important}}

/* drapeaux */
.flag{display:block;width:24px;height:16px;border-radius:4px;background-size:cover;background-position:center;box-shadow:0 0 0 1px #ffffff2e,0 2px 6px #0006}
.flag-fr{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%230055A4'/%3E%3Crect x='1' width='1' height='2' fill='%23fff'/%3E%3Crect x='2' width='1' height='2' fill='%23EF4135'/%3E%3C/svg%3E")}
.flag-en{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23012169'/%3E%3Cpath d='M0 0l60 40M60 0L0 40' stroke='%23fff' stroke-width='8'/%3E%3Cpath d='M0 0l60 40M60 0L0 40' stroke='%23C8102E' stroke-width='3'/%3E%3Cpath d='M30 0v40M0 20h60' stroke='%23fff' stroke-width='13'/%3E%3Cpath d='M30 0v40M0 20h60' stroke='%23C8102E' stroke-width='7'/%3E%3C/svg%3E")}
.lang-switch button,.site-actions .lang-switch button{min-width:42px!important;display:inline-grid!important;place-items:center;padding:0 9px!important}
.lang-switch button .flag{opacity:.55;transition:opacity .2s,transform .2s}
.lang-switch button:hover .flag{opacity:.9}
.lang-switch button[aria-pressed="true"] .flag{opacity:1;transform:scale(1.06)}
.lang-switch button[aria-pressed="true"],.site-actions .lang-switch button[aria-pressed="true"]{background:linear-gradient(135deg,#ffffff22,#ffffff0a)!important;box-shadow:0 0 0 1px #ff4d5888,0 0 16px #e9293b55!important}
