/* MBF V7 — bulle déconnexion profil + correction visuelle du hover Profil */
#profileBtn{
  position:relative;
}
#profileBtn:hover,
#profileBtn:focus-visible{
  box-shadow:0 14px 32px rgba(176,27,141,.18)!important;
  border-color:rgba(199,31,139,.32)!important;
}
#profileBtn::after{
  content:'⏻';
  position:absolute;
  right:-7px;
  top:-7px;
  width:18px;
  height:18px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#e91e83,#a600c7);
  color:#fff;
  font-size:10px;
  font-weight:900;
  opacity:0;
  transform:scale(.82);
  transition:opacity .16s ease, transform .16s ease;
  box-shadow:0 8px 18px rgba(176,27,141,.24);
  pointer-events:none;
}
#profileBtn:hover::after,
#profileBtn:focus-visible::after{
  opacity:1;
  transform:scale(1);
}
#mbfProfileQuickPopover{
  position:fixed;
  z-index:10020;
  min-width:258px;
  max-width:min(340px, calc(100vw - 24px));
  display:grid;
  grid-template-columns:44px 1fr;
  gap:10px 12px;
  align-items:center;
  padding:12px;
  border-radius:22px;
  border:1px solid rgba(190,91,151,.28);
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,244,250,.96));
  box-shadow:0 24px 58px rgba(60,20,50,.20);
  color:#2e1730;
  opacity:0;
  pointer-events:none;
  transform:translateY(-6px) scale(.98);
  transition:opacity .16s ease, transform .16s ease;
  backdrop-filter:blur(14px) saturate(1.08);
  -webkit-backdrop-filter:blur(14px) saturate(1.08);
}
#mbfProfileQuickPopover.is-open,
#mbfProfileQuickPopover.is-hover{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
#mbfProfileQuickPopover::before{
  content:'';
  position:absolute;
  top:-8px;
  right:28px;
  width:16px;
  height:16px;
  transform:rotate(45deg);
  background:rgba(255,255,255,.98);
  border-left:1px solid rgba(190,91,151,.20);
  border-top:1px solid rgba(190,91,151,.20);
}
.mbf-profile-quick-avatar{
  width:44px;
  height:44px;
  border-radius:999px;
  border:0;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#e91e83,#a600c7);
  color:#fff;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(176,27,141,.22);
}
.mbf-profile-quick-text strong{
  display:block;
  color:#2e1730;
  font-size:14px;
  font-weight:900;
  line-height:1.2;
}
.mbf-profile-quick-text small{
  display:block;
  margin-top:2px;
  color:#6f5269;
  font-size:12px;
  font-weight:650;
  line-height:1.35;
}
.mbf-profile-quick-logout{
  grid-column:1/-1;
  min-height:42px;
  border-radius:999px;
  border:1px solid rgba(179,21,66,.26);
  background:linear-gradient(135deg,#fff7f8,#fff);
  color:#b31542;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mbf-profile-quick-logout:hover{
  transform:translateY(-1px);
  border-color:rgba(179,21,66,.44);
  box-shadow:0 12px 28px rgba(179,21,66,.12);
}
#profileModalBackdrop.visible{
  display:flex!important;
  opacity:1!important;
  pointer-events:auto!important;
}
@media (max-width:720px){
  #profileBtn::after{display:none;}
  #mbfProfileQuickPopover{display:none!important;}
}
