/* Correctif mobile : profil entièrement visible dans la barre basse.
   Interface uniquement. Ne touche à aucune logique métier. */
@media screen and (max-width: 768px){
  html, body{ overflow-x:hidden !important; }

  body nav.mobile-bottom-nav-facebook{
    display:grid !important;
    grid-template-columns:repeat(6, minmax(0, 1fr)) !important;
    grid-auto-flow:column !important;
    align-items:center !important;
    justify-items:stretch !important;
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    top:auto !important;
    width:100vw !important;
    max-width:100vw !important;
    min-width:0 !important;
    height:82px !important;
    min-height:82px !important;
    max-height:82px !important;
    padding:6px 2px calc(7px + 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 -12px 30px rgba(15,23,42,.18) !important;
    z-index:2147483000 !important;
  }

  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-item,
  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-profile-item,
  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-notification-item{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    height:68px !important;
    min-height:68px !important;
    max-height:68px !important;
    padding:4px 0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    border-radius:12px !important;
    text-align:center !important;
    line-height:1 !important;
    white-space:nowrap !important;
    text-decoration:none !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:19px !important;
    line-height:1 !important;
    margin:0 0 4px 0 !important;
    padding:0 !important;
  }

  body nav.mobile-bottom-nav-facebook .bottom-nav-icon-wrap{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:30px !important;
    height:26px !important;
    margin:0 0 4px 0 !important;
    overflow:visible !important;
  }

  body nav.mobile-bottom-nav-facebook .bottom-nav-badge{
    position:absolute !important;
    top:-8px !important;
    right:-8px !important;
    min-width:16px !important;
    height:16px !important;
    padding:0 4px !important;
    border-radius:999px !important;
    background:#dc2626 !important;
    color:#fff !important;
    font-size:10px !important;
    font-weight:900 !important;
    line-height:16px !important;
    text-align:center !important;
    border:2px solid #fff !important;
    box-shadow:0 2px 6px rgba(15,23,42,.25) !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:28px !important;
    min-width:28px !important;
    max-width:28px !important;
    height:28px !important;
    min-height:28px !important;
    max-height:28px !important;
    margin:0 0 4px 0 !important;
    padding:0 !important;
    border-radius:50% !important;
    object-fit:cover !important;
    object-position:center center !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    border:2px solid #1877f2 !important;
    background:#e8f3ff !important;
    color:#1877f2 !important;
    font-size:10px !important;
    font-weight:900 !important;
    line-height:28px !important;
    text-align:center !important;
    flex:0 0 28px !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;
    font-size:8px !important;
    font-weight:800 !important;
    line-height:1.05 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  body{ padding-bottom:110px !important; }
  body .content, body main, body .main-content{ padding-bottom:120px !important; }
}

@media screen and (max-width: 360px){
  body nav.mobile-bottom-nav-facebook{
    height:80px !important;
    min-height:80px !important;
    max-height:80px !important;
    padding-left:1px !important;
    padding-right:1px !important;
  }

  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-item,
  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-profile-item,
  body nav.mobile-bottom-nav-facebook > a.mobile-bottom-notification-item{
    height:66px !important;
    min-height:66px !important;
    max-height:66px !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-basis:26px !important;
    line-height:26px !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;
  }
}
