/* YellenHub v0.24 — coque : barre du bas, boutons Retour, pages secondaires */

:root{--sv-main-nav-height:58px !important;--yh-nav-h:58px}

/* ---------- Barre de navigation du bas : ancrée, pleine largeur, façon TikTok ---------- */
html body nav#tabbar.tabbar{
  position:fixed !important;left:0 !important;right:0 !important;bottom:0 !important;top:auto !important;
  transform:none !important;width:100% !important;min-width:0 !important;max-width:none !important;
  height:calc(var(--yh-nav-h) + env(safe-area-inset-bottom,0px)) !important;
  margin:0 !important;border-radius:0 !important;
  display:grid !important;grid-template-columns:repeat(6,minmax(0,1fr)) !important;align-items:center !important;gap:0 !important;
  padding:0 max(4px, calc(50% - 330px)) env(safe-area-inset-bottom,0px) !important;
  background:#000 !important;border:0 !important;border-top:1px solid rgba(255,255,255,.08) !important;
  box-shadow:none !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;
  z-index:40 !important;box-sizing:border-box !important;
}
html body nav#tabbar.tabbar.hidden{display:none !important}
html body nav#tabbar.tabbar .nav{
  height:var(--yh-nav-h) !important;min-width:0 !important;margin:0 !important;
  padding:6px 2px 4px !important;gap:3px !important;
  display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;
  background:transparent !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;
  color:rgba(255,255,255,.55) !important;font-size:10.5px !important;font-weight:600 !important;line-height:1.1 !important;
  -webkit-tap-highlight-color:transparent;transform:none !important;
}
html body nav#tabbar.tabbar .nav::before,
html body nav#tabbar.tabbar .nav::after{display:none !important;content:none !important}
html body nav#tabbar.tabbar .nav.active{color:#fff !important}
html body nav#tabbar.tabbar .nav svg{width:24px !important;height:24px !important;flex:none !important;fill:currentColor}
html body nav#tabbar.tabbar .nav[data-go="shop"] svg{fill:none !important}
html body nav#tabbar.tabbar .nav > span:not(.plus):not(.msg-badge){
  display:block !important;max-width:100% !important;overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important;
  font-size:10.5px !important;opacity:1 !important;
}
html body nav#tabbar.tabbar .nav-plus{padding:0 !important}
html body nav#tabbar.tabbar .nav-plus .plus{
  position:relative !important;width:46px !important;height:32px !important;margin:0 !important;padding:0 !important;
  display:grid !important;place-items:center !important;
  border:0 !important;border-radius:10px !important;
  background:linear-gradient(90deg,#FFC531,#FF9C15) !important;color:#1a1000 !important;
  box-shadow:-3px 0 0 #00E0D1, 3px 0 0 #FF2E63 !important;
  font-size:0 !important;transform:none !important;top:0 !important;
}
html body nav#tabbar.tabbar .nav-plus .plus::before,
html body nav#tabbar.tabbar .nav-plus .plus::after{display:none !important;content:none !important}
html body nav#tabbar.tabbar .nav-plus .plus svg{width:20px !important;height:20px !important;fill:none !important}
html body nav#tabbar.tabbar .nav-plus:active .plus{transform:scale(.93) !important}
html body nav#tabbar.tabbar .msg-badge{position:absolute !important;top:4px !important;left:calc(50% + 6px) !important;right:auto !important}
@media (max-width:360px){
  html body nav#tabbar.tabbar .nav > span:not(.plus):not(.msg-badge){font-size:9.5px !important}
  html body nav#tabbar.tabbar .nav svg{width:22px !important;height:22px !important}
}

