/* L'As Bien-Etre - Smartphone et application (23/10/2026)
   En-tete du haut allege et fixe (logo seul) + barre d'onglets fixee en bas :
   Accueil, Reserver, Mon espace, Menu. Ordinateur (1000 px et plus) : aucun changement.
   Charge par lbe-tabbar.php, actif seulement quand <body> porte la classe lbe-has-tb. */

.lbe-tb{display:none}

@media (max-width:999.98px){

  :root{
    --lbe-top-h:calc(84px + env(safe-area-inset-top, 0px));
    --lbe-tab-h:calc(88px + env(safe-area-inset-bottom, 0px));
  }
  html.lv,html{scroll-padding-top:calc(var(--lbe-top-h) + 16px)!important}
  body.lbe-has-tb{padding-bottom:var(--lbe-tab-h)}

  /* ---------- En-tete du haut : fixe, logo seul ---------- */
  body.lbe-has-tb #header [data-device="mobile"] .ct-sticky-container{height:var(--lbe-top-h)!important;min-height:0!important}
  body.lbe-has-tb #header [data-device="mobile"] [data-sticky]{position:fixed!important;top:0!important;left:0!important;right:0!important;width:auto!important;z-index:9991;transform:none!important;animation:none!important;opacity:1!important;background:none!important;box-shadow:none!important;border:0!important;box-sizing:border-box;padding:calc(12px + env(safe-area-inset-top, 0px)) max(12px,env(safe-area-inset-right, 0px)) 0 max(12px,env(safe-area-inset-left, 0px))!important;pointer-events:none}
  body.lbe-has-tb #header [data-device="mobile"] [data-row]{pointer-events:auto;background:#ECE4D7!important;border:1px solid rgba(31,25,20,.14)!important;border-radius:999px!important;box-shadow:0 8px 24px rgba(31,25,20,.16),0 1px 0 rgba(255,255,255,.5) inset!important;padding:0!important;overflow:hidden;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  body.lbe-has-tb #header [data-device="mobile"] [data-row]>.ct-container{--height:58px;box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;height:58px!important;min-height:58px!important;padding-inline:18px 10px!important}
  body.lbe-has-tb #header [data-device="mobile"] .site-branding{display:flex;align-items:center;margin:0!important}
  body.lbe-has-tb #header [data-device="mobile"] .site-logo-container{display:flex;align-items:center;gap:4px;height:auto!important;line-height:0;text-decoration:none!important}
  body.lbe-has-tb #header .lbe-tb-brand{display:block;color:#2B1B17;font:700 17px/1.2 Lato,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.005em;white-space:nowrap}
  html[data-lbe=dark] body.lbe-has-tb #header .lbe-tb-brand{color:#F3ECE2}
  body.lbe-has-tb #header [data-device="mobile"] .site-logo-container img{height:44px!important;max-height:44px!important;width:auto!important}
  body.lbe-has-tb #header [data-device="mobile"] :is(.lbe-hact,.ct-header-trigger,.lv-login){display:none!important}
  body.lbe-has-tb #header [data-device="mobile"] [data-column="end"]>[data-items]{display:flex;align-items:center;justify-content:flex-end;gap:0}
  body.lbe-has-tb #header [data-device="mobile"] .lbe-tt{display:inline-flex!important;width:38px;height:38px;margin:0!important;background:rgba(255,255,255,.7);border:1.5px solid rgba(31,25,20,.14);color:#5A4A3B}
  html[data-lbe=dark] body.lbe-has-tb #header [data-device="mobile"] .lbe-tt{background:rgba(255,255,255,.06);border-color:rgba(243,236,226,.2);color:#F1C98F}

  /* ---------- Barre d'onglets du bas ---------- */
  body.lbe-has-tb .lbe-tb{
    position:fixed;left:max(12px,env(safe-area-inset-left, 0px));right:max(12px,env(safe-area-inset-right, 0px));bottom:calc(12px + env(safe-area-inset-bottom, 0px));z-index:9990;
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:4px;
    box-sizing:border-box;height:68px;margin:0;padding:6px;
    background:#ECE4D7;border:1px solid rgba(31,25,20,.14);border-radius:999px;
    box-shadow:0 8px 24px rgba(31,25,20,.16),0 1px 0 rgba(255,255,255,.5) inset;
  }
  body.lbe-has-tb .lbe-tb .lbe-tb-i{
    -webkit-appearance:none;appearance:none;box-sizing:border-box;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    width:100%;min-width:0;height:54px!important;min-height:0!important;margin:0!important;padding:0!important;
    background:none!important;border:0!important;border-radius:999px;box-shadow:none!important;
    color:#6E5C4E;font:700 12px/14px Lato,system-ui,-apple-system,"Segoe UI",sans-serif!important;
    letter-spacing:.01em!important;text-transform:none!important;text-align:center;text-decoration:none!important;
    cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;
    transition:color 160ms,background-color 160ms,transform 160ms cubic-bezier(.16,1,.3,1);
  }
  body.lbe-has-tb .lbe-tb .lbe-tb-i svg{display:block;flex:none;width:24px;height:24px;pointer-events:none}
  body.lbe-has-tb .lbe-tb .lbe-tb-i span{display:block;white-space:nowrap}
  body.lbe-has-tb .lbe-tb .lbe-tb-i[aria-current="page"],
  body.lbe-has-tb .lbe-tb .lbe-tb-i[aria-expanded="true"]{color:#2B1B17;background:#C4A78C!important}
  body.lbe-has-tb .lbe-tb .lbe-tb-i:active{transform:scale(.94)}
  body.lbe-has-tb .lbe-tb .lbe-tb-i:focus-visible{outline:2px solid #A97E60;outline-offset:-2px}

  /* ---------- Barre qui retrecit au defilement (22/11/2026) ----------
     Vers le bas : barre plus basse et plus etroite, icones seules.
     Vers le haut : taille normale. Declencheur partage avec l'en-tete
     (classe html.lbe-hdr-off posee par lbe-header-scroll.php).
     Pas de retrecissement sur les etapes de reservation (.lbe-foot). */
  body.lbe-has-tb .lbe-tb{
    transition:height 360ms cubic-bezier(.16,1,.3,1),left 360ms cubic-bezier(.16,1,.3,1),right 360ms cubic-bezier(.16,1,.3,1),padding 360ms cubic-bezier(.16,1,.3,1),box-shadow 360ms;
  }
  body.lbe-has-tb .lbe-tb .lbe-tb-i{transition:color 160ms,background-color 160ms,transform 160ms cubic-bezier(.16,1,.3,1),height 360ms cubic-bezier(.16,1,.3,1),gap 360ms cubic-bezier(.16,1,.3,1)}
  body.lbe-has-tb .lbe-tb .lbe-tb-i span{max-height:14px;overflow:hidden;opacity:1;transition:opacity 220ms ease 80ms,max-height 360ms cubic-bezier(.16,1,.3,1)}
  html.lbe-hdr-off body.lbe-has-tb:not(:has(.lbe-phone.lbe-page .lbe-foot)) .lbe-tb{
    height:52px;padding:4px;
    left:max(48px,calc(50% - 150px),env(safe-area-inset-left, 0px));
    right:max(48px,calc(50% - 150px),env(safe-area-inset-right, 0px));
    box-shadow:0 6px 18px rgba(31,25,20,.14),0 1px 0 rgba(255,255,255,.5) inset;
  }
  html.lbe-hdr-off body.lbe-has-tb:not(:has(.lbe-phone.lbe-page .lbe-foot)) .lbe-tb .lbe-tb-i{height:44px!important;gap:0}
  html.lbe-hdr-off body.lbe-has-tb:not(:has(.lbe-phone.lbe-page .lbe-foot)) .lbe-tb .lbe-tb-i span{opacity:0;max-height:0;transition:opacity 120ms ease,max-height 360ms cubic-bezier(.16,1,.3,1)}
  html[data-lbe=dark].lbe-hdr-off body.lbe-has-tb:not(:has(.lbe-phone.lbe-page .lbe-foot)) .lbe-tb{box-shadow:0 6px 18px rgba(0,0,0,.4)}

  /* ---------- Elements fixes remontes au-dessus de la barre ---------- */
  body.lbe-has-tb #ht-ctc-chat{bottom:calc(var(--lbe-tab-h) + 14px)!important}
  /* 30/11/2026 : plus de bulle WhatsApp flottante sur smartphone (elle recouvrait des boutons) ; WhatsApp passe en icône dans l'en-tête, à gauche du bouton mode sombre */
  body.lbe-has-tb #ht-ctc-chat,body.lbe-has-tb .ht-ctc{display:none!important}
  body.lbe-has-tb #header [data-device="mobile"] .lbe-tb-wa{display:inline-flex;align-items:center;justify-content:center;flex:none;order:0;width:38px;height:38px;margin:0 8px 0 0;border-radius:999px;background:rgba(255,255,255,.7);border:1.5px solid rgba(31,25,20,.14);color:#5A4A3B;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:transform .15s ease}
  body.lbe-has-tb #header [data-device="mobile"] .lbe-tb-wa svg{width:19px;height:19px;display:block;pointer-events:none}
  body.lbe-has-tb #header [data-device="mobile"] .lbe-tb-wa:active{transform:scale(.92)}
  body.lbe-has-tb #header [data-device="mobile"] .lbe-tb-wa:focus-visible{outline:2px solid #A97E60;outline-offset:2px}
  html[data-lbe=dark] body.lbe-has-tb #header [data-device="mobile"] .lbe-tb-wa{background:rgba(255,255,255,.06);border-color:rgba(243,236,226,.2);color:#F1C98F}
  body.lbe-has-tb #lbe-ck{bottom:calc(var(--lbe-tab-h) + 10px)!important;max-height:calc(100vh - var(--lbe-tab-h) - var(--lbe-top-h) - 20px)!important;max-height:calc(100dvh - var(--lbe-tab-h) - var(--lbe-top-h) - 20px)!important}
  body.lbe-has-tb #lbe-av{bottom:calc(var(--lbe-tab-h) + 12px)!important}
  body.lbe-has-tb .lbe-phone.lbe-page .lbe-foot{bottom:var(--lbe-tab-h)!important;padding-bottom:13px!important}
  body.lbe-has-tb .lbec-nav{top:var(--lbe-top-h)!important}
  body.lbe-has-tb .lbec-sticky,body.lbe-has-tb .lv-bookbar{display:none!important}
  body.lbe-has-tb.lbe-oc-open #ht-ctc-chat{display:none!important}
  body.lbe-has-tb:has(.lbe-phone.lbe-page .lbe-foot) #ht-ctc-chat{bottom:calc(var(--lbe-tab-h) + 90px)!important}

  /* ---------- Mode sombre / clair dans le menu ---------- */
  body.lbe-has-tb #offcanvas .lbe-oc-theme{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    align-self:stretch;box-sizing:border-box;width:auto;
    margin:0 16px 24px;padding:16px 4px 0 18px;border-top:1px solid rgba(255,255,255,.16);
  }
  body.lbe-has-tb #offcanvas .lbe-oc-theme-l{
    color:rgba(255,255,255,.88);cursor:pointer;
    font-family:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
    font-size:16.5px;font-weight:700;line-height:1.3;letter-spacing:-.005em;
  }
  body.lbe-has-tb #offcanvas .lbe-oc-theme .lbe-tt{display:inline-flex!important;width:40px;height:40px;margin:0!important;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3);color:#fff}
}

