/* L'As Bien-Etre - Menu mobile en tiroir lateral (22/11/2026).
   Remplace le menu plein ecran : tiroir a droite, page visible et assombrie a gauche,
   fond ivoire (marron fonce en mode sombre), rubriques et icones en tuiles.
   Charge par lbe-oc-menu.php apres menu.css et tabbar.css. */

/* ---------- Voile et tiroir ---------- */
html body #offcanvas.ct-panel{
  --side-panel-width:min(320px, 78vw);
  background:rgba(43,27,23,.42)!important;
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
}
html body #offcanvas.ct-panel .ct-panel-inner{
  width:var(--side-panel-width)!important; max-width:var(--side-panel-width)!important;
  background:#FBF8F3!important;
  border-radius:26px 0 0 26px;
  box-shadow:-24px 0 60px -28px rgba(43,27,23,.55);
  display:flex; flex-direction:column;
}

/* En-tete du tiroir : titre « Menu » et croix */
html body #offcanvas .ct-panel-actions{
  justify-content:space-between!important;
  padding:calc(env(safe-area-inset-top, 0px) + 18px) 14px 6px 24px!important;
}
html body #offcanvas .ct-panel-actions::before{
  content:"Menu"; font:700 19px/1.2 Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing:-.01em; color:#2B1B17;
}
html body #offcanvas .ct-panel-actions .ct-toggle-close{
  --theme-icon-color:#7A6A5A; --theme-icon-hover-color:#2B1B17;
  color:#7A6A5A!important; background:#F3ECE2!important; width:38px; height:38px;
}
html body #offcanvas .ct-panel-actions .ct-toggle-close:hover,
html body #offcanvas .ct-panel-actions .ct-toggle-close:focus-visible{ background:#EAE0D2!important; color:#2B1B17!important; }

/* Contenu : la liste defile, le mode sombre reste en bas */
html body #offcanvas .ct-panel-content{ flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
html body #offcanvas .ct-panel-content-inner{
  display:flex!important; flex-direction:column; align-items:stretch!important;
  min-height:100%; box-sizing:border-box; padding:0 0 calc(env(safe-area-inset-bottom, 0px) + 18px)!important;
}
html body #offcanvas nav.mobile-menu{ width:100%; text-align:left; }
html body #offcanvas nav.mobile-menu > ul{ gap:2px!important; padding:4px 14px 12px!important; }

/* ---------- Rubriques ---------- */
html body #offcanvas .lbe-oc-sec{
  display:block; margin:18px 10px 6px;
  font:700 11.5px/1.2 Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing:.14em; text-transform:uppercase; color:#826B4E; text-align:left;
}
html body #offcanvas nav.mobile-menu > ul > li:first-child .lbe-oc-sec{ margin-top:6px; }
html body #offcanvas nav.mobile-menu > ul > li{ display:block!important; text-align:left!important; }
html body #offcanvas nav.mobile-menu .lbe-oc-sec{ width:auto; align-self:stretch; text-align:left!important; }