/* ---------- Boutons Retour ---------- */
button.yh-back{
  width:40px !important;height:40px !important;min-width:40px !important;padding:0 !important;margin:0 !important;
  display:grid !important;place-items:center !important;flex:none !important;
  border:0 !important;border-radius:50% !important;background:rgba(255,255,255,.08) !important;color:#fff !important;
  font-size:0 !important;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s, transform .15s;
}
button.yh-back svg{width:22px;height:22px;display:block}
button.yh-back:hover{background:rgba(255,255,255,.16) !important}
button.yh-back:active{transform:scale(.92)}
.yh-back-chip{display:inline-flex !important;align-items:center;gap:6px}
.yh-back-chip .yh-back-ic svg{width:16px;height:16px;display:block}

/* En-têtes des pages secondaires */
section.view > header.topbar.solid{
  min-height:56px;padding-top:max(8px, env(safe-area-inset-top,0px)) !important;padding-bottom:8px !important;
  padding-left:12px !important;padding-right:12px !important;
  display:flex !important;align-items:center !important;gap:10px !important;
  background:rgba(8,8,10,.92) !important;border-bottom:1px solid rgba(255,255,255,.07) !important;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
section.view > header.topbar.solid .topbar-title{flex:1;text-align:center;font-size:17px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Pages secondaires : plein écran, entrée par la droite */
@keyframes yhSlideIn{from{transform:translateX(36px);opacity:.4}to{transform:none;opacity:1}}
section.view.yh-slide-in{animation:yhSlideIn .24s cubic-bezier(.2,.8,.2,1)}
body.yh-subpage section.view .profile-body{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)) !important}
@media (prefers-reduced-motion:reduce){section.view.yh-slide-in{animation:none}}

/* ---------- Fenêtre de dialogue ---------- */
#ny-modal-ic.yh-modal-ic{font-size:0 !important;border-radius:50% !important;width:64px !important;height:64px !important}
#ny-modal-ic.yh-modal-ic svg{width:30px;height:30px}
#ny-modal-ic.yh-modal-warn{background:rgba(255,46,99,.14) !important;color:#FF2E63}
#ny-modal-ic.yh-modal-ok{background:rgba(0,200,120,.14) !important;color:#22d38a}
#ny-modal-ic.yh-modal-bell,#ny-modal-ic.yh-modal-info{background:rgba(255,197,49,.14) !important;color:#FFC531}

/* ---------- Réglages : bouton notifications actif ---------- */
#btn-enable-push.yh-push-on .st-ic{color:#22d38a}
#btn-enable-push.yh-push-on .st-lbl::after{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#22d38a;margin-left:8px;vertical-align:middle}

/* ---------- Toast notification au premier plan ---------- */
.yh-toast{position:fixed;left:50%;top:calc(12px + env(safe-area-inset-top,0px));z-index:10050;
  transform:translate(-50%,-140%);transition:transform .3s cubic-bezier(.2,.8,.2,1);
  display:flex;align-items:center;gap:10px;max-width:min(92vw,440px);padding:12px 16px;border-radius:14px;
  background:#1b1b1f;border:1px solid rgba(255,255,255,.08);color:#fff;font-size:14px;box-shadow:0 12px 32px rgba(0,0,0,.45)}
.yh-toast.on{transform:translate(-50%,0)}
.yh-toast i{color:#FFC531;display:grid}
.yh-toast i svg{width:20px;height:20px}

/* ---------- Listes de pays ---------- */
select optgroup{color:#8a8a90;font-style:normal;font-weight:700}
select optgroup option{color:#fff}

/* Pages dont l'en-tête fixe masquait le haut du contenu */
#view-search > header.topbar.solid + .profile-body,
#view-settings > header.topbar.solid + .profile-body,
#view-wallet > header.topbar.solid + .profile-body{padding-top:calc(68px + env(safe-area-inset-top,0px)) !important}
#view-search > header .search-bar{flex:1 1 auto !important;min-width:0 !important;width:auto !important;max-width:none !important}
#view-search > header button[type="submit"]:empty{display:none !important}

/* v0.24.1 : ne pas réafficher les en-têtes que le profil pro masque (sinon le menu ☰ Paramètres / Administration est caché) */
section.view > header.topbar[style*="display: none"],
section.view > header.topbar[style*="display:none"]{display:none !important}
