/* resto-i18n.css — sélecteur langue header (mobile natif + desktop drapeaux SVG)
 * LOT i18n pages resto 2026-06-10 : règles PORTÉES depuis demo-hotellerie/css/emerald-noir.css
 * (CSS local hôtel — le shared est intouchable). Hérite des variables du thème orange. */
/* 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(--en-mint);
  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(--en-mint); 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(--en-surface-high, #ffffff); color: var(--en-text, #14201c);
  border: 1px solid var(--en-surface-hover, rgba(0,0,0,.15)); 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(--en-text-faint, rgba(128,128,128,.5)) 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(--en-text-faint, rgba(128,128,128,.5)); border-radius: 8px;
  border: 2px solid transparent; background-clip: padding-box;
}
.en-lang-desktop__menu::-webkit-scrollbar-thumb:hover {
  background: var(--en-mint, #10b981); 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(--en-mint); 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(--en-surface-hover, rgba(16,185,129,.14)); }
.en-lang-desktop__opt.is-selected { font-weight: 600; }
.en-lang-desktop__opt.is-selected::after {
  content: '✓'; margin-inline-start: auto; color: var(--en-mint, #10b981); 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; }
}

/* LOT POLISH Item 1 — squeeze ≤374px (mesure R32 @360 fr : CTA right=385/360, −49px requis).
   Gisements : padding nav 24→12, CTA padding/tracking réduits, icône CTA masquée (le libellé
   « Commander » ENTIER prime). 390/412 inchangés (passaient déjà avec le brand court). */
