/* GradedHunter — sélecteur de langue de l'en-tête (site bilingue FR / EN, 22/11/2026).
   Pastille drapeau + code (FR / EN), menu compact ; drapeau seul sous 600 px. Même langage que .gh-search / .gh-snap. */
.gh-lang{position:relative;flex:0 0 auto;margin-left:8px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.gh-lang summary{list-style:none;display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 10px 0 9px;border:1px solid #2a2f38;border-radius:999px;
  background:#14171d;color:#c9d1dc;font:700 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;letter-spacing:.06em;cursor:pointer;user-select:none;
  transition:border-color .15s,color .15s,background-color .15s}
.gh-lang summary::-webkit-details-marker{display:none}
.gh-lang summary:hover{border-color:#3a414d;color:#e9eef5}
.gh-lang summary:focus-visible{outline:2px solid #d9a45a;outline-offset:2px}
.gh-lang[open] summary{border-color:#c08a3e;color:#e9eef5;background:#1a1d24}
.gh-lang .car{color:#5f6773;font-size:9px;letter-spacing:0;transition:transform .15s}
.gh-lang[open] .car{transform:rotate(180deg);color:#d9a45a}
.gh-flag{display:block;flex:0 0 auto;width:20px;height:14px;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.14),0 1px 2px rgba(0,0,0,.5)}
.gh-lang-m{position:absolute;right:0;top:42px;z-index:80;min-width:184px;padding:6px;background:#14171d;border:1px solid #2a2f38;border-radius:12px;
  box-shadow:0 16px 36px rgba(0,0,0,.5),0 0 0 1px rgba(0,0,0,.2);animation:gh-lang-in .14s ease-out}
.gh-lang-m::before{content:"";position:absolute;right:16px;top:-6px;width:10px;height:10px;background:#14171d;border-left:1px solid #2a2f38;border-top:1px solid #2a2f38;transform:rotate(45deg)}
@keyframes gh-lang-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.gh-lang-m a{position:relative;display:flex;align-items:center;gap:11px;padding:9px 10px 9px 11px;border-radius:8px;color:#e9eef5;text-decoration:none;
  font:500 13.5px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;white-space:nowrap}
.gh-lang-m a:hover{background:rgba(255,255,255,.05)}
.gh-lang-m a:focus-visible{outline:none;background:rgba(217,164,90,.10);box-shadow:inset 0 0 0 1px rgba(217,164,90,.55)}
.gh-lang-m a span{flex:1}
.gh-lang-m a .ok{color:#d9a45a;visibility:hidden}
.gh-lang-m a.on{color:#d9a45a;font-weight:650;background:rgba(192,138,62,.10)}
.gh-lang-m a.on .ok{visibility:visible}
@media (prefers-reduced-motion:reduce){.gh-lang-m{animation:none}.gh-lang .car{transition:none}}
/* L'en-tête est serré : le code et la flèche disparaissent sous 1 100 px là où le bouton Scanner perd déjà son texte… */
@media (max-width:1000px){.gh-lang{margin-left:6px}}
/* … et le drapeau seul, en bouton rond, sous 600 px */
@media (max-width:600px){
  .gh-lang summary{width:36px;height:36px;padding:0;justify-content:center}
  .gh-lang-c,.gh-lang .car{display:none}
  .gh-lang-m{top:44px}
}
@media (max-width:480px){.gh-lang summary{width:32px;height:32px}.gh-lang-m{top:40px}.gh-flag{width:18px;height:12.6px}}
@media (max-width:400px){.gh-lang{margin-left:3px}.gh-lang summary{width:30px;height:30px}.gh-flag{width:17px;height:12px;border-radius:2px}.gh-lang-m{top:38px;right:-4px}}
