/* ecom-i18n.css — sélecteur langue header (mobile natif + desktop drapeaux SVG)
 * ECOMMERCE LOT 3 2026-06-11 : clone de demo-restaurant/css/resto-i18n.css (L8 : CSS porté avec le header)
 * (CSS local hôtel — le shared est intouchable). Hérite des variables du thème bleu (--accent-strong = focus). */
/* Langue + thème accolés (demande Erwan 2026-06-09) : groupe flex serré → la langue colle au
   toggle thème (au lieu d'être répartie par le space-between de .en-nav). Le CTA reste séparé. */
.en-nav-langtheme { display:flex; align-items:center; gap:0.25rem; }
/* Chantier i18n langswitch (2026-06-09) — sélecteur langue = DRAPEAU SEUL (look bot exact),
   partout (mobile + desktop). 0 texte, 0 caret. Hybride a11y : <select> natif opacity:0 superposé
   (focus clavier + lecteur d'écran + picker natif mobile, JAMAIS display:none) ; le drapeau de la
   langue active est le seul visuel. Les <option> = drapeau + endonyme (menu + annonce a11y). */
.en-lang-compact {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-inline-end: 0;
}
/* Bouton langue NU (sans rond/bordure/fond), zone tactile ≥44×44px (le <select> superposé hérite
   de cette taille → cible tactile conforme). Seul le drapeau est visible. */
.en-lang-compact__display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  line-height: 1;
  pointer-events: none; /* le <select> dessous capte les events */
}
.en-lang-compact__flag {
  font-size: 1.25rem;
  line-height: 1;
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}
/* <select> réellement invisible : opacity:0 + appearance:none + color/bg transparents → ni texte
   de l'option sélectionnée ni flèche native ne transparaissent sous le drapeau. */
.en-lang-compact__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  color: transparent;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.en-lang-compact__select::-ms-expand { display: none; }
/* focus visible WCAG : anneau sur le visuel quand le <select> natif est focus (clavier) */
.en-lang-compact:hover .en-lang-compact__flag { filter: brightness(0.85); }
.en-lang-compact:focus-within .en-lang-compact__display {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 8px;
}
/* === Sélecteur langue DESKTOP custom (drapeaux SVG) — LOT langselect-desktop 2026-06-09 ======
   Mobile/tactile : .en-lang-compact (natif, ci-dessus) CONSERVÉ. Desktop (pointer:fine) : custom
   ci-dessous (drapeaux flag-icons MIT/CC0 locaux, pattern WAI-ARIA listbox). Les deux sont dans le
   DOM ; un seul rendu par viewport. NE PAS confondre avec le header BOT (Fix B, autre fichier). */
.en-lang-desktop { display: none; }
.en-lang-compact { display: none; }
/* desktop : masque le natif */
  .en-lang-desktop { position: relative; display: inline-flex; align-items: center; }
.en-lang-desktop__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 6px;   /* cible clic ≥44px */
  background: transparent; border: 0; cursor: pointer; line-height: 0;
}
.en-lang-desktop__flag {
  width: 24px; height: 18px; display: block; object-fit: cover;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.en-lang-desktop:hover .en-lang-desktop__btn .en-lang-desktop__flag { filter: brightness(0.9); }
.en-lang-desktop__btn:focus-visible {
  outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 6px;
}
.en-lang-desktop__menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  margin: 0; padding: 4px; list-style: none;
  min-width: 200px; max-height: 60vh; overflow-y: auto;
  background: var(--surface-1); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.22); z-index: 1200; display: none;
  /* scrollbar fine thématisée (16 langues → défilement) — Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--text-faint) transparent;
}
/* scrollbar WebKit/Chromium : piste transparente, pouce arrondi discret, mint au survol */
.en-lang-desktop__menu::-webkit-scrollbar { width: 8px; }
.en-lang-desktop__menu::-webkit-scrollbar-track { background: transparent; }
.en-lang-desktop__menu::-webkit-scrollbar-thumb {
  background: var(--text-faint); border-radius: 8px;
  border: 2px solid transparent; background-clip: padding-box;
}
.en-lang-desktop__menu::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong, #5C1822); border: 2px solid transparent; background-clip: padding-box;
}
.en-lang-desktop__menu.is-open { display: block; }
.en-lang-desktop__menu:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: -2px; }
.en-lang-desktop__opt {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 8px 12px; cursor: pointer; border-radius: 6px; white-space: nowrap;
}
.en-lang-desktop__opt .en-lang-desktop__name { font-size: 0.95rem; }
.en-lang-desktop__opt.is-active,
.en-lang-desktop__opt:hover { background: var(--surface-3); }
.en-lang-desktop__opt.is-selected { font-weight: 600; }
.en-lang-desktop__opt.is-selected::after {
  content: '✓'; margin-inline-start: auto; color: var(--accent-strong, #5C1822); font-weight: 700;
}
@media (pointer: fine), (min-width: 1025px) and (hover: hover) {
.en-lang-compact { display: none; }
/* desktop : masque le natif */
  .en-lang-desktop { position: relative; display: inline-flex; align-items: center; }
}

/* LOT POLISH 2026-06-10 (Item 1) — brand raccourci mobile : « Le Bistrot Koaee » → « Le Bistrot »
   ≤480px (le CTA « Commander » était coupé @360-412 avec le brand long + drapeau + thème).
   Desktop inchangé. Brand = verbatim ×16 (glossaire), identique RTL. */
.en-nav-logo__short { display: none; }
@media (max-width: 480px) {
    .en-nav-logo__full { display: none; }
    .en-nav-logo__short { display: inline; }
}

/* FIX CTA header mobile (2026-06-11) — squeeze ÉTENDU ≤374 → ≤414px, dimensionné Shop (R32) :
   le breakpoint 374 venait du header RESTO ; le Shop a une icône caddie panier EN PLUS →
   fr « COMMANDER » débordait @375-407 (right=400/390 mesuré) et pt « ENCOMENDAR » @360-411
   (right=407/390) — pt raccourci via la clé i18n (« Pedir », is_override, jamais de troncature
   CSS sauvage). letter-spacing en !important : le PIN ≤480 (.1em !important) écrasait le
   tracking du squeeze, qui ne s'appliquait JAMAIS (conflit mesuré, marge fr@360 = −1px). */
@media (max-width: 414px) {
    .en-nav { padding-left: 12px; padding-right: 12px; }
    .en-nav-cta--order { padding-left: 7px; padding-right: 7px; letter-spacing: .06em !important; }
    .en-nav-cta__icon { display: none; }
}

/* LOT POLISH Item 1 — PIN défensif mobile : en dark (fresh load), le CTA calcule font-size 16px
   au lieu des .75rem spécifiés (anomalie computed mesurée R32, cause racine non-CSS à creuser —
   aucune règle dark ne porte de font-size sur .en-nav-cta*). On épingle la taille mobile en local.
   (letter-spacing retiré du pin : il écrasait le squeeze — tracking porté par le squeeze ci-dessus.) */
@media (max-width: 480px) {
    .en-nav-cta--order { font-size: .75rem !important; }
}
@media (min-width: 415px) and (max-width: 480px) {
    .en-nav-cta--order { letter-spacing: .1em; }
}