@media (max-width: 374px) {
    .en-nav { padding-left: 12px; padding-right: 12px; }
    .en-nav-cta--order { padding-left: 8px; padding-right: 8px; letter-spacing: .06em; }
    .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.
   ANNEXE FIX BOUTONS (2026-06-11, leçon CTA Shop) : letter-spacing RETIRÉ du pin — il écrasait
   le .06em du squeeze ≤374 qui ne s'appliquait JAMAIS (ls mesuré 1.2px partout). Le tracking du
   squeeze passe en !important ci-dessus ; .1em re-déclaré sur 375-480 seulement. pt « Encomendar »
   débordait @390 (+1px mesuré) → raccourci par la clé i18n (« Pedir », is_override). Marge
   surveillée : fr @390 = −5px (pas de débordement ; re-mesurer si le header resto gagne un item). */
@media (max-width: 480px) {
    .en-nav-cta--order { font-size: .75rem !important; }
}
@media (min-width: 375px) and (max-width: 480px) {
    .en-nav-cta--order { letter-spacing: .1em; }
}

/* FIX FILTRE (2026-06-12) — hidden neutralisé par .en-card-wrap{display:flex} (base.css:130,
   bat la règle UA [hidden] ; mesuré : 25/28 cartes « cachées » affichées). Règle du contrat
   composant socle, portée ici pour le fallback no-JS / pré-script (koaee-filters.js defer). */
[data-koaee-filter-grid] [data-cat][hidden] { display: none !important; }

/* =========================================================================
   FIX BOUTONS RESTO (GO Erwan 2026-06-11) — SYSTÈME HÔTEL « REMPLI » DÉCLINÉ ORANGE.
   Re-override LOCAL du fix8 base.css (ghost outline orange imposé en SHARED) — technique
   Shop A1 : !important vs !important, cette feuille charge APRÈS base.css → le dernier
   gagne (AP-009 maîtrisé) ; pendants dark en spécificité 0,2,0 (piège fix8 mesuré).
   base.css / hôtel INTACTS. Périmètre = boutons de PAGE uniquement (widget chatbot exclu).
   Contrastes MESURÉS : light #C2410C/blanc 5.18 AA (hover #9A3412 7.31) ·
   dark #FF6B35/#1a1a1a 6.14 AA (hover #FF8557 7.25). Radius : plus de 0 imposé —
   primaire carré (langage hôtel), chips .75rem (base), nav CTA 6px (base).
   ========================================================================= */
.en-btn-primary, .en-nav-cta--order, .en-btn-direct {
    background: #C2410C !important;                 /* rempli light, blanc 5.18 AA */
    border: 1px solid #C2410C !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    transition: background-color .25s ease, transform .2s ease !important;
}
.en-btn-primary:hover, .en-btn-primary:focus-visible,
.en-nav-cta--order:hover, .en-nav-cta--order:focus-visible,
.en-btn-direct:hover, .en-btn-direct:focus-visible {
    background: #9A3412 !important;                 /* hover sombre 7.31 AA */
    border-color: #9A3412 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;          /* lift pattern hôtel */
}
/* Pendants DARK — même spécificité que fix8 (0,2,0) : rempli orange vif, label sombre */
[data-theme="dark"] .en-btn-primary, [data-theme="dark"] .en-nav-cta--order, [data-theme="dark"] .en-btn-direct {
    background: var(--accent-surface) !important;
    border-color: var(--accent-surface) !important;
    /* RGAA §49 (2026-07-09) : le #1a1a1a datait de --accent-surface = #FF6B35 (6.14 AA) ; depuis THEMES-GEN
       la surface est CONSTANTE #C44518 (L3) → #1a1a1a mesuré 3.49 FAIL. Suivre le token pair du thème. */
    color: var(--text-on-surface) !important;        /* #ffffff, 4.77 AA sur #C44518 */
}
[data-theme="dark"] .en-btn-primary:hover, [data-theme="dark"] .en-btn-primary:focus-visible,
[data-theme="dark"] .en-nav-cta--order:hover, [data-theme="dark"] .en-nav-cta--order:focus-visible,
[data-theme="dark"] .en-btn-direct:hover, [data-theme="dark"] .en-btn-direct:focus-visible {
    background: #FF8557 !important;                 /* hover clair 7.25 AA */
    border-color: #FF8557 !important;
    color: #1a1a1a !important;
}
/* Radius : restaurer le langage hôtel par-dessus le 0 imposé fix8 */
.en-nav-cta--order { border-radius: 6px !important; }
/* Ghost/secondaire = pattern hôtel : bordure + label neutre, hover REMPLI orange */
.en-btn-ghost {
    background: transparent !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}
.en-btn-ghost:hover, .en-btn-ghost:focus-visible {
    background: #C2410C !important;
    border-color: #C2410C !important;
    color: #ffffff !important;
}
[data-theme="dark"] .en-btn-ghost { color: var(--text) !important; }
[data-theme="dark"] .en-btn-ghost:hover, [data-theme="dark"] .en-btn-ghost:focus-visible {
    background: var(--accent-surface) !important;
    border-color: var(--accent-surface) !important;
    color: var(--text-on-surface) !important;        /* RGAA §49 : idem bloc dark repos (surface #C44518) */
}
/* Hero : le ghost sur photo reste lisible (pattern Phase B blanc hardcodé conservé au repos) */
.en-hero-full .en-btn-ghost, .en-hero-full-content .en-btn-ghost {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, .7) !important;
}
/* Chips filtres = pattern hôtel : inactif OUTLINE discret, actif/hover REMPLI */
.en-filter-btn {
    background: transparent !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border) !important;
    border-radius: .75rem !important;                /* chips hôtel (base.css), plus de 0 imposé */
    text-transform: none !important;
}
.en-filter-btn:hover, .en-filter-btn.active,
[data-theme="dark"] .en-filter-btn:hover, [data-theme="dark"] .en-filter-btn.active {
    background: #C2410C !important;
    border-color: #C2410C !important;
    color: #ffffff !important;
}
[data-theme="dark"] .en-filter-btn { background: transparent !important; color: var(--text-muted) !important; }
[data-theme="dark"] .en-filter-btn:hover, [data-theme="dark"] .en-filter-btn.active {
    background: var(--accent-surface) !important;
    border-color: var(--accent-surface) !important;
    color: #1a1a1a !important;
}
/* Tri : même langage que les chips — outline neutre, label neutre (sélecteurs en
   select.en-sort-select : fix9 base.css force le label orange à 0,1,1 / 0,2,1).
   Chevron orange conservé (graphique, fix7). */
select.en-sort-select, .en-sort-select {
    border: 1px solid var(--border) !important;
    border-radius: .75rem !important;
    color: var(--text-muted) !important;
}
[data-theme="dark"] select.en-sort-select, [data-theme="dark"] .en-sort-select { color: var(--text-muted) !important; }

/* DISCLAIMER token AA — resto : accent orange global #FF6B35 échoue sur bande blanche en light
   (token « Koaee » = 2.84:1). Override LIGHT-only, scopé resto-local (SHARED chatbot-widget.css
   intouché). Spécificité (0,2,0) > SHARED (0,1,0). #C2410C = 5.18:1 ✅. dark resto intouché. art.50. */
[data-theme="light"] .ubnbee_ai-disclaimer-brand { color:#C2410C; }