/* ---------- Liens ---------- */
html body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link{
  display:flex!important; align-items:center; gap:14px;
  padding:7px 10px!important; min-height:50px; border-radius:16px!important;
  color:#2B1B17!important; background:transparent!important; box-shadow:none!important;
  font-family:Lato, system-ui, -apple-system, "Segoe UI", sans-serif!important;
  font-size:16px!important; font-weight:600!important; letter-spacing:0!important;
  transition:background-color .2s ease, color .2s ease;
}
html body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link::after{ display:none!important; }
html body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link:hover,
html body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link:focus-visible{ background:#F3ECE2!important; color:#2B1B17!important; }
html body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link:focus-visible{ outline:2px solid #A97E60; outline-offset:2px; }
html body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link[href*="/offrir"]{ color:#2B1B17!important; }

/* Tuile d'icone */
html body #offcanvas .lbe-oc-ic{
  flex:0 0 auto; display:grid; place-items:center; width:36px; height:36px; border-radius:12px;
  background:linear-gradient(180deg,#F7F1E8 0%,#EFE6D9 100%);
  box-shadow:inset 0 0 0 1px rgba(130,107,78,.16), 0 1px 2px rgba(43,27,23,.06);
  color:#826B4E; transition:background .2s ease, color .2s ease, box-shadow .2s ease;
}
html body #offcanvas .lbe-oc-ic svg{ width:19px; height:19px; display:block; }
html body #offcanvas .lbe-oc-tx{ flex:1 1 auto; min-width:0; }

/* Page en cours */
html body #offcanvas.ct-panel nav.mobile-menu > ul > li.current-menu-item > a.ct-menu-link,
html body #offcanvas.ct-panel nav.mobile-menu > ul > li.current_page_item > a.ct-menu-link{
  background:#EFE6DA!important; color:#2B1B17!important; font-weight:700!important;
}
html body #offcanvas nav.mobile-menu > ul > li.current-menu-item .lbe-oc-ic,
html body #offcanvas nav.mobile-menu > ul > li.current_page_item .lbe-oc-ic{
  background:#2B1B17; color:#F3ECE2; box-shadow:0 6px 14px -8px rgba(43,27,23,.7);
}

/* « Mon espace » est deja dans la barre du bas */
html body #offcanvas nav.mobile-menu > ul > li.lbe-menu-login{ display:none!important; }

/* ---------- Mode sombre / clair (en bas du tiroir) ---------- */
html body.lbe-has-tb #offcanvas .lbe-oc-theme{
  margin:auto 24px 0!important; padding:16px 0 0!important;
  border-top:1px solid rgba(43,27,23,.1)!important;
}
html body.lbe-has-tb #offcanvas .lbe-oc-theme-l{
  color:#2B1B17!important; font:600 15.5px/1.3 Lato, system-ui, -apple-system, "Segoe UI", sans-serif!important;
}
html body.lbe-has-tb #offcanvas .lbe-oc-theme .lbe-tt{
  background:#F3ECE2!important; border-color:rgba(130,107,78,.25)!important; color:#826B4E!important;
}

/* ---------- Mode sombre ---------- */
html[data-lbe=dark] body #offcanvas.ct-panel{ background:rgba(0,0,0,.5)!important; }
html[data-lbe=dark] body #offcanvas.ct-panel .ct-panel-inner{ background:#2B1B17!important; box-shadow:-24px 0 60px -24px rgba(0,0,0,.8); }
html[data-lbe=dark] body #offcanvas .ct-panel-actions::before{ color:#F3ECE2; }
html[data-lbe=dark] body #offcanvas .ct-panel-actions .ct-toggle-close{ background:rgba(255,255,255,.07)!important; color:#D9CFC3!important; }
html[data-lbe=dark] body #offcanvas .lbe-oc-sec{ color:#C9A27E; }
html[data-lbe=dark] body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link{ color:#F3ECE2!important; }
html[data-lbe=dark] body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link:hover,
html[data-lbe=dark] body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link:focus-visible{ background:rgba(255,255,255,.06)!important; color:#fff!important; }
html[data-lbe=dark] body #offcanvas .lbe-oc-ic{ background:rgba(255,255,255,.06); box-shadow:inset 0 0 0 1px rgba(243,236,226,.12); color:#D9B89A; }
html[data-lbe=dark] body #offcanvas.ct-panel nav.mobile-menu > ul > li.current-menu-item > a.ct-menu-link,
html[data-lbe=dark] body #offcanvas.ct-panel nav.mobile-menu > ul > li.current_page_item > a.ct-menu-link{ background:rgba(255,255,255,.08)!important; color:#fff!important; }
html[data-lbe=dark] body #offcanvas nav.mobile-menu > ul > li.current-menu-item .lbe-oc-ic,
html[data-lbe=dark] body #offcanvas nav.mobile-menu > ul > li.current_page_item .lbe-oc-ic{ background:#D9B89A; color:#2B1B17; box-shadow:none; }
html[data-lbe=dark] body.lbe-has-tb #offcanvas .lbe-oc-theme{ border-top-color:rgba(243,236,226,.12)!important; }
html[data-lbe=dark] body.lbe-has-tb #offcanvas .lbe-oc-theme-l{ color:#F3ECE2!important; }
html[data-lbe=dark] body.lbe-has-tb #offcanvas .lbe-oc-theme .lbe-tt{ background:rgba(255,255,255,.07)!important; border-color:rgba(243,236,226,.2)!important; color:#F1C98F!important; }

/* Petits ecrans (moins de 360 px) : tiroir un peu plus large pour garder le texte lisible */
@media (max-width:359.98px){
  html body #offcanvas.ct-panel{ --side-panel-width:86vw; }
  html body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link{ font-size:15px!important; gap:12px; }
}

@media (prefers-reduced-motion: reduce){
  html body #offcanvas .lbe-oc-ic, html body #offcanvas.ct-panel nav.mobile-menu > ul > li > a.ct-menu-link{ transition:none!important; }
}