/* ---------- Mode sombre ---------- */
@media (max-width:999.98px){
  html[data-lbe=dark] body.lbe-has-tb #header [data-device="mobile"] [data-row]{background:#2B1B17!important;border-color:rgba(243,236,226,.16)!important;box-shadow:0 8px 24px rgba(0,0,0,.45)!important}
  html[data-lbe=dark] body.lbe-has-tb .lbe-tb{background:#2B1B17;border-color:rgba(243,236,226,.16);box-shadow:0 8px 24px rgba(0,0,0,.45)}
  html[data-lbe=dark] body.lbe-has-tb .lbe-tb .lbe-tb-i{color:#B8A796}
  html[data-lbe=dark] body.lbe-has-tb .lbe-tb .lbe-tb-i[aria-current="page"],
  html[data-lbe=dark] body.lbe-has-tb .lbe-tb .lbe-tb-i[aria-expanded="true"]{color:#2B1B17;background:#C4A78C!important}
  html[data-lbe=dark] body.lbe-has-tb #offcanvas .lbe-oc-theme{border-top-color:rgba(243,236,226,.12)}
  html[data-lbe=dark] body.lbe-has-tb #offcanvas .lbe-oc-theme-l{color:#F3ECE2}
  html[data-lbe=dark] body.lbe-has-tb #offcanvas .lbe-oc-theme .lbe-tt{background:rgba(255,255,255,.06);border-color:rgba(243,236,226,.2);color:#F1C98F}
}

@media (prefers-reduced-motion:reduce){
  body.lbe-has-tb .lbe-tb .lbe-tb-i{transition:color 160ms}
  body.lbe-has-tb .lbe-tb .lbe-tb-i:active{transform:none}
  body.lbe-has-tb .lbe-tb,body.lbe-has-tb .lbe-tb .lbe-tb-i,body.lbe-has-tb .lbe-tb .lbe-tb-i span,
  html.lbe-hdr-off body.lbe-has-tb .lbe-tb .lbe-tb-i span{transition:none!important}
}
