/* Correctif définitif : badge notifications mobile/tablette responsive, séparé de la photo profil.
   Interface uniquement. Aucune logique métier modifiée. */
@media screen and (max-width: 1024px){
  body nav.mobile-bottom-nav-facebook{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:space-around !important;
    gap:0 !important;
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100vw !important;
    max-width:100vw !important;
    min-width:100vw !important;
    height:72px !important;
    min-height:72px !important;
    max-height:72px !important;
    padding:5px 3px calc(6px + env(safe-area-inset-bottom)) !important;
    margin:0 !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    background:#fff !important;
    border-top:1px solid rgba(15,23,42,.14) !important;
    box-shadow:0 -10px 24px rgba(15,23,42,.16) !important;
    z-index:2147483000 !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{
    flex:1 1 0 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    height:58px !important;
    min-height:58px !important;
    max-height:58px !important;
    padding:3px 0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:visible !important;
    position:relative !important;
    text-align:center !important;
    white-space:nowrap !important;
    border-radius:12px !important;
  }

  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-item > i,
  body nav.mobile-bottom-nav-facebook .bottom-nav-icon-wrap > i{
    display:block !important;
    font-size:18px !important;
    line-height:22px !important;
    width:24px !important;
    height:24px !important;
    margin:0 auto 2px auto !important;
    padding:0 !important;
    text-align:center !important;
  }

  body nav.mobile-bottom-nav-facebook .bottom-nav-icon-wrap{
    position:relative !important;
    display:block !important;
    width:24px !important;
    min-width:24px !important;
    max-width:24px !important;
    height:24px !important;
    min-height:24px !important;
    max-height:24px !important;
    margin:0 auto 2px auto !important;
    overflow:visible !important;
    isolation:isolate !important;
  }

  body nav.mobile-bottom-nav-facebook .bottom-nav-badge{
    position:absolute !important;
    top:-4px !important;
    left:14px !important;
    right:auto !important;
    transform:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:14px !important;
    width:auto !important;
    max-width:24px !important;
    height:14px !important;
    min-height:14px !important;
    max-height:14px !important;
    padding:0 3px !important;
    box-sizing:border-box !important;
    border-radius:999px !important;
    background:#dc2626 !important;
    color:#fff !important;
    border:1.5px solid #fff !important;
    font-size:8px !important;
    font-weight:800 !important;
    line-height:1 !important;
    letter-spacing:-.2px !important;
    text-align:center !important;
    box-shadow:0 1px 4px rgba(15,23,42,.25) !important;
    z-index:30 !important;
    pointer-events:none !important;
    overflow:hidden !important;
    text-overflow:clip !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{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:24px !important;
    min-width:24px !important;
    max-width:24px !important;
    height:24px !important;
    min-height:24px !important;
    max-height:24px !important;
    flex:0 0 24px !important;
    margin:0 auto 2px auto !important;
    padding:0 !important;
    border-radius:50% !important;
    object-fit:cover !important;
    object-position:center !important;
    overflow:hidden !important;
    border:1.5px solid #1877f2 !important;
    background:#e8f3ff !important;
    color:#1877f2 !important;
    font-size:9px !important;
    line-height:24px !important;
    text-align:center !important;
    box-sizing:border-box !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{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    font-size:7.5px !important;
    font-weight:700 !important;
    line-height:1 !important;
    text-align:center !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
}

@media screen and (max-width: 380px){
  body nav.mobile-bottom-nav-facebook{
    height:68px !important;
    min-height:68px !important;
    max-height:68px !important;
    padding-left:2px !important;
    padding-right:2px !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{
    height:54px !important;
    min-height:54px !important;
    max-height:54px !important;
  }

  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-item > i,
  body nav.mobile-bottom-nav-facebook .bottom-nav-icon-wrap > i{
    font-size:17px !important;
    width:22px !important;
    height:22px !important;
    line-height:21px !important;
  }

  body nav.mobile-bottom-nav-facebook .bottom-nav-icon-wrap,
  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:22px !important;
    min-width:22px !important;
    max-width:22px !important;
    height:22px !important;
    min-height:22px !important;
    max-height:22px !important;
    flex-basis:22px !important;
  }

  body nav.mobile-bottom-nav-facebook .bottom-nav-badge{
    top:-4px !important;
    left:13px !important;
    min-width:13px !important;
    height:13px !important;
    min-height:13px !important;
    max-height:13px !important;
    padding:0 2px !important;
    font-size:7px !important;
    border-width:1.2px !important;
    max-width:21px !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:7px !important;
  }
}
