/* ======================================================
   NAVBAR MOBILE
   Topbar + Bottombar — s'applique sur <1024px
====================================================== */


/* ─── Cacher la navbar desktop ────────────────────── */

.navbar,
.logo,
#button-add-deadline {
  display: none !important;
}


/* ─── Layout app ──────────────────────────────────── */

.app-content {
  margin-left: 0 !important;
  padding-top: 60px;
  padding-bottom: 80px;
  padding-left: 17px;
  padding-right: 17px;
  box-sizing: border-box;
}


/* ─── Topbar ──────────────────────────────────────── */

.mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #F2EFEB;
  border-bottom: 1px solid #E6E3E0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 17px 0px 17px;
  z-index: 500;
  box-sizing: border-box;
}

.mobile-logo {
  height:26px;
  margin: 0;
}

.logo-bar{
color:var(--redlina-red);
font-weight:900;
}


.mobile-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  position: relative;
}

.mobile-menu-btn:focus {
  outline: none;
}

.mobile-menu-btn:hover {
  background: #E6E3E0;
}


/* ─── Dropdown ────────────────────────────────────── */

.mobile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  background: #fff;
  border: 1px solid #E6E3E0;
  border-radius: 14px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 600;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

.mobile-dropdown-item:hover {
  background: #F2EFEB;
}

.mobile-dropdown-divider {
  height: 1px;
  background: #E6E3E0;
  margin: 6px 0;
}

.mobile-dropdown-logout {
  color: #E82615;
}

.mobile-dropdown-logout svg path {
  stroke: #E82615;
}


/* ─── Bottombar ───────────────────────────────────── */

.mobile-bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: #F2EFEB;
  border-top: 1px solid #E6E3E0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 20px;
  z-index: 500;
  box-sizing: border-box;
}

.mobile-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  font-size: 11px;
  font-family: inherit;
  padding: 6px 16px;
  border-radius: 12px;
  transition: background 0.2s ease;
}


.mobile-bar-add {
  color: #000;
}


/* ─── Cacher sur desktop ──────────────────────────── */

.mobile-topbar,
.mobile-bottombar {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-topbar,
  .mobile-bottombar {
    display: flex;
  }
}


/* ─── Toast message Mobile optimisation ──────────────────────────── */

#toast-container {
  left: 50% !important;
  transform: translateX(-50%) !important;
  transition: none !important;
}