/* Correctif final mobile/tablette : la cloche et son badge ne doivent jamais passer derrière la photo profil.
   Interface uniquement. Aucune logique métier modifiée. */
@media screen and (max-width: 1024px){
  body nav.mobile-bottom-nav-facebook{
    display:grid !important;
    grid-template-columns:repeat(6, minmax(0, 1fr)) !important;
    column-gap:0 !important;
    overflow:visible !important;
    padding-left:4px !important;
    padding-right:4px !important;
  }

  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-item,
  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-notification-item,
  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-profile-item{
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    flex:0 1 auto !important;
    overflow:visible !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-notification-item{
    z-index:5 !important;
  }

  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-profile-item{
    z-index:4 !important;
  }

  body nav.mobile-bottom-nav-facebook .bottom-nav-icon-wrap{
    position:relative !important;
    width:28px !important;
    min-width:28px !important;
    max-width:28px !important;
    height:26px !important;
    min-height:26px !important;
    max-height:26px !important;
    margin:0 auto 4px auto !important;
    overflow:visible !important;
  }

  body nav.mobile-bottom-nav-facebook .bottom-nav-icon-wrap > i{
    font-size:19px !important;
    line-height:26px !important;
    display:block !important;
    text-align:center !important;
  }

  body nav.mobile-bottom-nav-facebook .bottom-nav-badge{
    position:absolute !important;
    top:-5px !important;
    right:-4px !important;
    min-width:14px !important;
    width:auto !important;
    height:14px !important;
    padding:0 3px !important;
    border-radius:999px !important;
    background:#dc2626 !important;
    color:#fff !important;
    font-size:8px !important;
    font-weight:900 !important;
    line-height:14px !important;
    text-align:center !important;
    border:1.5px solid #fff !important;
    box-shadow:0 1px 4px rgba(15,23,42,.28) !important;
    transform:none !important;
    z-index:20 !important;
    pointer-events:none !important;
    white-space:nowrap !important;
  }

  body nav.mobile-bottom-nav-facebook img.bottom-nav-avatar,
  body nav.mobile-bottom-nav-facebook span.bottom-nav-avatar,
  body nav.mobile-bottom-nav-facebook .bottom-nav-avatar{
    width:26px !important;
    min-width:26px !important;
    max-width:26px !important;
    height:26px !important;
    min-height:26px !important;
    max-height:26px !important;
    flex:0 0 26px !important;
    margin:0 auto 4px auto !important;
    object-fit:cover !important;
    object-position:center !important;
    overflow:hidden !important;
  }

  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-item > span,
  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-profile-item > span,
  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-notification-item > span:last-child{
    font-size:8px !important;
    line-height:1.05 !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
}

@media screen and (max-width: 360px){
  body nav.mobile-bottom-nav-facebook .bottom-nav-badge{
    top:-4px !important;
    right:-3px !important;
    min-width:13px !important;
    height:13px !important;
    padding:0 2px !important;
    font-size:7.5px !important;
    line-height:13px !important;
  }

  body nav.mobile-bottom-nav-facebook img.bottom-nav-avatar,
  body nav.mobile-bottom-nav-facebook span.bottom-nav-avatar,
  body nav.mobile-bottom-nav-facebook .bottom-nav-avatar{
    width:24px !important;
    min-width:24px !important;
    max-width:24px !important;
    height:24px !important;
    min-height:24px !important;
    max-height:24px !important;
    flex-basis:24px !important;
  }
}
