/* =====================================================
   BETCOMBINATOR — Topbar globale centralisée v1.0.1
   ===================================================== */
.bcx-topbar{
  width:100%;
  background:#13081f;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 30px rgba(0,0,0,.24);
  color:#fff;
  margin:0 0 18px;
  position:relative;
  z-index:30;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.bcx-topbar *{box-sizing:border-box;}
.bcx-topbar-inner{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:66px;
  padding:0 22px;
  background:linear-gradient(90deg,#1f0c36 0%, #3d175b 45%, #24113d 100%);
}
.bcx-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff !important;
  text-decoration:none !important;
  flex:0 0 auto;
  font-weight:950;
  letter-spacing:-.02em;
}
.bcx-brand-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:linear-gradient(135deg,#ff2ea6,#8f62ff);
  box-shadow:0 10px 24px rgba(255,46,166,.22);
  font-size:14px;
}
.bcx-brand-text{
  font-size:20px;
  white-space:nowrap;
}
.bcx-tabs{
  display:flex;
  align-items:stretch;
  gap:4px;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
  flex:1 1 auto;
  height:66px;
  overscroll-behavior-x:contain;
}
.bcx-tabs::-webkit-scrollbar{display:none;}
.bcx-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 15px;
  color:rgba(255,255,255,.72) !important;
  text-decoration:none !important;
  font-weight:850;
  font-size:15px;
  white-space:nowrap;
  border-radius:0;
  position:relative;
  letter-spacing:-.01em;
}
.bcx-tab:hover{
  color:#fff !important;
  background:rgba(255,255,255,.06);
}
.bcx-tab.is-active{
  color:#fff !important;
  background:rgba(255,255,255,.10);
}
.bcx-tab.is-active::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:0;
  height:3px;
  border-radius:999px 999px 0 0;
  background:linear-gradient(90deg,#ff2ea6,#8f62ff);
}
.bcx-userarea{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  position:relative;
}
.bcx-credit-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(14,16,30,.45);
  border:1px solid rgba(255,255,255,.11);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.bcx-credit-pill .bcx-coin{
  color:#ffd34d;
  text-shadow:0 0 12px rgba(255,211,77,.32);
  font-size:13px;
}
.bcx-credit-pill strong{
  color:#ffd34d;
  font-size:18px;
  line-height:1;
  font-weight:950;
}
.bcx-credit-pill span:last-child{
  color:rgba(255,255,255,.82);
  font-size:12px;
  font-weight:850;
}
.bcx-user-menu{position:relative;}
.bcx-user-menu summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:6px 9px 6px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
  user-select:none;
}
.bcx-user-menu summary::-webkit-details-marker{display:none;}
.bcx-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:linear-gradient(180deg,#49415f,#2a2636);
  color:#fff;
  font-weight:950;
  font-size:13px;
}
.bcx-login{
  max-width:118px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:900;
}
.bcx-chevron{
  font-size:16px;
  color:rgba(255,255,255,.70);
  transform:translateY(-1px);
}
.bcx-user-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 12px);
  width:260px;
  border-radius:18px;
  overflow:hidden;
  background:#17191f;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 24px 60px rgba(0,0,0,.48);
  padding:8px 0;
  z-index:1000;
}
.bcx-user-dropdown-head{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:13px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.bcx-user-dropdown-head strong{
  color:#fff;
  font-size:15px;
  font-weight:950;
}
.bcx-user-dropdown-head span{
  color:rgba(255,255,255,.68);
  font-size:12px;
  font-weight:750;
}
.bcx-user-dropdown-head b{color:#ffd34d;}
.bcx-user-dropdown a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 16px;
  color:rgba(255,255,255,.76) !important;
  text-decoration:none !important;
  font-weight:750;
  font-size:14px;
}
.bcx-user-dropdown a:hover{
  color:#fff !important;
  background:rgba(255,255,255,.06);
}
@media(max-width:960px){
  .bcx-topbar-inner{
    flex-wrap:wrap;
    gap:8px !important;
    padding:12px 12px 10px;
    min-height:0;
  }
  .bcx-brand-text{display:none;}
  .bcx-tabs{
    order:3;
    width:100%;
    height:42px !important;
    flex-basis:100%;
    gap:3px !important;
  }
  .bcx-tab{
    padding:0 10px !important;
    font-size:12px !important;
    font-weight:850 !important;
  }
  .bcx-tab.is-active::after{
    left:10px !important;
    right:10px !important;
  }
  .bcx-userarea{margin-left:auto;}
  .bcx-credit-pill{
    min-height:36px !important;
    padding:6px 9px !important;
  }
  .bcx-credit-pill strong{font-size:16px !important;}
  .bcx-credit-pill span:last-child{display:none;}
  .bcx-user-menu summary{min-height:38px !important;}
  .bcx-login{max-width:78px;}
  .bcx-user-dropdown{right:-4px;width:min(280px,92vw);}
}
@media(max-width:420px){
  .bcx-tab{padding:0 8px !important;font-size:11px !important;}
  .bcx-avatar{width:28px !important;height:28px !important;}
  .bcx-login{max-width:64px !important;}
}

/* =====================================================
   BETCOMBINATOR — v1.0.2 fond noir autour de la topbar
   Objectif : reproduire le rendu app avec bande noire au-dessus
   et sous le bandeau, même sur les pages Elementor / thème clair.
   ===================================================== */
html body .bcx-topbar.bcx-topbar-global{
  background:#000000 !important;
  margin:0 !important;
  padding-top:48px !important;
  padding-bottom:18px !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}
html body .bcx-topbar.bcx-topbar-global .bcx-topbar-inner{
  background:linear-gradient(90deg,#1f0c36 0%, #3d175b 45%, #24113d 100%) !important;
  border-top:1px solid rgba(255,255,255,.08) !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.28) !important;
}

/* Si la barre admin WordPress est affichée, on réduit le bandeau noir supérieur
   pour éviter un espace trop haut côté administrateur connecté. */
body.admin-bar .bcx-topbar.bcx-topbar-global{
  padding-top:26px !important;
}

/* Empêche certains thèmes de créer une bande blanche directement autour du body/header. */
body:has(.bcx-topbar-global),
body:has(.bcx-topbar-global) #page,
body:has(.bcx-topbar-global) .site,
body:has(.bcx-topbar-global) .site-content{
  background:#000000;
}

@media(max-width:960px){
  html body .bcx-topbar.bcx-topbar-global{
    padding-top:28px !important;
    padding-bottom:14px !important;
  }
  body.admin-bar .bcx-topbar.bcx-topbar-global{
    padding-top:16px !important;
  }
}
